2026-03-04 02:33:19 -05:00
|
|
|
import type { PluginRuntime } from "openclaw/plugin-sdk/zalouser";
|
2026-01-18 04:23:25 +00:00
|
|
|
|
|
|
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
|
|
|
|
|
|
export function setZalouserRuntime(next: PluginRuntime): void {
|
|
|
|
|
runtime = next;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getZalouserRuntime(): PluginRuntime {
|
|
|
|
|
if (!runtime) {
|
|
|
|
|
throw new Error("Zalouser runtime not initialized");
|
|
|
|
|
}
|
|
|
|
|
return runtime;
|
|
|
|
|
}
|