@appoly/multiagent-chat 1.0.2 → 1.0.3

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/main.js +14 -0
  2. package/package.json +2 -3
package/main.js CHANGED
@@ -3,6 +3,20 @@ const { spawn, exec } = require('child_process');
3
3
  const { promisify } = require('util');
4
4
  const pty = require('node-pty');
5
5
  const path = require('path');
6
+
7
+ // Diagnostic: Log node-pty module info for debugging ABI issues
8
+ // Enable with MULTIAGENT_PTY_DEBUG=1
9
+ if (process.env.MULTIAGENT_PTY_DEBUG) {
10
+ try {
11
+ const ptyPath = require.resolve('node-pty');
12
+ console.log('[node-pty] Module path:', ptyPath);
13
+ console.log('[node-pty] Node version:', process.version);
14
+ console.log('[node-pty] Electron version:', process.versions.electron || 'N/A');
15
+ console.log('[node-pty] ABI:', process.versions.modules);
16
+ } catch (e) {
17
+ console.warn('[node-pty] Could not resolve module path:', e.message);
18
+ }
19
+ }
6
20
  const fs = require('fs').promises;
7
21
  const fsSync = require('fs');
8
22
  const os = require('os');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appoly/multiagent-chat",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Multi-agent chat for collaborative AI discussions",
5
5
  "main": "main.js",
6
6
  "bin": {
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "scripts": {
20
20
  "start": "electron .",
21
- "postinstall": "electron-rebuild"
21
+ "postinstall": "npx @electron/rebuild@3.7.2 -w node-pty -f"
22
22
  },
23
23
  "keywords": [
24
24
  "ai",
@@ -44,7 +44,6 @@
44
44
  "@xterm/xterm": "^5.5.0",
45
45
  "chokidar": "^3.5.3",
46
46
  "electron": "^28.0.0",
47
- "electron-rebuild": "^3.2.9",
48
47
  "marked": "^17.0.1",
49
48
  "node-pty": "^1.0.0",
50
49
  "yaml": "^2.3.4"