Phase 002: rebrand to hermes-ui and consolidate i18n to zh/en
Removes the ekko / hermes-web-ui branding from the whole tree and drops eight locale files, so the project presents one name and one language pair. Data compatibility is deliberate, not accidental: DB filenames, the JWT audience, and skill manifest ownership all still recognise their pre-rename values so existing deployments under ~/.hermes-web-ui keep working without a re-login or a re-injection. scripts/harness-check.mjs now scans for the legacy strings and fails the build on any new occurrence, with an explicit allow-list (and reasons) for the compatibility paths that must keep them.
This commit is contained in:
@@ -18,20 +18,20 @@ afterEach(() => {
|
||||
|
||||
describe('media controller', () => {
|
||||
it('uses Hermes Web UI media directory as the default generated video output path', async () => {
|
||||
process.env.HERMES_WEB_UI_HOME = '/tmp/hermes-web-ui-test-home'
|
||||
process.env.HERMES_WEB_UI_HOME = '/tmp/hermes-ui-test-home'
|
||||
const { defaultImageOutputPath, defaultMediaOutputPath } = await import('../../packages/server/src/controllers/hermes/media')
|
||||
|
||||
expect(defaultMediaOutputPath('req_123')).toBe(join('/tmp/hermes-web-ui-test-home', 'media', 'req_123.mp4'))
|
||||
expect(defaultMediaOutputPath('bad/request:id')).toBe(join('/tmp/hermes-web-ui-test-home', 'media', 'bad_request_id.mp4'))
|
||||
expect(defaultImageOutputPath('img_123')).toBe(join('/tmp/hermes-web-ui-test-home', 'media', 'img_123.png'))
|
||||
expect(defaultImageOutputPath('bad/request:id', 1)).toBe(join('/tmp/hermes-web-ui-test-home', 'media', 'bad_request_id-2.png'))
|
||||
expect(defaultMediaOutputPath('req_123')).toBe(join('/tmp/hermes-ui-test-home', 'media', 'req_123.mp4'))
|
||||
expect(defaultMediaOutputPath('bad/request:id')).toBe(join('/tmp/hermes-ui-test-home', 'media', 'bad_request_id.mp4'))
|
||||
expect(defaultImageOutputPath('img_123')).toBe(join('/tmp/hermes-ui-test-home', 'media', 'img_123.png'))
|
||||
expect(defaultImageOutputPath('bad/request:id', 1)).toBe(join('/tmp/hermes-ui-test-home', 'media', 'bad_request_id-2.png'))
|
||||
})
|
||||
|
||||
it('generates images through the requested configured custom provider', async () => {
|
||||
vi.stubEnv('AGNES_API_KEY', 'agnes-secret')
|
||||
vi.doMock('../../packages/server/src/services/hermes/hermes-profile', () => ({
|
||||
getActiveProfileName: () => 'default',
|
||||
getProfileDir: () => '/tmp/hermes-web-ui-test-profile',
|
||||
getProfileDir: () => '/tmp/hermes-ui-test-profile',
|
||||
listProfileNamesFromDisk: () => ['default'],
|
||||
}))
|
||||
vi.doMock('../../packages/server/src/services/config-helpers', () => ({
|
||||
@@ -60,7 +60,7 @@ describe('media controller', () => {
|
||||
provider: 'agnes',
|
||||
mode: 'text',
|
||||
prompt: 'make an icon',
|
||||
output_path: '/tmp/hermes-web-ui-agnes-image.png',
|
||||
output_path: '/tmp/hermes-ui-agnes-image.png',
|
||||
},
|
||||
},
|
||||
get: vi.fn(() => ''),
|
||||
|
||||
Reference in New Issue
Block a user