polydev-ai 1.8.7 → 1.8.8
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/mcp/stdio-wrapper.js +4 -4
- package/package.json +1 -1
package/mcp/stdio-wrapper.js
CHANGED
|
@@ -443,19 +443,19 @@ class StdioMCPWrapper {
|
|
|
443
443
|
console.error(`[Stdio Wrapper] Local CLI prompt sending with perspectives`);
|
|
444
444
|
|
|
445
445
|
try {
|
|
446
|
-
let { provider_id, prompt, mode = 'args', timeout_ms =
|
|
446
|
+
let { provider_id, prompt, mode = 'args', timeout_ms = 180000 } = args;
|
|
447
447
|
|
|
448
448
|
// Ensure timeout_ms is valid (not undefined, null, Infinity, or negative)
|
|
449
449
|
if (!timeout_ms || timeout_ms === Infinity || timeout_ms < 1 || timeout_ms > 300000) {
|
|
450
|
-
timeout_ms =
|
|
450
|
+
timeout_ms = 180000; // Default to 180 seconds for CLI responses
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
if (!prompt) {
|
|
454
454
|
throw new Error('prompt is required');
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
// Use
|
|
458
|
-
const gracefulTimeout = Math.min(timeout_ms,
|
|
457
|
+
// Use configured timeout but cap at 5 minutes max
|
|
458
|
+
const gracefulTimeout = Math.min(timeout_ms, 300000);
|
|
459
459
|
|
|
460
460
|
// Fetch user's model preferences (cached, non-blocking on failure)
|
|
461
461
|
let modelPreferences = {};
|
package/package.json
CHANGED