mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
de8c904577
* refactor(agents): privatize subagent owner surfaces * chore(deadcode): shrink export baseline
25 lines
839 B
TypeScript
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),
|
|
};
|