hyperhive/frontend/packages/agent/src/hooks
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris cebf3c6ced Drop classifyEvent.ts, render TermMsg directly
Per review: StreamRow was meant to match what the server sends in
TermMsg, not be a separate model needing a translation step.

- classifyEvent.ts and streamRow.ts deleted; termMsg.ts holds the wire
  types (TermMsg/TermEnvelope) plus TermRow, a TermMsg with just the
  key/fromHistory bookkeeping Preact needs for list rendering.
- Row.tsx renders a TermRow directly: level -> CSS class, empty
  summary + markdown body -> flat row, everything else with a body ->
  expandable details gated by the operator's preference. No separate
  classification step.
- useLiveStream.ts drops ClassifyCtx (a single incrementing key
  counter didn't need a whole context object) and maps envelopes to
  rows inline.
- docs/terminal-rendering.md trimmed substantially — was documenting
  more implementation detail than useful; points at stream_enrich.rs
  for the per-tool specifics instead of duplicating them in prose.
2026-08-30 21:23:28 +02:00
..
useAgentState.ts agent: wire Header/StatusChips to real /api/state polling 2026-08-28 22:05:13 +02:00
useLiveStream.ts Drop classifyEvent.ts, render TermMsg directly 2026-08-30 21:23:28 +02:00
useTodos.ts agent: TodosPanel/InboxPanel flyouts + header pills 2026-08-28 22:05:13 +02:00