15 lines
328 B
TypeScript
15 lines
328 B
TypeScript
|
|
import type { PluginRuntime } from "openclaw/plugin-sdk";
|
||
|
|
|
||
|
|
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;
|
||
|
|
}
|