@botbuddy/cli 1.125.0 → 1.126.0
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/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,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.126.0
|
|
4
|
+
|
|
5
|
+
- 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.
|
|
6
|
+
|
|
3
7
|
## 1.125.0
|
|
4
8
|
|
|
5
9
|
- 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.
|
|
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.0",
|
|
3
|
+
"source_commit": "d69762d62748e644a185c9e3d1d965311a5df397",
|
|
4
|
+
"source_sha256": "5b796ee978662cfd5c7534d26766848a507cf3ad3a4b610e93382fa622644ae5",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "2059d4fb0dc1c2111f37e4180f290e1a2865b3d8fa21d4fa58d86f0d12b6a6a7"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.126.0",
|
|
3
|
+
"source_commit": "d69762d62748e644a185c9e3d1d965311a5df397",
|
|
4
|
+
"source_sha256": "5b796ee978662cfd5c7534d26766848a507cf3ad3a4b610e93382fa622644ae5",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "49cca079b456244077e923e1903a30235df3b33077a12b41f6452fcd27a49321"
|
|
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.0",
|
|
4
|
+
"source_commit": "d69762d62748e644a185c9e3d1d965311a5df397",
|
|
5
|
+
"source_sha256": "5b796ee978662cfd5c7534d26766848a507cf3ad3a4b610e93382fa622644ae5",
|
|
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": "2059d4fb0dc1c2111f37e4180f290e1a2865b3d8fa21d4fa58d86f0d12b6a6a7",
|
|
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": "49cca079b456244077e923e1903a30235df3b33077a12b41f6452fcd27a49321",
|
|
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) {
|