polydev-ai 1.8.26 → 1.8.27

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.
@@ -814,7 +814,7 @@ class StdioMCPWrapper {
814
814
  * Failed CLI results are not stored - they will get API fallback instead
815
815
  */
816
816
  async reportCliResultsToServer(prompt, localResults, args = {}) {
817
- // Only report successful CLI results (failed ones will get API fallback)
817
+ // Only report successful results to dashboard
818
818
  const successfulResults = localResults.filter(r => r.success);
819
819
  if (successfulResults.length === 0) {
820
820
  console.error('[Stdio Wrapper] No successful CLI results to report');
@@ -960,11 +960,13 @@ class StdioMCPWrapper {
960
960
 
961
961
  console.error(`[Stdio Wrapper] Calling remote perspectives (excluding: ${excludeProviders.join(', ') || 'none'}, requesting: ${requestProviders.map(p => p.provider).join(', ') || 'any'}, max: ${maxPerspectives})`);
962
962
 
963
- // Format CLI responses for logging on the server
964
- const cliResponses = localResults.map(result => ({
963
+ // Format ONLY SUCCESSFUL CLI responses for logging on the server
964
+ // Failed CLI results should not be sent - they will get API fallback
965
+ const successfulCliResults = localResults.filter(r => r.success);
966
+ const cliResponses = successfulCliResults.map(result => ({
965
967
  provider_id: result.provider_id,
966
968
  model: result.model_used || this.getDefaultModelForCli(result.provider_id),
967
- content: result.content || '',
969
+ content: cleanCliResponse(result.content || ''),
968
970
  tokens_used: result.tokens_used || 0,
969
971
  latency_ms: result.latency_ms || 0,
970
972
  success: result.success || false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.8.26",
3
+ "version": "1.8.27",
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",