| Filename | Latest commit message | Latest commit date |
|---|---|---|
Phase 2 of hyperhive#2196. The backend now pre-computes enrichment fields on every SSE event (stream_enrich.rs); the frontend reads them directly instead of running its own dispatch logic. Removed (~330 lines of JS): - fmtArgsGeneric / TOOL_ICONS / toolIcon / fmtRoom / fmtUser / fmtToolUse renderStream changes: - system events: dispatch on v._category (drop/thinking_tok/note/details) + v._summary / v._body instead of per-subtype if-chains; status tick still overrides label client-side when stateName === 'compacting' since elapsed time is a wall-clock value the backend cannot know at emit time - tool_use: use c._category === 'rich' for rich-renderer routing, c._icon / c._summary for flat rows renderRichToolUse: toolIcon(name) -> c._icon (from backend enrichment) stream_enrich.rs: also stamp _category: 'drop' on top-level type=result / type=rate_limit_event so the frontend can use a single _category check instead of separate type-based early returns |
||
| .. | ||
| packages | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
hyperhive frontend
npm workspaces project for the hyperhive browser-facing assets:
packages/shared/— shared modules used by both surfaces (terminal pane, Catppuccin palette + body typography).packages/dashboard/— the hive-c0re dashboard SPA.packages/agent/— the per-container web UI (default agent page, stats, screen).
Build
npm install # one-off; uses the checked-in package-lock.json
npm run build # builds every workspace into packages/*/dist/
The Rust binaries serve packages/dashboard/dist/ and
packages/agent/dist/ via tower_http::ServeDir at runtime; the
build derivation is wired up in nix/modules/frontend.nix. Per-agent
additions are layered on top of the default agent dist via the
hyperhive.frontend.extraFiles option in agent.nix.
Why npm + esbuild
- Hermetic: dependencies vendored via the checked-in lockfile;
buildNpmPackagein nix uses it as the source-of-truth so the output is reproducible without network access at build time. - esbuild: vanilla-JS bundler, no framework runtime overhead.
Each workspace's
build.mjsis ~30 lines. - Single-PR migration: see issue #273 for the design proposal and the four-commit shape (npm scaffold → nix derivations → container plumbing → Rust cutover).