agentgui 1.0.289 → 1.0.290

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 +1 -1
  2. package/server.js +12 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.289",
3
+ "version": "1.0.290",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/server.js CHANGED
@@ -2611,13 +2611,20 @@ const server = http.createServer(async (req, res) => {
2611
2611
  try {
2612
2612
  const { getStatus } = await getSpeech();
2613
2613
  const baseStatus = getStatus();
2614
- const r = createRequire(import.meta.url);
2615
- const serverTTS = r('webtalk/server-tts');
2616
- const pyInfo = serverTTS.detectPython();
2614
+ let pythonDetected = false, pythonVersion = null;
2615
+ try {
2616
+ const r = createRequire(import.meta.url);
2617
+ const serverTTS = r('webtalk/server-tts');
2618
+ if (typeof serverTTS.detectPython === 'function') {
2619
+ const pyInfo = serverTTS.detectPython();
2620
+ pythonDetected = pyInfo.found;
2621
+ pythonVersion = pyInfo.version || null;
2622
+ }
2623
+ } catch(e) {}
2617
2624
  sendJSON(req, res, 200, {
2618
2625
  ...baseStatus,
2619
- pythonDetected: pyInfo.found,
2620
- pythonVersion: pyInfo.version || null,
2626
+ pythonDetected,
2627
+ pythonVersion,
2621
2628
  setupMessage: baseStatus.ttsReady ? 'pocket-tts ready' : 'Will setup on first TTS request',
2622
2629
  modelsDownloading: modelDownloadState.downloading,
2623
2630
  modelsComplete: modelDownloadState.complete,