openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 590 B
JavaScript
import{n as runtimeProcessEntrypoints}from"./runtime-process-entrypoints-Dnd1WskT.mjs";import{a as resolveRuntimeWorkerUrl}from"./runtime-worker-url-Dqf-I1cs.mjs";import{t as WorkerTaskPool}from"./worker-task-pool-Bg54sSAN.mjs";
//!src/gateway/worker-environments/node-bootstrap-artifact-worker.ts
async function prepareNodeArtifactInWorker(e,t){const n=new WorkerTaskPool({workerUrl:resolveRuntimeWorkerUrl(runtimeProcessEntrypoints.nodeBootstrapArtifact),workerClass:`writer`});try{return await n.run({kind:e,input:t},{})}finally{await n.close()}}export{prepareNodeArtifactInWorker as t};