2026-03-04 02:33:00 -05:00
|
|
|
import type { PluginRuntime } from "openclaw/plugin-sdk/googlechat";
|
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;
|
|
|
|
|
}
|