hyperhive/frontend/packages/agent/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris e1e5195081 dashboard + agent UI: surface hive_name + swarm_name in chrome (#701)
Damocles's backend (c41bf1b) landed HYPERHIVE_HIVE_NAME / _SWARM_NAME
env vars and identity.rs accessors. This commit wires them into the two
web surfaces:

hive-c0re/dashboard.rs:
  StateSnapshot gains `hive_name` + `swarm_name` (Option<String>),
  populated from the env vars the c0re NixOS module injects.

hive-ag3nt/web_ui.rs:
  Per-agent StateSnapshot gains the same two fields, populated from
  crate::identity::hive_name() / swarm_name().

Dashboard frontend (index.html + tabs.js):
  A `<p class="banner-thin" id="hive-identity">` sits above the tab
  strip in the chrome. refreshState() populates it with "swarm / hive"
  (or just "hive") when the fields are non-null, and updates
  document.title to "<swarm>/<hive> // h1ve-c0re". No change to
  chrome when both fields are null (backward compat).

Per-agent frontend (index.html + app.js + agent.css):
  A hidden `.agent-hive-label` span under the title row shows the
  swarm/hive label once setHeader() receives non-null names.
  document.title is updated to "<label> // <hive_name>" when hive_name
  is set, enabling browser-tab disambiguation when multiple hives are
  open in parallel. Styled as a small uppercase purple-dim sub-label.
2026-05-31 21:09:08 +02:00
..
agent.css dashboard + agent UI: surface hive_name + swarm_name in chrome (#701) 2026-05-31 21:09:08 +02:00
app.js dashboard + agent UI: surface hive_name + swarm_name in chrome (#701) 2026-05-31 21:09:08 +02:00
index.html dashboard + agent UI: surface hive_name + swarm_name in chrome (#701) 2026-05-31 21:09:08 +02:00
screen.html screen.html + docs: migrate canvas-sizing + RFB design prose (#713 batch 3) 2026-05-31 14:47:32 +02:00
stats.html agent UI: relative paths for all assets/api/ws so the page works under any nginx prefix (#14) 2026-05-31 12:10:56 +02:00
stats.js agent UI: relative paths for all assets/api/ws so the page works under any nginx prefix (#14) 2026-05-31 12:10:56 +02:00