hyperhive/hive-ag3nt/src
iris 2027e94432 harness: add /screen page and /screen/ws WebSocket VNC relay
Reads /etc/hyperhive/gui.json at startup to get the VNC port written
by the weston-vnc ExecStart script (issue #50). Adds:
- gui_vnc_port: Option<u16> on AppState
- gui_enabled: bool on StateSnapshot (for issue #52 screen link)
- GET /screen: serves a minimal RFB-over-WebSocket viewer (screen.html)
- GET /screen/ws: upgrades to WebSocket and byte-pumps to 127.0.0.1:<vnc_port>

The relay is a pure two-task byte pump (WS→TCP and TCP→WS), transparent
to any RFB variant including VeNCrypt. Returns 404 when gui is not
enabled.

screen.html is a self-contained RFB client: handshake, FramebufferUpdate
(Raw encoding), pointer and keyboard forwarding — enough to display the
desktop and interact with it. noVNC assets (issue #52) replace this.

Closes #51
2026-05-20 14:38:42 +02:00
..
bin add optional in_reply_to field on send for conversation threading 2026-05-20 13:35:27 +02:00
client.rs retry hive socket up to 5x over 60s, surface retry count to claude 2026-05-16 15:28:18 +02:00
events.rs clippy: zero pedantic warnings across the tree 2026-05-18 22:09:34 +02:00
lib.rs stats: per-agent /stats page with chart.js trends + breakdowns 2026-05-19 00:27:01 +02:00
login.rs refactor: per-agent state paths (/agents/{label}/state), centralize in paths.rs 2026-05-16 15:18:32 +02:00
login_session.rs login: default command is claude auth login 2026-05-15 13:32:51 +02:00
mcp.rs add allowedBashPatterns NixOS option for finer-grained Bash tool approval 2026-05-20 13:35:28 +02:00
paths.rs fix: manager uses /agents/hm1nd/state, not /state, for HYPERHIVE_STATE_DIR 2026-05-20 13:35:12 +02:00
plugins.rs add optional in_reply_to field on send for conversation threading 2026-05-20 13:35:27 +02:00
stats.rs add reminder_stats field to stats Snapshot 2026-05-20 13:24:17 +02:00
turn.rs detect rate-limit errors; park serve loop instead of crashing 2026-05-20 13:35:27 +02:00
turn_stats.rs clippy: zero pedantic warnings across the tree 2026-05-18 22:09:34 +02:00
web_ui.rs harness: add /screen page and /screen/ws WebSocket VNC relay 2026-05-20 14:38:42 +02:00