Commit Graph
7 Commits
Author SHA1 Message Date
vhaudiquet 51b7a5e80b ci: publish the image and chart from CI
Build and test the server, client, and chart on every push. Main pushes publish the rolling image and a timestamped chart whose appVersion is the commit; v* tags publish exact and stable image tags.
2026-11-28 11:41:11 +01:00
vhaudiquet 36de0aace7 feat: add static previews to the room pane
The preview tool could only name a port, so a static build needed a
server the terminal had to keep alive. `preview` now accepts a path:
the app reads the file or folder over the room's ssh sandbox and serves
it from a signed host, with `..` and dotfiles refused and a 16 MiB cap.

The target is stored with the room and replayed as a durable event. The
pane shows a static path with a reload control and keeps the port field
as a local fallback.
2026-11-28 11:24:57 +01:00
vhaudiquet 05660a244b revert: keep xterm.js for the terminal
ghostty-web 0.4.0 corrupts cell positions after the pane resizes or remounts. In testing, seq output became a diagonal staircase and reopening at a new width mixed the prompt with old output. The release also has open bugs for Alt-key input and idle repainting. Keep xterm.js until those are fixed.
2026-11-28 10:37:57 +01:00
vhaudiquet 3f61dd4db8 feat: render the terminal with ghostty-web
ghostty-web runs Ghostty's VT parser as WebAssembly behind an xterm-compatible API. The component keeps its lifecycle; the imports and the WASM bootstrap change. The emulator imports on demand, so the 624 KB chunk loads only when the terminal pane opens.

The CSP needs wasm-unsafe-eval for WebAssembly compilation and data: in connect-src for the inlined module the library fetches. The terminal renders to a canvas, so the xterm stylesheet and FitAddon package are gone.
2026-11-28 10:36:17 +01:00
vhaudiquet 3b82719d56 feat: add account avatars and a deployable image
Accounts get a profile page with an uploaded picture, shown in the
sidebar, the room bar, and every human message. Pictures live in the
SQLite database and are served through an authenticated route.

Hardening from the security audit: preview hosts expire after 24 hours
and carry no-referrer; removing a member or archiving a room ends their
event feed, presence socket, and terminal within seconds; previews and
the terminal pin the SSH host key; invites are claimed atomically;
missing accounts spend the same argon2 time as wrong passwords;
registration is closed by default; WebSockets check the origin; and the
master key is created with mode 0600.

The Dockerfile builds one image with the static client and the server.
The Helm chart runs a single replica with a SQLite volume, a wildcard
preview ingress, and the proxy settings the event feed and uploads
need. It refuses more than one replica because state is in process.
2026-11-28 02:07:26 +01:00
vhaudiquet bd3aed67b4 docs: describe a local-network run 2026-11-28 01:17:12 +01:00
vhaudiquet 0035f4e031 feat: add the multiplayer room server and client
A room is one conversation, one ssh sandbox, and one agent. Accounts
create rooms; friends join through a single-use invite link and a
display name; the agent speaks only through the message tool.

The server is Axum and SQLite. It serves the built Nuxt client, streams
room events over SSE, and runs one serialized turn loop per room with
turn-level steering copied from rhema-code. The client has the chat,
preview iframe, read-only file pane, xterm terminal, and presence.

Preview URLs are signed wildcard hosts, and the proxy tunnels HTTP over
ssh direct-tcpip. HostAgent::step remains deferred in the framework.
2026-11-28 01:09:37 +01:00