polydev-ai 1.9.23 → 1.9.24
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 -8
- package/package.json +1 -1
package/mcp/stdio-wrapper.js
CHANGED
|
@@ -1100,11 +1100,10 @@ To authenticate, pass your token directly:
|
|
|
1100
1100
|
perspectivesSection += ` (${perspectiveCount} active)`;
|
|
1101
1101
|
|
|
1102
1102
|
// Show providers in order with their selected models
|
|
1103
|
-
for (
|
|
1104
|
-
const p = modelPrefs.allProviders[i];
|
|
1103
|
+
for (const p of modelPrefs.allProviders) {
|
|
1105
1104
|
const providerName = p.provider.charAt(0).toUpperCase() + p.provider.slice(1);
|
|
1106
1105
|
const source = p.cliId ? 'CLI' : (p.tier ? `Credits/${p.tier}` : 'API');
|
|
1107
|
-
perspectivesSection += `\n ${
|
|
1106
|
+
perspectivesSection += `\n ${providerName.padEnd(12)} ${p.model} [${source}]`;
|
|
1108
1107
|
}
|
|
1109
1108
|
} else {
|
|
1110
1109
|
perspectivesSection += '\n (none configured - using defaults)';
|
|
@@ -2521,9 +2520,6 @@ To re-login: /polydev:login`
|
|
|
2521
2520
|
}
|
|
2522
2521
|
}
|
|
2523
2522
|
|
|
2524
|
-
/**
|
|
2525
|
-
* Combine multiple CLI results and remote perspectives
|
|
2526
|
-
*/
|
|
2527
2523
|
combineAllCliAndPerspectives(localResults, perspectivesResult, args) {
|
|
2528
2524
|
// Ensure perspectivesResult is always an object to prevent undefined errors
|
|
2529
2525
|
const safePersp = perspectivesResult || { success: false, error: 'No response from perspectives server' };
|
|
@@ -2569,8 +2565,8 @@ To re-login: /polydev:login`
|
|
|
2569
2565
|
if (safePersp.raw) {
|
|
2570
2566
|
// Raw content is already formatted - use as-is
|
|
2571
2567
|
formatted += `${safePersp.content}\n\n`;
|
|
2572
|
-
} else {
|
|
2573
|
-
// Legacy formatting
|
|
2568
|
+
} else if (!safePersp.skipped) {
|
|
2569
|
+
// Legacy formatting (only if not skipped — skipped means CLIs filled all slots)
|
|
2574
2570
|
const title = (successfulClis.length === 0) ? 'Perspectives Fallback' : 'Supplemental Multi-Model Perspectives';
|
|
2575
2571
|
formatted += `${title}\n\n`;
|
|
2576
2572
|
formatted += `${safePersp.content}\n\n`;
|
|
@@ -2580,6 +2576,10 @@ To re-login: /polydev:login`
|
|
|
2580
2576
|
formatted += `❌ Perspectives request failed: ${safePersp.error || 'Unknown error'}\n\n`;
|
|
2581
2577
|
}
|
|
2582
2578
|
|
|
2579
|
+
// Strip "LOGIN SUCCESSFUL" banner that leaks from remote server responses
|
|
2580
|
+
// It gets appended to perspective results and pollutes the output
|
|
2581
|
+
formatted = formatted.replace(/\n*LOGIN SUCCESSFUL\n={4,}\n[\s\S]*?Dashboard:.*(\n|$)/g, '');
|
|
2582
|
+
|
|
2583
2583
|
return formatted.trim();
|
|
2584
2584
|
}
|
|
2585
2585
|
|
|
@@ -3119,6 +3119,7 @@ To re-login: /polydev:login`
|
|
|
3119
3119
|
return this.localForceCliDetection({});
|
|
3120
3120
|
}).then(() => {
|
|
3121
3121
|
this._cliDetectionComplete = true;
|
|
3122
|
+
// Display CLI status after detection
|
|
3122
3123
|
return this.displayCliStatus();
|
|
3123
3124
|
}).catch((error) => {
|
|
3124
3125
|
console.error('[Polydev] Auto-login flow error:', error.message);
|