openclaw / src /agents /utils /tools-manager.test-support.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
eb3f11e verified
Raw History Blame Contribute Delete
382 Bytes
import "./tools-manager.js";
type ToolsManagerTestApi = {
testing: {
downloadFile(url: string, dest: string, maxBytes: number): Promise<void>;
};
};
function getTestApi(): ToolsManagerTestApi {
return (globalThis as Record<PropertyKey, unknown>)[
Symbol.for("openclaw.toolsManagerTestApi")
] as ToolsManagerTestApi;
}
export const testing = getTestApi().testing;