@xynogen/pix-models 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/models.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-models",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Pi extension — enhanced /models picker with BenchLM ranks",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/models.ts CHANGED
@@ -179,8 +179,9 @@ async function showEnhancedPicker(
179
179
  let rankPrefix: string;
180
180
  if (localRank) {
181
181
  const rankStr = String(localRank).padEnd(maxRankWidth);
182
- const rankColor =
183
- localRank <= 3 ? "success" : localRank <= 7 ? "warning" : "error";
182
+ // Color rank by the model's bench score (same scale as ⚡score),
183
+ // not by list position keeps the two colors consistent.
184
+ const rankColor = benchScoreColor(bench?.overallScore);
184
185
  rankPrefix = mute("#") + theme.fg(rankColor, rankStr);
185
186
  } else {
186
187
  rankPrefix = " ".repeat(maxRankWidth + 1);