The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#106818)
hermes-seaeye[bot]15f3037647a0
diff --git a/apps/desktop/electron/wsl-path-bridge.ts b/apps/desktop/electron/wsl-path-bridge.tsindex cab863f742e..c84d6bf6684 100644--- a/apps/desktop/electron/wsl-path-bridge.ts+++ b/apps/desktop/electron/wsl-path-bridge.ts@@ -177,9 +177,7 @@ export function resolvePickerDefaultPath(const value = String(defaultPath).trim()- return value.startsWith('/') && !WIN_DRIVE_RE.test(value)- ? wslPosixToWindowsAccessible(value, distro)- : defaultPath+ return value.startsWith('/') && !WIN_DRIVE_RE.test(value) ? wslPosixToWindowsAccessible(value, distro) : defaultPath}/** fs read path: on Windows, make a WSL cwd readable via its UNC / drive form. */diff --git a/apps/desktop/src/app/chat/composer/status-stack/polling-guard.test.tsx b/apps/desktop/src/app/chat/composer/status-stack/polling-guard.test.tsxindex 771e3849b3d..510ac0644ca 100644--- a/apps/desktop/src/app/chat/composer/status-stack/polling-guard.test.tsx+++ b/apps/desktop/src/app/chat/composer/status-stack/polling-guard.test.tsx@@ -85,10 +85,9 @@ describe('ComposerStatusStack hidden-pane poll', () => {const SID_BG = 'sess-bg-poll'const runningList = vi.fn(async (method: string) =>- method === 'process.list'- ? { processes: [{ command: 'dev server', session_id: 'bg1', status: 'running' }] }- : {}+ method === 'process.list' ? { processes: [{ command: 'dev server', session_id: 'bg1', status: 'running' }] } : {})+const processListCalls = () => runningList.mock.calls.filter(([method]) => method === 'process.list').lengthfunction renderStackBg(visible: boolean) {diff --git a/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx b/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsxindex 694a352fada..55423865ee4 100644--- a/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx+++ b/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx@@ -55,17 +55,23 @@ describe('useBackgroundSync profile-scoped session refresh', () => {it('coalesces change ticks while the live status request is pending', async () => {$changeEventsAvailable.set(true)let release!: (value: { sessions: [] }) => void- const pending = new Promise<{ sessions: [] }>(resolve => { release = resolve })+ const pending = new Promise<{ sessions: [] }>(resolve => {+ release = resolve+ })const request = vi.fn(() => pending)render('default', 'local', async () => undefined, request)await act(async () => undefined)for (let tick = 1; tick <= 8; tick += 1) {- await act(async () => { $sessionsChangeTick.set(tick) })+ await act(async () => {+ $sessionsChangeTick.set(tick)+ })}expect(request).toHaveBeenCalledTimes(1)- await act(async () => { release({ sessions: [] }) })+ await act(async () => {+ release({ sessions: [] })+ })expect(request).toHaveBeenCalledTimes(2)})diff --git a/apps/desktop/src/app/settings/model-settings.test.tsx b/apps/desktop/src/app/settings/model-settings.test.tsxindex c965910168f..bace810813d 100644--- a/apps/desktop/src/app/settings/model-settings.test.tsx+++ b/apps/desktop/src/app/settings/model-settings.test.tsx@@ -421,7 +421,13 @@ describe('ModelSettings', () => {base_url: 'http://byron.local:11434/v1',local_endpoint: true},- { task: 'vision', provider: 'openai', model: 'gpt-4o-mini', base_url: 'https://api.example.com/v1', local_endpoint: false }+ {+ task: 'vision',+ provider: 'openai',+ model: 'gpt-4o-mini',+ base_url: 'https://api.example.com/v1',+ local_endpoint: false+ }]})diff --git a/apps/desktop/src/app/settings/plugin-install-modal.tsx b/apps/desktop/src/app/settings/plugin-install-modal.tsxindex 7c1f3cf8b89..83fb8ee0802 100644--- a/apps/desktop/src/app/settings/plugin-install-modal.tsx+++ b/apps/desktop/src/app/settings/plugin-install-modal.tsx@@ -343,9 +343,7 @@ export function PluginInstallModal() {<div className="font-medium text-foreground">{request.catalogName ? m.reviewedHeading : m.securityHeading}</div>- <p className="text-(--ui-text-secondary)">- {request.catalogName ? m.reviewedIntro : m.securityIntro}- </p>+ <p className="text-(--ui-text-secondary)">{request.catalogName ? m.reviewedIntro : m.securityIntro}</p></div>{sourceLinks && (diff --git a/apps/desktop/src/app/settings/plugins-settings.tsx b/apps/desktop/src/app/settings/plugins-settings.tsxindex af3c882b455..c2912871abb 100644--- a/apps/desktop/src/app/settings/plugins-settings.tsx+++ b/apps/desktop/src/app/settings/plugins-settings.tsx@@ -110,12 +110,10 @@ async function repairAgentHalf(record: PluginRecord, packageName: string) {try {const pluginDir = record.file?.replace(/[\\/]desktop[\\/]plugin\.js$/, '')- const raw = pluginDir- ? await window.hermesDesktop?.readFileText?.(`${pluginDir}/.hermes-catalog.json`)- : null+ const raw = pluginDir ? await window.hermesDesktop?.readFileText?.(`${pluginDir}/.hermes-catalog.json`) : nullif (raw) {- const sidecar = JSON.parse(typeof raw === 'string' ? raw : (raw as { content?: string }).content ?? '') as {+ const sidecar = JSON.parse(typeof raw === 'string' ? raw : ((raw as { content?: string }).content ?? '')) as {catalog_name?: stringrepo?: stringsha?: string@@ -268,9 +266,7 @@ export function PluginsSettings() {return (<PluginRow- agentHalfMissing={- packageName !== null && agentStatus === 'ready' && !agentNames.has(packageName)- }+ agentHalfMissing={packageName !== null && agentStatus === 'ready' && !agentNames.has(packageName)}key={record.id}record={record}/>diff --git a/apps/desktop/src/app/skills/plugins-tab.test.tsx b/apps/desktop/src/app/skills/plugins-tab.test.tsxindex 183987c7d80..dc2eb630093 100644--- a/apps/desktop/src/app/skills/plugins-tab.test.tsx+++ b/apps/desktop/src/app/skills/plugins-tab.test.tsx@@ -161,10 +161,7 @@ describe('PluginsTab', () => {toggle.click()- expect(requestGateway).not.toHaveBeenCalledWith(- 'plugins.manage',- expect.objectContaining({ action: 'toggle' })- )+ expect(requestGateway).not.toHaveBeenCalledWith('plugins.manage', expect.objectContaining({ action: 'toggle' }))})it('appends the subdir fragment for multi-plugin repos', async () => {@@ -183,9 +180,7 @@ describe('PluginsTab', () => {)await waitFor(() => {- expect($pluginInstallRequest.get()?.repo).toBe(- 'https://github.com/example/plugins-monorepo#nested-plugin'- )+ expect($pluginInstallRequest.get()?.repo).toBe('https://github.com/example/plugins-monorepo#nested-plugin')})})})diff --git a/apps/desktop/src/app/skills/plugins-tab.tsx b/apps/desktop/src/app/skills/plugins-tab.tsxindex 600b73aeace..0af5e08d3dc 100644--- a/apps/desktop/src/app/skills/plugins-tab.tsx+++ b/apps/desktop/src/app/skills/plugins-tab.tsx@@ -91,14 +91,18 @@ function PluginRow({{row.catalog_name && (<Tip label={t.skills.plugins.catalogProvenance(row.installed_sha?.slice(0, 8) ?? '')}><span className="rounded border border-(--ui-stroke-tertiary) px-1 text-[0.65rem] text-(--ui-text-tertiary)">- {row.catalog_tier === 'official'- ? t.skills.plugins.tierOfficial- : t.skills.plugins.tierCommunity}+ {row.catalog_tier === 'official' ? t.skills.plugins.tierOfficial : t.skills.plugins.tierCommunity}</span></Tip>)}{row.update_available && onUpdate && (- <Button className="h-5 px-1.5 text-[0.65rem]" disabled={busy} onClick={onUpdate} size="xs" variant="outline">+ <Button+ className="h-5 px-1.5 text-[0.65rem]"+ disabled={busy}+ onClick={onUpdate}+ size="xs"+ variant="outline"+ >{t.skills.plugins.updateToPin(row.catalog_sha?.slice(0, 8) ?? '')}</Button>)}@@ -176,9 +180,7 @@ export const PluginsTab = memo(function PluginsTab({ profile }: { profile: Profi// Already installed at (or past) this pin in the scoped profile →// tell the user instead of re-running the install ceremony. Rows with// update_available keep their explicit Update chip in the list above.- const existing = $agentPlugins- .get()- .find(row => row.catalog_name === data.name || row.name === data.name)+ const existing = $agentPlugins.get().find(row => row.catalog_name === data.name || row.name === data.name)if (existing && !existing.update_available) {notify({ kind: 'success', message: t.skills.plugins.alreadyInstalled(String(data.name)) })@@ -251,9 +253,7 @@ export const PluginsTab = memo(function PluginsTab({ profile }: { profile: Profi)}</div>- <section- className={cn('relative flex min-h-9 flex-col overflow-hidden border-t border-(--ui-stroke-secondary)')}- >+ <section className={cn('relative flex min-h-9 flex-col overflow-hidden border-t border-(--ui-stroke-secondary)')}><div className="flex shrink-0 items-center justify-between px-3 py-1.5"><span className="text-[0.7rem] font-medium text-(--ui-text-tertiary)">{p.catalogTitle}</span><Button onClick={() => setPaneHeightOverride(CATALOG_PANE_ID, open ? 0 : undefined)} size="xs" variant="text">diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex 9c70476e620..19e58b3ca8b 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -446,8 +446,7 @@ export const zh: Translations = {'这是捆绑插件的桌面部分,但其 agent 部分未安装在当前连接的后端/配置上。请在 能力 → 插件 中安装。',agent: {title: 'Agent 插件',- movedToCapabilities:- 'Agent 插件按配置在「能力」页管理 — 已安装列表、开关和插件目录都在那里。',+ movedToCapabilities: 'Agent 插件按配置在「能力」页管理 — 已安装列表、开关和插件目录都在那里。',openCapabilities: '打开 能力 → 插件'},installModal: {diff --git a/apps/desktop/src/store/agent-plugins.ts b/apps/desktop/src/store/agent-plugins.tsindex cf47fad8b67..05a40c36ba2 100644--- a/apps/desktop/src/store/agent-plugins.ts+++ b/apps/desktop/src/store/agent-plugins.ts@@ -205,13 +205,19 @@ export async function installAgentPlugin(warnings?: string[]missing_env?: string[]error?: string- }>('plugins.manage', withProfile({- action: 'install',- identifier: opts.identifier,- force: Boolean(opts.force),- enable: opts.enable ?? true,- ...(opts.catalogName ? { catalog_name: opts.catalogName } : {})- }, opts.profile))+ }>(+ 'plugins.manage',+ withProfile(+ {+ action: 'install',+ identifier: opts.identifier,+ force: Boolean(opts.force),+ enable: opts.enable ?? true,+ ...(opts.catalogName ? { catalog_name: opts.catalogName } : {})+ },+ opts.profile+ )+ )if (!result?.ok) {return { ok: false, error: result?.error || 'Install failed' }