bone-agent 2.4.5 → 3.0.1

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/bone.js +7 -6
  2. package/package.json +7 -7
package/bin/bone.js CHANGED
@@ -20,13 +20,14 @@ if (!packageName) {
20
20
  process.exit(1);
21
21
  }
22
22
 
23
- // Windows cannot replace a running executable. Handle npm updates in the
24
- // launcher before starting bone.exe so npm can atomically replace the native
25
- // package without hitting a file lock.
26
- if (process.platform === 'win32' && args[0] === 'update') {
23
+ // The native binary has no self-update, so handle `bone update` here through
24
+ // npm. This also avoids Windows' lock on the running bone.exe.
25
+ if (args[0] === 'update') {
27
26
  console.log('Updating bone through npm...');
28
- const update = spawnSync('npm.cmd', ['install', '-g', 'bone-agent@latest'], {
29
- stdio: 'inherit'
27
+ const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
28
+ const update = spawnSync(npm, ['install', '-g', 'bone-agent@latest'], {
29
+ stdio: 'inherit',
30
+ shell: process.platform === 'win32'
30
31
  });
31
32
  if (update.error) {
32
33
  console.error(update.error.message);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bone-agent",
3
- "version": "2.4.5",
4
- "description": "A terminal-based AI coding assistant",
3
+ "version": "3.0.1",
4
+ "description": "Bone: a terminal AI coding agent with a Lua-scriptable core and TUI",
5
5
  "bin": {
6
6
  "bone": "bin/bone.js"
7
7
  },
@@ -9,11 +9,11 @@
9
9
  "bin"
10
10
  ],
11
11
  "optionalDependencies": {
12
- "bone-agent-linux-x64": "2.4.5",
13
- "bone-agent-linux-arm64": "2.4.5",
14
- "bone-agent-darwin-x64": "2.4.5",
15
- "bone-agent-darwin-arm64": "2.4.5",
16
- "bone-agent-windows-x64": "2.4.5"
12
+ "bone-agent-linux-x64": "3.0.1",
13
+ "bone-agent-linux-arm64": "3.0.1",
14
+ "bone-agent-darwin-x64": "3.0.1",
15
+ "bone-agent-darwin-arm64": "3.0.1",
16
+ "bone-agent-windows-x64": "3.0.1"
17
17
  },
18
18
  "engines": {
19
19
  "node": ">=18"