| Filename | Latest commit message | Latest commit date |
|---|---|---|
Pairs with damocles PR #582 (POST /api/logout backend on the per-agent web UI). Three additions to the agent's app.js: - New `postLogout` helper next to postCancelTurn / postCompact / postNewSession. Same postSimple shape. - New entry in SLASH_COMMANDS so /help lists /logout. - New /logout case in handleSlashCommand with window.confirm. - New '🔓 logout' item in populateOverflowMenu's overflow popover, mirroring the new-session item's pattern (confirm before POST, disable button while in-flight, closeOverflowMenu before fire). Confirm dialog spells out the consequences (SIGINT, creds wiped, park in needs-login) so the operator doesn't accidentally drop a production session. Tooltip on the menu item links the action back to the credentials directory + post-logout state. Wire-level: POST /api/logout, no body. Backend returns 200 with a text body describing the wipe outcome — postSimple ignores it (success → no terminal note; failure → red turn-end-fail row). |
||
| .. | ||
| 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).