The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#120616)
hermes-seaeye[bot]67f7e1d6b311
diff --git a/apps/desktop/src/app/chat/composer/hooks/slash-localization.test.tsx b/apps/desktop/src/app/chat/composer/hooks/slash-localization.test.tsxindex 0a621e65c14..19529f7d66d 100644--- a/apps/desktop/src/app/chat/composer/hooks/slash-localization.test.tsx+++ b/apps/desktop/src/app/chat/composer/hooks/slash-localization.test.tsx@@ -8,15 +8,31 @@ import { I18nProvider, useI18n } from '@/i18n'import { TRANSLATIONS } from '@/i18n/catalog'import { setRuntimeI18nLocale } from '@/i18n/runtime'import type { Locale } from '@/i18n/types'-import { type CommandsCatalogLike, desktopSlashDescription, rememberDesktopCommandsCatalog } from '@/lib/desktop-slash-commands'+import {+ type CommandsCatalogLike,+ desktopSlashDescription,+ rememberDesktopCommandsCatalog+} from '@/lib/desktop-slash-commands'import { queryClient } from '@/lib/query-client'import { useSlashCompletions } from './use-slash-completions'const catalog: CommandsCatalogLike = {canon: { '/reset': '/new' },- categories: [{ name: 'Session', pairs: [['/new', 'Backend description'], ['/retry', 'Retry the last message']] }],- pairs: [['/new', 'Backend description'], ['/retry', 'Retry the last message'], ['/my-skill', 'Author-owned description']]+ categories: [+ {+ name: 'Session',+ pairs: [+ ['/new', 'Backend description'],+ ['/retry', 'Retry the last message']+ ]+ }+ ],+ pairs: [+ ['/new', 'Backend description'],+ ['/retry', 'Retry the last message'],+ ['/my-skill', 'Author-owned description']+ ]}afterEach(() => {@@ -31,7 +47,17 @@ describe('desktop slash description localization', () => {for (const [locale, copy] of Object.entries(TRANSLATIONS)) {setRuntimeI18nLocale(locale as Locale)- for (const command of ['/new', '/save', '/retry', '/undo', '/title', '/branch', '/worktree', '/compress', '/stop']) {+ for (const command of [+ '/new',+ '/save',+ '/retry',+ '/undo',+ '/title',+ '/branch',+ '/worktree',+ '/compress',+ '/stop'+ ]) {const expected = copy.composer.commandDescs[command]expect(expected, `${locale}: ${command}`).toBeTruthy()expect(desktopSlashDescription(command, 'backend')).toBe(expected)@@ -41,7 +67,9 @@ describe('desktop slash description localization', () => {expect(copy.composer.commandDescs[command], `${locale}: ${command}`).toBeTruthy()if (locale !== 'en') {- expect(copy.composer.commandDescs[command], `${locale}: ${command}`).not.toBe(TRANSLATIONS.en.composer.commandDescs[command])+ expect(copy.composer.commandDescs[command], `${locale}: ${command}`).not.toBe(+ TRANSLATIONS.en.composer.commandDescs[command]+ )}}@@ -56,11 +84,21 @@ describe('desktop slash description localization', () => {})it('refreshes both cached bare and typed suggestions when the UI locale changes', async () => {- const request = vi.fn(async (method: string) => method === 'commands.catalog' ? catalog : {- items: [{ text: '/new', meta: 'Backend description', kind: 'command' }, { text: '/my-skill', meta: 'Author-owned description', kind: 'skill' }]- })-- const api: { search?: (query: string) => readonly Unstable_TriggerItem[]; setLocale?: ReturnType<typeof useI18n>['setLocale'] } = {}+ const request = vi.fn(async (method: string) =>+ method === 'commands.catalog'+ ? catalog+ : {+ items: [+ { text: '/new', meta: 'Backend description', kind: 'command' },+ { text: '/my-skill', meta: 'Author-owned description', kind: 'skill' }+ ]+ }+ )++ const api: {+ search?: (query: string) => readonly Unstable_TriggerItem[]+ setLocale?: ReturnType<typeof useI18n>['setLocale']+ } = {}function Probe() {api.setLocale = useI18n().setLocale@@ -69,17 +107,30 @@ describe('desktop slash description localization', () => {return null}- render(<I18nProvider configClient={null} initialLocale="en"><Probe /></I18nProvider>)+ render(+ <I18nProvider configClient={null} initialLocale="en">+ <Probe />+ </I18nProvider>+ )for (const query of ['', 'ne']) {for (const locale of ['en', 'zh', 'ja', 'zh-hant', 'ar', 'ru', 'en'] as const) {- await act(async () => { await api.setLocale!(locale) })- await waitFor(() => {- const items = api.search!(query)-- expect(items.find(item => item.metadata?.command === '/new')?.description).toBe(TRANSLATIONS[locale].composer.commandDescs['/new'])- expect(items.find(item => item.metadata?.command === '/my-skill')?.description).toBe('Author-owned description')- }, { timeout: 2000 })+ await act(async () => {+ await api.setLocale!(locale)+ })+ await waitFor(+ () => {+ const items = api.search!(query)++ expect(items.find(item => item.metadata?.command === '/new')?.description).toBe(+ TRANSLATIONS[locale].composer.commandDescs['/new']+ )+ expect(items.find(item => item.metadata?.command === '/my-skill')?.description).toBe(+ 'Author-owned description'+ )+ },+ { timeout: 2000 }+ )}}diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex ab83b7e6b65..b8f4af80216 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -1077,7 +1077,7 @@ export const ar = defineLocale({moaAggregator: 'نموذج التجميع',moaAggregatorBilled: 'النموذج المنفّذ · تُحتسب عليه تكلفة التشغيل',moaReferenceHint: 'يقدّم المشورة مرة واحدة لكل رسالة افتراضياً',- setupProviderFallback: "الموفّر",+ setupProviderFallback: 'الموفّر',setUpProvider: name => `إعداد ${name}`,staleAuxBefore: (count, names) => `المهام المساعدة (${count}: ${names}) ما زالت تعمل لدى `,staleAuxAfter: '، وليس على النموذج الرئيسي.',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 44b616f38f0..a000ea08a00 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -1665,7 +1665,7 @@ export const en: Translations = {deepLinkErrorTooLarge: 'The config payload exceeds the 32KB limit.'},model: {- setupProviderFallback: "provider",+ setupProviderFallback: 'provider',setUpProvider: name => `Set up ${name}`,staleAuxBefore: (count, names) => `${count} auxiliary task${count === 1 ? '' : 's'} (${names}) still run on `,staleAuxAfter: ', not your main model.',@@ -3372,7 +3372,7 @@ export const en: Translations = {'/export': 'Export a profile (config, skills, theme) to a shareable archive','/import': 'Import a shared profile archive as a new profile','/stop': 'Stop the active turn and background processes',- '/pause': 'Pause new work globally (emergency stop); \'/pause off\' resumes',+ '/pause': "Pause new work globally (emergency stop); '/pause off' resumes",'/bg': 'Run a prompt in a separate background session','/btw': 'Ask a side question about this conversation without interrupting it','/agents': 'Show active agents and running tasks',@@ -3389,7 +3389,8 @@ export const en: Translations = {'/subgoal': 'Add or manage extra criteria on the active goal','/status': 'Show current session status','/egress': 'Show Docker egress proxy status',- '/context': 'Show detailed context window view with usage gauge, category breakdown, compression stats, and throughput',+ '/context':+ 'Show detailed context window view with usage gauge, category breakdown, compression stats, and throughput','/whoami': 'Show your slash command access (admin / user)','/profile': 'Switch the active Hermes profile','/codex-runtime': 'Toggle codex app-server runtime for OpenAI/Codex models',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex 5cfddd5369b..fe3808830d2 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -1237,7 +1237,7 @@ export const ja = defineLocale({moaAggregator: '集約モデル',moaAggregatorBilled: '実行モデル · 実行費用の請求先',moaReferenceHint: '既定では各ターンに一度だけ助言',- setupProviderFallback: "プロバイダー",+ setupProviderFallback: 'プロバイダー',setUpProvider: name => `${name} を設定`,staleAuxBefore: (count, names) => `${count} 件の補助タスク(${names})は引き続き `,staleAuxAfter: ' で実行され、メインモデルは使用されません。',diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex 85449681475..d1f2fab88fc 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -1430,7 +1430,7 @@ export const ru = defineLocale({moaAggregator: 'Модель-агрегатор',moaAggregatorBilled: 'исполняющая модель · на неё приходится стоимость запуска',moaReferenceHint: 'по умолчанию советует один раз за ход',- setupProviderFallback: "провайдер",+ setupProviderFallback: 'провайдер',setUpProvider: name => `Настроить ${name}`,staleAuxBefore: (count, names) => `Вспомогательные задачи (${count}: ${names}) по-прежнему используют `,staleAuxAfter: ', а не основную модель.',diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 716a546aa31..2de4ca5dbdd 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -1279,7 +1279,7 @@ export const zhHant = defineLocale({deepLinkErrorTooLarge: '設定內容超過 32KB 上限。'},model: {- setupProviderFallback: "提供方",+ setupProviderFallback: '提供方',setUpProvider: name => `設定 ${name}`,staleAuxBefore: (count, names) => `${count} 個輔助任務(${names})仍由 `,staleAuxAfter: ' 執行,而非主要模型。',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex 8444fdb1ac0..ea1ae4f9354 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -1617,7 +1617,7 @@ export const zh = defineLocale({deepLinkErrorTooLarge: '配置负载超过 32KB 上限。'},model: {- setupProviderFallback: "提供方",+ setupProviderFallback: '提供方',setUpProvider: name => `设置 ${name}`,staleAuxBefore: (count, names) => `${count} 个辅助任务(${names})仍由 `,staleAuxAfter: ' 运行,而不是主模型。',