agentgui 1.0.408 → 1.0.410

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/package.json +4 -3
  2. package/static/js/client.js +17 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.408",
3
+ "version": "1.0.410",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -23,9 +23,8 @@
23
23
  "dependencies": {
24
24
  "@anthropic-ai/claude-code": "^2.1.37",
25
25
  "@google/gemini-cli": "latest",
26
- "@kilocode/cli": "latest",
27
- "opencode-ai": "latest",
28
26
  "@huggingface/transformers": "^3.8.1",
27
+ "@kilocode/cli": "latest",
29
28
  "audio-decode": "^2.2.3",
30
29
  "better-sqlite3": "^12.6.2",
31
30
  "busboy": "^1.6.0",
@@ -34,6 +33,8 @@
34
33
  "fsbrowse": "^0.2.18",
35
34
  "google-auth-library": "^10.5.0",
36
35
  "onnxruntime-node": "1.21.0",
36
+ "opencode-ai": "latest",
37
+ "puppeteer-core": "^24.37.5",
37
38
  "webtalk": "^1.0.31",
38
39
  "ws": "^8.14.2"
39
40
  },
@@ -1008,26 +1008,25 @@ class AgentGUIClient {
1008
1008
  </div>
1009
1009
  `).join('');
1010
1010
 
1011
- queueEl.querySelectorAll('.queue-delete-btn').forEach(btn => {
1012
- btn.addEventListener('click', async (e) => {
1013
- const index = parseInt(e.target.dataset.index);
1014
- const msgId = queue[index].messageId;
1015
- if (await window.UIDialog.confirm('Delete this queued message?', 'Delete Message')) {
1016
- await window.wsClient.rpc('q.del', { id: conversationId, messageId: msgId });
1017
- }
1018
- });
1019
- });
1020
-
1021
- queueEl.querySelectorAll('.queue-edit-btn').forEach(btn => {
1022
- btn.addEventListener('click', async (e) => {
1023
- const index = parseInt(e.target.dataset.index);
1024
- const q = queue[index];
1025
- const newContent = await window.UIDialog.prompt('Edit message:', q.content, 'Edit Queued Message');
1026
- if (newContent !== null && newContent !== q.content) {
1027
- window.wsClient.rpc('q.upd', { id: conversationId, messageId: q.messageId, content: newContent });
1011
+ if (!queueEl._listenersAttached) {
1012
+ queueEl._listenersAttached = true;
1013
+ queueEl.addEventListener('click', async (e) => {
1014
+ if (e.target.classList.contains('queue-delete-btn')) {
1015
+ const index = parseInt(e.target.dataset.index);
1016
+ const msgId = queue[index].messageId;
1017
+ if (await window.UIDialog.confirm('Delete this queued message?', 'Delete Message')) {
1018
+ await window.wsClient.rpc('q.del', { id: conversationId, messageId: msgId });
1019
+ }
1020
+ } else if (e.target.classList.contains('queue-edit-btn')) {
1021
+ const index = parseInt(e.target.dataset.index);
1022
+ const q = queue[index];
1023
+ const newContent = await window.UIDialog.prompt('Edit message:', q.content, 'Edit Queued Message');
1024
+ if (newContent !== null && newContent !== q.content) {
1025
+ window.wsClient.rpc('q.upd', { id: conversationId, messageId: q.messageId, content: newContent });
1026
+ }
1028
1027
  }
1029
1028
  });
1030
- });
1029
+ }
1031
1030
  } catch (err) {
1032
1031
  console.error('Failed to fetch queue:', err);
1033
1032
  }