From 129384238ed6db1e9a9c9943882c42d30d902e7e Mon Sep 17 00:00:00 2001 From: Will Washburn Date: Fri, 24 Apr 2026 22:20:01 -0400 Subject: [PATCH] fix: bundle @agent-relay/cloud (not published at lockstep version) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @agent-relay/cloud is the only workspace package whose npm namespace isn't owned by this repo's publish flow. The publish-packages job in publish.yml has every other internal package (sdk, hooks, config, telemetry, trajectory, user-directory, utils) but cloud is absent. Latest registry version is 2.0.23, not 6.x. Under the previous bundled-everything model this was invisible: the workspace cloud at version 6.0.1 got bundled into the agent-relay tarball and users never tried to fetch from registry. After unbundling, agent-relay's regular dep on @agent-relay/cloud@6.0.1 caused install to fail with ETARGET because that version doesn't exist on npm. Fix: keep cloud bundled. It's safe — cloud's only @agent-relay dependency is @agent-relay/config (also at 6.0.1, also published normally). It's not in the SDK chain, so bundling cloud doesn't re-introduce the broker shadow-copy problem we just spent five commits eliminating. Verified end-to-end: a fresh install of the locally-packed tarball produces a tree where cloud/config sit bundled inside agent-relay/node_modules/@agent-relay/, while sdk and the broker optional-dep package hoist correctly to the top-level node_modules/@agent-relay/, and the broker binary at node_modules/@agent-relay/broker-darwin-arm64/bin/agent-relay-broker is a real Mach-O executable. Tarball size: 1.5 MB → 4.0 MB (cloud's @aws-sdk/client-s3 transitive deps are most of the increase). Still 6× smaller than the original 24.2 MB. Long-term, the cleanest fix is to publish @agent-relay/cloud from this repo at the lockstep version (or rename the workspace to avoid the namespace collision). For now, bundling restores correctness. Co-Authored-By: Claude Opus 4.7 (1M context) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 194855528..5947cd4fd 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "web" ], "bundledDependencies": [ + "@agent-relay/cloud", "@relaycast/sdk", "@relayfile/local-mount" ],