mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 21:40:44 +00:00
* matrix: persist approval reaction targets best-effort * docs: refine matrix approval changelog
14 lines
445 B
TypeScript
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 };
|