2026-01-30 03:15:10 +01:00
|
|
|
import type { PluginRuntime } from "openclaw/plugin-sdk";
|
2026-01-25 07:22:36 -05:00
|
|
|
|
|
|
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
|
|
|
|
|
|
export function setLineRuntime(r: PluginRuntime): void {
|
|
|
|
|
runtime = r;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getLineRuntime(): PluginRuntime {
|
|
|
|
|
if (!runtime) {
|
|
|
|
|
throw new Error("LINE runtime not initialized - plugin not registered");
|
|
|
|
|
}
|
|
|
|
|
return runtime;
|
|
|
|
|
}
|