Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#88760)

hermes-seaeye[bot]77d6c78cf52e
diff --git a/apps/desktop/electron/connection-registry.test.ts b/apps/desktop/electron/connection-registry.test.ts
index e5941573122..2c4ed212bc9 100644
--- a/apps/desktop/electron/connection-registry.test.ts
+++ b/apps/desktop/electron/connection-registry.test.ts
@@ -452,7 +452,11 @@ test('duplicate ssh targets are rejected on user@host:port + remote profile', ()
)
assert.throws(
- () => normalizeConnectionInput({ kind: 'ssh', label: 'Box twin', host: 'alice@box:22', remoteProfile: 'work' }, registry),
+ () =>
+ normalizeConnectionInput(
+ { kind: 'ssh', label: 'Box twin', host: 'alice@box:22', remoteProfile: 'work' },
+ registry
+ ),
/already exists/
)
diff --git a/apps/desktop/src/app/command-palette/index.tsx b/apps/desktop/src/app/command-palette/index.tsx
index 2b65e440b04..46986201370 100644
--- a/apps/desktop/src/app/command-palette/index.tsx
+++ b/apps/desktop/src/app/command-palette/index.tsx
@@ -414,7 +414,18 @@ const NON_CONFIG_SETTINGS: ReadonlyArray<{
{
icon: Globe,
// The Connections registry merged into the unified Gateways page.
- keywords: ['connection', 'connections', 'messaging', 'remote', 'multi', 'instances', 'ssh', 'cloud', 'add gateway', 'registry'],
+ keywords: [
+ 'connection',
+ 'connections',
+ 'messaging',
+ 'remote',
+ 'multi',
+ 'instances',
+ 'ssh',
+ 'cloud',
+ 'add gateway',
+ 'registry'
+ ],
labelKey: 'gateway',
tab: 'gateway'
},
diff --git a/apps/desktop/src/app/settings/connections-registry.test.tsx b/apps/desktop/src/app/settings/connections-registry.test.tsx
index c2823aed7a6..549e4769a90 100644
--- a/apps/desktop/src/app/settings/connections-registry.test.tsx
+++ b/apps/desktop/src/app/settings/connections-registry.test.tsx
@@ -3,7 +3,12 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import type { DesktopConnectionsRegistry } from '@/global'
-import { ConnectionsRegistrySection, findDuplicateConnection, normalizeGatewayUrl, sshCompositeKey } from './connections-registry'
+import {
+ ConnectionsRegistrySection,
+ findDuplicateConnection,
+ normalizeGatewayUrl,
+ sshCompositeKey
+} from './connections-registry'
const list = vi.fn()
const save = vi.fn()
diff --git a/apps/desktop/src/app/settings/connections-registry.tsx b/apps/desktop/src/app/settings/connections-registry.tsx
index aa6d62d477d..638f5e6ffff 100644
--- a/apps/desktop/src/app/settings/connections-registry.tsx
+++ b/apps/desktop/src/app/settings/connections-registry.tsx
@@ -135,7 +135,8 @@ export function findDuplicateConnection(
return (
connections.find(
- c => (c.kind === 'remote' || c.kind === 'cloud') && c.id !== editor.id && normalizeGatewayUrl(c.url || '') === key
+ c =>
+ (c.kind === 'remote' || c.kind === 'cloud') && c.id !== editor.id && normalizeGatewayUrl(c.url || '') === key
) ?? null
)
}
diff --git a/apps/desktop/src/app/skills/embedded-hub-picker.tsx b/apps/desktop/src/app/skills/embedded-hub-picker.tsx
index 92c9a237fdf..f846f5c945f 100644
--- a/apps/desktop/src/app/skills/embedded-hub-picker.tsx
+++ b/apps/desktop/src/app/skills/embedded-hub-picker.tsx
@@ -196,11 +196,7 @@ export const EmbeddedHubPicker = memo(function EmbeddedHubPicker({
{updating && <Loader2 className="size-3 animate-spin" />}
{updating ? h.updating : h.updateAll}
</Button>
- <Button
- onClick={() => setPaneHeightOverride(HUB_PANE_ID, open ? 0 : undefined)}
- size="xs"
- variant="text"
- >
+ <Button onClick={() => setPaneHeightOverride(HUB_PANE_ID, open ? 0 : undefined)} size="xs" variant="text">
{open ? h.pickerHide : h.pickerBrowse}
</Button>
</div>
diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts
index 7a4d506e7f5..c4e95d1c3ff 100644
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@ -719,7 +719,8 @@ export const zhHant = defineLocale({
defaultConnection: '預設連線適用於所有沒有自訂覆寫的設定檔。',
profileConnection: profile => `僅當「${profile}」為作用中設定檔時使用此連線。選擇「使用預設閘道」可移除其覆寫。`,
profileOverridesTitle: '依設定檔覆寫',
- profileOverridesDesc: '每個設定檔都可以指向自己的閘道。下方的連線控制項會編輯所選目標;此頁其餘設定為整個應用程式範圍。',
+ profileOverridesDesc:
+ '每個設定檔都可以指向自己的閘道。下方的連線控制項會編輯所選目標;此頁其餘設定為整個應用程式範圍。',
overrideEdit: '編輯',
overrideEditing: '編輯中',
overrideSelectHint: '選取即可檢視或變更此設定檔使用的閘道。',
diff --git a/apps/desktop/src/sdk/index.ts b/apps/desktop/src/sdk/index.ts
index c88e696c3a1..0d037b809ed 100644
--- a/apps/desktop/src/sdk/index.ts
+++ b/apps/desktop/src/sdk/index.ts
@@ -24,12 +24,7 @@ import type { ReactNode } from 'react'
import { PRIMARY_SESSION_VIEW } from '@/app/chat/session-view'
import { openSession, type OpenSessionIntent } from '@/app/open-session'
import type { ClientSessionState } from '@/app/types'
-import {
- $narrowViewport,
- registerPaneCloser,
- removeTreePane,
- revealTreePane
-} from '@/components/pane-shell/tree/store'
+import { $narrowViewport, registerPaneCloser, removeTreePane, revealTreePane } from '@/components/pane-shell/tree/store'
import { onGatewayEvent } from '@/contrib/events'
import { registry } from '@/contrib/registry'
import { deleteProfile, getLogs, getStatus, type HermesGateway } from '@/hermes'