openclaw / src /agents /tools /agent-step.test-support.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
eb3f11e verified
Raw History Blame Contribute Delete
535 Bytes
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;