2026-02-05 18:26:05 +08:00
|
|
|
import type { PluginRuntime } from "openclaw/plugin-sdk";
|
|
|
|
|
|
2026-02-05 18:49:04 +08:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
2026-02-05 18:26:05 +08:00
|
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
|
|
|
|
|
|
export function setFeishuRuntime(next: PluginRuntime) {
|
|
|
|
|
runtime = next;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getFeishuRuntime(): PluginRuntime {
|
|
|
|
|
if (!runtime) {
|
|
|
|
|
throw new Error("Feishu runtime not initialized");
|
|
|
|
|
}
|
|
|
|
|
return runtime;
|
|
|
|
|
}
|