@botbuddy/cli 1.61.0 → 1.61.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.61.0",
3
- "source_commit": "5661e7d4d29c975fc925b0a6c47741db33598642",
4
- "source_sha256": "c5c57ed492234165bee179842456b3bebce505b36145e96551c0ddbd0cdf605a",
2
+ "release_version": "1.61.1",
3
+ "source_commit": "09c797743bed1572794a38c60b99ef0c16fed99e",
4
+ "source_sha256": "d32701d3d5eb48c0702d79aaee49bd699754b1c9ccff5eb6df5a845db4e9b090",
5
5
  "target": "darwin-arm64",
6
- "sha256": "afadb8e224f68209f4a2a0f8367d4aa289a76ac21f2ee57cbd376b90ab569469"
6
+ "sha256": "d2c3085339320a7911f2e546705f6dbabed4f8a817a85530bcce0db6e3ec1d70"
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.61.0",
3
- "source_commit": "5661e7d4d29c975fc925b0a6c47741db33598642",
4
- "source_sha256": "c5c57ed492234165bee179842456b3bebce505b36145e96551c0ddbd0cdf605a",
2
+ "release_version": "1.61.1",
3
+ "source_commit": "09c797743bed1572794a38c60b99ef0c16fed99e",
4
+ "source_sha256": "d32701d3d5eb48c0702d79aaee49bd699754b1c9ccff5eb6df5a845db4e9b090",
5
5
  "target": "linux-x64",
6
- "sha256": "830ff851e5d9d85957855af52a7c372cde56e2f9ddb315a31f5d2477c1c7d9d7"
6
+ "sha256": "7efe991465e7815eed329c1eaace0f7d130b64416034ce9f62863ea2147d6c6c"
7
7
  }
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "release_version": "1.61.0",
4
- "source_commit": "5661e7d4d29c975fc925b0a6c47741db33598642",
5
- "source_sha256": "c5c57ed492234165bee179842456b3bebce505b36145e96551c0ddbd0cdf605a",
3
+ "release_version": "1.61.1",
4
+ "source_commit": "09c797743bed1572794a38c60b99ef0c16fed99e",
5
+ "source_sha256": "d32701d3d5eb48c0702d79aaee49bd699754b1c9ccff5eb6df5a845db4e9b090",
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": "afadb8e224f68209f4a2a0f8367d4aa289a76ac21f2ee57cbd376b90ab569469",
11
+ "sha256": "d2c3085339320a7911f2e546705f6dbabed4f8a817a85530bcce0db6e3ec1d70",
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": "830ff851e5d9d85957855af52a7c372cde56e2f9ddb315a31f5d2477c1c7d9d7",
18
+ "sha256": "7efe991465e7815eed329c1eaace0f7d130b64416034ce9f62863ea2147d6c6c",
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.61.0",
3
+ "version": "1.61.1",
4
4
  "description": "BotBuddy \u2014 Swarm coordination CLI for multi-agent workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -314,7 +314,10 @@ export async function runStagingAuth({ plan, host, env, deps, socketRun, resolve
314
314
  claim = await poolModule.takeForLane({ persona: persona.email, owner: `lane-${plan.lane}@${host}`, poolId: ctxPool.poolId, tenantHint, ...poolOptions });
315
315
  } catch (error) {
316
316
  if (error?.code === "pool_empty") {
317
- return refuse(io, "pool_empty", 3, Object.fromEntries(["reason", "detail", ...GUIDED_FIELDS].filter((key) => error[key] !== undefined).map((key) => [key, error[key]])), vars);
317
+ // The refusal's code is the pool's health reason when it is unhealthy (e.g. a
318
+ // count-0 persona is persona_not_configured), so code, message and help agree.
319
+ const reasonCode = typeof error.reason === "string" && error.reason !== "healthy" && isKnownCode(error.reason) ? error.reason : "pool_empty";
320
+ return refuse(io, reasonCode, 3, Object.fromEntries(["reason", "detail", ...GUIDED_FIELDS].filter((key) => error[key] !== undefined).map((key) => [key, error[key]])), vars);
318
321
  }
319
322
  const code = typeof error?.code === "string" && isKnownCode(error.code) ? error.code : "pool_take_failed";
320
323
  return refuse(io, code, 3, { detail: String(error?.message ?? error).slice(0, 300) }, vars);
@@ -359,6 +359,8 @@ export async function refusalFor({ argv, command, error, options = {}, home = ho
359
359
  // A pool refusal (pool_empty / unhealthy) already carries its health guidance;
360
360
  // an ordinary error's own message stays in `detail`.
361
361
  if (typeof error?.reason === "string") for (const field of GUIDANCE_FIELDS) if (error[field] !== undefined) record[field] = error[field];
362
+ // An unhealthy pool's refusal carries its health reason's guidance, so its code is that reason.
363
+ if (typeof error?.reason === "string" && error.reason !== code && error.reason !== "healthy" && isKnownCode(error.reason)) record.code = error.reason;
362
364
  record.remedy ??= remedyLine(g);
363
365
  if (humanOnly) Object.assign(record, { actor: g.actor_label, agentAction: "report_blocker" });
364
366
  // An empty pool is explained by its health reason (e.g. job_not_loaded).