openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
21 lines (20 loc) • 680 B
JavaScript
import { n as runtimeProcessEntrypoints } from "./runtime-process-entrypoints-qiyJvDDT.mjs";
import { a as resolveRuntimeWorkerUrl } from "./runtime-worker-url-DRDkoS4J.mjs";
import { t as WorkerTaskPool } from "./worker-task-pool-BshJjv1P.mjs";
//#region 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();
}
}
//#endregion
export { prepareNodeArtifactInWorker as t };