mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
15 lines
498 B
TypeScript
15 lines
498 B
TypeScript
// Matrix plugin module implements runtime behavior.
|
|
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 };
|