UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 792 B
import{t as captureSqliteReadOnlyWorkerLaunch}from"./sqlite-readonly-worker-6BW7upAM.js";import{j as settleSqliteSnapshotRequest}from"./openclaw-state-db-async-lifecycle-qylDsiRN.js";import{t as captureSqliteSnapshotStagingOwner}from"./sqlite-snapshot-staging-owner-JEgCjxEj.js";import path from"node:path"; //!src/infra/sqlite-snapshot-staging-allocation.ts async function allocateWorkerOwnedSqliteSnapshotDirectory(e,t,n){const r=path.resolve(e);const{env:i,cwd:a}=captureSqliteReadOnlyWorkerLaunch();const o=captureSqliteSnapshotStagingOwner();const s=o.start({type:`allocate`,root:r,allowLegacyWorker:t,launch:{env:i,cwd:a,transport:{kind:`native`}}},n);const c=await settleSqliteSnapshotRequest(s);return o.retainDirectory(c.directory)}export{allocateWorkerOwnedSqliteSnapshotDirectory};