@botbuddy/cli 1.106.0 → 1.106.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.106.1
4
+
5
+ - `bb run status --help` shows the status, inspection and log commands without reporting an invalid run or contacting BotBuddy.
6
+
3
7
  ## 1.106.0
4
8
 
5
9
  - BOT-3464: a test child on a fleet host can report its own timing. `bb stack run --test-child` binds the test run it records (`BOTBUDDY_TEST_RUN_ID`, set by `bb test`), and the host daemon gives the child a credential of its own run, 0600 at `$BOTBUDDY_HOST_CHILD_CREDENTIAL_FILE`. Inside the child `bb` is the daemon binary, whose `bb call` now sends `get_stack_lease` and `update_test_run` (only those) with that credential to the daemon's own control plane (`BOTBUDDY_SERVER_URL`); the Node CLI's `bb call` does the same in a host child when no other credential resolves. Both read it only from an owner-only regular file. It reads only the run's lease (`get_stack_lease`) and merges only `<name>_timing` metadata into only the bound test run (`update_test_run`), while the run is live. Needs MCP 2.146.0 and this daemon on the host; an older side keeps today's behaviour.
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.106.0",
3
- "source_commit": "ed60b09485ef31d43a1811773b14ab650fc0bc0a",
4
- "source_sha256": "9f200bf54e41c26b5868cc5dfafc22e5f485ee106474386d272eea3abb12a213",
2
+ "release_version": "1.106.1",
3
+ "source_commit": "a42995651757e19e32e9b95da4fbdb804613f469",
4
+ "source_sha256": "187860770903800533170769d60ef4079bd936b19a675854228f891011b6647f",
5
5
  "target": "darwin-arm64",
6
- "sha256": "16c0bd09746bcf3738f8015e7d494a3f230c79dcc8f5533cb6dab701580dfa3a"
6
+ "sha256": "d7f4b731ffb2e93cab1111085ea653eee141726f2517fdc896cd6a417001a0b3"
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.106.0",
3
- "source_commit": "ed60b09485ef31d43a1811773b14ab650fc0bc0a",
4
- "source_sha256": "9f200bf54e41c26b5868cc5dfafc22e5f485ee106474386d272eea3abb12a213",
2
+ "release_version": "1.106.1",
3
+ "source_commit": "a42995651757e19e32e9b95da4fbdb804613f469",
4
+ "source_sha256": "187860770903800533170769d60ef4079bd936b19a675854228f891011b6647f",
5
5
  "target": "linux-x64",
6
- "sha256": "d7c70cebfb9f6571a9901d46c35d7af47b38b72cfc09300710ba76c1a3a82076"
6
+ "sha256": "4e67cd6cfec582e7eef01faa6d27697b860ba14edc25821bcb3fb9b140ff763d"
7
7
  }
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "release_version": "1.106.0",
4
- "source_commit": "ed60b09485ef31d43a1811773b14ab650fc0bc0a",
5
- "source_sha256": "9f200bf54e41c26b5868cc5dfafc22e5f485ee106474386d272eea3abb12a213",
3
+ "release_version": "1.106.1",
4
+ "source_commit": "a42995651757e19e32e9b95da4fbdb804613f469",
5
+ "source_sha256": "187860770903800533170769d60ef4079bd936b19a675854228f891011b6647f",
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": "16c0bd09746bcf3738f8015e7d494a3f230c79dcc8f5533cb6dab701580dfa3a",
11
+ "sha256": "d7f4b731ffb2e93cab1111085ea653eee141726f2517fdc896cd6a417001a0b3",
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": "d7c70cebfb9f6571a9901d46c35d7af47b38b72cfc09300710ba76c1a3a82076",
18
+ "sha256": "4e67cd6cfec582e7eef01faa6d27697b860ba14edc25821bcb3fb9b140ff763d",
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.106.0",
3
+ "version": "1.106.1",
4
4
  "description": "BotBuddy — Swarm coordination CLI for multi-agent workflows",
5
5
  "type": "module",
6
6
  "bin": {
package/src/commands.mjs CHANGED
@@ -15,7 +15,7 @@ import { CallUsageError, discoveryUrlFor, formatDiscovery, parseCallArgs } from
15
15
  import { cmdStack } from "./stack.mjs";
16
16
  import { cmdManagedAllocation } from "./managed-allocation.mjs";
17
17
  import { cmdDocker } from "./docker-hygiene.mjs";
18
- import { cmdRun } from "./run.mjs";
18
+ import { cmdRun, isRunStatusHelp } from "./run.mjs";
19
19
  import { cmdPush } from "./push.mjs";
20
20
  import { cmdTest } from "./test-lane.mjs";
21
21
  import { cmdEvidence } from "./evidence.mjs";
@@ -118,6 +118,7 @@ export async function run(argv, {
118
118
  // Creating or reading local feedback guidance must work even when the
119
119
  // credential store or network is the reason the agent is blocked.
120
120
  if (command === "feedback" && (args[0] === "init" || HELP_WORDS.has(args[0]))) return cmdFeedback(args);
121
+ if (command === "run" && isRunStatusHelp(args)) return cmdRun(args);
121
122
 
122
123
  await load();
123
124
  if (shouldCheckForUpdates([command, ...args])) await warnStale({ version: VERSION });
package/src/run.mjs CHANGED
@@ -1280,6 +1280,13 @@ export async function retryTerminalUpdate(context, update, call, {
1280
1280
  }
1281
1281
  }
1282
1282
 
1283
+ export function isRunStatusHelp(args) {
1284
+ if (args[0] !== "status") return false;
1285
+ const separator = args.indexOf("--");
1286
+ const flags = separator < 0 ? args : args.slice(0, separator);
1287
+ return flags.includes("--help") || flags.includes("-h");
1288
+ }
1289
+
1283
1290
  export async function cmdRun(args) {
1284
1291
  if (args[0] === "--worker") {
1285
1292
  await runWorker(args[1]);
@@ -1300,6 +1307,12 @@ export async function cmdRun(args) {
1300
1307
  process.exitCode = result.classification === "rejected" ? EXIT.INVALID : EXIT.OK;
1301
1308
  return;
1302
1309
  }
1310
+ if (isRunStatusHelp(args)) {
1311
+ const candidate = args.slice(1).find((arg) => !arg.startsWith("-"));
1312
+ const id = candidate && /^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/.test(candidate) ? candidate : "<run_id>";
1313
+ console.log(`bb run status ${id}\n Show observed test counts and exact receipt, test-event and log commands when available. Unknown counts remain unknown.\n\nbb run inspect ${id}\n Inspect the owned detached run and its observed state.\n\nbb run logs ${id} --tail 100\n Read the owned local log snapshot when available.\n\n${id === "<run_id>" ? "Replace <run_id> with your run ID. " : ""}The status response contains the exact available local commands and paths for this run.`);
1314
+ return;
1315
+ }
1303
1316
  if (args[0] === "status") {
1304
1317
  const result = await statusRun(args[1] ?? "");
1305
1318
  oneLine(result, false);