@modelstatus/cli 0.1.50 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tui/app.js +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelstatus/cli",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
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
@@ -59,13 +59,16 @@ const CHROME_ROWS = 10;
59
59
  * (e.g. =5 or =7) without waiting for a release; 0 opts out entirely.
60
60
  */
61
61
  export function rowsReserve(env = process.env) {
62
- // Only a non-blank, integer-valued string overrides (so `MM_TUI_RESERVE_ROWS=`
63
- // or stray whitespace falls back to the default rather than being read as 0 —
64
- // `Number("")` is 0). `=0` is honored as an explicit opt-out.
62
+ // Any non-blank INTEGER string overrides (so `MM_TUI_RESERVE_ROWS=` or stray
63
+ // whitespace falls back to the default rather than being read as 0 —
64
+ // `Number("")` is 0). The override may be NEGATIVE: a negative reserve GROWS the
65
+ // frame past the terminal height (termRows = rows - reserve), so the knob goes
66
+ // both ways — positive shrinks the frame, negative grows it — letting a user
67
+ // find the exact offset their terminal (e.g. Warp) needs in either direction.
65
68
  const raw = env.MM_TUI_RESERVE_ROWS;
66
69
  if (typeof raw === "string" && raw.trim() !== "") {
67
70
  const n = Number(raw);
68
- if (Number.isInteger(n) && n >= 0) return n;
71
+ if (Number.isInteger(n)) return n;
69
72
  }
70
73
  return env.TERM_PROGRAM === "WarpTerminal" ? 6 : 1;
71
74
  }