mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 20:35:39 -06:00
14 lines
550 B
TypeScript
14 lines
550 B
TypeScript
// Mattermost plugin module implements runtime behavior.
|
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
import type { PluginRuntime } from "openclaw/plugin-sdk/runtime-store";
|
|
|
|
const {
|
|
setRuntime: setMattermostRuntime,
|
|
getRuntime: getMattermostRuntime,
|
|
tryGetRuntime: getOptionalMattermostRuntime,
|
|
} = createPluginRuntimeStore<PluginRuntime>({
|
|
pluginId: "mattermost",
|
|
errorMessage: "Mattermost runtime not initialized",
|
|
});
|
|
export { getMattermostRuntime, getOptionalMattermostRuntime, setMattermostRuntime };
|