@vincemakes/kiso-tui 0.1.39 → 0.1.40

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/dist/render.d.ts CHANGED
@@ -247,6 +247,10 @@ export interface RecapStats {
247
247
  readonly tools: number;
248
248
  readonly edits: number;
249
249
  readonly usage: RunUsage;
250
+ /** R-C item 4: the per-turn cache miss (min(prevIn, in) − cacheRead),
251
+ * passed only when above the noise floor — the re-sent-uncached
252
+ * prefix. Absent → the recap bytes stay the historical form. */
253
+ readonly missed?: number;
250
254
  readonly ctxLeftPct: number | null;
251
255
  /** W19 — the mode the turn ran under. Under "plan" the recap becomes
252
256
  * the way-forward row (the claimed shape): a plan turn's currency is
package/dist/render.js CHANGED
@@ -413,7 +413,8 @@ export function renderRecap(s) {
413
413
  if (seg !== "")
414
414
  parts.push(seg);
415
415
  if (s.usage.cache !== null && s.usage.in !== null && s.usage.in > 0) {
416
- parts.push(`cache ${Math.round((s.usage.cache / s.usage.in) * 100)}%`);
416
+ const hit = `cache ${Math.round((s.usage.cache / s.usage.in) * 100)}%`;
417
+ parts.push(s.missed !== undefined && s.missed > 0 ? `${hit} · miss ${kUnit(s.missed)}` : hit);
417
418
  }
418
419
  }
419
420
  if (s.ctxLeftPct !== null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-tui",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "description": "kiso tui — the pure terminal layer (cell renderer, dock, raw editor, diff, palette). Zero runtime dependencies: input is data, output is bytes.",
5
5
  "type": "module",
6
6
  "license": "MIT",