Download src/agents/utils/tools-manager.test-support.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/utils/tools-manager.test-support.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/agents/utils/tools-manager.test-support.ts
-
curl -L -o tools-manager.test-support.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/utils/tools-manager.test-support.ts
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; | |