polydev-ai 1.9.35 → 1.9.36

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.
@@ -2187,9 +2187,10 @@ To re-login: /polydev:login`
2187
2187
  }
2188
2188
  });
2189
2189
 
2190
- // Fast-collect: resolve early once we have maxPerspectives successes OR all complete
2191
- localResults = await this.collectFirstNSuccesses(cliPromises, maxPerspectives);
2192
- console.error(`[Stdio Wrapper] Fast-collect: got ${localResults.filter(r => r.success).length} successful, ${localResults.filter(r => !r.success).length} failed out of ${cliPromises.length} CLIs`);
2190
+ // Wait for ALL CLIs they're free, so always collect all of them
2191
+ // If 3 CLIs available, wait for all 3. If 2, wait for both. Credits fill remaining slots.
2192
+ localResults = await this.collectFirstNSuccesses(cliPromises, cliPromises.length);
2193
+ console.error(`[Stdio Wrapper] CLI collect: got ${localResults.filter(r => r.success).length} successful, ${localResults.filter(r => !r.success).length} failed out of ${cliPromises.length} CLIs`);
2193
2194
  this.sendProgressNotification(progressToken, 55, 100, `Got ${localResults.filter(r => r.success).length} CLI responses`);
2194
2195
  }
2195
2196
 
@@ -2408,8 +2409,8 @@ To re-login: /polydev:login`
2408
2409
  const response = await fetch(`${this.serverUrl}/report-cli-results`, {
2409
2410
  method: 'POST',
2410
2411
  headers: {
2411
- 'Authorization': `Bearer ${this.userToken}`,
2412
2412
  'Content-Type': 'application/json',
2413
+ 'Authorization': `Bearer ${this.userToken}`,
2413
2414
  'User-Agent': 'polydev-stdio-wrapper/1.0.0'
2414
2415
  },
2415
2416
  body: JSON.stringify(reportPayload)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.9.35",
3
+ "version": "1.9.36",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },