agentgui 1.0.343 → 1.0.344
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 +1 -1
- package/server.js +16 -0
- package/static/index.html +2 -30
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -306,6 +306,18 @@ 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-5', label: 'Claude Sonnet 4.5' },
|
|
314
|
+
{ id: 'claude-haiku-4-5', label: 'Claude Haiku 4.5' },
|
|
315
|
+
{ id: 'claude-opus-4-5', label: 'Claude Opus 4.5' },
|
|
316
|
+
{ id: 'claude-sonnet-4-0', label: 'Claude Sonnet 4' },
|
|
317
|
+
{ id: 'claude-opus-4-0', label: 'Claude Opus 4' },
|
|
318
|
+
],
|
|
319
|
+
};
|
|
320
|
+
|
|
309
321
|
|
|
310
322
|
async function fetchClaudeModelsFromAPI() {
|
|
311
323
|
const apiKey = process.env.ANTHROPIC_API_KEY;
|
|
@@ -431,6 +443,10 @@ async function getModelsForAgent(agentId) {
|
|
|
431
443
|
} catch (_) {}
|
|
432
444
|
}
|
|
433
445
|
|
|
446
|
+
if (AGENT_FALLBACK_MODELS[agentId]) {
|
|
447
|
+
return AGENT_FALLBACK_MODELS[agentId];
|
|
448
|
+
}
|
|
449
|
+
|
|
434
450
|
return [];
|
|
435
451
|
}
|
|
436
452
|
|
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
|
|
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
|
-
|
|
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,
|