agentgui 1.0.410 → 1.0.412
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/lib/ws-optimizer.js +1 -1
- package/package.json +1 -1
- package/server.js +3 -3
package/lib/ws-optimizer.js
CHANGED
|
@@ -70,7 +70,7 @@ class ClientQueue {
|
|
|
70
70
|
this.windowStart = now;
|
|
71
71
|
this.rateLimitWarned = false;
|
|
72
72
|
}
|
|
73
|
-
const batch = [...this.highPriority.splice(0), ...this.normalPriority.splice(0
|
|
73
|
+
const batch = [...this.highPriority.splice(0), ...this.normalPriority.splice(0), ...this.lowPriority.splice(0, 5)];
|
|
74
74
|
if (batch.length === 0) return;
|
|
75
75
|
const messagesThisSecond = this.messageCount + batch.length;
|
|
76
76
|
if (messagesThisSecond > 100) {
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -504,10 +504,9 @@ async function getModelsForAgent(agentId) {
|
|
|
504
504
|
|
|
505
505
|
if (agentId === 'claude-code') {
|
|
506
506
|
const hardcodedModels = [
|
|
507
|
-
{ id: '', label: 'Default' },
|
|
507
|
+
{ id: 'haiku', label: 'Haiku (Default)' },
|
|
508
508
|
{ id: 'sonnet', label: 'Sonnet' },
|
|
509
509
|
{ id: 'opus', label: 'Opus' },
|
|
510
|
-
{ id: 'haiku', label: 'Haiku' },
|
|
511
510
|
];
|
|
512
511
|
|
|
513
512
|
const apiModels = await fetchClaudeModelsFromAPI();
|
|
@@ -3865,7 +3864,8 @@ const BROADCAST_TYPES = new Set([
|
|
|
3865
3864
|
'conversations_updated', 'conversation_deleted', 'queue_status', 'queue_updated',
|
|
3866
3865
|
'rate_limit_hit', 'rate_limit_clear',
|
|
3867
3866
|
'script_started', 'script_stopped', 'script_output',
|
|
3868
|
-
'model_download_progress', 'stt_progress', 'tts_setup_progress', 'voice_list'
|
|
3867
|
+
'model_download_progress', 'stt_progress', 'tts_setup_progress', 'voice_list',
|
|
3868
|
+
'streaming_start', 'streaming_progress', 'streaming_complete', 'streaming_error'
|
|
3869
3869
|
]);
|
|
3870
3870
|
|
|
3871
3871
|
const wsOptimizer = new WSOptimizer();
|