@botbuddy/cli 1.120.1 → 1.121.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 +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/host-child.mjs +22 -1
- package/src/release-notes.mjs +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.121.0
|
|
4
|
+
|
|
5
|
+
- BOT-3638: `bb release-notes submit --help` shows the optional `tour.where` in the sample pack: the screen's name in plain text (at most 120 characters), shown as the text of the "where to find it" link. It explains that BotBuddy shows `tour.find_it` as a link: an https URL as written, or an app path on your one production origin (`bb release-notes origins set --environment production --origin …`). `--pack` sends `tour.where` unchanged. Needs MCP 2.164.0.
|
|
6
|
+
|
|
3
7
|
## 1.120.0
|
|
4
8
|
|
|
5
9
|
- BOT-3569: `bb report upload <file.html> --type <type> --title <title>` stores one HTML report (at most 5,242,880 bytes) in your tenant's private report store and prints its BotBuddy link, `<app>/reports/stored/<id>`, with the report id and the file's sha256. It calls the MCP tool `begin_report_upload`, PUTs the bytes straight to Storage through the one signed URL it returns, then `finalize_report_upload`, which reads the stored bytes back and checks size, sha256 and HTML shape. `--ticket`, `--pr` (repository from `--repository` or the origin remote) and `--release` link the report; `--source-key` and `--json` as usual. A refusal (`report_not_html`, `report_too_large`, `report_type_unknown`, `report_digest_mismatch`, `scope_missing`) exits 1 and prints the code, the limit and the fix. Needs MCP 2.163.0.
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.121.1",
|
|
3
|
+
"source_commit": "3412bf24bad730f10f7ba6ba2b6e88ffbba47557",
|
|
4
|
+
"source_sha256": "549b73d360a137fe8c35afed5b0b564d59595f5ca0ac2b1bf56712ed78a5abb7",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "34d471028f10013e838c2c97c35dc9dd348bdc2e17ce9e5a4ef1e55cd7ada99b"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.121.1",
|
|
3
|
+
"source_commit": "3412bf24bad730f10f7ba6ba2b6e88ffbba47557",
|
|
4
|
+
"source_sha256": "549b73d360a137fe8c35afed5b0b564d59595f5ca0ac2b1bf56712ed78a5abb7",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "b7cab7b86a47235607c51371f3da67e1cc575c3f89af2b9e285b0c8f0f29a8e5"
|
|
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.121.1",
|
|
4
|
+
"source_commit": "3412bf24bad730f10f7ba6ba2b6e88ffbba47557",
|
|
5
|
+
"source_sha256": "549b73d360a137fe8c35afed5b0b564d59595f5ca0ac2b1bf56712ed78a5abb7",
|
|
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": "34d471028f10013e838c2c97c35dc9dd348bdc2e17ce9e5a4ef1e55cd7ada99b",
|
|
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": "b7cab7b86a47235607c51371f3da67e1cc575c3f89af2b9e285b0c8f0f29a8e5",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/host-child.mjs
CHANGED
|
@@ -21,6 +21,11 @@ export const HOST_CHILD_BUNDLE_MAX_BYTES = 200 * 1024 * 1024;
|
|
|
21
21
|
/** A host run that never reports terminal is given up this long after its own runtime limit. */
|
|
22
22
|
export const HOST_CHILD_WAIT_GRACE_MS = 10 * 60_000;
|
|
23
23
|
export const HOST_CHILD_DEFAULT_MAX_RUNTIME_S = 3600;
|
|
24
|
+
/**
|
|
25
|
+
* BOT-3566: the control plane fails a claim its host has prepared for this long (a cold
|
|
26
|
+
* dependency layer keeps a claim alive with "preparing" reports up to here).
|
|
27
|
+
*/
|
|
28
|
+
export const HOST_CHILD_PREPARE_CAP_MS = 45 * 60_000;
|
|
24
29
|
const ENV_NAME = /^[A-Z][A-Z0-9_]{0,63}$/;
|
|
25
30
|
|
|
26
31
|
/** The four requester tool calls, over the run's retrying caller. */
|
|
@@ -168,7 +173,8 @@ export async function startHostChild({
|
|
|
168
173
|
};
|
|
169
174
|
// The caller gave the run up before using it (its slot was lost): stop waiting for it.
|
|
170
175
|
child.detach = () => { abort.abort("detached"); artifactsAbort.abort("detached"); };
|
|
171
|
-
const
|
|
176
|
+
const firstGiveUpAt = now() + (maxRuntimeSeconds * 1000) + HOST_CHILD_WAIT_GRACE_MS;
|
|
177
|
+
let giveUpAt = firstGiveUpAt;
|
|
172
178
|
const finish = (run, code) => {
|
|
173
179
|
if (child.final) return;
|
|
174
180
|
child.final = run;
|
|
@@ -206,6 +212,11 @@ export async function startHostChild({
|
|
|
206
212
|
// The cursor is read with the state, so a change after this read replays into the wait.
|
|
207
213
|
if (run && Number.isSafeInteger(Number(run.signal_cursor))) since = Number(run.signal_cursor);
|
|
208
214
|
if (stopWanted) requestCancel();
|
|
215
|
+
// BOT-3566: a run that started late (a cold dependency layer) gets its runtime from its
|
|
216
|
+
// start, replacing any preparation allowance (Codex #2019); one still being prepared
|
|
217
|
+
// gets the control plane's preparation cap once the first deadline passes.
|
|
218
|
+
if (run?.state === "running") giveUpAt = Math.max(firstGiveUpAt, hostRunGiveUpAt(run, maxRuntimeSeconds));
|
|
219
|
+
else if (now() >= giveUpAt) giveUpAt = Math.max(giveUpAt, hostRunGiveUpAt(run, maxRuntimeSeconds));
|
|
209
220
|
if (now() >= giveUpAt) {
|
|
210
221
|
child.stop();
|
|
211
222
|
return finish({ ...(run ?? {}), state: "failed", failure_code: "HOST_CHILD_UNREPORTED", failure_message: "the host never reported the run's end" }, 1);
|
|
@@ -233,6 +244,16 @@ export async function startHostChild({
|
|
|
233
244
|
return { ok: true, child, runId };
|
|
234
245
|
}
|
|
235
246
|
|
|
247
|
+
/** When a non-terminal host run may be given up, from what the control plane says of it. */
|
|
248
|
+
export function hostRunGiveUpAt(run, maxRuntimeSeconds) {
|
|
249
|
+
const budget = maxRuntimeSeconds * 1000 + HOST_CHILD_WAIT_GRACE_MS;
|
|
250
|
+
const started = Date.parse(run?.started_at ?? "");
|
|
251
|
+
if (run?.state === "running" && Number.isFinite(started)) return started + budget;
|
|
252
|
+
const claimed = Date.parse(run?.claimed_at ?? "");
|
|
253
|
+
if (run?.state === "claimed" && Number.isFinite(claimed)) return claimed + HOST_CHILD_PREPARE_CAP_MS + budget;
|
|
254
|
+
return -Infinity;
|
|
255
|
+
}
|
|
256
|
+
|
|
236
257
|
/** Receipt fields for a host run. */
|
|
237
258
|
export function hostChildReceiptFields(child) {
|
|
238
259
|
if (!child?.hostRun) return {};
|
package/src/release-notes.mjs
CHANGED
|
@@ -48,14 +48,19 @@ note's "pack": the fields a release pack and testing tour are built from.
|
|
|
48
48
|
{ "schema": "bbrn-pack-1", "category": "Feature",
|
|
49
49
|
"audience": ["Release manager"],
|
|
50
50
|
"before": "…", "after": "…", "benefit": "…", "ui": "none",
|
|
51
|
-
"tour": { "find_it": "/release-notes", "
|
|
51
|
+
"tour": { "find_it": "/release-notes", "where": "Release notes",
|
|
52
|
+
"try": "…", "look_for": "…",
|
|
52
53
|
"watch": "…", "role": ["Release manager"] } }
|
|
53
54
|
|
|
54
55
|
category is Feature, Bug fix or Chore. A Feature or Bug fix needs before,
|
|
55
56
|
after, benefit, ui (bbrn-md-1, or "none" when there is no UI) and the tour's
|
|
56
57
|
find_it (an app path or https URL), try and look_for; a Chore needs only
|
|
57
58
|
category and after. A missing field is refused with pack_field_missing naming
|
|
58
|
-
it.
|
|
59
|
+
it. tour.where is optional: the screen's name in plain text (at most 120
|
|
60
|
+
characters), shown as the text of the find_it link. BotBuddy shows find_it as
|
|
61
|
+
a link: an https URL as-is, an app path in your own app (your one production
|
|
62
|
+
origin: bb release-notes origins set --environment production --origin …).
|
|
63
|
+
audience and tour.role are values of your tenant's persona tag group.
|
|
59
64
|
Never write customers: BotBuddy derives them from the linked Linear tickets'
|
|
60
65
|
customer needs and the receipt prints them (or why they are unavailable).
|
|
61
66
|
Each field, with a good and a bad example: docs/release-notes/pack-fields.md.
|