mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-22 21:28:11 +00:00
15 lines
583 B
TypeScript
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 };
|