agent-relay-server 0.19.2 → 0.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/upgrade.ts +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay-server",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "description": "Lightweight HTTP message relay for inter-agent communication across machines",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
package/src/upgrade.ts CHANGED
@@ -158,11 +158,14 @@ export function createUpgradePlan(snapshot: UpgradeSnapshot, options: UpgradeOpt
158
158
  if (snapshot.packageManager === "none") {
159
159
  if (packages.length > 0) warnings.push("No supported global package manager found. Install Bun or npm, then rerun `agent-relay upgrade`.");
160
160
  } else if (packages.length > 0) {
161
+ // --prefer-online: revalidate the packument so a just-published version is
162
+ // visible to this host's npm cache right away, avoiding the post-publish
163
+ // ETARGET race (#211). bun add always hits the network for the spec.
161
164
  const command = snapshot.packageManager === "runtime-npm"
162
- ? ["npm", "install", "--prefix", snapshot.runtimePrefix, ...packages]
165
+ ? ["npm", "install", "--prefer-online", "--prefix", snapshot.runtimePrefix, ...packages]
163
166
  : snapshot.packageManager === "bun"
164
167
  ? ["bun", "add", "-g", ...packages]
165
- : ["npm", "install", "-g", ...packages];
168
+ : ["npm", "install", "--prefer-online", "-g", ...packages];
166
169
  actions.push({
167
170
  label: snapshot.packageManager === "runtime-npm" ? "Upgrade runtime packages" : "Upgrade global packages",
168
171
  command,