2661de384f
* 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>
11 lines
448 B
TypeScript
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 };
|