@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 +4 -0
- package/daemon/bin/darwin-arm64/botbuddy-daemon +0 -0
- package/daemon/bin/linux-x64/botbuddy-daemon +0 -0
- package/daemon-release/darwin-arm64.json +4 -4
- package/daemon-release/linux-x64.json +4 -4
- package/daemon-release/manifest.json +5 -5
- package/package.json +1 -1
- package/src/stack.mjs +7 -4
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.
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.98.0",
|
|
3
|
+
"source_commit": "f70520dbd07ae88734fc20255f4431cce58cdae7",
|
|
4
|
+
"source_sha256": "502e1d2c3098347e283dae7ecd616f0b05f85ac8c702084a770d4fcd2421f7f4",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "d2f7f37484bf5e303969718b070bd302b2d8c0166607cc44035a24f9161c8a27"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.98.0",
|
|
3
|
+
"source_commit": "f70520dbd07ae88734fc20255f4431cce58cdae7",
|
|
4
|
+
"source_sha256": "502e1d2c3098347e283dae7ecd616f0b05f85ac8c702084a770d4fcd2421f7f4",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "729a3ae9cdc67d1ff123b792bba2f70c95308b08674b0fc781257c6508df88c3"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
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": "
|
|
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": "
|
|
18
|
+
"sha256": "729a3ae9cdc67d1ff123b792bba2f70c95308b08674b0fc781257c6508df88c3",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
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
|
|
318
|
-
they run inside a child's sandbox on that host (BOT-3402).
|
|
319
|
-
|
|
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;
|