@modelstatus/cli 0.1.79 → 0.1.80

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/tui/app.js +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelstatus/cli",
3
- "version": "0.1.79",
3
+ "version": "0.1.80",
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",
package/src/tui/app.js CHANGED
@@ -115,6 +115,16 @@ function useTermDims() {
115
115
  return { outer: Math.min(cols || 80, 220), termRows: computeTermRows(rows) };
116
116
  }
117
117
 
118
+ /** Append the always-available globals every tab shares. Order = truncation
119
+ * priority (KeyBar drops the tail first on narrow terminals): feedback before
120
+ * play so the useful key survives longer than the easter egg. */
121
+ function withGlobalKeys(keys) {
122
+ const out = [...keys];
123
+ if (!out.some((k) => k.k === "!")) out.push({ k: "!", label: "feedback" });
124
+ if (!out.some((k) => k.k === "P")) out.push({ k: "P", label: "play 🦍" });
125
+ return out;
126
+ }
127
+
118
128
  function PromptRow({ prompt }) {
119
129
  if (!prompt) return h(Text, {}, "");
120
130
  return h(
@@ -341,7 +351,7 @@ export function App({ apiBase, apiKey, dir, initialView, onSignedIn, fresh }) {
341
351
  feedback?.stage === "strip" ? h(FeedbackStrip, null) : h(Text, {}, ""),
342
352
  toast ? h(Text, { color: toast.color }, ` ${toast.msg}`) : h(Text, {}, ""),
343
353
  h(StatusBar, { segsLeft, segsRight, width: W }),
344
- h(KeyBar, { keys: keys.some((k) => k.k === "P") ? keys : [...keys, { k: "P", label: "play 🦍" }], width: W }),
354
+ h(KeyBar, { keys: feedback?.stage === "card" ? keys : withGlobalKeys(keys), width: W }),
345
355
  );
346
356
  }
347
357