hyperhive/frontend/packages/swarm-ui/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris d9c8b7ca8f swarm-ui: floating turn-state/model/ctx/cost badges on the agent term preview
Header-bar parity for the swarm-level agent terminal, per mara's ruling
"dont make it a header though - make it floating elements on top of the
terminal". Adds useSwarmAgentStateStream (SSE consumer for
swarm-controller's GET /api/agents/{name}/state/stream) and renders a
small read-only Badge cluster absolutely positioned in
AgentTermPreview's terminal box corner, reusing the same anchor pattern
@hive/shared/terminal.css's .tail-pill already uses.

Shows turn_state always, agent_state only when it isn't the boring "up"
case, model (with resolved-model tooltip), and ctx/cost usage. No badge
renders until the first header event lands - the swarm queue's
agent-state subject is transition-only with no seed/replay, and no
swarm-level endpoint today can seed turn_state/model/ctx/cost
synchronously.

Vocabulary (state tones, token-total/format helpers) ported from
@hive/agent's Root.tsx/lib/format.ts rather than imported, matching the
existing "small helper, not worth a cross-package hop" call
useSwarmTermStream's own appendRow already made.

Verified by rendering the real component tree against a stubbed
EventSource and screenshotting the result - the badge cluster initially
overlapped the terminal's first row of text, fixed by giving this
preview's own .live.terminal extra top padding.
2026-09-18 17:30:59 +02:00
..
pages swarm-ui: floating turn-state/model/ctx/cost badges on the agent term preview 2026-09-18 17:30:59 +02:00
shell swarm-ui: make the shell header sticky and frosted glass 2026-09-13 22:13:07 +02:00
ui swarm-ui: neon glow on panel titles + the active nav tab 2026-09-13 19:19:26 +02:00
App.tsx swarm-ui: fold the agent terminal into AgentsPage's detail panel, not a route 2026-09-13 20:23:51 +02:00
colors.css swarm-ui: bootstrap new swarm-level frontend (Preact + wouter + TS + JSX) 2026-08-11 21:31:44 +02:00
css.d.ts treefmt: apply prettier 2026-09-02 15:25:07 +02:00
index.html swarm-ui: make it installable as a PWA 2026-09-12 11:30:20 +02:00
main.tsx swarm-ui: make it installable as a PWA 2026-09-12 11:30:20 +02:00
manifest.webmanifest swarm-ui: PWA follow-ups from review 2026-09-12 11:30:20 +02:00
sw.js swarm-ui: content-hash main/theme/swarm-ui-css filenames for real cache-busting 2026-09-12 13:04:01 +02:00
swarm-ui.css swarm-ui: real hive-roster overview page 2026-08-13 11:21:30 +02:00
theme.css swarm-ui: bootstrap new swarm-level frontend (Preact + wouter + TS + JSX) 2026-08-11 21:31:44 +02:00
util.ts treefmt: apply prettier 2026-09-02 15:25:07 +02:00