Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph

6,935 commits

Author SHA1 Message Date
iris
6a18bf1e02 swarm ui: the agents page uses more of the width with an agent selected
With a selected agent the shell's 90em column left a wide screen mostly
empty. The page now raises that cap to 160em while two columns are
showing, and the details take three parts to the list's one (the list keeps
at least 24em). The cap and the columns move with the same easing.
2026-11-22 21:50:52 +01:00
damocles
b6d0790eb4 grafana: the claude usage panel keeps the history from before the account label as an unlabelled account 2026-11-22 21:37:22 +01:00
maia
0bb48f90ae docs: gateway.md states the forge as it is, not the options it lost
The removed-option messages carry that history; the page describes the current state.
2026-11-22 20:52:35 +01:00
maia
57ca9433a7 docs: the forge has no raw port and is not an infra container on the host netns
ci.md named a raw forge port that no longer exists; network.md's map listed infra containers as sharing the host netns, which the forge no longer does.
2026-11-22 20:52:35 +01:00
maia
6e2abcb0a5 module-eval: the forge no longer shares the host netns
Two service containers share it now, bao and the queue; fourteen have a netns of their own.
2026-11-22 20:52:35 +01:00
maia
fc70f538ac forge: its own netns, HTTP on a unix socket, git over HTTPS only
The hive-forge container leaves the host netns and listens on no TCP port: Forgejo serves HTTP on a unix socket the gateway proxies to, and the built-in SSH server is off. The httpPort, sshPort and openFirewall options are removed with a message each.
2026-11-22 20:52:35 +01:00
damocles
e1434e677b grafana: the claude usage dashboard shows subscription usage per account against the elapsed share of its window 2026-11-22 20:41:31 +01:00
damocles
57e06c9ec8 swarm-queue-client: the readyz test holds its stand-in server's port instead of freeing and rebinding it 2026-11-22 20:30:17 +01:00
damocles
e0a5f737ac hive-matrix-mcp: resolve a bare server name through matrix-sdk's discovery before connecting 2026-11-22 19:59:21 +01:00
maia
b8851743e8 egress: the forward chain refuses by default where the intercept is on
egress.forward defaults to reject while egress.intercept.enable is on (a
hive controller host turns it on) and to log otherwise, because reject
without the intercept would refuse all web traffic and an assertion
already forbids it. log stays an explicit choice.

The hive-squid VM test runs its log-mode half on the base node, so the
base pins forward = log at mkDefault priority and the reject
specialisation overrides it. A module-eval case covers the default on a
controller host, on a host without the intercept, and an explicit log.
2026-11-22 19:47:38 +01:00
damocles
d88a0cc526 hive-matrix-mcp: add a leave_room tool 2026-11-22 19:24:42 +01:00
iris
56ed2e07da swarm ui: select several agents on the agents page and broadcast to them
Select mode picks agents from the list: the select button in the filter
card, a press on an agent's icon, or a long press on a card starts it. In
it a card toggles a tick instead of opening its details, and the card's own
controls stop answering. A bar at the foot of the list has select all shown,
clear, broadcast and done; Escape leaves the mode.

Broadcast opens a dialog with the picked agents and a message box, sending
through the existing broadcast endpoint; the composer's send and result
parts are now shared with the swarm page's broadcast card. A full send shows
a toast and ends select mode; a partial one keeps the result with a retry
for the agents that failed.
2026-11-22 18:58:50 +01:00
iris
7bdaea7954 swarm ui: agents page opens an agent's details beside the list
Selecting an agent card opens its details in a column on the right of the
agents list, at /agents/<name>, instead of unfolding the card in place. The
list is full width until an agent is selected, then narrows and the details
slide in. A narrow screen shows the details alone, with a back button. A
card's message is cut to one line.

