Spaces:
Paused
Paused
Download extensions/imessage/src/runtime.ts from nikhtu10/OpenClawBot: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/extensions/imessage/src/runtime.ts
- Command line
-
hf download hf://spaces/nikhtu10/OpenClawBot/extensions/imessage/src/runtime.ts
-
curl -L -o runtime.ts https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/extensions/imessage/src/runtime.ts
334 Bytes
| import type { PluginRuntime } from "openclaw/plugin-sdk"; | |
| let runtime: PluginRuntime | null = null; | |
| export function setIMessageRuntime(next: PluginRuntime) { | |
| runtime = next; | |
| } | |
| export function getIMessageRuntime(): PluginRuntime { | |
| if (!runtime) { | |
| throw new Error("iMessage runtime not initialized"); | |
| } | |
| return runtime; | |
| } | |