agentgui 1.0.368 → 1.0.370

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/server.js +12 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.368",
3
+ "version": "1.0.370",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -30,7 +30,7 @@
30
30
  "fsbrowse": "^0.2.18",
31
31
  "google-auth-library": "^10.5.0",
32
32
  "onnxruntime-node": "1.21.0",
33
- "webtalk": "^1.0.22",
33
+ "webtalk": "file:../webtalk",
34
34
  "ws": "^8.14.2"
35
35
  },
36
36
  "overrides": {
package/server.js CHANGED
@@ -119,11 +119,21 @@ async function ensureModelsDownloaded() {
119
119
  ttsModelsDir: path.join(modelsBase, 'tts'),
120
120
  });
121
121
 
122
+ // Progress callback for broadcasting download progress
123
+ const onProgress = (progress) => {
124
+ broadcastModelProgress({
125
+ ...progress,
126
+ started: true,
127
+ done: false,
128
+ downloading: true
129
+ });
130
+ };
131
+
122
132
  broadcastModelProgress({ started: true, done: false, downloading: true, type: 'whisper', status: 'starting' });
123
- await ensureModel('onnx-community/whisper-base', config);
133
+ await ensureModel('onnx-community/whisper-base', config, onProgress);
124
134
 
125
135
  broadcastModelProgress({ started: true, done: false, downloading: true, type: 'tts', status: 'starting' });
126
- await ensureTTSModels(config);
136
+ await ensureTTSModels(config, onProgress);
127
137
 
128
138
  modelDownloadState.complete = true;
129
139
  broadcastModelProgress({ started: true, done: true, complete: true, downloading: false });