UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 574 B
import{J as e}from"./read-only.worker-subsystem-UGB_-INE.mjs";import{gt as t}from"./read-only.worker-sqlite-worker-operation-settlement-OlWrPoba.mjs";import{t as n}from"./read-only.worker-worker-task-pool-OfYLVPLI.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};