agentgui 1.0.336 → 1.0.338

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": "agentgui",
3
- "version": "1.0.336",
3
+ "version": "1.0.338",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/static/index.html CHANGED
@@ -497,26 +497,6 @@
497
497
  }
498
498
  .terminal-output { flex: 1; overflow: hidden; position: relative; }
499
499
 
500
- .models-container {
501
- flex: 1; display: flex; flex-direction: column; overflow-y: auto;
502
- align-items: flex-start; padding: 2rem;
503
- }
504
- .models-panel {
505
- display: flex; flex-direction: column; gap: 1rem;
506
- background: var(--color-bg-secondary); border-radius: 0.5rem;
507
- padding: 1.5rem; min-width: 280px;
508
- }
509
- .models-panel h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
510
- .models-panel label {
511
- display: flex; flex-direction: column; gap: 0.25rem;
512
- font-size: 0.8rem; color: var(--color-text-secondary); font-weight: 500;
513
- }
514
- .models-panel select {
515
- padding: 0.5rem; border: 1px solid var(--color-border);
516
- border-radius: 0.375rem; background: var(--color-bg-primary);
517
- color: var(--color-text-primary); font-size: 0.875rem; cursor: pointer;
518
- }
519
-
520
500
  /* --- View toggle bar --- */
521
501
  .view-toggle-bar {
522
502
  display: flex;
@@ -834,6 +814,9 @@
834
814
  font-size: 0.8rem;
835
815
  cursor: pointer;
836
816
  flex-shrink: 0;
817
+ width: auto;
818
+ min-width: 80px;
819
+ max-width: 200px;
837
820
  }
838
821
 
839
822
  .agent-selector:disabled, .model-selector:disabled {
@@ -851,7 +834,9 @@
851
834
  font-size: 0.8rem;
852
835
  cursor: pointer;
853
836
  flex-shrink: 0;
854
- max-width: 160px;
837
+ width: auto;
838
+ min-width: 80px;
839
+ max-width: 220px;
855
840
  }
856
841
 