The shell treats /agents/<name> as the agents page, so the nav tab stays lit
and the page is not rebuilt on each selection.
2026-11-22 18:58:05 +01:00
iris
2d3da56907 hive ui: hide the shell's page heading, which the dashboard showed as a second title 2026-11-22 18:27:25 +01:00
iris
8e2844ec92 swarm-ui: select a pane's name badge in a terminal group to open the agent's details 2026-11-22 18:16:23 +01:00
iris
91e2d26133 frontend: remove the stylix overlay and add hyperhive and Catppuccin light and dark themes 2026-11-22 17:55:10 +01:00
damocles
989d1d578c hive-agent: keep an own /knowledge clone current from the swarm knowledge event 2026-11-22 17:48:23 +01:00
iris
ff4e42f1ae swarm-ui: opening a dialog no longer scrolls the page to the top 2026-11-22 17:25:48 +01:00
damocles
44b248bf6d hive-agent: drop the legacy todos/reminders db migration 2026-11-22 16:59:24 +01:00
iris
658178f9db swarm-ui: pick an agent's model from a dropdown of the models the swarm knows, with an other entry for any name 2026-11-22 15:37:32 +01:00
atlas
58236e1b7f default the host's swarmctl to the gateway; login takes a callback port 2026-11-22 15:01:14 +01:00
iris
ef817ed5a0 swarm-controller: GET /api/models lists the model names the swarm already knows 2026-11-22 13:46:01 +01:00
damocles
36a8b4fa1f vm-tests: build a sample android app offline in the android-dev archetype 2026-11-22 13:25:29 +01:00
flake-bot
f7f8c208b3 nix flake update 2026-11-22 11:31:52 +01:00
damocles
f3ab3abdc1 docs: re-wrap the builder paragraph in services.md 2026-11-21 21:40:56 +01:00
damocles
627e07cf82 docs: swarm-builder merge gate wording in the active voice 2026-11-21 21:40:56 +01:00
damocles
5814f177c8 docs: the swarm-builder status gates the merge now, and no promise about rebasing a PR branch 2026-11-21 21:40:56 +01:00
damocles
2ea8c9de60 docs: controller merge gate paragraph without passive voice 2026-11-21 21:40:56 +01:00
damocles
7a7041452e swarm-controller: config repos require the swarm-builder status and default to fast-forward-only merges 2026-11-21 21:40:56 +01:00
iris
70e5de5571 swarm-ui: a header bell with the count of firing alerts opens a list of them and a link to Grafana 2026-11-21 15:21:22 +01:00
damocles
ffcba2b026 swarm-review-classifier: only an error result falls back to its subtype 2026-11-21 14:22:50 +01:00
damocles
6c1d670a57 swarm-review-classifier: a claude that exits non-zero reports the error it printed 2026-11-21 14:22:50 +01:00
damocles
1302965ca7 nix: the bash daemon gets the agent's store identity so it can publish its tasks 2026-11-21 13:31:28 +01:00
atlas
4a554fd6bf full-setup vm test: wait for the last created agent in the meta flake 2026-11-21 12:29:38 +01:00
iris
7707a257e9 hive ui: the dashboard wears the swarm UI's chrome, and its own header, tab strip and menu mounts go
The dashboard mounts @hive/shared's AppShell, the header, nav and settings menu the swarm UI has, from a new shell.js: the hive's name for the brand, the tabs agents, rebuild queue and kept state routed by the URL hash, the theme, motion and solid-background settings in this page's own browser storage, and the shared links and user menus. The three tab panes stay plain DOM, kept hidden in index.html and moved into the shell's content column by shell.js. The tabs, the hash-to-tab parse and the menu entries sit in shell-routes.js, which npm test covers (the dashboard package gets a test script). The old header, the createTabStrip tabbar, the leet tab names, the identity headline and title code, the sticky-top wrapper, the links-menu.js and user-menu.js mounts and their CSS are removed. The docs say the plain tab names and the new chrome.
2026-11-21 10:47:37 +01:00
iris
c6f8f26b16 frontend: the swarm UI's page chrome moves to @hive/shared as AppShell
The header bar, the nav row with its sliding underline, the settings menu slot, the skip link and the content column move out of the swarm UI's Shell into a router-free AppShell in @hive/shared, with their CSS. It takes the brand, the nav items, the current location and the link component, plus slots for extra tabs, settings entries and menus. The swarm UI's Shell keeps what is its own on top of it: the open agent-terminal tabs (their CSS moves to DynamicTabs.css), the swarm's settings, links and user menus, the swarm name and the full-bleed routes. No visible change; this is the base for the hive UI to reuse the same chrome.
2026-11-21 10:46:53 +01:00
flake-bot
1a4f35f669 nix flake update 2026-11-21 04:01:14 +01:00
iris
797e6e3137 swarm ui: the messages cards move to the swarm page and the messages tab goes
The broadcast, schedules and message log cards now sit on the swarm page, after the notification router; the message log opens its stream on its first open instead of when the page loads, and its connection badge moves into its filter bar. The messages tab is removed from the header, and the old /messages address redirects to /swarm next to /schedules, which now does too. MessagesPage becomes MessageCards, and comments, tests and the swarm UI docs say the swarm page where they said the messages tab.
2026-11-20 22:10:42 +01:00
iris
94969b552e swarm ui: the create-agent name field says why a name is refused, beside the field
A name with an uppercase letter greyed out next with only the footer to say why. The text field now takes an error: it marks the field invalid, draws the reason under it and points aria-describedby at it. The create form passes it once something is typed, and nameProblem names the cause (uppercase first, then length, then other characters) instead of one catch-all rule. Next stays disabled, with the footer hint as before. The swarm UI doc says so.
2026-11-20 21:42:43 +01:00
iris
da25f0a1c3 swarm ui: an agent's API key is set from its claude login row, and the advanced backend settings show the configuration and the secrets apart
The claude login row of an opened agent gains an API key line: a badge saying whether a key is stored, set or replace and remove, and advanced. Setting a key sends PUT on the backend-secrets route as ANTHROPIC_API_KEY=<key>; the key is never read back. The old API-key environment dialog becomes the advanced backend settings, with two sections: the configuration, which starts with the stored text and saves or removes it, and the secrets, whose box starts empty and replaces the stored secrets only when filled and saved. The link menu's entry is renamed to match, account-api.ts gets the route helpers and a key check with tests, and the swarm UI doc describes the row.
2026-11-20 21:23:05 +01:00
iris
33fdd5205e swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back
The credentials of an agent's backend (ANTHROPIC_API_KEY and the like) move to their own leaf, swarm/agents/<agent>/backend-secrets, written through new PUT, GET and DELETE routes on /api/hives/{hive}/agents/{agent}/backend-secrets. GET says only whether any are stored. The backend environment at backend-env now reads back as stored through GET on its route, so it holds configuration only.

