hyperhive/frontend/packages/swarm-ui/src/pages
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
..
agents swarm-ui: floating turn-state/model/ctx/cost badges on the agent term preview 2026-09-18 17:30:59 +02:00
ComponentsPage.css Add Badge + Dropdown Preact components, demo on swarm-ui /components 2026-08-28 13:21:49 +02:00
ComponentsPage.tsx swarm-ui: drop the redundant outer dialog card, move close into the panel header 2026-09-13 00:58:53 +02:00
CreateAgentForm.css swarm-ui: move agent creation into the agents page as a dialog 2026-08-24 00:28:34 +02:00
CreateAgentForm.tsx swarm-ui: drop the redundant outer dialog card, move close into the panel header 2026-09-13 00:58:53 +02:00
HivesPage.tsx swarm-ui: use multiselect for every enum-shaped table filter 2026-09-10 21:09:09 +02:00
IssueReportPage.css swarm-ui: persist table filters, add reset button, multi-select, negate 2026-09-09 23:31:24 +02:00
IssueReportPage.tsx swarm-ui: use multiselect for every enum-shaped table filter 2026-09-10 21:09:09 +02:00
JobsPage.css extract build-queue rollup as a shared Preact component 2026-08-16 22:08:38 +02:00
JobsPage.tsx treefmt: apply prettier 2026-09-02 15:25:07 +02:00
LinkMatrixAccountForm.css swarm-ui: link a matrix account to an agent 2026-09-08 15:54:01 +02:00
LinkMatrixAccountForm.tsx swarm-ui: drop the redundant outer dialog card, move close into the panel header 2026-09-13 00:58:53 +02:00