@botbuddy/cli 1.125.0 → 1.126.1
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 +7 -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/hooks/register.js +34 -0
- 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/release-notes.mjs +78 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.126.1
|
|
4
|
+
|
|
5
|
+
- BOT-3720: the Claude status band (1.13.0) shows a red **Fable** badge in its STATUS row while the session's selected model is Fable, read from the session at start, at each turn and on the band's 5 s display tick. Any other model, or a model that cannot be read, shows no badge.
|
|
6
|
+
## 1.126.0
|
|
7
|
+
|
|
8
|
+
- BOT-3262: `bb release-notes tour --release <version> [--customer <name>] [--out <file>]` prints a production release's internal testing tour as Markdown (version, commit and readiness as recorded; quick start; who checks what; numbered checks from each note's tour fields with a Pass / Issue / Not available result line; a change finder). `bb release-notes tour submit --release <version> <outline.json>` stores the release's `bbrn-tour-1` outline; an outline that names a note outside the release or leaves one out is refused with the notes listed.
|
|
9
|
+
|
|
3
10
|
## 1.125.0
|
|
4
11
|
|
|
5
12
|
- BOT-3691: `.botbuddy/lanes.json` lanes may declare `"advisory": true` and `"capacity": "none"`. An advisory lane's run is created with `advisory: true` (stamped as `metadata.advisory` on the test run), registered as `--category other --kind other` instead of `validation` / `full_suite`, and its `.botbuddy/test-runs/` summary carries `advisory: true`, so it never reaches `test_executions`, never counts toward the full-suite rerun block, and `publish_evidence` refuses it. `capacity: "none"` is recorded on the run; the lane's child gets `BOTBUDDY_LANE_CAPACITY=none` and `BOTBUDDY_LANE_ADVISORY=1` (both always set, empty when undeclared). A non-boolean `advisory`, a `capacity` other than `"none"`, and an advisory lane that is a result-bearing gate lane in `.botbuddy/telemetry-manifest.json` (`advisory_gate_lane`) are refused before any run is created, and so is an advisory lane whose `.botbuddy/telemetry-manifest.json` cannot be read (`gate_manifest_unreadable`). Lanes that declare neither field are unchanged. An older CLI ignores both fields and records such a lane as before (a full suite); see the PR for why that is accepted.
|
|
@@ -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.
|
|
14
|
+
"version": "1.13.0"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "bb-session",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bb-status",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
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"
|
|
@@ -43,6 +43,8 @@ let unbound = false;
|
|
|
43
43
|
// with the free `$.session.usage()` and then only from `session.measure`,
|
|
44
44
|
// which the engine pushes after each main-thread turn: never polled.
|
|
45
45
|
let context = null;
|
|
46
|
+
// BOT-3720: the main loop's model, as /model shows it; null when unread.
|
|
47
|
+
let model = null;
|
|
46
48
|
// BOT-3213: the tenant's ticket prefix the adapter named with ticket_missing.
|
|
47
49
|
let hintPrefix = null;
|
|
48
50
|
// BOT-3222: when this Claude session started, so the adapter leaves the
|
|
@@ -1259,6 +1261,32 @@ function contextBadge(el, key) {
|
|
|
1259
1261
|
: el.Box({ key: key + "-ctx", flexDirection: "row", flexShrink: 0, backgroundColor: "error", paddingX: 1, children: [el.Text({ color: "#ffffff", bold: true, children: [alarm] })] }),
|
|
1260
1262
|
];
|
|
1261
1263
|
}
|
|
1264
|
+
// BOT-3720: a red "Fable" pill while the session's model is Fable, or nothing.
|
|
1265
|
+
function isFable(m) {
|
|
1266
|
+
return typeof m === "string" && /fable/i.test(m);
|
|
1267
|
+
}
|
|
1268
|
+
function fableBadge(el, key) {
|
|
1269
|
+
if (!isFable(model)) return [];
|
|
1270
|
+
const text = "Fable";
|
|
1271
|
+
return [
|
|
1272
|
+
pills() && typeof el.Svg === "function"
|
|
1273
|
+
? el.Box({ key: key + "-fable", flexDirection: "row", flexShrink: 0, children: [pillSvg(el, { text, fill: RED, bold: true })] })
|
|
1274
|
+
: el.Box({ key: key + "-fable", flexDirection: "row", flexShrink: 0, backgroundColor: "error", paddingX: 1, children: [el.Text({ color: "#ffffff", bold: true, children: [text] })] }),
|
|
1275
|
+
];
|
|
1276
|
+
}
|
|
1277
|
+
// Re-reads the model; true when it changed. A failed read means no badge.
|
|
1278
|
+
async function readModel($) {
|
|
1279
|
+
let next = null;
|
|
1280
|
+
try {
|
|
1281
|
+
const m = await $.session.model();
|
|
1282
|
+
next = typeof m === "string" && m ? m : null;
|
|
1283
|
+
} catch {
|
|
1284
|
+
next = null;
|
|
1285
|
+
}
|
|
1286
|
+
const changed = isFable(next) !== isFable(model);
|
|
1287
|
+
model = next;
|
|
1288
|
+
return changed;
|
|
1289
|
+
}
|
|
1262
1290
|
// BOT-3263: an amber STATUS pill while live project tickets carry no Must /
|
|
1263
1291
|
// Unsure / Could label (Linear "Commitment" tags), with a ↗ to the drawer
|
|
1264
1292
|
// filtered to them. Nothing without the count (an older MCP) or at zero.
|
|
@@ -1618,6 +1646,8 @@ function bandLines(el, $, inPane) {
|
|
|
1618
1646
|
...(s.epic ? coordinatorBadge(el, $, k("line-coordinator"), s.epic.coordinator) : []),
|
|
1619
1647
|
...(s.staging?.red ? [stagingBanner(el, $, k("line-staging"), s.staging.since, s.staging.release_manager, LINKS.staging(s.tenant, s.staging.red_sha))] : []),
|
|
1620
1648
|
...contextBadge(el, k("line-context")),
|
|
1649
|
+
// BOT-3720: the costliest model, named where the operator looks.
|
|
1650
|
+
...fableBadge(el, k("line-model")),
|
|
1621
1651
|
...uncategorisedBadge(el, k("line-project"), s.epic),
|
|
1622
1652
|
// BOT-3501: whether a new session would join a host queue.
|
|
1623
1653
|
...dockerQueueBadge(el, k("line-status"), s.docker_queue),
|
|
@@ -1641,6 +1671,7 @@ export function register(on) {
|
|
|
1641
1671
|
if (timer) timer.cancel();
|
|
1642
1672
|
timer = $.clock.every(5000, async () => {
|
|
1643
1673
|
currentTime = await $.clock.now();
|
|
1674
|
+
await readModel($);
|
|
1644
1675
|
await followVisibility($);
|
|
1645
1676
|
$.ui.invalidate("ui.render");
|
|
1646
1677
|
});
|
|
@@ -1654,6 +1685,7 @@ export function register(on) {
|
|
|
1654
1685
|
parked = false;
|
|
1655
1686
|
sessionStartedAt = await $.clock.now();
|
|
1656
1687
|
await readContext($);
|
|
1688
|
+
await readModel($);
|
|
1657
1689
|
if (await onScreen($)) await refresh($);
|
|
1658
1690
|
else parked = true;
|
|
1659
1691
|
return next(e);
|
|
@@ -1693,6 +1725,7 @@ export function register(on) {
|
|
|
1693
1725
|
});
|
|
1694
1726
|
on("turn.start", async ($, e, next) => {
|
|
1695
1727
|
if (!e.agentId) {
|
|
1728
|
+
await readModel($);
|
|
1696
1729
|
activity = "Working";
|
|
1697
1730
|
$.ui.invalidate("ui.render");
|
|
1698
1731
|
}
|
|
@@ -1718,6 +1751,7 @@ export function register(on) {
|
|
|
1718
1751
|
parked = false;
|
|
1719
1752
|
unbound = false;
|
|
1720
1753
|
context = null;
|
|
1754
|
+
model = null;
|
|
1721
1755
|
pulsing = false;
|
|
1722
1756
|
pulseToken++;
|
|
1723
1757
|
if (timer) timer.cancel();
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.126.1",
|
|
3
|
+
"source_commit": "1214092bfa44a20f8ad9d0a77935d2ff28b9f860",
|
|
4
|
+
"source_sha256": "48add2f5c078bdce15bc0f5d7e0938fac2e368a5fe5bec010c1ea0514915a2c6",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "1f9077cf61456887b57e5a13722c198a2e9f32b30aa759cefec547ba1b19a95d"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.126.1",
|
|
3
|
+
"source_commit": "1214092bfa44a20f8ad9d0a77935d2ff28b9f860",
|
|
4
|
+
"source_sha256": "48add2f5c078bdce15bc0f5d7e0938fac2e368a5fe5bec010c1ea0514915a2c6",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "8c7a59eb2960ec8bff6bf0dbf0fa937bab9b490ca56c2c9713f90219d6c54da5"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.126.1",
|
|
4
|
+
"source_commit": "1214092bfa44a20f8ad9d0a77935d2ff28b9f860",
|
|
5
|
+
"source_sha256": "48add2f5c078bdce15bc0f5d7e0938fac2e368a5fe5bec010c1ea0514915a2c6",
|
|
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": "1f9077cf61456887b57e5a13722c198a2e9f32b30aa759cefec547ba1b19a95d",
|
|
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": "8c7a59eb2960ec8bff6bf0dbf0fa937bab9b490ca56c2c9713f90219d6c54da5",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/release-notes.mjs
CHANGED
|
@@ -16,6 +16,8 @@ export const RELEASE_NOTES_USAGE = `Usage: bb release-notes submit <note.json> [
|
|
|
16
16
|
bb release-notes digest --release <version|run-id> --voice internal|external [--environment production|staging] [--format markdown|json|slack|discord|github-release] [--repository owner/name] [--json]
|
|
17
17
|
bb release-notes digest --candidate <sha> --repository owner/name --voice internal [--format …] [--json]
|
|
18
18
|
bb release-notes pack --release <version> [--format md] [--customer <name>] [--repository owner/name] [--out <file>] [--json]
|
|
19
|
+
bb release-notes tour --release <version> [--format md] [--customer <name>] [--repository owner/name] [--out <file>] [--json]
|
|
20
|
+
bb release-notes tour submit --release <version> <outline.json> [--repository owner/name] [--json]
|
|
19
21
|
bb release-notes grants list [--tenant <slug>] [--json]
|
|
20
22
|
bb release-notes grants add <email> <submit|manage> [--tenant <slug>] [--json]
|
|
21
23
|
bb release-notes grants remove <email> <submit|manage> [--tenant <slug>] [--json]
|
|
@@ -149,6 +151,19 @@ and UI. --customer keeps the changes that customer raised. --out writes a file
|
|
|
149
151
|
only you can read. The pack is internal: do not send it outside your company.
|
|
150
152
|
Refusals: customer_unknown and the digest's refusals.
|
|
151
153
|
|
|
154
|
+
Tour (BOT-3262). tour prints the internal testing tour for one production
|
|
155
|
+
release as Markdown: version, commit and readiness as recorded, a quick start,
|
|
156
|
+
who checks what, numbered checks from each note's tour fields (Find it, Try,
|
|
157
|
+
Look for, Watch) with a Pass / Issue / Not available result line, and a change
|
|
158
|
+
finder that maps every change except Chores to a check or an operational
|
|
159
|
+
location. Suggested checks are not PASS claims. --customer keeps the checks with
|
|
160
|
+
a change that customer raised. tour submit stores the release's outline
|
|
161
|
+
(bbrn-tour-1, docs/release-notes/bbrn-tour-1.schema.json): section titles, the
|
|
162
|
+
check order, which notes each check covers, the quick start and operational
|
|
163
|
+
locations. Write it yourself; BotBuddy never groups notes. Submitting again adds a
|
|
164
|
+
revision. Refusals: outline_note_outside_release and outline_note_missing (both
|
|
165
|
+
list the notes), schema_invalid (names the field) and the pack's refusals.
|
|
166
|
+
|
|
152
167
|
Exit codes: 0 stored or read · 1 refused or not found · 2 usage · 3 authentication · 5 BotBuddy unreachable.
|
|
153
168
|
|
|
154
169
|
Viewer keys and origins (tenant owners, BOT-3158):
|
|
@@ -183,6 +198,9 @@ export async function cmdReleaseNotes(args, {
|
|
|
183
198
|
if (args[0] === "digest") return await cmdDigest(args.slice(1), { resolveAuth, call, log, errorLog, write, isTTY });
|
|
184
199
|
// BOT-3261: the internal release pack.
|
|
185
200
|
if (args[0] === "pack") return await cmdPack(args.slice(1), { resolveAuth, call, log, errorLog, write, writeFile, isTTY });
|
|
201
|
+
// BOT-3262: the testing tour, and its outline.
|
|
202
|
+
if (args[0] === "tour" && args[1] === "submit") return await cmdTourSubmit(args.slice(2), { read, resolveAuth, call, log, errorLog });
|
|
203
|
+
if (args[0] === "tour") return await cmdPack(args.slice(1), { resolveAuth, call, log, errorLog, write, writeFile, isTTY }, TOUR_TOOL, "tour");
|
|
186
204
|
const json = args.includes("--json");
|
|
187
205
|
let rest = args.filter((a) => a !== "--json");
|
|
188
206
|
// BOT-3260: --pack <pack.json>, anywhere after submit.
|
|
@@ -654,9 +672,10 @@ export async function writePrivateFile(path, bytes) {
|
|
|
654
672
|
}
|
|
655
673
|
|
|
656
674
|
const PACK_TOOL = "get_release_note_pack";
|
|
675
|
+
const TOUR_TOOL = "get_release_tour";
|
|
657
676
|
const PACK_FLAGS = { "--release": "release", "--format": "format", "--customer": "customer", "--repository": "repository", "--out": "out" };
|
|
658
677
|
|
|
659
|
-
export async function cmdPack(argv, { resolveAuth, call, log, errorLog, write, writeFile, isTTY = false }) {
|
|
678
|
+
export async function cmdPack(argv, { resolveAuth, call, log, errorLog, write, writeFile, isTTY = false }, tool = PACK_TOOL, noun = "pack") {
|
|
660
679
|
const json = argv.includes("--json");
|
|
661
680
|
const opts = {};
|
|
662
681
|
for (let i = 0; i < argv.length; i++) {
|
|
@@ -679,10 +698,10 @@ export async function cmdPack(argv, { resolveAuth, call, log, errorLog, write, w
|
|
|
679
698
|
|
|
680
699
|
let result;
|
|
681
700
|
try {
|
|
682
|
-
const resolved = await resolveAuth({ toolName:
|
|
701
|
+
const resolved = await resolveAuth({ toolName: tool, preferSession: true });
|
|
683
702
|
result = resolved?.error || !resolved?.auth
|
|
684
703
|
? { ok: false, auth: true }
|
|
685
|
-
: await call(
|
|
704
|
+
: await call(tool, args, { auth: resolved.auth, signal: AbortSignal.timeout(120_000) });
|
|
686
705
|
} catch {
|
|
687
706
|
result = { ok: false, status: null };
|
|
688
707
|
}
|
|
@@ -697,12 +716,67 @@ export async function cmdPack(argv, { resolveAuth, call, log, errorLog, write, w
|
|
|
697
716
|
}
|
|
698
717
|
if (result?.ok && data?.ok !== false) {
|
|
699
718
|
if (json) log(JSON.stringify({ ok: false, error: "receipt_unavailable" }));
|
|
700
|
-
errorLog(
|
|
719
|
+
errorLog(`✗ BotBuddy did not return a ${noun}. Retry the same command; a ${noun} is a read and changes nothing.`);
|
|
701
720
|
return CALL_EXIT.ERROR;
|
|
702
721
|
}
|
|
703
722
|
return printRefusalOrFailure(result, json, log, errorLog, "Nothing was changed.");
|
|
704
723
|
}
|
|
705
724
|
|
|
725
|
+
// ── BOT-3262: bb release-notes tour submit ────────────────────────────
|
|
726
|
+
|
|
727
|
+
const TOUR_SUBMIT_TOOL = "submit_release_tour_outline";
|
|
728
|
+
|
|
729
|
+
export async function cmdTourSubmit(argv, { read, resolveAuth, call, log, errorLog }) {
|
|
730
|
+
const json = argv.includes("--json");
|
|
731
|
+
const opts = {};
|
|
732
|
+
let file = null;
|
|
733
|
+
for (let i = 0; i < argv.length; i++) {
|
|
734
|
+
const a = argv[i];
|
|
735
|
+
if (a === "--json") continue;
|
|
736
|
+
if (a === "--release" || a === "--repository") {
|
|
737
|
+
const v = argv[i + 1];
|
|
738
|
+
const key = a.slice(2);
|
|
739
|
+
if (!v || v.startsWith("--") || key in opts) return readUsage(errorLog);
|
|
740
|
+
opts[key] = v;
|
|
741
|
+
i++;
|
|
742
|
+
continue;
|
|
743
|
+
}
|
|
744
|
+
if (a.startsWith("-") || file !== null) return readUsage(errorLog);
|
|
745
|
+
file = a;
|
|
746
|
+
}
|
|
747
|
+
if (!opts.release || !file) return readUsage(errorLog);
|
|
748
|
+
let outline;
|
|
749
|
+
try {
|
|
750
|
+
outline = JSON.parse(await read(file, "utf8"));
|
|
751
|
+
} catch {
|
|
752
|
+
errorLog(`Could not read ${file} as JSON; nothing was submitted.`);
|
|
753
|
+
return 2;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
let result;
|
|
757
|
+
try {
|
|
758
|
+
const resolved = await resolveAuth({ toolName: TOUR_SUBMIT_TOOL, preferSession: true });
|
|
759
|
+
result = resolved?.error || !resolved?.auth
|
|
760
|
+
? { ok: false, auth: true }
|
|
761
|
+
: await call(TOUR_SUBMIT_TOOL, { ...opts, outline, route: "cli" }, { auth: resolved.auth, signal: AbortSignal.timeout(120_000) });
|
|
762
|
+
} catch {
|
|
763
|
+
result = { ok: false, status: null };
|
|
764
|
+
}
|
|
765
|
+
const data = result?.data;
|
|
766
|
+
if (result?.ok && data?.ok === true) {
|
|
767
|
+
if (json) log(JSON.stringify(data));
|
|
768
|
+
else if (data.changed === false) log(`Tour outline for ${data.version} unchanged: revision ${data.revision} is live.`);
|
|
769
|
+
else {
|
|
770
|
+
const n = (k, one, many) => `${k} ${k === 1 ? one : many}`;
|
|
771
|
+
log(`Tour outline for ${data.version} stored: revision ${data.revision}, ${n(data.checks, "check", "checks")}, ${n(data.operational, "operational location", "operational locations")}.`);
|
|
772
|
+
}
|
|
773
|
+
return CALL_EXIT.OK;
|
|
774
|
+
}
|
|
775
|
+
const code = printRefusalOrFailure(result, json, log, errorLog, "Nothing was stored.");
|
|
776
|
+
if (!json && Array.isArray(data?.notes) && data.notes.length > 0) errorLog(termClean(`Notes: ${data.notes.join(", ")}`));
|
|
777
|
+
return code;
|
|
778
|
+
}
|
|
779
|
+
|
|
706
780
|
// ── BOT-3166: bb release-notes list | get ──────────────────────────────
|
|
707
781
|
|
|
708
782
|
function readUsage(errorLog) {
|