@sandbox-agent/cli 0.1.4-rc.6 → 0.1.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/bin/sandbox-agent +1 -16
- package/package.json +5 -5
package/bin/sandbox-agent
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const { execFileSync } = require("child_process");
|
|
3
3
|
const path = require("path");
|
|
4
|
-
const fs = require("fs");
|
|
5
|
-
|
|
6
|
-
// Handle --version / -V at the launcher level to report npm package version
|
|
7
|
-
// This ensures version matches what's installed via npm, not what's compiled into the binary
|
|
8
|
-
const args = process.argv.slice(2);
|
|
9
|
-
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V")) {
|
|
10
|
-
const pkgJsonPath = path.join(__dirname, "..", "package.json");
|
|
11
|
-
try {
|
|
12
|
-
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, "utf-8"));
|
|
13
|
-
console.log(`sandbox-agent ${pkgJson.version}`);
|
|
14
|
-
process.exit(0);
|
|
15
|
-
} catch (e) {
|
|
16
|
-
// Fall through to binary if we can't read package.json
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
4
|
|
|
20
5
|
const PLATFORMS = {
|
|
21
6
|
"darwin-arm64": "@sandbox-agent/cli-darwin-arm64",
|
|
@@ -34,7 +19,7 @@ if (!pkg) {
|
|
|
34
19
|
try {
|
|
35
20
|
const pkgPath = require.resolve(`${pkg}/package.json`);
|
|
36
21
|
const bin = process.platform === "win32" ? "sandbox-agent.exe" : "sandbox-agent";
|
|
37
|
-
execFileSync(path.join(path.dirname(pkgPath), "bin", bin),
|
|
22
|
+
execFileSync(path.join(path.dirname(pkgPath), "bin", bin), process.argv.slice(2), { stdio: "inherit" });
|
|
38
23
|
} catch (e) {
|
|
39
24
|
if (e.status !== undefined) process.exit(e.status);
|
|
40
25
|
throw e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sandbox-agent/cli",
|
|
3
|
-
"version": "0.1.4
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "CLI for sandbox-agent - run AI coding agents in sandboxes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"vitest": "^3.0.0"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@sandbox-agent/cli-darwin-arm64": "0.1.4
|
|
18
|
-
"@sandbox-agent/cli-
|
|
19
|
-
"@sandbox-agent/cli-
|
|
20
|
-
"@sandbox-agent/cli-
|
|
17
|
+
"@sandbox-agent/cli-darwin-arm64": "0.1.4",
|
|
18
|
+
"@sandbox-agent/cli-darwin-x64": "0.1.4",
|
|
19
|
+
"@sandbox-agent/cli-linux-x64": "0.1.4",
|
|
20
|
+
"@sandbox-agent/cli-win32-x64": "0.1.4"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"bin"
|