openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 910 B
JavaScript
import{a as workerBootstrapOperationTimeoutMs}from"./bootstrap-timeouts-DTWxPvhX.mjs";import{n as createArtifactTransferService}from"./artifact-transfer-service-Dq84sJgK.mjs";
//!src/gateway/worker-environments/node-worker-bundle-transfer-service.ts
function createNodeWorkerBundleTransferService(){const e=createArtifactTransferService();return{...e,prepare(t){const{token:n}=e.prepare({...t,artifactKey:t.artifact.bundleHash,ttlMs:workerBootstrapOperationTimeoutMs(t.artifact),maxServes:256});return{token:n,input:{gatewayNamespace:t.gatewayNamespace,...t.bundlePrewarm?{bundlePrewarm:t.bundlePrewarm}:{},...t.prefetch?{prefetch:t.prefetch}:{},build:{bundleHash:t.artifact.bundleHash,openclawVersion:t.artifact.openclawVersion,protocolFeatures:[...t.artifact.protocolFeatures]},archive:{token:n,sha256:t.artifact.tarballSha256,bytes:t.artifact.tarballBytes}}}}}}export{createNodeWorkerBundleTransferService};