Skip to content

Commit d6f9645

Browse files
committed
test(agents): type terminal reply boundary deps
1 parent 2d86aa9 commit d6f9645

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/agents/acp-spawn.test.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ import type { RegisterSubagentRunParams } from "./subagent-registry-run-manager.
3333
import type { SubagentRunRecord } from "./subagent-registry.types.js";
3434

3535
type SessionBindingAdapterCapabilities = NonNullable<SessionBindingAdapter["capabilities"]>;
36+
type BoundaryLifecycleControllerParams = Parameters<
37+
typeof createSubagentRegistryLifecycleController
38+
>[0];
3639

3740
function createDefaultSpawnConfig(): OpenClawConfig {
3841
return {
@@ -440,8 +443,8 @@ function createRegisteredRunEntry(registration: RegisterSubagentRunParams): Suba
440443

441444
function createBoundaryLifecycleController(params: {
442445
entry: SubagentRunRecord;
443-
captureSubagentCompletionReply: ReturnType<typeof vi.fn>;
444-
runSubagentAnnounceFlow: ReturnType<typeof vi.fn>;
446+
captureSubagentCompletionReply: BoundaryLifecycleControllerParams["captureSubagentCompletionReply"];
447+
runSubagentAnnounceFlow: BoundaryLifecycleControllerParams["runSubagentAnnounceFlow"];
445448
}) {
446449
return createSubagentRegistryLifecycleController({
447450
runs: new Map([[params.entry.runId, params.entry]]),

0 commit comments

Comments
 (0)