Commit Graph
20 Commits
Author SHA1 Message Date
vhaudiquet 135dd3143c ci: run the image smoke test in the job network
ci / test (push) Successful in 2m3s
ci / web (push) Successful in 16s
ci / checks (push) Successful in 1m48s
ci / chart (push) Successful in 6s
ci / docker (push) Successful in 6s
ci / publish-edge-image (push) Failing after 4s
ci / publish-edge-chart (push) Skipped
The job container cannot reach a port published on the Docker host loopback. Start the app in the job's network namespace and check it on localhost.
2026-11-28 11:57:37 +01:00
vhaudiquet 22c838eafe ci: use the job token for package pushes
ci / checks (push) Successful in 1m52s
ci / test (push) Successful in 1m57s
ci / web (push) Successful in 16s
ci / chart (push) Successful in 5s
ci / docker (push) Failing after 2m14s
ci / publish-edge-image (push) Skipped
ci / publish-edge-chart (push) Skipped
The workflow already requests packages: write, so the built-in Gitea token can log in to the container and Helm registries. This avoids a repository secret that does not exist yet.
2026-11-28 11:48:48 +01:00
vhaudiquet 3c19c1b5db ci: pin the Rust toolchain for CI
ci / web (push) Successful in 18s
ci / publish-edge-image (push) Canceled after 0s
ci / publish-edge-chart (push) Canceled after 0s
ci / checks (push) Successful in 1m57s
ci / test (push) Successful in 2m0s
ci / chart (push) Successful in 5s
ci / docker (push) Canceled after 18s
The setup action installs only the compiler by default. Declare rustfmt and clippy so the format and lint steps find them, and pin the version the image uses.
2026-11-28 11:43:37 +01:00
vhaudiquet 51b7a5e80b ci: publish the image and chart from CI
ci / chart (push) Canceled after 0s
ci / web (push) Canceled after 0s
ci / checks (push) Failing after 1m26s
ci / docker (push) Canceled after 0s
ci / publish-edge-image (push) Canceled after 0s
ci / publish-edge-chart (push) Canceled after 0s
ci / test (push) Canceled after 1m26s
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 7f494b28de feat(web): add live activity status and collapse turn details
The composer now has one status line for `Rhema is working...` and
typing peers. It replaces the separate typing paragraph.

A running turn no longer adds a transcript card. When it ends, the log
shows a collapsed `rhema finished · N steps` line. Thinking, draft text,
tool calls, and usage live inside it. The event replay starts at the
oldest loaded message so completed turns rebuild after a reload.
2026-11-28 11:35:21 +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 5be17cf4ef feat(web): make the room panes resizable
Drag the divider between the conversation and the workspace, or focus
it and use the arrow keys. The width stays between 380px and enough
room for a 420px conversation, and is stored in localStorage so it
survives reloads.

Below 1100px the workspace remains a fixed overlay, so the divider is
hidden there.
2026-11-28 10:53:30 +01:00
vhaudiquet e579653f75 feat(web): bundle Fira Code Nerd Font for the terminal
Use Fira Code Nerd Font Mono in the monospace UI, including the
terminal. The font carries Nerd Font glyphs for prompts and tools, and
Fira Code's contextual ligatures apply in xterm's DOM renderer because
it groups same-style cells into spans.

The terminal waits for the regular and bold faces before opening so
xterm measures cell widths with the final font.
2026-11-28 10:48:10 +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 808a78afa8 test: build config values with struct update
Clippy rejects assigning fields after Config::default(). Initialize the preview and public URL fields in the struct literal instead. No behavior changes.
2026-11-28 10:36:17 +01:00
vhaudiquet f21fdfd729 fix: accept either the page host or the public url
An upstream proxy may rewrite Host to its own address. Keep the
configured public_url as a fallback so the terminal and presence
sockets still pass in that setup, while the Host check covers localhost
and LAN addresses.
2026-11-28 02:19:44 +01:00
vhaudiquet be04a6cf90 fix: accept terminal sockets from the page host
The origin check compared the browser's Origin with the configured
public_url. Reaching the app through localhost or another LAN address
then rejected the terminal and presence sockets even though the page
and the socket were on the same origin.

Compare the Origin authority with the request's Host header instead.
That is the address the browser actually used, so the check still
refuses another site while working behind a proxy and on every local
address.
2026-11-28 02:18:22 +01:00
vhaudiquet d7aa268ae0 feat: fold the sidebar to a rail
A toggle at the top of the sidebar collapses it from 232px to a 64px
rail with the logo, room initials, and the bottom actions. Opening it
again restores the room names. The choice is stored in localStorage and
restored on the next visit.

The toggle is hidden on the horizontal mobile bar, where the sidebar
already runs as a single row.
2026-11-28 02:12:10 +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 7e7a1d2bb6 feat: use the Rhema logo and capitalize the brand 2026-11-28 01:36:29 +01:00
vhaudiquet 5237a477d7 feat: open provider and sandbox forms in dialogs 2026-11-28 01:36:29 +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
vhaudiquet 04dd63c4ca docs: add the rhema-together spec 2026-11-28 00:36:45 +01:00