polydev-ai 1.8.33 → 1.8.35
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 +9 -8
- package/mcp/manifest.json +3 -3
- package/mcp/server.js +5 -4
- package/package.json +3 -3
package/lib/cliManager.js
CHANGED
|
@@ -415,15 +415,16 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
async sendCliPrompt(providerId, prompt, mode = 'args', timeoutMs = null, model = null) {
|
|
418
|
-
// Set
|
|
418
|
+
// Set default timeout for CLI-within-CLI scenarios (90 seconds)
|
|
419
|
+
// This is important when Claude Code calls Claude Code via Polydev MCP
|
|
419
420
|
if (timeoutMs === null) {
|
|
420
|
-
timeoutMs =
|
|
421
|
+
timeoutMs = 90000; // 90 seconds default for CLI responses
|
|
421
422
|
}
|
|
422
|
-
|
|
423
|
+
|
|
423
424
|
// Ensure timeoutMs is valid (not undefined, null, Infinity, or negative)
|
|
424
425
|
// Allow up to 600 seconds (10 minutes) for very complex operations
|
|
425
426
|
if (!timeoutMs || timeoutMs === Infinity || timeoutMs < 1 || timeoutMs > 600000) {
|
|
426
|
-
timeoutMs =
|
|
427
|
+
timeoutMs = 90000 // Default to 90 seconds for CLI responses
|
|
427
428
|
}
|
|
428
429
|
|
|
429
430
|
const startTime = Date.now();
|
|
@@ -736,11 +737,11 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
736
737
|
}
|
|
737
738
|
}
|
|
738
739
|
|
|
739
|
-
async executeCliCommand(command, args, mode = 'args', timeoutMs =
|
|
740
|
+
async executeCliCommand(command, args, mode = 'args', timeoutMs = 90000, stdinInput) {
|
|
740
741
|
// Ensure timeoutMs is valid (not undefined, null, Infinity, or negative)
|
|
741
|
-
//
|
|
742
|
-
if (!timeoutMs || timeoutMs === Infinity || timeoutMs < 1 || timeoutMs >
|
|
743
|
-
timeoutMs =
|
|
742
|
+
// 90 seconds default for CLI-within-CLI scenarios
|
|
743
|
+
if (!timeoutMs || timeoutMs === Infinity || timeoutMs < 1 || timeoutMs > 600000) {
|
|
744
|
+
timeoutMs = 90000 // Default to 90 seconds
|
|
744
745
|
}
|
|
745
746
|
|
|
746
747
|
return new Promise((resolve, reject) => {
|
package/mcp/manifest.json
CHANGED
|
@@ -370,10 +370,10 @@
|
|
|
370
370
|
},
|
|
371
371
|
"timeout_ms": {
|
|
372
372
|
"type": "integer",
|
|
373
|
-
"description": "Timeout in milliseconds",
|
|
373
|
+
"description": "Timeout in milliseconds (90 seconds default for CLI-within-CLI scenarios)",
|
|
374
374
|
"minimum": 1000,
|
|
375
|
-
"maximum":
|
|
376
|
-
"default":
|
|
375
|
+
"maximum": 600000,
|
|
376
|
+
"default": 90000
|
|
377
377
|
},
|
|
378
378
|
"user_id": {
|
|
379
379
|
"type": "string",
|
package/mcp/server.js
CHANGED
|
@@ -595,12 +595,13 @@ class MCPServer {
|
|
|
595
595
|
console.log('[MCP Server] Send CLI prompt requested');
|
|
596
596
|
|
|
597
597
|
try {
|
|
598
|
-
const { provider_id, prompt, mode = 'args', timeout_ms =
|
|
599
|
-
|
|
598
|
+
const { provider_id, prompt, mode = 'args', timeout_ms = 90000, user_id } = args;
|
|
599
|
+
|
|
600
600
|
// Ensure timeout_ms is valid (not undefined, null, Infinity, or negative)
|
|
601
|
+
// 90 seconds default for CLI-within-CLI scenarios (Claude Code calling Claude Code)
|
|
601
602
|
let validTimeout = timeout_ms;
|
|
602
|
-
if (!validTimeout || validTimeout === Infinity || validTimeout < 1 || validTimeout >
|
|
603
|
-
validTimeout =
|
|
603
|
+
if (!validTimeout || validTimeout === Infinity || validTimeout < 1 || validTimeout > 600000) {
|
|
604
|
+
validTimeout = 90000 // Default to 90 seconds for CLI responses
|
|
604
605
|
}
|
|
605
606
|
|
|
606
607
|
if (!provider_id || !prompt) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polydev-ai",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.35",
|
|
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",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "https://github.com/polydev-ai/perspectives-mcp.git"
|
|
46
|
+
"url": "git+https://github.com/polydev-ai/perspectives-mcp.git"
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://polydev.ai",
|
|
49
49
|
"bugs": {
|
|
@@ -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.
|
|
70
|
+
"polydev-ai": "^1.8.34",
|
|
71
71
|
"posthog-js": "^1.157.2",
|
|
72
72
|
"prismjs": "^1.30.0",
|
|
73
73
|
"react": "^18.3.1",
|