@botbuddy/cli 1.123.1 → 1.123.2
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/CHANGELOG.md +4 -0
- package/claude-plugin/.claude-plugin/marketplace.json +1 -1
- package/claude-plugin/bb-status/.claude-plugin/plugin.json +1 -1
- package/claude-plugin/bb-status/README.md +3 -2
- package/claude-plugin/bb-status/hooks/register.js +10 -5
- package/daemon/bin/darwin-arm64/botbuddy-daemon +0 -0
- package/daemon/bin/linux-x64/botbuddy-daemon +0 -0
- package/daemon-release/darwin-arm64.json +4 -4
- package/daemon-release/linux-x64.json +4 -4
- package/daemon-release/manifest.json +5 -5
- package/package.json +1 -1
- package/src/status-band-read.mjs +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.123.2
|
|
4
|
+
|
|
5
|
+
- BOT-3660: when staging is red, the bb-status band's `Open staging ↗` opens `/release-readiness/staging/sha/<red commit>?tenant=<tenant>`, the failing release in the tenant whose staging is red, instead of `/release-readiness/staging/latest` in whichever tenant the browser had active. `bb status-band read` passes the new `staging.red_sha` from `get_session_status` (a full SHA only); without one the link is `/release-readiness/staging/latest?tenant=<tenant>`. The plugin version moves to 1.12.1, so `bb update` installs it.
|
|
6
|
+
|
|
3
7
|
## 1.123.1
|
|
4
8
|
|
|
5
9
|
- BOT-3596: the fleet host daemon stays up when the control plane answers HTTP 402 with no BotBuddy error code, which is how the hosting provider answers every call while it restricts the project (2026-11-18: about six hours, 288 daemon exits on each Linux host). The daemon now treats that 402 like a 5xx: it keeps polling every 15 s, admits no work, logs one `foreground cycle deferred: … cause=control_plane_http_402` line for the whole outage and one `recovered after=<s>` line when the control plane answers again, and re-registers on the next poll. A 402 that carries a BotBuddy refusal code, and every 401 or 403, still stop the daemon as before.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"name": "bb-status",
|
|
12
12
|
"source": "./bb-status",
|
|
13
13
|
"description": "BB session status above the prompt: tickets, PRs with review counts, epic, staging, context use and active waits, for BotBuddy and Supply Guard sessions",
|
|
14
|
-
"version": "1.12.
|
|
14
|
+
"version": "1.12.1"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "bb-session",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bb-status",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "BB session status above the prompt: tickets, PRs with review counts, epic, staging, context use and active waits, live only while the session is on screen.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "BotBuddy"
|
|
@@ -24,8 +24,9 @@ no band at all. Normal Chat and Cowork do not load this UI.
|
|
|
24
24
|
failed read shows "Couldn't read …" instead, never the empty state. Each PR row
|
|
25
25
|
shows its code-review rounds (`pr_state.review_rounds`, which `get_pr_state`
|
|
26
26
|
returns as `reviewRounds`). While the tenant's staging is red, a `▲ Staging red`
|
|
27
|
-
banner links to
|
|
28
|
-
|
|
27
|
+
banner links to the failing release in that tenant (BOT-3660):
|
|
28
|
+
`/release-readiness/staging/sha/<red_sha>?tenant=<tenant>`, or
|
|
29
|
+
`/release-readiness/staging/latest?tenant=<tenant>` when BB names no commit. Unreadable staging says `staging: couldn't read`, never green.
|
|
29
30
|
The relay is parked, with no child and no server wait, while
|
|
30
31
|
`$.session.surfaces()` is empty, which is the case while Desktop shows another
|
|
31
32
|
session. Once a surface draws the session again, the 5 s display tick does one
|
|
@@ -321,6 +321,8 @@ function validSnapshot(value, harness, now) {
|
|
|
321
321
|
typeof value.staging.configured === "boolean" &&
|
|
322
322
|
typeof value.staging.red === "boolean" &&
|
|
323
323
|
(value.staging.since === null || Number.isFinite(Date.parse(value.staging.since))) &&
|
|
324
|
+
// BOT-3660: the red commit is a full lower-case SHA or absent; it goes into a URL.
|
|
325
|
+
(value.staging.red_sha === undefined || (typeof value.staging.red_sha === "string" && /^[0-9a-f]{40}$/.test(value.staging.red_sha))) &&
|
|
324
326
|
// BOT-3241: the release manager: absent (unknown), null (none) or a
|
|
325
327
|
// safe name with a verified session link or none.
|
|
326
328
|
(value.staging.release_manager == null ||
|
|
@@ -373,8 +375,11 @@ const LINKS = {
|
|
|
373
375
|
wait: (id) => APP + "/waits?wait=" + id,
|
|
374
376
|
// BOT-3394: a push held for compute opens /waits, where every held push is listed.
|
|
375
377
|
pushes: APP + "/waits",
|
|
376
|
-
// BOT-3152 AC-2: the
|
|
377
|
-
|
|
378
|
+
// BOT-3152 AC-2 / BOT-3660: the red tenant's failing release. The web app's
|
|
379
|
+
// deep-link resolver switches to `tenant` (membership-gated) before the page
|
|
380
|
+
// reads; without a known commit it opens that tenant's newest staging SHA.
|
|
381
|
+
staging: (tenant, sha) =>
|
|
382
|
+
APP + "/release-readiness/staging/" + (sha ? "sha/" + sha : "latest") + "?tenant=" + encodeURIComponent(tenant),
|
|
378
383
|
// BOT-3501: the web top bar's Docker queue chip link (the /docker Queue section).
|
|
379
384
|
dockerQueue: APP + "/docker#docker-queue",
|
|
380
385
|
};
|
|
@@ -1432,7 +1437,7 @@ function blockerBadges(el, $, key, s) {
|
|
|
1432
1437
|
if (s.blockers.length > out.length) out.push(dim(el, "+" + (s.blockers.length - out.length) + " more"));
|
|
1433
1438
|
return out;
|
|
1434
1439
|
}
|
|
1435
|
-
function stagingBanner(el, $, key, since, rm) {
|
|
1440
|
+
function stagingBanner(el, $, key, since, rm, href) {
|
|
1436
1441
|
const text = "▲ Staging red" + (since ? " " + shortAge(since, currentTime) : "");
|
|
1437
1442
|
return el.Box({
|
|
1438
1443
|
key,
|
|
@@ -1452,7 +1457,7 @@ function stagingBanner(el, $, key, since, rm) {
|
|
|
1452
1457
|
children: [el.Text({ color: "#ffffff", bold: true, children: [text] })],
|
|
1453
1458
|
}),
|
|
1454
1459
|
...releaseManager(el, $, rm),
|
|
1455
|
-
el.Link({ href
|
|
1460
|
+
el.Link({ href, label: "Open staging ↗" }),
|
|
1456
1461
|
],
|
|
1457
1462
|
});
|
|
1458
1463
|
}
|
|
@@ -1603,7 +1608,7 @@ function bandLines(el, $, inPane) {
|
|
|
1603
1608
|
const statuses = [
|
|
1604
1609
|
// BOT-3286: the project's coordinator leads the first row.
|
|
1605
1610
|
...(s.epic ? coordinatorBadge(el, $, k("line-coordinator"), s.epic.coordinator) : []),
|
|
1606
|
-
...(s.staging?.red ? [stagingBanner(el, $, k("line-staging"), s.staging.since, s.staging.release_manager)] : []),
|
|
1611
|
+
...(s.staging?.red ? [stagingBanner(el, $, k("line-staging"), s.staging.since, s.staging.release_manager, LINKS.staging(s.tenant, s.staging.red_sha))] : []),
|
|
1607
1612
|
...contextBadge(el, k("line-context")),
|
|
1608
1613
|
...uncategorisedBadge(el, k("line-project"), s.epic),
|
|
1609
1614
|
// BOT-3501: whether a new session would join a host queue.
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.123.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.123.2",
|
|
3
|
+
"source_commit": "d25543415cd188cd3ea7aa872a8d04501efa78af",
|
|
4
|
+
"source_sha256": "5252d27b5e5d47d0f3ad937532c13d12f117a6b9f1b99e5746d3cdb84a74a8bf",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "e4ec497e30b860d9e3d3f470a066657e7d37d3196b47ed744d2b4e1b0dc34f49"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.123.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.123.2",
|
|
3
|
+
"source_commit": "d25543415cd188cd3ea7aa872a8d04501efa78af",
|
|
4
|
+
"source_sha256": "5252d27b5e5d47d0f3ad937532c13d12f117a6b9f1b99e5746d3cdb84a74a8bf",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "9cb3ba6e0bb6a5c3b584942c8a0d5a6c98aebe88b4f3257ee34c3b8f8f2183b4"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.123.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.123.2",
|
|
4
|
+
"source_commit": "d25543415cd188cd3ea7aa872a8d04501efa78af",
|
|
5
|
+
"source_sha256": "5252d27b5e5d47d0f3ad937532c13d12f117a6b9f1b99e5746d3cdb84a74a8bf",
|
|
6
6
|
"targets": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"goos": "darwin",
|
|
9
9
|
"goarch": "arm64",
|
|
10
10
|
"binary": "daemon/bin/darwin-arm64/botbuddy-daemon",
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "e4ec497e30b860d9e3d3f470a066657e7d37d3196b47ed744d2b4e1b0dc34f49",
|
|
12
12
|
"mode": "0755"
|
|
13
13
|
},
|
|
14
14
|
"linux-x64": {
|
|
15
15
|
"goos": "linux",
|
|
16
16
|
"goarch": "amd64",
|
|
17
17
|
"binary": "daemon/bin/linux-x64/botbuddy-daemon",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "9cb3ba6e0bb6a5c3b584942c8a0d5a6c98aebe88b4f3257ee34c3b8f8f2183b4",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/status-band-read.mjs
CHANGED
|
@@ -72,6 +72,9 @@ function stagingOf(own) {
|
|
|
72
72
|
if (!st || typeof st !== "object" || typeof st.configured !== "boolean") return null;
|
|
73
73
|
const since = typeof st.open_since === "string" && Number.isFinite(Date.parse(st.open_since)) ? new Date(st.open_since).toISOString() : null;
|
|
74
74
|
const out = { configured: st.configured, red: st.configured && since !== null, since: st.configured ? since : null };
|
|
75
|
+
// BOT-3660: the red commit, so the band's link opens that release. Only a full
|
|
76
|
+
// SHA ever reaches a URL; anything else is left out (the link then names the tenant only).
|
|
77
|
+
if (out.red && typeof st.red_sha === "string" && /^[0-9a-f]{40}$/i.test(st.red_sha)) out.red_sha = st.red_sha.toLowerCase();
|
|
75
78
|
// BOT-3241: a red staging's elected release manager, linked only to a verified
|
|
76
79
|
// Claude Desktop session or Codex thread. null = none elected; no key = BB did
|
|
77
80
|
// not say (an older server, a failed read or an unsafe name): the band shows nothing.
|