Files
openclaw/extensions/googlechat/src/runtime.ts

15 lines
341 B
TypeScript
Raw Normal View History

2026-01-30 03:15:10 +01:00
import type { PluginRuntime } from "openclaw/plugin-sdk";
2026-01-23 16:45:37 -06:00
let runtime: PluginRuntime | null = null;
export function setGoogleChatRuntime(next: PluginRuntime) {
runtime = next;
}
export function getGoogleChatRuntime(): PluginRuntime {
if (!runtime) {
throw new Error("Google Chat runtime not initialized");
}
return runtime;
}