@modelstatus/cli 0.1.56 → 0.1.58

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 +8 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelstatus/cli",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
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
@@ -44,13 +44,14 @@ const CHROME_ROWS = 10;
44
44
  // the frame, NEGATIVE grows it past the reported height.
45
45
  // - 1 everywhere: a full-height ink frame write+newlines its bottom line and
46
46
  // scrolls the buffer up 1/render; the 1-row reserve keeps the last line blank.
47
- // - -7 in Warp: empirically (the user dialing it live in their Warp), the frame
48
- // must be GROWN ~7 rows past stdout.rows or the top clips Warp's block model
49
- // reports/handles the alt-screen height such that a flush-height frame rides too
50
- // high. So in Warp we render TALLER, which pushes the window down into view.
51
- // Gated on Warp (a negative reserve elsewhere would over-grow + clip the top of
52
- // a normal full-screen terminal).
53
- const WARP_RESERVE = -7;
47
+ // - -3 in Warp: Warp under-reports the alt-screen height its TRUE full-screen
48
+ // viewport is stdout.rows + 3, so the frame must be exactly that tall to fill it
49
+ // without clipping. DERIVED from two clean (no-poll) data points in the user's
50
+ // Warp: reserve -7 clipped 4 rows off the top, -11 clipped 8 (clip = -reserve-3),
51
+ // so clip hits 0 at reserve = -3. A taller frame (more negative) OVER-grows and
52
+ // scrolls the top — incl. the tab-strip nav — off the alt screen (unrecoverable;
53
+ // no scrollback). Gated on Warp (this offset is Warp-specific).
54
+ const WARP_RESERVE = -3;
54
55
 
55
56
  /** True when running under Warp (TERM_PROGRAM=WarpTerminal, or any WARP_* env, or
56
57
  * TERM_PROGRAM merely containing "warp" — broad so detection doesn't silently