File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,8 +3,14 @@ import type { EmbeddedPiQueueMessageOutcome } from "./pi-embedded-runner/runs.js
33import { createSubagentAnnounceDeliveryRuntimeMock } from "./subagent-announce.test-support.js" ;
44
55type AgentCallRequest = { method ?: string ; params ?: Record < string , unknown > } ;
6+ type AgentCallResponse = { runId ?: string ; status : string ; error ?: string } ;
67
7- const agentSpy = vi . fn ( async ( _req : AgentCallRequest ) => ( { runId : "run-main" , status : "ok" } ) ) ;
8+ const agentSpy = vi . fn (
9+ async ( _req : AgentCallRequest ) : Promise < AgentCallResponse > => ( {
10+ runId : "run-main" ,
11+ status : "ok" ,
12+ } ) ,
13+ ) ;
814const sessionsDeleteSpy = vi . fn ( ( _req : AgentCallRequest ) => undefined ) ;
915const callGatewayMock = vi . fn ( async ( _request : unknown ) => ( { } ) ) ;
1016const loadSessionStoreMock = vi . fn ( ( _storePath : string ) => ( { } ) ) ;
You can’t perform that action at this time.
0 commit comments