The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
style: format the lane's TypeScript lines
yoniebans22986e275f40
diff --git a/apps/desktop/src/api/canonical-producer-contract.test.ts b/apps/desktop/src/api/canonical-producer-contract.test.tsindex bc508106782..a9def001914 100644--- a/apps/desktop/src/api/canonical-producer-contract.test.ts+++ b/apps/desktop/src/api/canonical-producer-contract.test.ts@@ -192,7 +192,7 @@ const SITES: Array<[string, string, Record<string, unknown>, string[] | RegExp]>['session.mutate']],[- 'connector-tool.tsx in-chat connect (the card\'s Try again)',+ "connector-tool.tsx in-chat connect (the card's Try again)",'connectors.connect',{ connectors: ['gh'], owner: { session_id: 's', type: 'session' }, reconnect: true },// RT-2: the owner serves the card's calls (gateway/session_connections.py), so they travel as themselves.diff --git a/apps/desktop/src/api/canonical-protocol.ts b/apps/desktop/src/api/canonical-protocol.tsindex a6533ab32c6..f779d195d55 100644--- a/apps/desktop/src/api/canonical-protocol.ts+++ b/apps/desktop/src/api/canonical-protocol.ts@@ -149,7 +149,12 @@ const SIDECAR_SESSION_VERBS = new Set(['handoff.request', 'handoff.state', 'hand// The manage_connections card's calls the owner serves for a session-owned operation// (gateway/session_connections.py); any other session-owned connector call stays refused.-const OWNER_CONNECTION_VERBS = new Set(['connection.respond', 'connectors.operation.status', 'connectors.operation.wake', 'connectors.connect'])+const OWNER_CONNECTION_VERBS = new Set([+ 'connection.respond',+ 'connectors.operation.status',+ 'connectors.operation.wake',+ 'connectors.connect'+])// `config.set` keys the owner serves (tui_gateway/contracts/canonical_projections.py::CanonicalConfigSetParams;// gateway/session_tui_config.py), with the keys that take a `scope` (`reasoning --global`, the@@ -171,7 +176,9 @@ function canonicalProducerFrame(method: string, params: Record<string, unknown>)}const sessionConnector =- method.startsWith('connect') && (params.owner as { type?: unknown } | undefined)?.type === 'session' && !OWNER_CONNECTION_VERBS.has(method)+ method.startsWith('connect') &&+ (params.owner as { type?: unknown } | undefined)?.type === 'session' &&+ !OWNER_CONNECTION_VERBS.has(method)if (SIDECAR_SESSION_VERBS.has(method) || sessionConnector) {throw new Error(`${method} is not available on the shared gateway yet`)diff --git a/ui-tui/src/__tests__/canonicalSidecarSessionVerbs.test.tsx b/ui-tui/src/__tests__/canonicalSidecarSessionVerbs.test.tsxindex 2580c96ee36..c79166f25e5 100644--- a/ui-tui/src/__tests__/canonicalSidecarSessionVerbs.test.tsx+++ b/ui-tui/src/__tests__/canonicalSidecarSessionVerbs.test.tsx@@ -94,26 +94,32 @@ const SITES: [string, () => Promise<void>][] = [}],[- 'agentControls::sendAgentSteer is the owner\'s subagent.steer',+ "agentControls::sendAgentSteer is the owner's subagent.steer",async () => {const { gw, request } = owner(method => (method === 'subagent.steer' ? { status: 'queued' } : {}))const result = await sendAgentSteer(gw, 'owner', 'c1', 'check tests')expect(result.accepted).toBe(true)- expect(request).toHaveBeenCalledWith('subagent.steer', { session_id: 'owner', subagent_id: 'c1', text: 'check tests' })+ expect(request).toHaveBeenCalledWith('subagent.steer', {+ session_id: 'owner',+ subagent_id: 'c1',+ text: 'check tests'+ })expect(sidecarCalls(request)).toEqual([])}],[- 'agentsOverlay::killOne (x) is the owner\'s subagent.interrupt',+ "agentsOverlay::killOne (x) is the owner's subagent.interrupt",async () => {const { gw, request } = owner(method => (method === 'subagent.interrupt' ? { found: true } : {}))await overlayKey(gw, 'x', 'c1')- await vi.waitFor(() => expect(request).toHaveBeenCalledWith('subagent.interrupt', { session_id: 'owner', subagent_id: 'c1' }))+ await vi.waitFor(() =>+ expect(request).toHaveBeenCalledWith('subagent.interrupt', { session_id: 'owner', subagent_id: 'c1' })+ )expect(sidecarCalls(request)).toEqual([])}],[- 'agentsOverlay::killSubtree (X) is the owner\'s subagent.interrupt',+ "agentsOverlay::killSubtree (X) is the owner's subagent.interrupt",async () => {const { gw, request } = owner(method => (method === 'subagent.interrupt' ? { found: true } : {}))await overlayKey(gw, 'X', 'killing')