agent-relay-server 0.19.1 → 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.
- package/package.json +1 -1
- package/src/cli.ts +1 -1
- package/src/upgrade.ts +5 -2
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -534,7 +534,7 @@ async function runRemoteOrchestratorUpgrades(opts: {
|
|
|
534
534
|
continue;
|
|
535
535
|
}
|
|
536
536
|
try {
|
|
537
|
-
const res = (await apiRequest("POST", `/api/orchestrators/${encodeURIComponent(id)}/
|
|
537
|
+
const res = (await apiRequest("POST", `/api/orchestrators/${encodeURIComponent(id)}/actions`, {
|
|
538
538
|
action: "upgrade",
|
|
539
539
|
targetVersion,
|
|
540
540
|
providers: remoteProviders,
|
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,
|