agentgui 1.0.343 → 1.0.345

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.343",
3
+ "version": "1.0.345",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/server.js CHANGED
@@ -306,6 +306,19 @@ const AGENT_MODEL_COMMANDS = {
306
306
  'kilo': 'kilo models',
307
307
  };
308
308
 
309
+ const AGENT_FALLBACK_MODELS = {
310
+ 'claude-code': [
311
+ { id: '', label: 'Default' },
312
+ { id: 'claude-opus-4-6', label: 'Claude Opus 4.6' },
313
+ { id: 'claude-sonnet-4-6', label: 'Claude Sonnet 4.6' },
314
+ { id: 'claude-sonnet-4-5', label: 'Claude Sonnet 4.5' },
315
+ { id: 'claude-haiku-4-5', label: 'Claude Haiku 4.5' },
316
+ { id: 'claude-opus-4-5', label: 'Claude Opus 4.5' },
317
+ { id: 'claude-sonnet-4-0', label: 'Claude Sonnet 4' },
318
+ { id: 'claude-opus-4-0', label: 'Claude Opus 4' },
319
+ ],
320
+ };
321
+
309
322
 
310
323
  async function fetchClaudeModelsFromAPI() {
311
324
  const apiKey = process.env.ANTHROPIC_API_KEY;
@@ -431,6 +444,10 @@ async function getModelsForAgent(agentId) {
431
444
  } catch (_) {}
432
445
  }
433
446
 
447
+ if (AGENT_FALLBACK_MODELS[agentId]) {
448
+ return AGENT_FALLBACK_MODELS[agentId];
449
+ }
450
+
434
451
  return [];
435
452
  }
436
453
 
package/static/index.html CHANGED
@@ -2170,40 +2170,12 @@
2170
2170
  .tool-result-success .folded-tool-name { color: #374151; font-weight: 600; }
2171
2171
  html.dark .tool-result-success .folded-tool-name { color: #d1d5db; }
2172
2172
 
2173
- /* --- Tool_use parent: has-success / has-error indicators on header --- */
2174
- .folded-tool.has-success { background: #f3f4f6; }
2175
- html.dark .folded-tool.has-success { background: #1f2937; }
2176
- .folded-tool.has-success > .folded-tool-bar { background: #e5e7eb; }
2177
- html.dark .folded-tool.has-success > .folded-tool-bar { background: #374151; }
2178
- .folded-tool.has-success > .folded-tool-bar:hover { background: #d1d5db; }
2179
- html.dark .folded-tool.has-success > .folded-tool-bar:hover { background: #4b5563; }
2173
+ /* --- Tool_use parent: has-success / has-error indicators (icon/arrow only, preserves tool colors) --- */
2180
2174
  .folded-tool.has-success > .folded-tool-bar::before { color: #16a34a; }
2181
2175
  html.dark .folded-tool.has-success > .folded-tool-bar::before { color: #4ade80; }
2182
- .folded-tool.has-success .folded-tool-icon { color: #16a34a; }
2183
- html.dark .folded-tool.has-success .folded-tool-icon { color: #4ade80; }
2184
- .folded-tool.has-success .folded-tool-name { color: #374151; }
2185
- html.dark .folded-tool.has-success .folded-tool-name { color: #d1d5db; }
2186
- .folded-tool.has-success .folded-tool-desc { color: #6b7280; }
2187
- html.dark .folded-tool.has-success .folded-tool-desc { color: #9ca3af; }
2188
- .folded-tool.has-success > .folded-tool-body { border-top-color: #d1d5db; }
2189
- html.dark .folded-tool.has-success > .folded-tool-body { border-top-color: #4b5563; }
2190
-
2191
- .folded-tool.has-error { background: #f3f4f6; }
2192
- html.dark .folded-tool.has-error { background: #1f2937; }
2193
- .folded-tool.has-error > .folded-tool-bar { background: #e5e7eb; }
2194
- html.dark .folded-tool.has-error > .folded-tool-bar { background: #374151; }
2195
- .folded-tool.has-error > .folded-tool-bar:hover { background: #d1d5db; }
2196
- html.dark .folded-tool.has-error > .folded-tool-bar:hover { background: #4b5563; }
2176
+
2197
2177
  .folded-tool.has-error > .folded-tool-bar::before { color: #ef4444; }
2198
2178
  html.dark .folded-tool.has-error > .folded-tool-bar::before { color: #f87171; }
2199
- .folded-tool.has-error .folded-tool-icon { color: #ef4444; }
2200
- html.dark .folded-tool.has-error .folded-tool-icon { color: #f87171; }
2201
- .folded-tool.has-error .folded-tool-name { color: #374151; }
2202
- html.dark .folded-tool.has-error .folded-tool-name { color: #d1d5db; }
2203
- .folded-tool.has-error .folded-tool-desc { color: #6b7280; }
2204
- html.dark .folded-tool.has-error .folded-tool-desc { color: #9ca3af; }
2205
- .folded-tool.has-error > .folded-tool-body { border-top-color: #d1d5db; }
2206
- html.dark .folded-tool.has-error > .folded-tool-body { border-top-color: #4b5563; }
2207
2179
 
2208
2180
  /* --- Success/Error status icons in header --- */
2209
2181
  .folded-tool.has-success > .folded-tool-bar .folded-tool-icon::after,