agentgui 1.0.924 → 1.0.925

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/gmgui.cjs +2 -1
  2. package/package.json +4 -4
package/bin/gmgui.cjs CHANGED
@@ -43,7 +43,8 @@ async function gmgui(args = []) {
43
43
 
44
44
  const port = process.env.PORT || 3000;
45
45
  const baseUrl = process.env.BASE_URL || '/gm';
46
- const runtime = 'node';
46
+ const bunAvailable = (() => { try { return spawnSync('bun', ['--version'], { shell: true }).status === 0; } catch { return false; } })();
47
+ const runtime = bunAvailable ? 'bun' : 'node';
47
48
 
48
49
  return new Promise((resolve, reject) => {
49
50
  const ps = spawn(runtime, [path.join(projectRoot, 'server.js')], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.924",
3
+ "version": "1.0.925",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",
@@ -16,9 +16,9 @@
16
16
  },
17
17
  "homepage": "https://github.com/AnEntrypoint/agentgui#readme",
18
18
  "scripts": {
19
- "start": "node server.js",
19
+ "start": "bun server.js || node server.js",
20
20
  "dev": "node server.js --watch",
21
- "postinstall": "node scripts/patch-fsbrowse.js && node scripts/copy-vendor.js",
21
+ "postinstall": "node scripts/patch-fsbrowse.js && node scripts/copy-vendor.js && (cd node_modules/better-sqlite3 && node-gyp rebuild 2>/dev/null) || true",
22
22
  "electron": "electron electron/main.js",
23
23
  "electron:dev": "PORT=3000 electron electron/main.js"
24
24
  },
@@ -28,7 +28,7 @@
28
28
  "@google/gemini-cli": "latest",
29
29
  "@kilocode/cli": "latest",
30
30
  "@lanmower/ccf": "^1.0.4",
31
- "better-sqlite3": "^12.6.2",
31
+ "better-sqlite3": "^12.9.0",
32
32
  "busboy": "^1.6.0",
33
33
  "ccfollow": "^1.0.7",
34
34
  "execa": "^9.6.1",