polydev-ai 1.8.6 → 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 +9 -5
- package/package.json +2 -2
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 = {};
|
|
@@ -826,7 +826,11 @@ class StdioMCPWrapper {
|
|
|
826
826
|
if (successfulClis.length > 0) {
|
|
827
827
|
// Show successful CLI responses
|
|
828
828
|
for (const cliResult of successfulClis) {
|
|
829
|
-
|
|
829
|
+
// Display actual model name if detected, otherwise show provider ID
|
|
830
|
+
const modelDisplay = cliResult.model_used && cliResult.model_used !== 'cli_default' && cliResult.model_used !== 'cli_default_fallback'
|
|
831
|
+
? cliResult.model_used
|
|
832
|
+
: cliResult.provider_id;
|
|
833
|
+
formatted += `🟢 **Local CLI Response** (${modelDisplay})\n\n`;
|
|
830
834
|
formatted += `${cliResult.content}\n\n`;
|
|
831
835
|
formatted += `*Latency: ${cliResult.latency_ms || 0}ms | Tokens: ${cliResult.tokens_used || 0}*\n\n`;
|
|
832
836
|
formatted += `---\n\n`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polydev-ai",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.8",
|
|
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.
|
|
70
|
+
"polydev-ai": "^1.8.7",
|
|
71
71
|
"posthog-js": "^1.157.2",
|
|
72
72
|
"prismjs": "^1.30.0",
|
|
73
73
|
"react": "^18.3.1",
|