- Replace all CLAWDBOT_* env vars with MOLTBOT_* - Replace all .clawdbot paths with .moltbot - Update daemon labels to bot.molt.* - Update plugin SDK imports to moltbot/plugin-sdk - Remove clawdbot bin alias from package.json - Preserve legacy compatibility in compat/legacy-names.ts
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
import type { PluginRuntime } from "moltbot/plugin-sdk";
|
|
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
export function setMattermostRuntime(next: PluginRuntime) {
|
|
runtime = next;
|
|
}
|
|
|
|
export function getMattermostRuntime(): PluginRuntime {
|
|
if (!runtime) {
|
|
throw new Error("Mattermost runtime not initialized");
|
|
}
|
|
return runtime;
|
|
}
|