Download src/agents/sessions/tools/bash.test-support.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/sessions/tools/bash.test-support.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/agents/sessions/tools/bash.test-support.ts
-
curl -L -o bash.test-support.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/sessions/tools/bash.test-support.ts
435 Bytes
| import "./bash.js"; | |
| type BashToolTestApi = { | |
| resolveBashTimeoutMs(timeoutSeconds: unknown): number | undefined; | |
| }; | |
| function getTestApi(): BashToolTestApi { | |
| return (globalThis as Record<PropertyKey, unknown>)[ | |
| Symbol.for("openclaw.bashToolTestApi") | |
| ] as BashToolTestApi; | |
| } | |
| export const resolveBashTimeoutMs: BashToolTestApi["resolveBashTimeoutMs"] = (timeoutSeconds) => | |
| getTestApi().resolveBashTimeoutMs(timeoutSeconds); | |