| Filename | Latest commit message | Latest commit date |
|---|---|---|
Moves the #666 ask→operator inline-answer wiring rationale from app.js into a new docs/web-ui.md::Per-agent page sub-paragraph **Ask → operator inline-answer binding**. Substantial block — the slot-registry / reconcileAskBinds / buildAnswerForm trio has real design rationale (async question id, text-match pairing, resolved-vs-cancelled-vs-expired neutrality, defensive prune, no-regression-fallback to side-panel answer) that belongs in docs, not three JSDoc blocks scattered through app.js. Moved to docs (~30 lines of substantive prose): - pendingAskBinds slot-registry rationale - reconcileAskBinds matching algorithm (text-match, first-unbound to first-unclaimed pairing stability) - defensive prune for disconnected slots - [resolved] vs ✓ rationale (answered / cancelled / TTL-expired ambiguity — neutral label) - fallback to side-panel answer when slot stays unbound Collapsed in app.js: 3 JSDoc blocks + inline comments → ~10-line total pointer. Drops #666 ×3, #559, #668 cookies en passant (substance now lives in docs). app.js: 24 → 19 refs in this commit; 27 → 19 across batch 1 (30% reduction so far). Net ~57 lines of substantive prose migrated from app.js to docs/web-ui.md across both commits in this PR. |
||
| .. | ||
| 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).