hermes-agent/ui-tui/packages/hermes-ink/src/utils
Brooklyn Nicholson b1c49d5e73 chore(tui): /clean recent perf work — KISS/DRY pass
24 files, -319 LoC. Behaviour preserved, 369/369 tests green.

- hermes-ink caches: shared lruEvict helper for the four parallel LRU
  caches (stringWidth, wrapText, sliceAnsi, lineWidth); touch-on-read
  stays inlined per cache; tightened output.ts skip-slice fast path.
- wheelAccel: trimmed provenance header, collapsed env parsing, ternary
  dispatch in computeWheelStep.
- perfPane: folded ensureLogDir into once-flag, spread-with-overrides
  for fastPath/phases instead of full rebuilds.
- env: extracted truthy() (used 4×).
- virtualHeights: collapsed user/diff/slash height bumps; trail+todos
  estimate.
- useInputHandlers: scrollIdleTimer cleanup on unmount, ?? undefined
  shorthand.
- useMainApp: dropped dead liveTailVisible IIFE and liveProgress
  indirection.
- appLayout, markdown, messageLine, entry: vertical rhythm, dropped
  narration comments, inlined one-shot vars.
- fix: empty catch blocks → /* best-effort */ for no-empty lint.
2026-04-26 20:38:47 -05:00
..
debug.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
earlyInput.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
env.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
envUtils.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
execFileNoThrow.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
fullscreen.ts feat: add clicky handles 2026-04-13 21:20:55 -05:00
intl.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
log.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
semver.ts feat: fix types and add type checking plus lazybundle on launch andddd dev flag 2026-04-11 14:42:28 -05:00
sliceAnsi.ts chore(tui): /clean recent perf work — KISS/DRY pass 2026-04-26 20:38:47 -05:00