Skip to content

The agent that grows with you

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

hermes-seaeye[bot]ff3c65f757ef
diff --git a/apps/desktop/src/app/skills/index.test.tsx b/apps/desktop/src/app/skills/index.test.tsx
index 4c407a4348a..5376da7b968 100644
--- a/apps/desktop/src/app/skills/index.test.tsx
+++ b/apps/desktop/src/app/skills/index.test.tsx
@@ -395,13 +395,27 @@ describe('SkillsView toolset management', () => {
]
})
}
+
const getAgentRoster = vi.fn().mockResolvedValue({
agents: [
- { connectionId: 'local', connectionKind: 'local', connectionLabel: 'This device', profile: 'default', handle: 'default' },
- { connectionId: 'homelab', connectionKind: 'remote', connectionLabel: 'Homelab', profile: 'inbox-bot', handle: 'inbox-bot-homelab' }
+ {
+ connectionId: 'local',
+ connectionKind: 'local',
+ connectionLabel: 'This device',
+ profile: 'default',
+ handle: 'default'
+ },
+ {
+ connectionId: 'homelab',
+ connectionKind: 'remote',
+ connectionLabel: 'Homelab',
+ profile: 'inbox-bot',
+ handle: 'inbox-bot-homelab'
+ }
],
sources: []
})
+
;(window as { hermesDesktop?: unknown }).hermesDesktop = { connections, getAgentRoster }
try {
diff --git a/apps/desktop/src/app/skills/index.tsx b/apps/desktop/src/app/skills/index.tsx
index aa4df10a3a3..464d84e928f 100644
--- a/apps/desktop/src/app/skills/index.tsx
+++ b/apps/desktop/src/app/skills/index.tsx
@@ -257,13 +257,12 @@ export function SkillsView({
// The registry connection an explicit override pins — null for the ambient
// active-profile path and for fixed-profile pins without a connection.
const scopeConnectionId =
- scopeProfile && typeof scopeProfile === 'object' ? ((scopeProfile.connectionId ?? '').trim() || 'local') : null
+ scopeProfile && typeof scopeProfile === 'object' ? (scopeProfile.connectionId ?? '').trim() || 'local' : null
// Scoped to a DIFFERENT backend than the window's active gateway? The MCP
// tab's live-reload RPC rides the active gateway socket, which would reload
// the wrong machine — withhold it for cross-backend scopes.
- const crossBackendScope =
- scopeConnectionId !== null && scopeConnectionId !== (activeGatewayConnectionId() ?? 'local')
+ const crossBackendScope = scopeConnectionId !== null && scopeConnectionId !== (activeGatewayConnectionId() ?? 'local')
const { data: profilesData } = useQuery({
queryKey: ['capabilities-profiles'],
@@ -687,8 +686,7 @@ export function SkillsView({
// Roster picks (`connectionId::profile`) stay objects — a `local::` pick
// must PIN the local pool even while a remote gateway is active. Legacy
// bare-name picks stay strings so cache keys and routing are unchanged.
- const next: ProfileScope =
- sep >= 0 ? { connectionId: value.slice(0, sep), profile: value.slice(sep + 2) } : value
+ const next: ProfileScope = sep >= 0 ? { connectionId: value.slice(0, sep), profile: value.slice(sep + 2) } : value
if (profileScopeKey(next) === scopeKey) {
return
diff --git a/apps/desktop/src/store/hub-actions.ts b/apps/desktop/src/store/hub-actions.ts
index b3a9d78153f..1f0bf30bd36 100644
--- a/apps/desktop/src/store/hub-actions.ts
+++ b/apps/desktop/src/store/hub-actions.ts
@@ -1,6 +1,12 @@
import { atom, map } from 'nanostores'
-import { getActionStatus, installSkillFromHub, type ProfileScope, uninstallSkillFromHub, updateSkillsFromHub } from '@/hermes'
+import {
+ getActionStatus,
+ installSkillFromHub,
+ type ProfileScope,
+ uninstallSkillFromHub,
+ updateSkillsFromHub
+} from '@/hermes'
import { queryClient } from '@/lib/query-client'
import { invalidateSlashCompletions } from '@/lib/slash-completion-cache'
import { upsertDesktopActionTask } from '@/store/activity'