Files
openclaw/extensions/matrix/src/runtime.ts
Alex Knight f27ecffc0c matrix: persist approval reaction targets best-effort (#75586)
* matrix: persist approval reaction targets best-effort

* docs: refine matrix approval changelog
2026-05-03 17:17:01 +10:00

14 lines
445 B
TypeScript

import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
import type { PluginRuntime } from "./runtime-api.js";
const {
setRuntime: setMatrixRuntime,
getRuntime: getMatrixRuntime,
tryGetRuntime: getOptionalMatrixRuntime,
} = createPluginRuntimeStore<PluginRuntime>({
pluginId: "matrix",
errorMessage: "Matrix runtime not initialized",
});
export { getMatrixRuntime, getOptionalMatrixRuntime, setMatrixRuntime };