agent-toolkit-cli 1.13.0 → 1.14.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.
@@ -57,13 +57,21 @@ function missingBinaryMessage() {
57
57
  return [
58
58
  "agent-toolkit: native V binary not found (ADR-025).",
59
59
  " npm optionalDependencies should install agent-toolkit-cli-<os>-<cpu>.",
60
- " Dev: make build-cli, or set AGENT_TOOLKIT_BIN to that executable.",
60
+ " Dev: ./make.vsh build-cli, or set AGENT_TOOLKIT_BIN to that executable.",
61
61
  "",
62
62
  ].join("\n");
63
63
  }
64
64
 
65
65
  function runNative(binPath, argv) {
66
- const child = spawn(binPath, argv, {
66
+ // Native Release binaries are .exe / ELF / Mach-O. For Windows tests (and rare
67
+ // AGENT_TOOLKIT_BIN=.js helpers), invoke via node so spawn does not need shell.
68
+ let command = binPath;
69
+ let args = argv;
70
+ if (process.platform === "win32" && /\.js$/i.test(binPath)) {
71
+ command = process.execPath;
72
+ args = [binPath, ...argv];
73
+ }
74
+ const child = spawn(command, args, {
67
75
  stdio: "inherit",
68
76
  windowsHide: true,
69
77
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-toolkit-cli",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Thin Node launcher for the agent-toolkit native V CLI (same product as PyPI)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,11 +28,11 @@
28
28
  "test": "node --test test/launcher.test.js"
29
29
  },
30
30
  "optionalDependencies": {
31
- "agent-toolkit-cli-linux-x64": "1.13.0",
32
- "agent-toolkit-cli-linux-arm64": "1.13.0",
33
- "agent-toolkit-cli-darwin-arm64": "1.13.0",
34
- "agent-toolkit-cli-darwin-x64": "1.13.0",
35
- "agent-toolkit-cli-win32-x64": "1.13.0"
31
+ "agent-toolkit-cli-linux-x64": "1.14.0",
32
+ "agent-toolkit-cli-linux-arm64": "1.14.0",
33
+ "agent-toolkit-cli-darwin-arm64": "1.14.0",
34
+ "agent-toolkit-cli-darwin-x64": "1.14.0",
35
+ "agent-toolkit-cli-win32-x64": "1.14.0"
36
36
  },
37
37
  "keywords": [
38
38
  "agent-toolkit",