UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

38 lines (37 loc) • 1.14 kB
import { a as workerBootstrapOperationTimeoutMs } from "./bootstrap-timeouts-H5rWuch_.mjs"; import { n as createArtifactTransferService } from "./artifact-transfer-service-DqUckSc7.mjs"; //#region 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 } } }; } }; } //#endregion export { createNodeWorkerBundleTransferService };