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

19 lines
756 B
TypeScript

// Voice Call plugin module implements runtime state behavior.
import { createPluginRuntimeStore, type PluginRuntime } from "openclaw/plugin-sdk/runtime-store";
// Process-local runtime store used by voice-call persistence helpers.
/** Runtime subset needed by voice-call state persistence. */
export type VoiceCallStateRuntime = Pick<PluginRuntime, "state">;
const {
setRuntime: setVoiceCallStateRuntime,
clearRuntime: clearVoiceCallStateRuntime,
tryGetRuntime: getOptionalVoiceCallStateRuntime,
} = createPluginRuntimeStore<VoiceCallStateRuntime>({
pluginId: "voice-call-state",
errorMessage: "Voice Call state runtime not initialized",
});
export { clearVoiceCallStateRuntime, getOptionalVoiceCallStateRuntime, setVoiceCallStateRuntime };