UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 511 B
import{t as e,xt as t}from"./openclaw-state-read-sqlite-readonly-worker-D6FdUovN.mjs";import{t as n}from"./openclaw-state-read-sqlite-snapshot-staging-owner-DKlm1W_1.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};