@botbuddy/cli 1.88.0 → 1.88.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.
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.88.0",
3
- "source_commit": "a7e1965978a24dc9a14e1442c5f40ab26f5732ef",
4
- "source_sha256": "feb7f17ea84d6a3c072d20ef5f4868c2dec25be6d84ed04c7b5e5ebefcaec446",
2
+ "release_version": "1.88.1",
3
+ "source_commit": "508207356e37ed870509edeb6d62f0701eb791fd",
4
+ "source_sha256": "1fcfb80e9431faf565ef098ada6526ed82f7ba00e8c17ebb71b798e098cf4a09",
5
5
  "target": "darwin-arm64",
6
- "sha256": "fbef823e6769dfe0e8ff6f624f1aaff2e0adacb19df27f073d7917d722f03f70"
6
+ "sha256": "f3640cca8a17949e542670ffb5fb8b36a964d001d896b8578b15a8c684faa646"
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.88.0",
3
- "source_commit": "a7e1965978a24dc9a14e1442c5f40ab26f5732ef",
4
- "source_sha256": "feb7f17ea84d6a3c072d20ef5f4868c2dec25be6d84ed04c7b5e5ebefcaec446",
2
+ "release_version": "1.88.1",
3
+ "source_commit": "508207356e37ed870509edeb6d62f0701eb791fd",
4
+ "source_sha256": "1fcfb80e9431faf565ef098ada6526ed82f7ba00e8c17ebb71b798e098cf4a09",
5
5
  "target": "linux-x64",
6
- "sha256": "15170a14e8bfdcc0f76c6ffdaa178451a68c746c67a14dc8704ebef646e17435"
6
+ "sha256": "2d6be8f6b90df35aa201445c2e13bcd91db6194856b15286af4c513f2ac0d5e5"
7
7
  }
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "release_version": "1.88.0",
4
- "source_commit": "a7e1965978a24dc9a14e1442c5f40ab26f5732ef",
5
- "source_sha256": "feb7f17ea84d6a3c072d20ef5f4868c2dec25be6d84ed04c7b5e5ebefcaec446",
3
+ "release_version": "1.88.1",
4
+ "source_commit": "508207356e37ed870509edeb6d62f0701eb791fd",
5
+ "source_sha256": "1fcfb80e9431faf565ef098ada6526ed82f7ba00e8c17ebb71b798e098cf4a09",
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": "fbef823e6769dfe0e8ff6f624f1aaff2e0adacb19df27f073d7917d722f03f70",
11
+ "sha256": "f3640cca8a17949e542670ffb5fb8b36a964d001d896b8578b15a8c684faa646",
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": "15170a14e8bfdcc0f76c6ffdaa178451a68c746c67a14dc8704ebef646e17435",
18
+ "sha256": "2d6be8f6b90df35aa201445c2e13bcd91db6194856b15286af4c513f2ac0d5e5",
19
19
  "mode": "0755"
20
20
  }
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbuddy/cli",
3
- "version": "1.88.0",
3
+ "version": "1.88.1",
4
4
  "description": "BotBuddy — Swarm coordination CLI for multi-agent workflows",
5
5
  "type": "module",
6
6
  "bin": {
package/src/stack.mjs CHANGED
@@ -1533,6 +1533,19 @@ export function staleContextFenceScope(data) {
1533
1533
  return data?.code === "STALE_AGENT_CONTEXT" && (data.fence_scope === "session" || data.fence_scope === "agent") ? data.fence_scope : null;
1534
1534
  }
1535
1535
 
1536
+ /** BOT-3275: the shape-checked fields of a stale-context refusal, kept when an admission answer is rebuilt. */
1537
+ export function staleContextRefusalFields(data) {
1538
+ const fenceScope = staleContextFenceScope(data);
1539
+ const ticketField = (value) => (typeof value === "string" && STALE_CONTEXT_TICKET_RE.test(value) ? value : null);
1540
+ const registered = ticketField(data?.registered_ticket_id);
1541
+ const requested = ticketField(data?.requested_ticket_id);
1542
+ return {
1543
+ ...(registered ? { registered_ticket_id: registered } : {}),
1544
+ ...(requested ? { requested_ticket_id: requested } : {}),
1545
+ ...(fenceScope ? { fence_scope: fenceScope } : {}),
1546
+ };
1547
+ }
1548
+
1536
1549
  /** BOT-2977: the ticket this checkout's branch names (null when none), read only for a stale-context refusal. */
1537
1550
  export async function currentBranchTicket(cwd = process.cwd()) {
1538
1551
  try {
@@ -4668,7 +4681,10 @@ async function runStackLifecycleOnce(opts, childArgv, adapters, incidentBox) {
4668
4681
  ...(res.data?.phase ? { phase: res.data.phase } : {}), ...(res.data?.wait ? { wait: res.data.wait } : {}),
4669
4682
  // BOT-2812: the database ran the call and rolled it back; its SQLSTATE names the class.
4670
4683
  ...(code === "ADMISSION_FAILED" && SQLSTATE_RE.test(res.data?.sqlstate ?? "") ? { sqlstate: res.data.sqlstate } : {}),
4671
- ...(code === HOST_CAPACITY_SOURCE_STALE_CODE ? capacityStaleReceiptFields(res.data) : {}) } };
4684
+ ...(code === HOST_CAPACITY_SOURCE_STALE_CODE ? capacityStaleReceiptFields(res.data) : {}),
4685
+ // BOT-3275: the fence's own answer, so the hint names both tickets and the
4686
+ // receipt and outcome row carry which fence refused (BOT-2977).
4687
+ ...(code === "STALE_AGENT_CONTEXT" ? staleContextRefusalFields(res.data) : {}) } };
4672
4688
  } else {
4673
4689
  const ack = identifiedAdmissionAck(res.data, leaseArgs.request_id);
4674
4690
  // A malformed or foreign ACK is untrusted: never cleanup authority, never adopted.