openclaw / extensions /tlon /src /runtime.ts
quinnz's picture
change port 18789 to 7860
3509093
Raw
History Blame Contribute Delete
322 Bytes
import type { PluginRuntime } from "openclaw/plugin-sdk";
let runtime: PluginRuntime | null = null;
export function setTlonRuntime(next: PluginRuntime) {
runtime = next;
}
export function getTlonRuntime(): PluginRuntime {
if (!runtime) {
throw new Error("Tlon runtime not initialized");
}
return runtime;
}