polydev-ai 1.8.44 → 1.8.46
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/server.js +3 -3
- package/mcp/stdio-wrapper.js +3 -3
- package/package.json +1 -1
package/mcp/server.js
CHANGED
|
@@ -595,13 +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 =
|
|
598
|
+
const { provider_id, prompt, mode = 'args', timeout_ms = 240000, user_id } = args;
|
|
599
599
|
|
|
600
600
|
// Ensure timeout_ms is valid (not undefined, null, Infinity, or negative)
|
|
601
|
-
//
|
|
601
|
+
// 240 seconds (4 minutes) default for CLI-within-CLI scenarios (Claude Code calling Claude Code)
|
|
602
602
|
let validTimeout = timeout_ms;
|
|
603
603
|
if (!validTimeout || validTimeout === Infinity || validTimeout < 1 || validTimeout > 600000) {
|
|
604
|
-
validTimeout =
|
|
604
|
+
validTimeout = 240000 // Default to 240 seconds (4 minutes) for CLI responses
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
if (!provider_id || !prompt) {
|
package/mcp/stdio-wrapper.js
CHANGED
|
@@ -602,12 +602,12 @@ class StdioMCPWrapper {
|
|
|
602
602
|
console.error(`[Stdio Wrapper] Local CLI prompt sending with perspectives`);
|
|
603
603
|
|
|
604
604
|
try {
|
|
605
|
-
let { provider_id, prompt, mode = 'args', timeout_ms =
|
|
605
|
+
let { provider_id, prompt, mode = 'args', timeout_ms = 240000 } = args;
|
|
606
606
|
|
|
607
607
|
// Ensure timeout_ms is valid (not undefined, null, Infinity, or negative)
|
|
608
|
-
// Default to
|
|
608
|
+
// Default to 4 minutes (240 seconds) for complex CLI responses
|
|
609
609
|
if (!timeout_ms || timeout_ms === Infinity || timeout_ms < 1 || timeout_ms > 600000) {
|
|
610
|
-
timeout_ms =
|
|
610
|
+
timeout_ms = 240000; // Default to 4 minutes for CLI responses
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
if (!prompt) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polydev-ai",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.46",
|
|
4
4
|
"mcpName": "io.github.backspacevenkat/perspectives",
|
|
5
5
|
"description": "Agentic workflow assistant with CLI integration - get diverse perspectives from multiple LLMs when stuck or need enhanced reasoning",
|
|
6
6
|
"keywords": [
|