@botbuddy/cli 1.97.0 → 1.98.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.98.0
4
+
5
+ - BOT-3395: a host test child's host tools `curl`, `git`, `jq`, `psql` and `tar` count only when they run inside a child's sandbox. The daemon's runtime probe (BOT-3402) now also runs `<tool> --version` for each one, and `child_capabilities` gains `tool_versions` (for example `{"jq":"1.8.1","psql":"18.6"}`). A tool the daemon user can see but the sandbox cannot run is listed in `missing`. `jq` is new: `--child-requires jq` now places a child only on a host whose sandbox runs it. Before, `curl`, `git`, `psql` and `tar` were checked on the daemon user's `PATH` and `jq` was never reported, so a child that required `jq` could never be placed.
6
+
3
7
  ## 1.97.0
4
8
 
5
9
  - BOT-3397: `bb stack run --test-child --child-artifacts <glob>` (repeatable, at most 16, relative to the checkout) brings a host test child's files back to the requester's worktree. When the child's unit stops (exit, failure, timeout or cancel) its `ExecStopPost` runs the bound `bb child-artifacts pack` as the run's own DynamicUser, inside the sandbox: matching regular files are packed into a gzip tar whose last entry `.bb-artifacts.json` lists each file's size and sha256. Symlinks are never followed or packed, and the files are capped at 200 MiB per run. The daemon uploads the archive to a signed, run-scoped Storage path and reports its sha256, size and typed refusals (`ARTIFACT_GLOB_NO_MATCH`, `ARTIFACT_OVER_CAP`, `ARTIFACT_SYMLINK_REFUSED`, …). The CLI downloads it, checks the archive against the host's sha256 and every file against the manifest, refuses the whole archive on any mismatch or unsafe path, writes the files at their relative paths before the run is seen to end, and records them on the receipt as `host_child.artifacts`. A run with nothing to return says why (`ARTIFACTS_NOT_PACKED`, `ARTIFACTS_UPLOAD_FAILED`, `ARTIFACTS_DIGEST_MISMATCH`, …); the exit code is always the child's. Archives are kept 24 h; `bb stack child-artifacts <run_id>` writes them again.
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.97.0",
3
- "source_commit": "9624b16c5931a1caa8532d54b5c5bbcbfda7968f",
4
- "source_sha256": "e3eb890b49b33323cd956f58d69b7211787b86098e940fc6c35e2a71f703adad",
2
+ "release_version": "1.98.0",
3
+ "source_commit": "f70520dbd07ae88734fc20255f4431cce58cdae7",
4
+ "source_sha256": "502e1d2c3098347e283dae7ecd616f0b05f85ac8c702084a770d4fcd2421f7f4",
5
5
  "target": "darwin-arm64",
6
- "sha256": "54c2ae2eb7ad2b829d7e1072ac35c145f1e6cb058032d5ee9083b859b3a93e32"
6
+ "sha256": "d2f7f37484bf5e303969718b070bd302b2d8c0166607cc44035a24f9161c8a27"
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "release_version": "1.97.0",
3
- "source_commit": "9624b16c5931a1caa8532d54b5c5bbcbfda7968f",
4
- "source_sha256": "e3eb890b49b33323cd956f58d69b7211787b86098e940fc6c35e2a71f703adad",
2
+ "release_version": "1.98.0",
3
+ "source_commit": "f70520dbd07ae88734fc20255f4431cce58cdae7",
4
+ "source_sha256": "502e1d2c3098347e283dae7ecd616f0b05f85ac8c702084a770d4fcd2421f7f4",
5
5
  "target": "linux-x64",
6
- "sha256": "69d0a5d44faddb8029c99e061a5c1b9ee1134d38e3695f2348e6039a3f5fafa6"
6
+ "sha256": "729a3ae9cdc67d1ff123b792bba2f70c95308b08674b0fc781257c6508df88c3"
7
7
  }
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "release_version": "1.97.0",
4
- "source_commit": "9624b16c5931a1caa8532d54b5c5bbcbfda7968f",
5
- "source_sha256": "e3eb890b49b33323cd956f58d69b7211787b86098e940fc6c35e2a71f703adad",
3
+ "release_version": "1.98.0",
4
+ "source_commit": "f70520dbd07ae88734fc20255f4431cce58cdae7",
5
+ "source_sha256": "502e1d2c3098347e283dae7ecd616f0b05f85ac8c702084a770d4fcd2421f7f4",
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": "54c2ae2eb7ad2b829d7e1072ac35c145f1e6cb058032d5ee9083b859b3a93e32",
11
+ "sha256": "d2f7f37484bf5e303969718b070bd302b2d8c0166607cc44035a24f9161c8a27",
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": "69d0a5d44faddb8029c99e061a5c1b9ee1134d38e3695f2348e6039a3f5fafa6",
18
+ "sha256": "729a3ae9cdc67d1ff123b792bba2f70c95308b08674b0fc781257c6508df88c3",
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.97.0",
3
+ "version": "1.98.0",
4
4
  "description": "BotBuddy — Swarm coordination CLI for multi-agent workflows",
5
5
  "type": "module",
6
6
  "bin": {
package/src/stack.mjs CHANGED
@@ -314,9 +314,12 @@ ${bold("run OPTIONS")}
314
314
  serving_host, and the slot and the lease are released. A full serving-host
315
315
  pool still waits for a slot.
316
316
  --child-requires LIST BOT-3030: what the child needs on a host (comma list: node>=24,pnpm,deno,
317
- curl,psql,playwright-chromium-libs). node, pnpm and deno count only when
318
- they run inside a child's sandbox on that host (BOT-3402). A host lacking
319
- one is not placed on; the child runs here and the run names what was missing.
317
+ curl,git,jq,psql,tar,playwright-chromium-libs). node, pnpm and deno count
318
+ only when they run inside a child's sandbox on that host (BOT-3402).
319
+ BOT-3395: curl, git, jq, psql and tar count only when they run inside a
320
+ child's sandbox too, and the host reports each one's version. A host
321
+ lacking one is not placed on; the child runs here and the run names what
322
+ was missing.
320
323
  BOT-3407: a head that commits mise.toml and mise.lock at its root gets
321
324
  exactly those tools on the host, built in a sandbox per tenant and bound
322
325
  read-only into the child. Placement then requires \`toolchain\` in
@@ -703,7 +706,7 @@ export function parseStackArgs(argv) {
703
706
  case "--child-requires": {
704
707
  if (need(a, rest[i + 1])) {
705
708
  const list = rest[++i].split(",").map((x) => x.trim()).filter(Boolean);
706
- if (!list.length || list.some((x) => !/^(node>=[0-9]{1,3}|[a-z][a-z0-9-]{0,47})$/.test(x))) errors.push("--child-requires takes a comma list of node>=<major> or capability names (curl, psql, playwright-chromium-libs)");
709
+ if (!list.length || list.some((x) => !/^(node>=[0-9]{1,3}|[a-z][a-z0-9-]{0,47})$/.test(x))) errors.push("--child-requires takes a comma list of node>=<major> or capability names (curl, git, jq, psql, tar, playwright-chromium-libs)");
707
710
  else opts.childRequires.push(...list.filter((x) => !opts.childRequires.includes(x)));
708
711
  }
709
712
  break;