857
842
  .model-selector:empty, .model-selector[data-empty="true"] {
@@ -2050,24 +2035,24 @@
2050
2035
  .tool-color-default > .folded-tool-body { border-top-color: #a5f3fc; }
2051
2036
  html.dark .tool-color-default > .folded-tool-body { border-top-color: #164e63; }
2052
2037
 
2053
- .block-type-tool_result { background: #f0fdf4; }
2054
- html.dark .block-type-tool_result { background: #0a1f0f; }
2055
- .block-type-tool_result .tool-result-status { background: #dcfce7; }
2056
- html.dark .block-type-tool_result .tool-result-status { background: #0f2b1a; }
2038
+ .block-type-tool_result { background: #f3f4f6; }
2039
+ html.dark .block-type-tool_result { background: #1f2937; }
2040
+ .block-type-tool_result .tool-result-status { background: #e5e7eb; }
2041
+ html.dark .block-type-tool_result .tool-result-status { background: #374151; }
2057
2042
  .block-type-tool_result .folded-tool-icon { color: #16a34a; }
2058
2043
  html.dark .block-type-tool_result .folded-tool-icon { color: #4ade80; }
2059
- .block-type-tool_result .folded-tool-name { color: #166534; }
2060
- html.dark .block-type-tool_result .folded-tool-name { color: #86efac; }
2061
- .block-type-tool_result > .folded-tool-body { border-top-color: #bbf7d0; }
2062
- html.dark .block-type-tool_result > .folded-tool-body { border-top-color: #166534; }
2063
- .block-type-tool_result.tool-result-error { background: #fef2f2; }
2064
- html.dark .block-type-tool_result.tool-result-error { background: #1c0f0f; }
2065
- .block-type-tool_result.tool-result-error .tool-result-status { background: #fee2e2; }
2066
- html.dark .block-type-tool_result.tool-result-error .tool-result-status { background: #2c1010; }
2044
+ .block-type-tool_result .folded-tool-name { color: #374151; }
2045
+ html.dark .block-type-tool_result .folded-tool-name { color: #d1d5db; }
2046
+ .block-type-tool_result > .folded-tool-body { border-top-color: #d1d5db; }
2047
+ html.dark .block-type-tool_result > .folded-tool-body { border-top-color: #4b5563; }
2048
+ .block-type-tool_result.tool-result-error { background: #f3f4f6; }
2049
+ html.dark .block-type-tool_result.tool-result-error { background: #1f2937; }
2050
+ .block-type-tool_result.tool-result-error .tool-result-status { background: #e5e7eb; }
2051
+ html.dark .block-type-tool_result.tool-result-error .tool-result-status { background: #374151; }
2067
2052
  .block-type-tool_result.tool-result-error .folded-tool-icon { color: #dc2626; }
2068
2053
  html.dark .block-type-tool_result.tool-result-error .folded-tool-icon { color: #f87171; }
2069
- .block-type-tool_result.tool-result-error .folded-tool-name { color: #991b1b; }
2070
- html.dark .block-type-tool_result.tool-result-error .folded-tool-name { color: #fca5a5; }
2054
+ .block-type-tool_result.tool-result-error .folded-tool-name { color: #374151; }
2055
+ html.dark .block-type-tool_result.tool-result-error .folded-tool-name { color: #d1d5db; }
2071
2056
 
2072
2057
  .block-type-code { background: #1e293b; }
2073
2058
  html.dark .block-type-code { background: #0f172a; }
@@ -2175,51 +2160,51 @@
2175
2160
 
2176
2161
  /* --- Tool result success styling in body --- */
2177
2162
  .tool-result-success .tool-result-status {
2178
- background: #dcfce7;
2163
+ background: #e5e7eb;
2179
2164
  padding: 0.4rem 0.75rem;
2180
2165
  }
2181
2166
  html.dark .tool-result-success .tool-result-status {
2182
- background: #0f2b1a;
2167
+ background: #374151;
2183
2168
  }
2184
2169
  .tool-result-success .folded-tool-icon { color: #16a34a; }
2185
2170
  html.dark .tool-result-success .folded-tool-icon { color: #4ade80; }
2186
- .tool-result-success .folded-tool-name { color: #166534; font-weight: 600; }
2187
- html.dark .tool-result-success .folded-tool-name { color: #86efac; }
2171
+ .tool-result-success .folded-tool-name { color: #374151; font-weight: 600; }
2172
+ html.dark .tool-result-success .folded-tool-name { color: #d1d5db; }
2188
2173
 
2189
2174
  /* --- Tool_use parent: has-success / has-error indicators on header --- */
2190
- .folded-tool.has-success { background: #f0fdf4; }
2191
- html.dark .folded-tool.has-success { background: #0a1f0f; }
2192
- .folded-tool.has-success > .folded-tool-bar { background: #dcfce7; }
2193
- html.dark .folded-tool.has-success > .folded-tool-bar { background: #0f2b1a; }
2194
- .folded-tool.has-success > .folded-tool-bar:hover { background: #bbf7d0; }
2195
- html.dark .folded-tool.has-success > .folded-tool-bar:hover { background: #14532d; }
2175
+ .folded-tool.has-success { background: #f3f4f6; }
2176
+ html.dark .folded-tool.has-success { background: #1f2937; }
2177
+ .folded-tool.has-success > .folded-tool-bar { background: #e5e7eb; }
2178
+ html.dark .folded-tool.has-success > .folded-tool-bar { background: #374151; }
2179
+ .folded-tool.has-success > .folded-tool-bar:hover { background: #d1d5db; }
2180
+ html.dark .folded-tool.has-success > .folded-tool-bar:hover { background: #4b5563; }
2196
2181
  .folded-tool.has-success > .folded-tool-bar::before { color: #16a34a; }
2197
2182
  html.dark .folded-tool.has-success > .folded-tool-bar::before { color: #4ade80; }
2198
2183
  .folded-tool.has-success .folded-tool-icon { color: #16a34a; }
2199
2184
  html.dark .folded-tool.has-success .folded-tool-icon { color: #4ade80; }
2200
- .folded-tool.has-success .folded-tool-name { color: #166534; }
2201
- html.dark .folded-tool.has-success .folded-tool-name { color: #86efac; }
2202
- .folded-tool.has-success .folded-tool-desc { color: #15803d; }
2203
- html.dark .folded-tool.has-success .folded-tool-desc { color: #4ade80; }
2204
- .folded-tool.has-success > .folded-tool-body { border-top-color: #bbf7d0; }
2205
- html.dark .folded-tool.has-success > .folded-tool-body { border-top-color: #166534; }
2206
-
2207
- .folded-tool.has-error { background: #fef2f2; }
2208
- html.dark .folded-tool.has-error { background: #1c0f0f; }
2209
- .folded-tool.has-error > .folded-tool-bar { background: #fee2e2; }
2210
- html.dark .folded-tool.has-error > .folded-tool-bar { background: #2c1010; }
2211
- .folded-tool.has-error > .folded-tool-bar:hover { background: #fecaca; }
2212
- html.dark .folded-tool.has-error > .folded-tool-bar:hover { background: #451a1a; }
2185
+ .folded-tool.has-success .folded-tool-name { color: #374151; }
2186
+ html.dark .folded-tool.has-success .folded-tool-name { color: #d1d5db; }
2187
+ .folded-tool.has-success .folded-tool-desc { color: #6b7280; }
2188
+ html.dark .folded-tool.has-success .folded-tool-desc { color: #9ca3af; }
2189
+ .folded-tool.has-success > .folded-tool-body { border-top-color: #d1d5db; }
2190
+ html.dark .folded-tool.has-success > .folded-tool-body { border-top-color: #4b5563; }
2191
+
2192
+ .folded-tool.has-error { background: #f3f4f6; }
2193
+ html.dark .folded-tool.has-error { background: #1f2937; }
2194
+ .folded-tool.has-error > .folded-tool-bar { background: #e5e7eb; }
2195
+ html.dark .folded-tool.has-error > .folded-tool-bar { background: #374151; }
2196
+ .folded-tool.has-error > .folded-tool-bar:hover { background: #d1d5db; }
2197
+ html.dark .folded-tool.has-error > .folded-tool-bar:hover { background: #4b5563; }
2213
2198
  .folded-tool.has-error > .folded-tool-bar::before { color: #ef4444; }
2214
2199
  html.dark .folded-tool.has-error > .folded-tool-bar::before { color: #f87171; }
2215
2200
  .folded-tool.has-error .folded-tool-icon { color: #ef4444; }
2216
2201
  html.dark .folded-tool.has-error .folded-tool-icon { color: #f87171; }
2217
- .folded-tool.has-error .folded-tool-name { color: #991b1b; }
2218
- html.dark .folded-tool.has-error .folded-tool-name { color: #fca5a5; }
2219
- .folded-tool.has-error .folded-tool-desc { color: #b91c1c; }
2220
- html.dark .folded-tool.has-error .folded-tool-desc { color: #f87171; }
2221
- .folded-tool.has-error > .folded-tool-body { border-top-color: #fecaca; }
2222
- html.dark .folded-tool.has-error > .folded-tool-body { border-top-color: #7f1d1d; }
2202
+ .folded-tool.has-error .folded-tool-name { color: #374151; }
2203
+ html.dark .folded-tool.has-error .folded-tool-name { color: #d1d5db; }
2204
+ .folded-tool.has-error .folded-tool-desc { color: #6b7280; }
2205
+ html.dark .folded-tool.has-error .folded-tool-desc { color: #9ca3af; }
2206
+ .folded-tool.has-error > .folded-tool-body { border-top-color: #d1d5db; }
2207
+ html.dark .folded-tool.has-error > .folded-tool-body { border-top-color: #4b5563; }
2223
2208
 
2224
2209
  /* --- Success/Error status icons in header --- */
2225
2210
  .folded-tool.has-success > .folded-tool-bar .folded-tool-icon::after,
@@ -3045,7 +3030,6 @@
3045
3030
  <button class="view-toggle-btn active" data-view="chat">Chat</button>
3046
3031
  <button class="view-toggle-btn" data-view="files">Files</button>
3047
3032
  <button class="view-toggle-btn" data-view="voice" style="display:none;">Voice</button>
3048
- <button class="view-toggle-btn" data-view="models">Models</button>
3049
3033
  <button class="view-toggle-btn" data-view="terminal" id="terminalTabBtn">Terminal</button>
3050
3034
  </div>
3051
3035
 
@@ -3067,13 +3051,6 @@
3067
3051
  <iframe id="fileBrowserIframe" class="file-browser-iframe"></iframe>
3068
3052
  </div>
3069
3053
 
3070
- <!-- Models/Agent selector view -->
3071
- <div id="modelsContainer" class="models-container" style="display:none;">
3072
- <div class="models-panel">
3073
- <h3>Agent &amp; Model</h3>
3074
- <label>Agent<select class="agent-selector" data-agent-selector-models title="Select agent"></select></label>
3075
- <label>Model<select class="model-selector" data-model-selector-models title="Select model" data-empty="true"></select></label>
3076
- </div>
3077
3054
  </div>
3078
3055
 
3079
3056
  <!-- Terminal output view -->
@@ -346,7 +346,6 @@
346
346
  var fileIframe = document.getElementById('fileBrowserIframe');
347
347
  var voiceContainer = document.getElementById('voiceContainer');
348
348
  var terminalContainer = document.getElementById('terminalContainer');
349
- var modelsContainer = document.getElementById('modelsContainer');
350
349
 
351
350
  if (!bar) return;
352
351
 
@@ -359,8 +358,7 @@
359
358
  if (fileBrowser) fileBrowser.style.display = view === 'files' ? 'flex' : 'none';
360
359
  if (voiceContainer) voiceContainer.style.display = view === 'voice' ? 'flex' : 'none';
361
360
  if (terminalContainer) terminalContainer.style.display = view === 'terminal' ? 'flex' : 'none';
362
- if (modelsContainer) modelsContainer.style.display = view === 'models' ? 'flex' : 'none';
363
-
361
+
364
362
  if (view === 'files' && fileIframe && currentConversation) {
365
363
  var src = BASE + '/files/' + currentConversation + '/';
366
364
  if (fileIframe.src !== location.origin + src) {
@@ -373,29 +371,11 @@
373
371
  } else if (view !== 'voice' && window.voiceModule) {
374
372
  window.voiceModule.deactivate();
375
373
  }
376
-
377
- if (view === 'models') syncModelsPanelFromMain();
374
+
378
375
 
379
376
  window.dispatchEvent(new CustomEvent('view-switched', { detail: { view: view } }));
380
377
  }
381
378
 
382
- function syncModelsPanelFromMain() {
383
- var mainAgent = document.querySelector('[data-agent-selector]');
384
- var mainModel = document.querySelector('[data-model-selector]');
385
- var panelAgent = document.querySelector('[data-agent-selector-models]');
386
- var panelModel = document.querySelector('[data-model-selector-models]');
387
- if (!panelAgent || !panelModel) return;
388
- if (mainAgent && panelAgent.innerHTML !== mainAgent.innerHTML) {
389
- panelAgent.innerHTML = mainAgent.innerHTML;
390
- panelAgent.value = mainAgent.value;
391
- }
392
- if (mainModel && panelModel.innerHTML !== mainModel.innerHTML) {
393
- panelModel.innerHTML = mainModel.innerHTML;
394
- panelModel.value = mainModel.value;
395
- }
396
- panelAgent.onchange = function() { if (mainAgent) { mainAgent.value = panelAgent.value; mainAgent.dispatchEvent(new Event('change')); } };
397
- panelModel.onchange = function() { if (mainModel) { mainModel.value = panelModel.value; mainModel.dispatchEvent(new Event('change')); } };
398
- }
399
379
 
400
380
  function updateViewToggleVisibility() {
401
381
  var bar = document.getElementById('viewToggleBar');