| Filename | Latest commit message | Latest commit date |
|---|---|---|
The surfacing half of the per-agent favorite-tools stat. Reads a `bash_commands(ts INTEGER NOT NULL, head TEXT NOT NULL)` table from the per-agent turn-stats.sqlite — one row per bash task, written by hive-bash-mcp (the capture half, landing separately) — and rolls up the top-10 command heads for a doughnut, mirroring the existing tool_breakdown. - stats.rs: new `Snapshot.bash_breakdown` + `read_bash_breakdown()`. The read is guarded: a missing `bash_commands` table (capture hasn't shipped / agent hasn't run a bash task) maps to an empty list, never an error — the snapshot degrades gracefully. Unit tests cover both the absent-table and populated cases (incl. window cutoff + ordering). - frontend: a "favorite tools (bash)" doughnut card on the agent /stats page, kept hidden until bash_breakdown has data so it never shows a permanently-empty doughnut while capture is pending. Part of #1433 (does not close it — pairs with the hive-bash-mcp capture half). Inert until the capture lands; merge order with it is irrelevant. |
||
| .. | ||
| 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).