agentgui 1.0.997 → 1.0.999

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/electron/main.js +5 -1
  2. package/package.json +1 -4
package/electron/main.js CHANGED
@@ -14,9 +14,12 @@ let serverProcess = null;
14
14
  let mainWindow = null;
15
15
 
16
16
  function startServer() {
17
+ // process.execPath is the Electron binary; ELECTRON_RUN_AS_NODE makes it run
18
+ // server.js as a plain Node process instead of spinning up a second
19
+ // Electron/Chromium app runtime just to host the background HTTP server.
17
20
  serverProcess = spawn(process.execPath, ['server.js'], {
18
21
  cwd: ROOT,
19
- env: { ...process.env, PORT: String(PORT) },
22
+ env: { ...process.env, ELECTRON_RUN_AS_NODE: '1', PORT: String(PORT) },
20
23
  stdio: ['ignore', 'pipe', 'pipe'],
21
24
  });
22
25
  serverProcess.stdout.on('data', d => process.stdout.write(`[server] ${d}`));
@@ -32,6 +35,7 @@ function pollReady(retries = 40) {
32
35
  return new Promise((resolve, reject) => {
33
36
  function attempt(n) {
34
37
  http.get(APP_URL, res => {
38
+ res.resume(); // drain the response so the socket is freed between polls
35
39
  if (res.statusCode === 200 || res.statusCode === 401) return resolve();
36
40
  if (n <= 0) return reject(new Error(`Server not ready after polling (last status: ${res.statusCode})`));
37
41
  setTimeout(() => attempt(n - 1), 500);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.997",
3
+ "version": "1.0.999",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",
@@ -27,10 +27,8 @@
27
27
  "@anthropic-ai/claude-code": "^2.1.37",
28
28
  "@google/gemini-cli": "latest",
29
29
  "@kilocode/cli": "latest",
30
- "@lanmower/ccf": "^1.0.4",
31
30
  "better-sqlite3": "^12.9.0",
32
31
  "busboy": "^1.6.0",
33
- "ccfollow": "^1.0.7",
34
32
  "ccsniff": "github:AnEntrypoint/ccsniff#main",
35
33
  "express": "^5.2.1",
36
34
  "fsbrowse": "latest",
@@ -38,7 +36,6 @@
38
36
  "opencode-ai": "^1.2.15",
39
37
  "puppeteer-core": "^24.37.5",
40
38
  "webjsx": "^0.0.73",
41
- "webtalk": "^1.0.31",
42
39
  "ws": "^8.14.2",
43
40
  "xstate": "^5.32.0"
44
41
  },