agentgui 1.0.224 → 1.0.226
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/gmgui.cjs +6 -12
- package/package.json +2 -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
|
-
|
|
22
|
-
|
|
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 =
|
|
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.
|
|
3
|
+
"version": "1.0.226",
|
|
4
4
|
"description": "Multi-agent ACP client with real-time communication",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "server.js",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"fsbrowse": "^0.2.17",
|
|
31
31
|
"google-auth-library": "^10.5.0",
|
|
32
32
|
"onnxruntime-node": "^1.24.1",
|
|
33
|
+
"sttttsmodels": "github:AnEntrypoint/sttttsmodels",
|
|
33
34
|
"webtalk": "github:AnEntrypoint/webtalk",
|
|
34
35
|
"ws": "^8.14.2"
|
|
35
36
|
},
|