UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 577 B
import{it as e}from"./disk-budget.worker-paths-DAFiPrD7.mjs";import{In as t}from"./disk-budget.worker-sqlite-worker-operation-settlement-9_4LJ7KU.mjs";import{t as n}from"./disk-budget.worker-worker-task-pool-CyvplXuz.mjs";async function runFileLogIOInWorker(r,i){let a=e(Symbol.for(`openclaw.fileLogWorker`),()=>({}),async e=>{await i(),await e.pool?.close(),e.pool=void 0});return await(a.pool??=new n({workerUrl:t(`fileLog`),workerClass:`writer`})).run(r,{inputBytes:Buffer.byteLength(r.file)+(r.type===`append`?Buffer.byteLength(r.payload):0)})}export{runFileLogIOInWorker};