devbox/internal/hub
shoemoney 2d407d418a feat: hub live dashboard backend — state + SSE flow stream 📊🛰️
Optional, off by default: devbox-hub serve --dashboard [--dashboard-addr
127.0.0.1:8099]. A separate, loopback-by-default listener (never widens the
API surface; warns if bound non-loopback since it's unauthenticated read-only).

- internal/hub/dashboard: embedded UI (go:embed index.html) + GET /api/state
  (hub/totals/devices/shares snapshot) + GET /api/events (SSE live flow stream).
  A nil *Dashboard is Emit-safe so hub handlers call it unconditionally.
- meta reads for the snapshot: Devices(), ShareStats() (one rolled-up query),
  SumChunkBytes(). 'online' is activity-tracked since hub start (2-min window).
- hub emits 'join' (device enrolled) and 'push' (device→share, bytes/chunks/
  snapshot/new_head) flow events.
Tests: state reflects the DB + a push event reaches a live SSE subscriber +
nil-safe Emit. index.html here is a placeholder — the epic frontend lands next.
2026-06-23 12:35:36 -05:00
..
blobstore harden(durability): fsync atomic writes before publishing the rename 💽 2026-06-23 02:59:26 -05:00
dashboard feat: hub live dashboard backend — state + SSE flow stream 📊🛰️ 2026-06-23 12:35:36 -05:00
meta feat: hub live dashboard backend — state + SSE flow stream 📊🛰️ 2026-06-23 12:35:36 -05:00
blob_traversal_test.go harden(auth): require proof-of-possession on join 🪪🔐 2026-06-23 03:08:23 -05:00
events.go feat(M3): live two-way sync — SSE fan-out + daemon + mount 🔄 2026-06-23 00:12:39 -05:00
join_pop_test.go harden(auth): require proof-of-possession on join 🪪🔐 2026-06-23 03:08:23 -05:00
limits_test.go test: drop tautological byte-cap invariant test (ponytail) ♻️ 2026-06-23 03:17:32 -05:00
server.go feat: hub live dashboard backend — state + SSE flow stream 📊🛰️ 2026-06-23 12:35:36 -05:00
server_test.go feat(M8a): device-facing invites with privilege attenuation ✉️🔐 2026-06-23 11:31:29 -05:00
sharename.go fix(M7): review fixes — pidfile O_EXCL, publish race, backoff reset 🐛 2026-06-23 01:37:58 -05:00
sharename_test.go fix(M7): review fixes — pidfile O_EXCL, publish race, backoff reset 🐛 2026-06-23 01:37:58 -05:00