Commit Graph
4 Commits
Author SHA1 Message Date
vhaudiquet 64d7f359f5 feat(api): retire ChatGPT plan sign-in by default
ci / checks (push) Successful in 57s
ci / test (push) Successful in 1m0s
ci / chart (push) Successful in 4s
ci / web (push) Successful in 21s
ci / docker (push) Successful in 1m48s
ci / publish-edge-image (push) Successful in 12s
ci / publish-edge-chart (push) Successful in 4s
A room's provider serves every member, while a ChatGPT plan belongs to
one account, so sharing it breaks OpenAI's terms. Together now hides
the chatgpt kind, refuses to store a new one, and fails a room that
still points at it with a message that names the API-key route.

Existing provider rows stay in the database. The room settings dialog
keeps the room's current provider visible even when its kind is
retired, so the room shows what it is pinned to instead of silently
losing it. Creating or updating a room to that provider is refused.

`RHEMA_TOGETHER_I_WANT_CHATGPT_BAN=1` lifts the block for a single-user
local test. The value has to be exactly `1`; any other value leaves the
block in place.
2026-12-03 16:10:14 +01:00
vhaudiquet 369075a842 feat: add providers without a default model
The add-provider form asked for a model even though the room owns that choice. It now asks for a name, kind, base URL, and key. New providers store no default, and New room requires a model before it can submit.

Existing providers keep their model as an optional default. The model picker hides the Provider default row when there is none, and a room with no usable model gets a clear error instead of an empty model reaching the provider.
2026-11-28 17:31:52 +01:00
vhaudiquet 2216f37422 feat: pick the room model from a catalog dialog
The room model was a free-text field. It now opens a dialog that lists the provider's live catalog through the same adapter a turn uses, with context, output, price, and vision from models.dev. Rows filter by text, vision, or free price, and a custom id remains available when the provider lists nothing.

The dialog is nested over room settings, so BaseDialog now gives Escape and the focus trap to the top dialog only. Clearing the model stores NULL, which returns the room to the provider's default.
2026-11-28 17:21:48 +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