mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 23:40:45 +00:00
15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
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;
|
|
}
|