@appoly/multiagent-chat 1.0.3 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appoly/multiagent-chat",
3
- "version": "1.0.3",
3
+ "version": "1.0.7",
4
4
  "description": "Multi-agent chat for collaborative AI discussions",
5
5
  "main": "main.js",
6
6
  "bin": {
@@ -43,7 +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.0.0",
46
+ "electron": "^28.3.3",
47
47
  "marked": "^17.0.1",
48
48
  "node-pty": "^1.0.0",
49
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 (clear chat, plan, stop agents)
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'),