mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
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.
14 lines
534 B
TypeScript
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)
|
|
)
|
|
}
|
|
}
|