The agent's hive-agent-backend-env unit now runs on every agent with a store, reads both leaves and writes the configuration and then the secrets into the one file the harness and the subagent daemon load, so a secret wins over a variable of the same name. It removes the file when the store holds neither. The harness counts an agent whose environment holds ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN as API-billed, so it tries the key instead of waiting for a Claude login; a real 401 still sets needs-login. The controller's policy may delete the new leaf.

Tests: the secret-client path, the controller routes, the script test of the unit with a stub bao, the module-eval cases and the harness's mode check. Docs: the swarm UI routes, the credentials reference and the API-key provider page.
2026-11-20 20:36:33 +01:00
maia
c9204ad0e0 android-dev archetype: ship the Android SDK and nix-ld so a Gradle build runs
The archetype installed Gradle, a JDK and android-tools but no SDK, no
ANDROID_HOME/JAVA_HOME and no nix-ld, so the aapt2 Gradle downloads could not
start on NixOS and an agent could not build an app.

It now builds an SDK (build-tools 36.1.0, platform 35, no emulator or system
images), sets ANDROID_HOME, ANDROID_SDK_ROOT and JAVA_HOME, and enables
programs.nix-ld. The SDK's unfree names are read off the SDK and added to
allowUnfreePackages, which adds to the claude-code allowance instead of
replacing it.

Closes #6696
2026-11-20 19:35:47 +01:00
maia
0e147618d0 swarm-controller: serve reads the tcp listener config itself, keeping main under the line limit 2026-11-20 19:24:20 +01:00
atlas
cd786ef401 document the controller tcp listener and its two leaves 2026-11-20 19:24:20 +01:00
atlas
187ed82de0 gateway reaches the controller over tls with its own client leaf when the tcp listener is on 2026-11-20 19:24:20 +01:00
atlas
17fffaae79 swarm-controller serves tls on tcp to the gateway client identity only, when configured 2026-11-20 19:24:20 +01:00
iris
f4421b216f swarm ui: the header's tabs can be dragged onto each other to reorder them
Group tabs now show the grip and drag like agent tabs, and every tab in the strip takes the place of the tab another one is dropped on; the order is kept with the open tabs. An agent's tab keeps its other drag, onto a terminal to split it. moveTab is a pure function with tests.
2026-11-20 18:32:29 +01:00
iris
0a72f212da swarm ui: a terminal keeps 2000 rows and folds a burst of rows in at once
useSwarmTermStream appended each event with [...rows, row] and never dropped one, so a tab on a busy agent grew without bound in memory and DOM and each event cost a copy of the whole list. appendRows (a pure module, tested) folds a batch in with one copy, coalesces as before, and keeps the newest 2000. Events are collected for 50ms and folded in together, so a burst is one render.

The comments that described the old coalescing in useSwarmTermStream.ts's header and in termMsg.ts's TermEnvelope doc named a hook that no longer exists (useLiveStream), so both now point at term-rows.ts, where the rule lives.
2026-11-20 17:18:10 +01:00
iris
da187f8368 swarm ui: a popover stays on the page, and the ssh popover folds its explanations
A popover hung from its anchor and ran off the foot of the window when the anchor sat low. It now goes over the anchor when it fits neither way better below, and otherwise takes the roomier side with its height cut so it scrolls inside itself; the placement is a pure function with a test, and the box places itself again when its content changes size. The ssh popover showed three long paragraphs above its switch: the explainer and the host-key text now sit in a folded how it works section, and the warning and the switch stay visible. Its sections can no longer give the popover a sideways scroll.
2026-11-20 17:15:20 +01:00
iris
3be4ec069c frontend: one time wording for the swarm UI and the dashboard, and no HTML strings in the dashboard's busy buttons
fmtAgo, fmtUntil and durationLabel move to @hive/shared/time.js. The swarm UI's util.ts is deleted and its importers (RelativeTime, ReviewRuns, BuildsPage) read the shared module directly. The dashboard's own copies are gone: its fmtAgeSecs (a third phrasing, used for two status lines) becomes the shared fmtAgo, and the dashboard util.js lost fmtAgo, fmtElapsed, epochSec and truncate, which nothing called. asyncBtn and the bulk action buttons mark themselves busy with markBusy: a spinner node before the label and aria-busy, in place of replacing the button's innerHTML with a string (and the label, so the button changed width and lost its name). The el() helper loses its html attribute.
2026-11-20 17:02:32 +01:00