@cohortapp/agent-sdk 2.18.32 → 2.18.33
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.
|
@@ -100,9 +100,25 @@ export function refreshGlobalInstall(o = {}) {
|
|
|
100
100
|
return { ok: true, action: plan.action, detail: `${plan.action === "skip" ? "skipped" : "no change"} (${plan.reason})${plan.argv && plan.action === "skip" ? `: ${plan.argv.join(" ")}` : ""}`, argv: plan.argv };
|
|
101
101
|
}
|
|
102
102
|
const r = exec(plan.argv[0], plan.argv.slice(1), { timeout: 180_000 });
|
|
103
|
-
|
|
103
|
+
const was = globalVersion ? `was ${globalVersion}` : "was not installed";
|
|
104
|
+
if (r.status === 0) {
|
|
105
|
+
// POST-STATE FIRST, AND THE PRE-STATE LABELLED AS PAST.
|
|
106
|
+
//
|
|
107
|
+
// This used to interpolate `plan.reason` verbatim, which is the PRE-install
|
|
108
|
+
// reading — "global install is 2.18.30, agent dir is 2.18.31". On a
|
|
109
|
+
// SUCCESSFUL install that detail string is indistinguishable from the
|
|
110
|
+
// mismatch an operator is hunting, so a row whose `ok` is true reads as the
|
|
111
|
+
// failure. Someone auditing upgrade-result.json across a fleet for exactly
|
|
112
|
+
// that mismatch would flag every healthy seat.
|
|
113
|
+
//
|
|
114
|
+
// The `ok` flag was always the signal; the detail actively argued against
|
|
115
|
+
// it. Now the detail agrees with the flag.
|
|
116
|
+
return { ok: true, action: "install", detail: `${plan.argv.join(" ")} — global now ${String(o.version || "").trim()} (${was})`, argv: plan.argv };
|
|
117
|
+
}
|
|
104
118
|
const err = String(r.stderr || "").trim().split("\n").filter(Boolean).pop() || `exit ${r.status}`;
|
|
105
|
-
|
|
119
|
+
// On failure the actionable fact is that the global copy did NOT move, which
|
|
120
|
+
// the old string left the reader to infer from the absence of good news.
|
|
121
|
+
return { ok: false, action: "install", detail: `${plan.argv.join(" ")} failed: ${err} — global still ${globalVersion || "not installed"}; run it by hand`, argv: plan.argv };
|
|
106
122
|
}
|
|
107
123
|
|
|
108
124
|
export default { planGlobalRefresh, parseGlobalVersion, readGlobalVersion, refreshGlobalInstall, SDK_PACKAGE, SKIP_ENV };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cohortapp/agent-sdk",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.33",
|
|
4
4
|
"description": "Cohort Agent SDK — autonomous AI colleague runtime. Deploy senior AI colleagues on dedicated Mac minis, wired to the Cohort operating surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|