Files
openclaw/extensions/voice-call/src/store-path.ts
Peter Steinberger d58c216500 fix(voice-call): honor OPENCLAW_STATE_DIR (#109284)
* fix(voice-call): honor state directory override

* chore(voice-call): leave release notes to release flow

* docs(voice-call): document state-dir store root
2026-07-16 12:40:53 -07:00

9 lines
402 B
TypeScript

// Voice Call plugin module resolves its default persistence root.
import path from "node:path";
import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
/** Resolve the plugin-owned store below OpenClaw's canonical state directory. */
export function resolveDefaultVoiceCallStoreDir(env: NodeJS.ProcessEnv = process.env): string {
return path.join(resolveStateDir(env), "voice-calls");
}