UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 792 B
import{t as captureSqliteReadOnlyWorkerLaunch}from"./sqlite-readonly-worker-BWA2KeVB.mjs";import{v as settleSqliteSnapshotRequest}from"./sqlite-readonly-worker-context-Nl3i9Fck.mjs";import{t as captureSqliteSnapshotStagingOwner}from"./sqlite-snapshot-staging-owner-e4xJPUuT.mjs";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};