@boxcompute/cli 0.2.3 → 0.2.4
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 +40 -0
- package/README.md +27 -0
- package/dist/cli.js +7 -5
- package/package.json +6 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
This file records user-visible changes to the BoxCompute CLI. GitHub Releases
|
|
4
|
+
use the same notes and bind them to the exact source commit.
|
|
5
|
+
|
|
6
|
+
## [0.2.4] - 2026-09-09
|
|
7
|
+
|
|
8
|
+
`bxc sandbox exec` now leaves arguments after `--` entirely to the program
|
|
9
|
+
running inside the sandbox.
|
|
10
|
+
|
|
11
|
+
### CLI users
|
|
12
|
+
|
|
13
|
+
- Commands such as `bxc sandbox exec SANDBOX_ID -- python --version --json`
|
|
14
|
+
now pass `--version` and `--json` to Python instead of treating them as
|
|
15
|
+
global `bxc` options.
|
|
16
|
+
- No configuration changes are required. Upgrade normally with `bxc update`.
|
|
17
|
+
|
|
18
|
+
### Security
|
|
19
|
+
|
|
20
|
+
No security-relevant changes.
|
|
21
|
+
|
|
22
|
+
## [0.2.3] - 2026-09-06
|
|
23
|
+
|
|
24
|
+
- Added access to retained sandbox logs after runtime deletion.
|
|
25
|
+
|
|
26
|
+
## [0.2.2] - 2026-09-05
|
|
27
|
+
|
|
28
|
+
- Added `bxc update` and its `bxc up` alias.
|
|
29
|
+
|
|
30
|
+
## [0.2.1] - 2026-09-05
|
|
31
|
+
|
|
32
|
+
- Improved release validation and managed skill updates.
|
|
33
|
+
|
|
34
|
+
## [0.2.0] - 2026-09-04
|
|
35
|
+
|
|
36
|
+
- Added the multi-instance Sandbox API v2 commands.
|
|
37
|
+
|
|
38
|
+
## [0.1.1] - 2026-09-04
|
|
39
|
+
|
|
40
|
+
- Initial public npm release with browser login and managed agent skills.
|
package/README.md
CHANGED
|
@@ -70,3 +70,30 @@ bxc update
|
|
|
70
70
|
saved BoxCompute credential and refreshes untouched managed skills before the
|
|
71
71
|
client's next agent session. The new CLI uses v2 for multi-instance sandboxes
|
|
72
72
|
and gives a server-first upgrade message if it reaches an older deployment.
|
|
73
|
+
|
|
74
|
+
## Development
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
bun install --frozen-lockfile
|
|
78
|
+
bun run typecheck
|
|
79
|
+
bun test
|
|
80
|
+
bun run lint
|
|
81
|
+
bun run build
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The application-side authentication and customer Sandbox API implementations
|
|
85
|
+
live in the private `boxcompute/web-agent` repository. Changes to either side of
|
|
86
|
+
that contract must remain backward compatible during rollout: deploy the server
|
|
87
|
+
first, then publish the CLI.
|
|
88
|
+
|
|
89
|
+
## Releases
|
|
90
|
+
|
|
91
|
+
Every user-visible change is recorded in [CHANGELOG.md](CHANGELOG.md). Releases
|
|
92
|
+
use semantic `vMAJOR.MINOR.PATCH` tags and are published from `main` by the
|
|
93
|
+
protected `Publish BoxCompute CLI` workflow. npm trusted publishing supplies a
|
|
94
|
+
short-lived release credential; the repository stores no npm token.
|
|
95
|
+
|
|
96
|
+
## License
|
|
97
|
+
|
|
98
|
+
Copyright © 2026 BoxCompute. All rights reserved. The source is publicly
|
|
99
|
+
visible, but it is not offered under an open-source license.
|
package/dist/cli.js
CHANGED
|
@@ -240,8 +240,10 @@ function flag(tokens, name) {
|
|
|
240
240
|
tokens.splice(index, 1);
|
|
241
241
|
return true;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const
|
|
243
|
+
function globalFlag(tokens, ...names) {
|
|
244
|
+
const separator = tokens.indexOf("--");
|
|
245
|
+
const boundary = separator < 0 ? tokens.length : separator;
|
|
246
|
+
const index = tokens.findIndex((token, position) => position < boundary && names.includes(token));
|
|
245
247
|
if (index < 0)
|
|
246
248
|
return false;
|
|
247
249
|
tokens.splice(index, 1);
|
|
@@ -398,13 +400,13 @@ export async function runCli(argv, supplied = {}) {
|
|
|
398
400
|
const skillText = supplied.readSkill ?? readSkill;
|
|
399
401
|
const syncSkills = supplied.syncManagedSkills ?? syncManagedSkills;
|
|
400
402
|
const args = [...argv];
|
|
401
|
-
const json =
|
|
402
|
-
const versionRequested = args[0] === "version" ||
|
|
403
|
+
const json = globalFlag(args, "--json");
|
|
404
|
+
const versionRequested = args[0] === "version" || globalFlag(args, "--version", "-V", "-v");
|
|
403
405
|
if (versionRequested) {
|
|
404
406
|
emit(io, json, { version: CLI_VERSION }, `${CLI_VERSION}\n`);
|
|
405
407
|
return 0;
|
|
406
408
|
}
|
|
407
|
-
const helpRequested =
|
|
409
|
+
const helpRequested = globalFlag(args, "--help", "-h");
|
|
408
410
|
if (!args.length || args[0] === "help" || helpRequested) {
|
|
409
411
|
const helpTarget = args[0] === "help" ? args[1] : args[0];
|
|
410
412
|
write(io.stdout, helpFor(helpTarget));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boxcompute/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Connect local AI agents to BoxCompute sandboxes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"boxcompute",
|
|
@@ -11,18 +11,19 @@
|
|
|
11
11
|
"homepage": "https://app.boxcompute.ai",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/boxcompute/
|
|
15
|
-
"directory": "apps/cli"
|
|
14
|
+
"url": "git+https://github.com/boxcompute/cli.git"
|
|
16
15
|
},
|
|
17
16
|
"bugs": {
|
|
18
|
-
"url": "https://github.com/boxcompute/
|
|
17
|
+
"url": "https://github.com/boxcompute/cli/issues"
|
|
19
18
|
},
|
|
19
|
+
"license": "UNLICENSED",
|
|
20
20
|
"type": "module",
|
|
21
21
|
"bin": {
|
|
22
22
|
"bxc": "dist/cli.js",
|
|
23
23
|
"bcompute": "dist/cli.js"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
|
+
"CHANGELOG.md",
|
|
26
27
|
"dist",
|
|
27
28
|
"skills"
|
|
28
29
|
],
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
"publishConfig": {
|
|
33
34
|
"access": "public"
|
|
34
35
|
},
|
|
36
|
+
"packageManager": "bun@1.3.14",
|
|
35
37
|
"scripts": {
|
|
36
38
|
"build": "tsc -p tsconfig.build.json",
|
|
37
39
|
"lint": "oxlint --max-warnings 0 src test",
|