@botbuddy/cli 1.88.1 → 1.89.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/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/docker-hygiene.mjs +2 -2
- package/src/release-notes.mjs +8 -4
- package/src/stack.mjs +4 -4
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.89.0",
|
|
3
|
+
"source_commit": "ceece67073e0d8167f64bddc65ed20213be8f78c",
|
|
4
|
+
"source_sha256": "98c33a9ae44cf0b9daca63927640870fc0e88bea954d06ecffec4d6fc9b02ad2",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "ef8b86a46c7de9b6b00df00af0289b35eaa549d694c3fe798a35c4ca477fcec5"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.89.0",
|
|
3
|
+
"source_commit": "ceece67073e0d8167f64bddc65ed20213be8f78c",
|
|
4
|
+
"source_sha256": "98c33a9ae44cf0b9daca63927640870fc0e88bea954d06ecffec4d6fc9b02ad2",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "7361a70a76dc8bacc7b0c283cc83bd70a1f97637964e3d92816d9dd30d7463bc"
|
|
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.89.0",
|
|
4
|
+
"source_commit": "ceece67073e0d8167f64bddc65ed20213be8f78c",
|
|
5
|
+
"source_sha256": "98c33a9ae44cf0b9daca63927640870fc0e88bea954d06ecffec4d6fc9b02ad2",
|
|
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": "ef8b86a46c7de9b6b00df00af0289b35eaa549d694c3fe798a35c4ca477fcec5",
|
|
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": "7361a70a76dc8bacc7b0c283cc83bd70a1f97637964e3d92816d9dd30d7463bc",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/docker-hygiene.mjs
CHANGED
|
@@ -156,7 +156,7 @@ LIFECYCLE
|
|
|
156
156
|
finish or reap that stack before starting another. Run preflight before start.
|
|
157
157
|
When pressure warns or refuses: on OrbStack, run ticket-scoped dry-run hygiene;
|
|
158
158
|
on Docker Desktop (where hygiene stays OrbStack-only) release your own idle stack
|
|
159
|
-
with 'botbuddy stack done <lease>' instead.
|
|
159
|
+
with 'botbuddy stack done <lease> --reap' instead.
|
|
160
160
|
|
|
161
161
|
PERSISTENT ORBSTACK GHOSTS
|
|
162
162
|
If an exact ID remains listed but OrbStack cannot inspect it, inventory is
|
|
@@ -1009,7 +1009,7 @@ function recommendationFor(opts, apply = false, candidates = [], engine = "orbst
|
|
|
1009
1009
|
// container removal here: it bypasses hygiene's ticket filter, reviewed
|
|
1010
1010
|
// candidate IDs, and file/stack locks, so on a shared host it could delete a
|
|
1011
1011
|
// stopped service belonging to another live stack (Codex round-7 P2).
|
|
1012
|
-
return `docker hygiene is OrbStack-only; on ${engine} reduce Docker load by releasing your own idle stack leases (botbuddy stack done <lease>), then retry`;
|
|
1012
|
+
return `docker hygiene is OrbStack-only; on ${engine} reduce Docker load by releasing your own idle stack leases (botbuddy stack done <lease> --reap), then retry`;
|
|
1013
1013
|
}
|
|
1014
1014
|
return `botbuddy docker hygiene ${selector}${ticket}`;
|
|
1015
1015
|
}
|
package/src/release-notes.mjs
CHANGED
|
@@ -13,7 +13,7 @@ export const RELEASE_NOTES_USAGE = `Usage: bb release-notes submit <note.json> [
|
|
|
13
13
|
bb release-notes withdraw <source_key> [--tenant <slug>] [--json]
|
|
14
14
|
bb release-notes list [--tag <group>=<value>]... [--type <type>] [--state <state>] [--cursor <cursor>] [--json]
|
|
15
15
|
bb release-notes get <source_key> [--json]
|
|
16
|
-
bb release-notes digest --release <version> --voice internal|external [--format markdown|json|slack] [--repository owner/name] [--json]
|
|
16
|
+
bb release-notes digest --release <version|run-id> --voice internal|external [--environment production|staging] [--format markdown|json|slack] [--repository owner/name] [--json]
|
|
17
17
|
bb release-notes pack --release <version> [--format md] [--customer <name>] [--repository owner/name] [--out <file>] [--json]
|
|
18
18
|
bb release-notes grants list [--tenant <slug>] [--json]
|
|
19
19
|
bb release-notes grants add <email> <submit|manage> [--tenant <slug>] [--json]
|
|
@@ -111,8 +111,12 @@ schema) or slack ({"messages": [...]}: each message is a Block Kit payload for
|
|
|
111
111
|
your own incoming webhook; BotBuddy posts nothing). voice internal is your
|
|
112
112
|
team's wording with source keys and pull requests; voice external holds only
|
|
113
113
|
published external wording and never falls back to internal text. A release
|
|
114
|
-
with no notes prints an explicit empty digest.
|
|
115
|
-
(
|
|
114
|
+
with no notes prints an explicit empty digest. The internal voice also lists
|
|
115
|
+
every merged pull request in the release (BOT-3342), noted or not, with its
|
|
116
|
+
tickets, project and % complete and agent. --environment staging names a
|
|
117
|
+
staging deployment by its workflow run id or commit SHA (default production).
|
|
118
|
+
--json prints the whole answer (tenant, version, note_count, pr_count,
|
|
119
|
+
content_type, body). Refusals: release_unknown,
|
|
116
120
|
repository_required, release_not_shipped, no_previous_release,
|
|
117
121
|
release_range_unavailable, entitlement_missing, scope_missing.
|
|
118
122
|
|
|
@@ -537,7 +541,7 @@ async function cmdPublish(action, argv, { resolveAuth, call, log, errorLog }) {
|
|
|
537
541
|
// ── BOT-3204: bb release-notes digest ─────────────────────────────────
|
|
538
542
|
|
|
539
543
|
const DIGEST_TOOL = "get_release_note_digest";
|
|
540
|
-
const DIGEST_FLAGS = { "--release": "release", "--voice": "voice", "--format": "format", "--repository": "repository" };
|
|
544
|
+
const DIGEST_FLAGS = { "--release": "release", "--environment": "environment", "--voice": "voice", "--format": "format", "--repository": "repository" };
|
|
541
545
|
|
|
542
546
|
export async function cmdDigest(argv, { resolveAuth, call, log, errorLog, write, isTTY = false }) {
|
|
543
547
|
const json = argv.includes("--json");
|
package/src/stack.mjs
CHANGED
|
@@ -390,7 +390,7 @@ ${bold("REMOTE LEASES")} (BOT-2142, stack run)
|
|
|
390
390
|
5 NO_HELPER_HOST no co-located host admits and no owned host qualifies as remote
|
|
391
391
|
5 NO_COLOCATED_HELPER_HOST --local-only (or stack up / --local-exec): this machine has no active Docker
|
|
392
392
|
host (none enrolled, or draining/maintenance/retired) — run without --local-only
|
|
393
|
-
4 STACK_EXECUTION_MODE_MISMATCH the slot already holds a lease in another mode/host — stack done it first
|
|
393
|
+
4 STACK_EXECUTION_MODE_MISMATCH the slot already holds a lease in another mode/host — stack done <lease> --reap it first
|
|
394
394
|
(the four codes above create NO lease)
|
|
395
395
|
5 BUNDLE_UPLOAD_FAILED the signed bundle upload failed (the lease is released first)
|
|
396
396
|
5 CALLBACK_NOT_LOOPBACK --callback-port (pinned legacy -R): the GatewayPorts probe (before any real -R)
|
|
@@ -2376,7 +2376,7 @@ export const HELPER_ERA_ACTIVATED_AT = Date.parse("2026-09-01T00:00:00Z");
|
|
|
2376
2376
|
export function targetlessHelperLeaseRefusal(lease, leaseId) {
|
|
2377
2377
|
const activatedAt = Date.parse(lease?.activated_at ?? "");
|
|
2378
2378
|
if (lease?.connection?.botbuddy_docker_target || !(activatedAt >= HELPER_ERA_ACTIVATED_AT)) return null;
|
|
2379
|
-
return `this lease was provisioned by the Helper; release it with \`bb stack done ${leaseId}\` (no --local-exec) ` +
|
|
2379
|
+
return `this lease was provisioned by the Helper; release it with \`bb stack done ${leaseId} --reap\` (no --local-exec) ` +
|
|
2380
2380
|
"from the owning session, or ask the operator; lease and slot remain fenced";
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
@@ -3364,7 +3364,7 @@ async function cmdUpOnce(opts, {
|
|
|
3364
3364
|
command: "up", outcome: "refused", lease_id: leaseId, state: "active", slot,
|
|
3365
3365
|
error: `refusing --local-exec: the active lease is bound to ${g.worktree_root || "<unknown>"} / stack_path "${leaseStackPath}", ` +
|
|
3366
3366
|
`not the validated ${execution.worktreeRoot} / "${execution.stackPath}" — an existing lease for this slot was reused and ` +
|
|
3367
|
-
|
|
3367
|
+
`points at a different (possibly shared) stack. Release that lease with \`bb stack done ${leaseId} --reap\`, or use a slot dedicated to this stack.`,
|
|
3368
3368
|
observed_worktree_root: g.worktree_root || null, observed_stack_path: leaseStackPath,
|
|
3369
3369
|
}), opts, EXIT.LEASE_FAILED);
|
|
3370
3370
|
}
|
|
@@ -3377,7 +3377,7 @@ async function cmdUpOnce(opts, {
|
|
|
3377
3377
|
command: "up", outcome: "refused", lease_id: leaseId, state: "active", slot,
|
|
3378
3378
|
error: "refusing --local-exec: reused an existing active lease with no persisted provisioned identity " +
|
|
3379
3379
|
"(project_id) — a pre-1.32 lease recorded this stack_path but may have provisioned the shared worktree root, so its " +
|
|
3380
|
-
|
|
3380
|
+
`connection cannot be trusted as the isolated stack. Release it with \`bb stack done ${leaseId} --reap\` and re-provision, or use a dedicated slot.`,
|
|
3381
3381
|
}), opts, EXIT.LEASE_FAILED);
|
|
3382
3382
|
}
|
|
3383
3383
|
}
|