refactor: migrate extensions to plugin sdk

This commit is contained in:
Peter Steinberger committed 2026-01-18 02:55:07 +00:00
1 parent 5b4651d9ed
commit 1420d113d8
95 files changed
+380 -208

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import type { PluginRuntime } from "clawdbot/plugin-sdk";
let runtime: PluginRuntime | null = null;
export function setMatrixRuntime(next: PluginRuntime) {
runtime = next;
}
export function getMatrixRuntime(): PluginRuntime {
if (!runtime) {
throw new Error("Matrix runtime not initialized");
}
return runtime;
}