@appoly/multiagent-chat 1.0.2 → 1.0.6
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/README.md +8 -18
- package/config.yaml +58 -1
- package/index.html +66 -110
- package/main.js +864 -370
- package/package.json +3 -4
- package/preload.js +10 -5
- package/renderer.js +627 -838
- package/styles.css +547 -760
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appoly/multiagent-chat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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-
|
|
21
|
+
"postinstall": "npx @electron/rebuild@3.7.2 -w node-pty -f"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"ai",
|
|
@@ -43,8 +43,7 @@
|
|
|
43
43
|
"@xterm/addon-fit": "^0.10.0",
|
|
44
44
|
"@xterm/xterm": "^5.5.0",
|
|
45
45
|
"chokidar": "^3.5.3",
|
|
46
|
-
"electron": "^28.
|
|
47
|
-
"electron-rebuild": "^3.2.9",
|
|
46
|
+
"electron": "^28.3.3",
|
|
48
47
|
"marked": "^17.0.1",
|
|
49
48
|
"node-pty": "^1.0.0",
|
|
50
49
|
"yaml": "^2.3.4"
|
package/preload.js
CHANGED
|
@@ -2,9 +2,10 @@ const { contextBridge, ipcRenderer } = require('electron');
|
|
|
2
2
|
|
|
3
3
|
console.log('Preload script loading...');
|
|
4
4
|
|
|
5
|
-
// Expose protected methods that allow the renderer process to use
|
|
6
|
-
// the ipcRenderer without exposing the entire object
|
|
7
5
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
6
|
+
// Platform info
|
|
7
|
+
platform: process.platform,
|
|
8
|
+
|
|
8
9
|
// Load configuration
|
|
9
10
|
loadConfig: () => ipcRenderer.invoke('load-config'),
|
|
10
11
|
|
|
@@ -26,7 +27,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|
|
26
27
|
// Stop all agents
|
|
27
28
|
stopAgents: () => ipcRenderer.invoke('stop-agents'),
|
|
28
29
|
|
|
29
|
-
// Reset session (
|
|
30
|
+
// Reset session (mark completed, stop agents)
|
|
30
31
|
resetSession: () => ipcRenderer.invoke('reset-session'),
|
|
31
32
|
|
|
32
33
|
// Start implementation with selected agent
|
|
@@ -35,12 +36,16 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|
|
35
36
|
// Send input to PTY (user typing into terminal)
|
|
36
37
|
sendPtyInput: (agentName, data) => ipcRenderer.send('pty-input', { agentName, data }),
|
|
37
38
|
|
|
39
|
+
// Session Management (new)
|
|
40
|
+
getCurrentWorkspace: () => ipcRenderer.invoke('get-current-workspace'),
|
|
41
|
+
getSessionsForWorkspace: (projectRoot) => ipcRenderer.invoke('get-sessions-for-workspace', projectRoot),
|
|
42
|
+
loadSession: (projectRoot, sessionId) => ipcRenderer.invoke('load-session', { projectRoot, sessionId }),
|
|
43
|
+
resumeSession: (projectRoot, sessionId, newMessage) => ipcRenderer.invoke('resume-session', { projectRoot, sessionId, newMessage }),
|
|
44
|
+
|
|
38
45
|
// Workspace Management
|
|
39
46
|
getRecentWorkspaces: () => ipcRenderer.invoke('get-recent-workspaces'),
|
|
40
47
|
addRecentWorkspace: (path) => ipcRenderer.invoke('add-recent-workspace', path),
|
|
41
48
|
removeRecentWorkspace: (path) => ipcRenderer.invoke('remove-recent-workspace', path),
|
|
42
|
-
updateRecentWorkspacePath: (oldPath, newPath) => ipcRenderer.invoke('update-recent-workspace-path', oldPath, newPath),
|
|
43
|
-
validateWorkspacePath: (path) => ipcRenderer.invoke('validate-workspace-path', path),
|
|
44
49
|
getCurrentDirectory: () => ipcRenderer.invoke('get-current-directory'),
|
|
45
50
|
browseForWorkspace: () => ipcRenderer.invoke('browse-for-workspace'),
|
|
46
51
|
openConfigFolder: () => ipcRenderer.invoke('open-config-folder'),
|