UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 573 B
import{o as resolveRuntimeProcessEntrypointUrl}from"./runtime-process-url-DJ272Tuo.mjs";import{t as WorkerTaskPool}from"./worker-task-pool-Bg54sSAN.mjs"; //!src/gateway/control-ui-public-session-card.ts function createPublicSessionCardRenderer(){const e=new WorkerTaskPool({workerUrl:resolveRuntimeProcessEntrypointUrl(`publicSessionCard`),maxWorkers:1,maxPendingTasks:8,sharedCompute:true});return{async render(t){const n=await e.run(t,{timeoutMs:1e4});return Buffer.from(n.buffer,n.byteOffset,n.byteLength)},dispose:()=>e.close()}}export{createPublicSessionCardRenderer};