mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 10:01:37 +00:00
19 lines
756 B
TypeScript
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 };
|