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.
- package/bin/bone.js +7 -6
- 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
|
-
//
|
|
24
|
-
//
|
|
25
|
-
|
|
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
|
|
29
|
-
|
|
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": "
|
|
4
|
-
"description": "
|
|
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": "
|
|
13
|
-
"bone-agent-linux-arm64": "
|
|
14
|
-
"bone-agent-darwin-x64": "
|
|
15
|
-
"bone-agent-darwin-arm64": "
|
|
16
|
-
"bone-agent-windows-x64": "
|
|
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"
|