@xynogen/pix-models 0.1.9 → 0.1.11
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/README.md +1 -1
- package/package.json +1 -1
- package/src/models.ts +5 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Pi extension — enhanced `/models` picker with coding score/rank.
|
|
|
4
4
|
|
|
5
5
|
## What it does
|
|
6
6
|
|
|
7
|
-
Registers a `/models` slash command that replaces Pi's built-in `/model` selector with a richer TUI picker. Each row shows model
|
|
7
|
+
Registers a `/models` slash command that replaces Pi's built-in `/model` selector with a richer TUI picker. Each row shows the model id, context window, per-million-token cost, and a coding-focused score/rank (with star bar) when available. The list is sorted by coding score (best first), then alphabetically for unscored models. Fuzzy search filters the list as you type. Selecting a model switches the active model for the session. Model metadata is sourced from `~/.cache/pi/` via `pix-data`; the coding score/rank is computed locally from the modelgrep catalog (best = #1). Requires `@xynogen/pix-data` as a dependency.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
package/package.json
CHANGED
package/src/models.ts
CHANGED
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
lookupBenchmark,
|
|
26
26
|
lookupModelsDev,
|
|
27
27
|
} from "@xynogen/pix-data";
|
|
28
|
+
import { icon } from "@xynogen/pix-pretty/icon-catalog";
|
|
28
29
|
import { frameLines, modalWidth } from "@xynogen/pix-pretty/modal-frame";
|
|
29
30
|
import { patchOutBuiltinModelCommand } from "./patch-builtin";
|
|
30
31
|
|
|
@@ -342,7 +343,10 @@ async function showEnhancedPicker(
|
|
|
342
343
|
const mw = modalWidth(w);
|
|
343
344
|
const inner = mw - 4; // CHROME = 2 border + 2 padding
|
|
344
345
|
const lines: string[] = [
|
|
345
|
-
theme.fg(
|
|
346
|
+
theme.fg(
|
|
347
|
+
accent,
|
|
348
|
+
theme.bold(`${icon("picker.model")} Select model`),
|
|
349
|
+
),
|
|
346
350
|
theme.fg(
|
|
347
351
|
"dim",
|
|
348
352
|
"context · pricing · coding rank & score from modelgrep.com",
|