Files
archived-orca/src/cli/profile-state-location.ts
T
OrcaWin 82412dab8b Persist profile state in SQLite with background writes (#22612)
Migrate profile state to SQLite and move writes and backups into a background worker. Acknowledge terminal, SSH and automation changes only after durable saves. Preserve JSON import, recovery, rollback and compatibility exports.

Validate migration, worker failures, maintenance, cross-profile moves and terminal lifetime races with unit, integration and end-to-end coverage.
2026-09-25 22:47:33 -07:00

14 lines
534 B
TypeScript

import { getActiveProfileStateLocation as resolveActiveProfileStateLocation } from '../main/persistence/profile-state/profile-state-active-location'
import { RuntimeClientError, getDefaultUserDataPath } from './runtime-client'
export function getActiveProfileStateLocation(userDataPath = getDefaultUserDataPath()) {
try {
return resolveActiveProfileStateLocation(userDataPath)
} catch (error) {
throw new RuntimeClientError(
'runtime_error',
error instanceof Error ? error.message : String(error)
)
}
}