polydev-ai 1.8.7 → 1.8.9

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/cliManager.js CHANGED
@@ -379,15 +379,15 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
379
379
  }
380
380
 
381
381
  async sendCliPrompt(providerId, prompt, mode = 'args', timeoutMs = null, model = null) {
382
- // Set provider-specific default timeouts (180s for all by default, complex prompts take time)
382
+ // Set provider-specific default timeouts (5 minutes for all by default, complex prompts take time)
383
383
  if (timeoutMs === null) {
384
- timeoutMs = 180000; // 180 seconds default for all providers
384
+ timeoutMs = 300000; // 300 seconds (5 minutes) default for all providers
385
385
  }
386
386
 
387
387
  // Ensure timeoutMs is valid (not undefined, null, Infinity, or negative)
388
- // Allow up to 300 seconds (5 minutes) for complex operations
389
- if (!timeoutMs || timeoutMs === Infinity || timeoutMs < 1 || timeoutMs > 300000) {
390
- timeoutMs = 180000 // Default to 180 seconds
388
+ // Allow up to 600 seconds (10 minutes) for very complex operations
389
+ if (!timeoutMs || timeoutMs === Infinity || timeoutMs < 1 || timeoutMs > 600000) {
390
+ timeoutMs = 300000 // Default to 5 minutes
391
391
  }
392
392
 
393
393
  const startTime = Date.now();
@@ -443,19 +443,20 @@ 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 = 30000 } = args;
446
+ let { provider_id, prompt, mode = 'args', timeout_ms = 300000 } = args;
447
447
 
448
448
  // Ensure timeout_ms is valid (not undefined, null, Infinity, or negative)
449
- if (!timeout_ms || timeout_ms === Infinity || timeout_ms < 1 || timeout_ms > 300000) {
450
- timeout_ms = 30000; // Default to 30 seconds
449
+ // Default to 5 minutes (300 seconds) for complex CLI responses
450
+ if (!timeout_ms || timeout_ms === Infinity || timeout_ms < 1 || timeout_ms > 600000) {
451
+ timeout_ms = 300000; // Default to 5 minutes for CLI responses
451
452
  }
452
453
 
453
454
  if (!prompt) {
454
455
  throw new Error('prompt is required');
455
456
  }
456
457
 
457
- // Use reasonable timeout for CLI responses (180 seconds for complex prompts)
458
- const gracefulTimeout = Math.min(timeout_ms, 180000);
458
+ // Use configured timeout but cap at 10 minutes max for safety
459
+ const gracefulTimeout = Math.min(timeout_ms, 600000);
459
460
 
460
461
  // Fetch user's model preferences (cached, non-blocking on failure)
461
462
  let modelPreferences = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.8.7",
3
+ "version": "1.8.9",
4
4
  "description": "Agentic workflow assistant with CLI integration - get diverse perspectives from multiple LLMs when stuck or need enhanced reasoning",
5
5
  "keywords": [
6
6
  "mcp",
@@ -67,7 +67,7 @@
67
67
  "lucide-react": "^0.542.0",
68
68
  "marked": "^16.2.1",
69
69
  "next": "^15.5.7",
70
- "polydev-ai": "^1.8.7",
70
+ "polydev-ai": "^1.8.9",
71
71
  "posthog-js": "^1.157.2",
72
72
  "prismjs": "^1.30.0",
73
73
  "react": "^18.3.1",