Files
openclaw/extensions/matrix/src/runtime.ts
T
Josh Avant 2661de384f Matrix: make onboarding status runtime-safe (#49995)
* Matrix: make onboarding status runtime-safe

* Matrix tests: mock reply dispatch in BodyForAgent coverage

* changelog

Signed-off-by: joshavant <830519+joshavant@users.noreply.github.com>

---------

Signed-off-by: joshavant <830519+joshavant@users.noreply.github.com>
2026-03-18 17:33:42 -05:00

11 lines
448 B
TypeScript

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