polydev-ai 1.8.26 → 1.8.28

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');
@@ -848,7 +848,9 @@ class StdioMCPWrapper {
848
848
  max_tokens: args.max_tokens || 20000
849
849
  };
850
850
 
851
- const response = await fetch(`${this.serverUrl.replace('/mcp', '')}/api/mcp/report-cli-results`, {
851
+ // serverUrl is 'https://www.polydev.ai/api/mcp'
852
+ // We need 'https://www.polydev.ai/api/mcp/report-cli-results'
853
+ const response = await fetch(`${this.serverUrl}/report-cli-results`, {
852
854
  method: 'POST',
853
855
  headers: {
854
856
  'Authorization': `Bearer ${this.userToken}`,
@@ -960,11 +962,13 @@ class StdioMCPWrapper {
960
962
 
961
963
  console.error(`[Stdio Wrapper] Calling remote perspectives (excluding: ${excludeProviders.join(', ') || 'none'}, requesting: ${requestProviders.map(p => p.provider).join(', ') || 'any'}, max: ${maxPerspectives})`);
962
964
 
963
- // Format CLI responses for logging on the server
964
- const cliResponses = localResults.map(result => ({
965
+ // Format ONLY SUCCESSFUL CLI responses for logging on the server
966
+ // Failed CLI results should not be sent - they will get API fallback
967
+ const successfulCliResults = localResults.filter(r => r.success);
968
+ const cliResponses = successfulCliResults.map(result => ({
965
969
  provider_id: result.provider_id,
966
970
  model: result.model_used || this.getDefaultModelForCli(result.provider_id),
967
- content: result.content || '',
971
+ content: cleanCliResponse(result.content || ''),
968
972
  tokens_used: result.tokens_used || 0,
969
973
  latency_ms: result.latency_ms || 0,
970
974
  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.28",
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",