Commit graph

640 commits

Author SHA1 Message Date
damocles
4a0d08154e forge_notify: detect review requests via requested_reviewers (closes #253) 2026-05-22 16:54:29 +02:00
damocles
845fafdf1b forge_notify: show assignees and reviewers unconditionally (closes #256) 2026-05-22 16:45:41 +02:00
iris
9b9277db78 fix: vendor marked UMD build so window.marked is defined (issue #244) 2026-05-22 16:33:13 +02:00
damocles
b283768f26 forge: replace curl shell-outs with reqwest http helper (closes #249) 2026-05-22 16:26:44 +02:00
damocles
5c360e8293 forge_notify: filter self-notifications, detect PR reviews (closes #230, closes #231) 2026-05-22 15:29:38 +02:00
damocles
bbe4cdb872 add meta read access and remote for agents on forge 2026-05-22 15:28:06 +02:00
damocles
4bc5237bea harness: fix sandbox-fallback conflict with lib.mkForce (closes #247) 2026-05-22 15:24:48 +02:00
damocles
7426654a74 crash_watch: track prev_sub_agents to fix needs_login for newly spawned agents 2026-05-22 12:31:18 +02:00
damocles
55fe2856b9 actions: emit needs_login after first spawn, fix update_meta_inputs arity 2026-05-22 12:31:18 +02:00
damocles
6ca72074c4 docs: move sandbox threat model to docs/security.md, add code reference 2026-05-22 12:28:04 +02:00
damocles
a6bd4cf502 harness: document sandbox threat model and credential permission requirements 2026-05-22 10:57:13 +02:00
damocles
66f1568e8f apply_commit handles first-time spawns, request_spawn deprecated 2026-05-22 10:52:02 +02:00
damocles
6974634326 harness: set sandbox-fallback = true to fix nix builds in containers (fixes #196) 2026-05-22 10:51:10 +02:00
damocles
3e098c56ff update_meta_inputs: require operator approval, rename to request_update_meta_inputs 2026-05-22 10:49:20 +02:00
damocles
597e4ba03a manager: add update_meta_inputs tool to update flake.lock on demand (closes #235) 2026-05-22 10:49:20 +02:00
iris
15e44955a8 web: clickable links in terminal rows and dashboard messages (issue #233) 2026-05-22 01:17:38 +02:00
damocles
4b51c198d5 forge_notify: add repo slug to notification header for multi-repo disambiguation 2026-05-22 00:50:19 +02:00
damocles
20bb343f27 forge_notify: add issue/PR number to header, drop repo: line, show assignee on new items (closes #225) 2026-05-22 00:50:19 +02:00
damocles
c99261b042 harness: add request_next_turn MCP tool — immediate self-continuation (closes #216) 2026-05-22 00:35:13 +02:00
damocles
de6ff3da29 hive-forge: add milestone verb (list/create/close), closes #226 2026-05-22 00:18:45 +02:00
damocles
02ace544bc hive-forge: restore issue-edit verb lost in rebase 2026-05-21 23:47:18 +02:00
damocles
0615b0521f hive-forge: add pr-create and issue-create verbs, closes #209 2026-05-21 23:44:27 +02:00
damocles
5de795c55f hive-forge: drop notifications/notif-read verbs — conflict with forge_notify daemon 2026-05-21 23:39:11 +02:00
damocles
c8b544d340 hive-forge: add diff, notifications, notif-read, subscription verbs (closes #214) 2026-05-21 23:35:41 +02:00
damocles
8d3be74fd2 harness: fix hive-dashboard-links state dir — drop legacy /state, use /agents/*/state 2026-05-21 23:20:13 +02:00
damocles
66c481a07a harness+dashboard: declarative dashboardLinks option (closes #191) 2026-05-21 23:20:13 +02:00
iris
f510a321df screen: add match-size — RFB SetDesktopSize to resize the remote desktop 2026-05-21 23:15:36 +02:00
damocles
317d580405 harness: fix tea-login using getent (not in PATH) — hardcode /root 2026-05-21 23:05:13 +02:00
damocles
f762348fca harness: fix tea-login writing to /.config instead of /root/.config 2026-05-21 22:52:37 +02:00
damocles
2d3a87f545 forge-avatar-sync: rasterize SVG at 512px 2026-05-21 22:37:45 +02:00
damocles
94f5f53ca9 harness: rasterize SVG icon to PNG for Forgejo avatar upload (fixes #197) 2026-05-21 22:37:45 +02:00
damocles
03fec39405 forge_notify: flip keepSubscriptions default — agents keep, manager auto-unsubs 2026-05-21 22:33:35 +02:00
damocles
d58a3a3303 manager: keepSubscriptions = true by default 2026-05-21 22:33:35 +02:00
damocles
1adfd604b6 forge_notify: hyperhive.forge.keepSubscriptions NixOS option 2026-05-21 22:33:35 +02:00
damocles
717086b02d forge_notify: HIVE_FORGE_KEEP_SUBSCRIPTIONS=1 disables auto-unsubscribe 2026-05-21 22:33:35 +02:00
damocles
eb63c7ebb1 forge_notify: auto-unsubscribe from repo watches on subscribed notifications 2026-05-21 22:33:35 +02:00
damocles
6ffee8e6f6 hive-forge: add attach-issue and attach-comment verbs (closes #206) 2026-05-21 22:33:00 +02:00
damocles
da8a711a60 forge_notify: explicit open/empty state, unknown states show raw value 2026-05-21 22:27:22 +02:00
damocles
8cc6306728 forge_notify: generic type label helper, compose kind from label+state 2026-05-21 22:27:22 +02:00
damocles
13b7a94257 forge_notify: fix notification type strings and PR state detection (fixes #201) 2026-05-21 22:27:22 +02:00
iris
ab1f8d6e33 dashboard: icon fallback on real img load failure, not container-state guess 2026-05-21 22:01:38 +02:00
iris
16f614f45d dashboard: dimmed default icon for unreachable containers
A stopped or mid-transient (restarting / rebuilding) container's
web server isn't answering, so its <url>/icon background-image
just failed to an empty box on the card.

When the container isn't reachable (not running, or a transient
is in flight) the icon now falls back to the dimmed hyperhive
mark — /favicon.svg, served by the dashboard itself so it's
always loadable — greyscaled + lowered opacity via the
.icon-unreachable class.

closes #195
2026-05-21 21:56:39 +02:00
iris
f42ba9b561 dashboard file preview: markdown tabs + raster image rendering
Follow-up to #188. Two additions to the side-panel file preview:

- Markdown files get a rendered/plain tabbed view (was: always
  rendered, no way to see source) — same tab pattern as SVG.
- Raster images (png/jpg/gif/webp/bmp/ico/avif) render as an
  <img>. /api/state-file previously from_utf8_lossy-stringified
  every file and served text/plain, which corrupts binary; it
  now serves image files as raw bytes with their real
  content-type (over-cap images are rejected, not truncated —
  a clipped binary is corrupt).

buildSvgPanel generalised to buildTabbedPreview, shared by SVG +
markdown. .svg-host/.svg-render renamed .preview-host/.img-preview
since they now back images + md too.

closes #192
2026-05-21 21:49:15 +02:00
damocles
0884a54960 agent page: backend-supplied links list replaces hardcoded stats/screen/forge (closes #189) 2026-05-21 20:49:34 +02:00
iris
a8ab91ecd8 dashboard: render SVG file previews
SVG files in the side-panel file preview showed only raw source.
Add a rendered/source tabbed view: 'rendered' (default) shows the
image, 'source' shows the markup.

The image loads via an <img> data: URI — <img>-loaded SVG runs in
the browser's secure static mode (scripts + external fetches
disabled), so an untrusted SVG from an agent's state dir can't
execute code in the dashboard origin. Tabs reuse the existing
diff-base-tab styling; a checkerboard backs the image so
transparent regions read clearly.

closes #188
2026-05-21 20:40:30 +02:00
iris
fc3490086b agent page: assemble forge URL backend-side
Per review: build the full forge profile URL in the harness instead
of the client. /api/state now returns forge_url: Option<String>
(assembled from the request Host header — resolves against whatever
host the operator reached the page on), replacing the forge_present
bool. The JS just links forge_url when present — no client-side URL
construction.
2026-05-21 20:27:43 +02:00
iris
6ab667901d agent page: link to the agent's forge profile
Add a '⬡ forge ↗' link to the per-agent page's meta row, next to
the stats + screen links. It opens the agent's Forgejo profile
(http://<host>:3000/<label> — the per-agent forge user is named
after the agent) in a new tab.

- web_ui.rs: StateSnapshot gains forge_present, true when the
  agent's forge-token file exists in the state dir (same signal
  that tells the agent it has a forge account).
- index.html / app.js: hidden link, shown + href-filled when
  forge_present, mirroring the existing gui_enabled/screen-link
  pattern. Host comes from window.location so it works off
  whatever host the page is served from.

closes #185
2026-05-21 20:27:43 +02:00
damocles
310fd0b481 hive-forge: add APP_NAME, replace logo.png/favicon.png with hyperhive branding 2026-05-21 20:21:44 +02:00
damocles
433bc85b91 auto_update: rebuild all on startup, needs_update = applied HEAD vs deployed sha 2026-05-21 19:47:01 +02:00
iris
4814aaefdb fix: screen fit-to-window — lift flex auto-minimum on the canvas
PR #171 made relayoutCanvas() set canvas.style.width/height
explicitly, but the canvas is a flex item: flex items default to
min-width/min-height: auto, which resolves to the canvas's intrinsic
framebuffer resolution and clamps the JS-set display size right back
up to native — so fit mode still did nothing (#133, "still same
behavior").

Add min-width/min-height: 0 (+ flex: none) on the canvas in fit mode
so the explicit downscaled size actually sticks. Scoped to
#canvas-wrap.fit so non-fit mode keeps native size + scroll.

re #133
2026-05-21 19:40:17 +02:00