Files
openclaw/src/agents/subagent-control.test-support.ts
T
Peter Steinberger de8c904577 refactor(agents): privatize subagent owner surfaces (#108248)
* refactor(agents): privatize subagent owner surfaces

* chore(deadcode): shrink export baseline
2026-07-15 03:30:21 -07:00

25 lines
839 B
TypeScript

export * from "./subagent-control.js";
type ControlRuntime = typeof import("./subagent-control.runtime.js");
type ControlDeps = {
callGateway: typeof import("../gateway/call.js").callGateway;
patchSessionEntry: typeof import("../config/sessions/session-accessor.js").patchSessionEntry;
abortEmbeddedAgentRun: ControlRuntime["abortEmbeddedAgentRun"];
isEmbeddedAgentRunActive: ControlRuntime["isEmbeddedAgentRunActive"];
clearSessionQueues: ControlRuntime["clearSessionQueues"];
};
type Testing = {
setDepsForTest(overrides?: Partial<ControlDeps>): void;
};
function getTesting(): Testing {
return (globalThis as Record<PropertyKey, unknown>)[
Symbol.for("openclaw.subagentControlTestApi")
] as Testing;
}
export const testing: Testing = {
setDepsForTest: (overrides) => getTesting().setDepsForTest(overrides),
};