@botbuddy/cli 1.63.41 → 1.63.42

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.63.41",
3
- "source_commit": "89653c3c1d5a7144abd8bdab27a9496900cdb1d0",
4
- "source_sha256": "d524b98618977c153c57ae009f9cbab3da72f0255fb9a0b01e840a7c78550dc3",
2
+ "release_version": "1.63.42",
3
+ "source_commit": "68cd7a93519197cc7b96a190fa0c4b4799a9c45d",
4
+ "source_sha256": "3a4e94f577771c564aa24d54529368c6b6d325be1e64ef0a30da1531f02be6ed",
5
5
  "target": "darwin-arm64",
6
- "sha256": "ffee8ba3b0a0b849075f06f5186ca2aa8f14fca124c1460a396f410b95a655d7"
6
+ "sha256": "3c5f90061df675f1e06408ce5e1f3c9b6350e5a237216b0dbc11d71d656a1b35"
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.63.41",
3
- "source_commit": "89653c3c1d5a7144abd8bdab27a9496900cdb1d0",
4
- "source_sha256": "d524b98618977c153c57ae009f9cbab3da72f0255fb9a0b01e840a7c78550dc3",
2
+ "release_version": "1.63.42",
3
+ "source_commit": "68cd7a93519197cc7b96a190fa0c4b4799a9c45d",
4
+ "source_sha256": "3a4e94f577771c564aa24d54529368c6b6d325be1e64ef0a30da1531f02be6ed",
5
5
  "target": "linux-x64",
6
- "sha256": "594d96944fbea3354a6d26186d92e989470ee75734fd7fd53f5eb681eab1f43d"
6
+ "sha256": "a5a474195eca0a8b57ddf8c5d50cfddb88f083a57bc99e80dc4f1a7d10e99535"
7
7
  }
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "release_version": "1.63.41",
4
- "source_commit": "89653c3c1d5a7144abd8bdab27a9496900cdb1d0",
5
- "source_sha256": "d524b98618977c153c57ae009f9cbab3da72f0255fb9a0b01e840a7c78550dc3",
3
+ "release_version": "1.63.42",
4
+ "source_commit": "68cd7a93519197cc7b96a190fa0c4b4799a9c45d",
5
+ "source_sha256": "3a4e94f577771c564aa24d54529368c6b6d325be1e64ef0a30da1531f02be6ed",
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": "ffee8ba3b0a0b849075f06f5186ca2aa8f14fca124c1460a396f410b95a655d7",
11
+ "sha256": "3c5f90061df675f1e06408ce5e1f3c9b6350e5a237216b0dbc11d71d656a1b35",
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": "594d96944fbea3354a6d26186d92e989470ee75734fd7fd53f5eb681eab1f43d",
18
+ "sha256": "a5a474195eca0a8b57ddf8c5d50cfddb88f083a57bc99e80dc4f1a7d10e99535",
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.63.41",
3
+ "version": "1.63.42",
4
4
  "description": "BotBuddy \u2014 Swarm coordination CLI for multi-agent workflows",
5
5
  "type": "module",
6
6
  "bin": {
package/src/stack.mjs CHANGED
@@ -1356,7 +1356,7 @@ export function leaseRefusalExit(code) {
1356
1356
  // server refusing the credential — never BACKEND, which a gate reads as "down".
1357
1357
  if (CALL_AUTH_ERROR_CODES.has(code)) return EXIT.AUTH;
1358
1358
  // BOT-1926: a reused lease requested in the other execution mode is fixable by the caller.
1359
- return code === STACK_PATH_ROOT_REFUSED_CODE || code === "STACK_EXECUTION_MODE_MISMATCH" ? EXIT.INVALID : EXIT.BACKEND;
1359
+ return code === STACK_PATH_ROOT_REFUSED_CODE || code === "STACK_EXECUTION_MODE_MISMATCH" || code === "AGENT_DEEPLINK_REQUIRED" ? EXIT.INVALID : EXIT.BACKEND;
1360
1360
  }
1361
1361
 
1362
1362
  /**
@@ -1386,6 +1386,8 @@ export const REMOTE_REFUSAL_GUIDANCE = Object.freeze({
1386
1386
  "re-run (the bundle is built automatically unless it failed — see the warning above) or use --local-only.",
1387
1387
  });
1388
1388
 
1389
+ const AGENT_DEEPLINK_REQUIRED_GUIDANCE = "the control plane refused this stack because its owning agent has no canonical profile or native session link. Reconnect with `bb register`, then retry. No lease was created.";
1390
+
1389
1391
  /** The refusal text for a receipt: the server's message, else the CLI's guidance, else the code. */
1390
1392
  export function leaseRefusalError(data) {
1391
1393
  if (data?.lease_id && ["STACK_CONTEXT_BIND_FAILED", "STACK_CONTEXT_ALREADY_BOUND"].includes(data?.code)) {
@@ -1398,7 +1400,7 @@ export function leaseRefusalError(data) {
1398
1400
  return `the server's identified admission failed in the database${data.sqlstate ? ` (SQLSTATE ${data.sqlstate})` : ""} and rolled back, ` +
1399
1401
  "so no lease was created and this stack's port claim is released. This is a BotBuddy server fault: report it with this run's admission request id.";
1400
1402
  }
1401
- return data?.message || REMOTE_REFUSAL_GUIDANCE[data?.code] || data?.code || "lease request refused";
1403
+ return data?.message || (data?.code === "AGENT_DEEPLINK_REQUIRED" ? AGENT_DEEPLINK_REQUIRED_GUIDANCE : null) || REMOTE_REFUSAL_GUIDANCE[data?.code] || data?.code || "lease request refused";
1402
1404
  }
1403
1405
 
1404
1406
  /** One stderr line naming a remote-lease refusal (null for every other code). */