UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 559 B
import{c as e}from"./sqlite-readonly-pool-CKutEb9N.mjs";import{y as t}from"./sqlite-readonly-sqlite-snapshot-capacity-error-Dx-DuFsZ.mjs";import{t as n}from"./sqlite-readonly-sqlite-snapshot-staging-owner-D6Poltsh.mjs";import r from"node:path";async function allocateWorkerOwnedSqliteSnapshotDirectory(i,a,o){let s=r.resolve(i),{env:c,cwd:l}=e(),u=n(),d=u.start({type:`allocate`,root:s,allowLegacyWorker:a,launch:{env:c,cwd:l,transport:{kind:`native`}}},o),f=await t(d);return u.retainDirectory(f.directory)}export{allocateWorkerOwnedSqliteSnapshotDirectory};