agentgui 1.0.224 → 1.0.225

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 +6 -12
  2. package/package.json +1 -1
package/bin/gmgui.cjs CHANGED
@@ -5,21 +5,15 @@ const fs = require('fs');
5
5
 
6
6
  const projectRoot = path.join(__dirname, '..');
7
7
 
8
- function hasBun() {
9
- try {
10
- spawnSync('which', ['bun'], { stdio: 'pipe' });
11
- return true;
12
- } catch {
13
- return false;
14
- }
15
- }
16
-
17
8
  async function gmgui(args = []) {
18
9
  const command = args[0] || 'start';
19
10
 
20
11
  if (command === 'start') {
21
- const useBun = hasBun();
22
- const installer = useBun ? 'bun' : 'npm';
12
+ // Always use node as runtime for reliability. When invoked via bunx,
13
+ // dependencies are already managed. When invoked via npm/npx, we install
14
+ // dependencies ourselves. This avoids ENOENT errors on systems where bun
15
+ // may not be in PATH even though bunx works.
16
+ const installer = 'npm';
23
17
 
24
18
  // Ensure dependencies are installed only if node_modules is missing
25
19
  // Skip this for bunx which manages dependencies independently
@@ -39,7 +33,7 @@ async function gmgui(args = []) {
39
33
 
40
34
  const port = process.env.PORT || 3000;
41
35
  const baseUrl = process.env.BASE_URL || '/gm';
42
- const runtime = useBun ? 'bun' : 'node';
36
+ const runtime = 'node';
43
37
 
44
38
  return new Promise((resolve, reject) => {
45
39
  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.224",
3
+ "version": "1.0.225",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",