UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 525 B
import{q as e}from"./plugin-model-catalog-read.worker-subsystem-B3hXRQ4A.mjs";import{l as t,t as n}from"./plugin-model-catalog-read.worker-worker-task-pool-B5yTLMka.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};