@modelstatus/cli 0.1.33 → 0.1.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelstatus/cli",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Track which AI models you use, where, and never get surprised by a retirement. Free offline model-health for any repo (mm status), browser sign-in for cloud inventory + alerts.",
5
5
  "keywords": [
6
6
  "llm",
@@ -44,7 +44,11 @@ export function InventoryView({ client, ui, dir = ".", active, width = 78, heigh
44
44
  // syntax-highlighted snippet as the Here tab, shown below the list (the side
45
45
  // drawer stays). Reads the local file at source_path:source_line if present;
46
46
  // keyed on scalar fields so it isn't re-read from disk on every re-render.
47
- const matchStr = cur ? (cur.custom_model_name || (cur.model_display || "").split("/").pop() || cur.model_display) : null;
47
+ // Highlight what's actually IN the code: the canonical id ("claude-sonnet-4-6"),
48
+ // not the human display name ("Claude Sonnet 4.6") — the latter never appears in
49
+ // source, so readSnippet would find nothing to highlight. Custom ids carry their
50
+ // own detected string; fall back to display only when there's no id at all.
51
+ const matchStr = cur ? (cur.custom_model_name || cur.canonical_id || cur.model_display) : null;
48
52
  const snippet = React.useMemo(() => {
49
53
  if (!cur || !cur.source_path) return null;
50
54
  // Search from the launch dir UPWARD — the inventory may be viewed from a