Download extensions/matrix/src/runtime.ts from quinnz/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/spaces/quinnz/openclaw/resolve/main/extensions/matrix/src/runtime.ts
- Command line
-
hf download hf://spaces/quinnz/openclaw/extensions/matrix/src/runtime.ts
-
curl -L -o runtime.ts https://huggingface.co/spaces/quinnz/openclaw/resolve/main/extensions/matrix/src/runtime.ts
328 Bytes
| import type { PluginRuntime } from "openclaw/plugin-sdk"; | |
| let runtime: PluginRuntime | null = null; | |
| export function setMatrixRuntime(next: PluginRuntime) { | |
| runtime = next; | |
| } | |
| export function getMatrixRuntime(): PluginRuntime { | |
| if (!runtime) { | |
| throw new Error("Matrix runtime not initialized"); | |
| } | |
| return runtime; | |
| } | |