File size: 535 Bytes
eb3f11e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import "./agent-step.js";
type AgentCommandRunner = typeof import("../../commands/agent.js").agentCommandFromIngress;
type AgentStepTesting = {
setDepsForTest(
overrides?: Partial<{
agentCommandFromIngress: AgentCommandRunner;
}>,
): void;
};
type AgentStepTestApi = {
testing: AgentStepTesting;
};
function getTestApi(): AgentStepTestApi {
return (globalThis as Record<PropertyKey, unknown>)[
Symbol.for("openclaw.agentStepTestApi")
] as AgentStepTestApi;
}
export const testing = getTestApi().testing;
|