Skip to content

The agent that grows with you

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

hermes-seaeye[bot]26fe0005aa6a
diff --git a/apps/desktop/electron/terminal-pty-dispose.test.ts b/apps/desktop/electron/terminal-pty-dispose.test.ts
index f707508e042..67c89abf03a 100644
--- a/apps/desktop/electron/terminal-pty-dispose.test.ts
+++ b/apps/desktop/electron/terminal-pty-dispose.test.ts
@@ -116,11 +116,7 @@ test('an exited shell releases its PTY handle without waiting for tab dispose',
assert.deepEqual(exitSend?.[1], { code: 0, signal: null })
// …and once the exit is flushed the session is fully gone.
- const write = handles.map.get('hermes:terminal:write') as (
- event: unknown,
- id: string,
- data: string
- ) => boolean
+ const write = handles.map.get('hermes:terminal:write') as (event: unknown, id: string, data: string) => boolean
assert.equal(write({}, session.id, 'echo hi'), false)
})
@@ -133,11 +129,7 @@ test('explicit dispose kills the PTY and drops the session', async () => {
assert.equal(dispose({}, session.id), true)
assert.equal(fake.pty.kill.mock.calls.length >= 1, true)
- const write = handles.map.get('hermes:terminal:write') as (
- event: unknown,
- id: string,
- data: string
- ) => boolean
+ const write = handles.map.get('hermes:terminal:write') as (event: unknown, id: string, data: string) => boolean
assert.equal(write({}, session.id, 'echo hi'), false)
assert.equal(dispose({}, session.id), false)
diff --git a/apps/desktop/src/plugins/hermes-bots/data.roster.test.tsx b/apps/desktop/src/plugins/hermes-bots/data.roster.test.tsx
index 1c9ad859981..40d4bbe262b 100644
--- a/apps/desktop/src/plugins/hermes-bots/data.roster.test.tsx
+++ b/apps/desktop/src/plugins/hermes-bots/data.roster.test.tsx
@@ -657,7 +657,7 @@ describe('the roster only caches rows from the connection it is keyed under', ()
hostMock.profileRoutes = undefined
})
- it("asks the keyed connection by route, not an ambient socket that sits on another machine", async () => {
+ it('asks the keyed connection by route, not an ambient socket that sits on another machine', async () => {
hostMock.state.connectionId.get.mockReturnValue('vps')
hostMock.agents.mockRejectedValue(new Error('no union roster on this build'))
hostMock.profileRoutes = vi.fn(async () => routes)
diff --git a/apps/desktop/src/plugins/hermes-bots/relay.ts b/apps/desktop/src/plugins/hermes-bots/relay.ts
index 5c9a0b902fe..369b44e163d 100644
--- a/apps/desktop/src/plugins/hermes-bots/relay.ts
+++ b/apps/desktop/src/plugins/hermes-bots/relay.ts
@@ -305,9 +305,13 @@ async function relayAgentsOn(
labels: Map<string, string>
): Promise<RelayAgentRow[] | null> {
try {
- const res = await host.requestProfile<{ install_id?: string; profiles?: RosterRow[] }>(connection.route, 'profiles.list', {
- include_sessions: false
- })
+ const res = await host.requestProfile<{ install_id?: string; profiles?: RosterRow[] }>(
+ connection.route,
+ 'profiles.list',
+ {
+ include_sessions: false
+ }
+ )
const profiles = Array.isArray(res?.profiles) ? res.profiles : []
const label = labels.get(connection.id) || connection.id
diff --git a/apps/desktop/src/store/gateway.ts b/apps/desktop/src/store/gateway.ts
index ba1c6e2b637..876a109bab9 100644
--- a/apps/desktop/src/store/gateway.ts
+++ b/apps/desktop/src/store/gateway.ts
@@ -451,11 +451,7 @@ export function setPrimaryGatewayConnection(connection: Pick<HermesConnection, '
}
function traceAgentRoute(scope: string, via: string): void {
- traceIdentityChange(
- 'gateway-route',
- scope,
- `via=${via} primary=${g.primaryConnectionId ?? '-'}/${g.primaryProfile}`
- )
+ traceIdentityChange('gateway-route', scope, `via=${via} primary=${g.primaryConnectionId ?? '-'}/${g.primaryProfile}`)
}
function isPrimaryRegistryRoute(connectionId: null | string, profile: string): boolean {