agentgui 1.0.243 → 1.0.245
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 +3 -2
- package/static/js/client.js +14 -0
- package/static/js/features.js +2 -2
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -73,7 +73,7 @@ async function ensureModelsDownloaded() {
|
|
|
73
73
|
config.modelsDir = path.dirname(sttDir);
|
|
74
74
|
config.ttsModelsDir = ttsDir;
|
|
75
75
|
config.sttModelsDir = sttDir;
|
|
76
|
-
config.whisperBaseUrl = 'https://huggingface.co/
|
|
76
|
+
config.whisperBaseUrl = 'https://huggingface.co/';
|
|
77
77
|
config.ttsBaseUrl = 'https://huggingface.co/datasets/AnEntrypoint/sttttsmodels/resolve/main/tts/';
|
|
78
78
|
|
|
79
79
|
const totalFiles = 16;
|
|
@@ -82,7 +82,7 @@ async function ensureModelsDownloaded() {
|
|
|
82
82
|
if (!sttOk) {
|
|
83
83
|
console.log('[MODELS] Downloading STT model...');
|
|
84
84
|
broadcastModelProgress({ started: true, done: false, downloading: true, type: 'stt', completedFiles, totalFiles });
|
|
85
|
-
await webtalkWhisper.ensureModel('whisper-base', config);
|
|
85
|
+
await webtalkWhisper.ensureModel('onnx-community/whisper-base', config);
|
|
86
86
|
completedFiles += 10;
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -3031,6 +3031,7 @@ async function processMessageWithStreaming(conversationId, messageId, sessionId,
|
|
|
3031
3031
|
error: error.message,
|
|
3032
3032
|
isPrematureEnd: error.isPrematureEnd || false,
|
|
3033
3033
|
exitCode: error.exitCode,
|
|
3034
|
+
stderrText: error.stderrText,
|
|
3034
3035
|
recoverable: elapsed < 60000,
|
|
3035
3036
|
timestamp: Date.now()
|
|
3036
3037
|
});
|
package/static/js/client.js
CHANGED
|
@@ -793,6 +793,20 @@ class AgentGUIClient {
|
|
|
793
793
|
// Stop polling for chunks
|
|
794
794
|
this.stopChunkPolling();
|
|
795
795
|
|
|
796
|
+
// If this is a premature ACP end, render distinct warning block
|
|
797
|
+
if (data.isPrematureEnd) {
|
|
798
|
+
this.renderer.queueEvent({
|
|
799
|
+
type: 'streaming_error',
|
|
800
|
+
isPrematureEnd: true,
|
|
801
|
+
exitCode: data.exitCode,
|
|
802
|
+
error: data.error,
|
|
803
|
+
stderrText: data.stderrText,
|
|
804
|
+
sessionId: data.sessionId,
|
|
805
|
+
conversationId: data.conversationId,
|
|
806
|
+
timestamp: data.timestamp || Date.now()
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
|
|
796
810
|
const sessionId = data.sessionId || this.state.currentSession?.id;
|
|
797
811
|
const streamingEl = document.getElementById(`streaming-${sessionId}`);
|
|
798
812
|
if (streamingEl) {
|
package/static/js/features.js
CHANGED
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
function isVoiceReady() {
|
|
201
|
-
if (window.agentGUIClient && window.agentGUIClient._modelDownloadInProgress
|
|
202
|
-
return window.agentGUIClient._modelDownloadProgress?.done === true ||
|
|
201
|
+
if (window.agentGUIClient && !window.agentGUIClient._modelDownloadInProgress) {
|
|
202
|
+
return window.agentGUIClient._modelDownloadProgress?.done === true ||
|
|
203
203
|
window.agentGUIClient._modelDownloadProgress?.complete === true;
|
|
204
204
|
}
|
|
205
205
|
return false;
|