polydev-ai 1.9.50 → 1.9.51

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/manifest.json CHANGED
@@ -259,6 +259,10 @@
259
259
  "feedback_text": {
260
260
  "type": "string",
261
261
  "description": "Optional: why you ranked them this way"
262
+ },
263
+ "base_model": {
264
+ "type": "string",
265
+ "description": "Optional: the model making this ranking (auto-detected from IDE if not provided, e.g. 'claude-opus-4-6', 'gpt-5.3-codex')"
262
266
  }
263
267
  },
264
268
  "required": ["ranked_models"]
@@ -459,7 +459,23 @@ Token will be saved automatically after login.`
459
459
  if (toolName === 'get_perspectives' || toolName === 'polydev.get_perspectives') {
460
460
  return await this.handleGetPerspectivesWithCLIs(params, id);
461
461
  }
462
-
462
+
463
+ // Enrich rank_perspectives with base model + client info before forwarding
464
+ if (toolName === 'rank_perspectives' || toolName === 'polydev.rank_perspectives') {
465
+ if (params.arguments && !params.arguments.base_model) {
466
+ // Inject base model from IDE client info (set during MCP initialize handshake)
467
+ if (this.clientInfo?.name) {
468
+ params.arguments.base_model = this.clientInfo.name;
469
+ if (this.clientInfo.version) {
470
+ params.arguments.base_model += `/${this.clientInfo.version}`;
471
+ }
472
+ }
473
+ }
474
+ if (params.arguments && !params.arguments.client_id) {
475
+ params.arguments.client_id = 'stdio-wrapper';
476
+ }
477
+ }
478
+
463
479
  // Handle CLI tools locally (support both prefixed and unprefixed names)
464
480
  if (this.isCliTool(toolName)) {
465
481
  return await this.handleLocalCliTool(request);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.9.50",
3
+ "version": "1.9.51",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },
@@ -78,7 +78,7 @@
78
78
  "marked": "^16.2.1",
79
79
  "next": "^15.5.7",
80
80
  "open": "^11.0.0",
81
- "polydev-ai": "^1.8.90",
81
+ "polydev-ai": "^1.9.50",
82
82
  "posthog-js": "^1.157.2",
83
83
  "prismjs": "^1.30.0",
84
84
  "react": "^18.3.1",