Files
openclaw/extensions/imessage/src/runtime.ts
2026-06-04 21:40:44 -04:00

15 lines
583 B
TypeScript

// Imessage plugin module implements runtime behavior.
import type { PluginRuntime } from "openclaw/plugin-sdk/core";
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
const {
clearRuntime: clearIMessageRuntime,
getRuntime: getIMessageRuntime,
setRuntime: setIMessageRuntime,
tryGetRuntime: getOptionalIMessageRuntime,
} = createPluginRuntimeStore<PluginRuntime>({
pluginId: "imessage",
errorMessage: "iMessage runtime not initialized",
});
export { clearIMessageRuntime, getIMessageRuntime, getOptionalIMessageRuntime, setIMessageRuntime };