bladebro 4.0.0 → 4.0.2

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.
Files changed (2) hide show
  1. package/bin.js +7 -0
  2. package/package.json +6 -6
package/bin.js CHANGED
@@ -60,6 +60,13 @@ const result = spawnSync(binPath, process.argv.slice(2), {
60
60
  if (result.signal) {
61
61
  // Re-raise the signal so the parent process sees it
62
62
  process.kill(process.pid, result.signal);
63
+ } else if (result.error) {
64
+ // The binary could not be spawned (missing exec bit, wrong arch, deleted
65
+ // file). Without this branch the shim exited 0 while nothing ran — a
66
+ // silent no-op that scripts and agents read as success.
67
+ process.stderr.write('bladebro: failed to launch ' + binPath + ': ' + result.error.message + '\n');
68
+ process.stderr.write('Reinstall: npm install bladebro\n');
69
+ process.exit(1);
63
70
  } else {
64
71
  process.exit(result.status || 0);
65
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bladebro",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Stealthy and efficient agentic browser driver for AI agents. Few tools, full control, real stealth, max token efficiency.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -48,11 +48,11 @@
48
48
  "LICENSE"
49
49
  ],
50
50
  "optionalDependencies": {
51
- "bladebro-linux-x64": "4.0.0",
52
- "bladebro-linux-arm64": "4.0.0",
53
- "bladebro-darwin-x64": "4.0.0",
54
- "bladebro-darwin-arm64": "4.0.0",
55
- "bladebro-windows-x64": "4.0.0"
51
+ "bladebro-linux-x64": "4.0.2",
52
+ "bladebro-linux-arm64": "4.0.2",
53
+ "bladebro-darwin-x64": "4.0.2",
54
+ "bladebro-darwin-arm64": "4.0.2",
55
+ "bladebro-windows-x64": "4.0.2"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=14"