Download src/auto-reply/usage-bar/template.test-support.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/auto-reply/usage-bar/template.test-support.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/auto-reply/usage-bar/template.test-support.ts
-
curl -L -o template.test-support.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/auto-reply/usage-bar/template.test-support.ts
515 Bytes
| import "./template.js"; | |
| type UsageBarTemplateTestApi = { | |
| clearUsageBarTemplateCacheForTest(): void; | |
| }; | |
| function getTestApi(): UsageBarTemplateTestApi { | |
| const api = (globalThis as Record<PropertyKey, unknown>)[ | |
| Symbol.for("openclaw.usageBarTemplateTestApi") | |
| ]; | |
| if (!api) { | |
| throw new Error("usage bar template test API is unavailable"); | |
| } | |
| return api as UsageBarTemplateTestApi; | |
| } | |
| export function clearUsageBarTemplateCacheForTest(): void { | |
| getTestApi().clearUsageBarTemplateCacheForTest(); | |
| } | |