diff --git a/web/claw/README.md b/web/claw/README.md index 21fef23..7744007 100644 --- a/web/claw/README.md +++ b/web/claw/README.md @@ -30,8 +30,8 @@ When the claw config sets `token:`, every `/v1` route wants config `clawToken`), or - the inline field in the 401 banner; it is stored in `localStorage`. -`/healthz` is open either way, which is how the header dot stays honest -when the token is wrong. +`/healthz` is open either way, which is how the sidebar's health word +stays honest when the token is wrong. ## Build @@ -160,8 +160,8 @@ Two consequences worth knowing before changing this code: first remaining session, the stream's watcher following the key so nothing keeps streaming a session that no longer exists. - **Every row is controllable.** Beside the delete button, on hover: - `hold` posts `POST /v1/sessions/{key}/pause` and the row badges - `held` — queued work accumulates and nothing dispatches until `run` + `hold` posts `POST /v1/sessions/{key}/pause` and the row says + `held` in the warn tone — queued work accumulates and nothing dispatches until `run` posts the resume, both answered by the inventory's `paused` flag. `stop` posts `POST /v1/sessions/{key}/abort`: a live turn is cut (the stream closes on its `aborted` marker, in the warn tone, since @@ -172,15 +172,17 @@ Two consequences worth knowing before changing this code: ## Layout -The shell is an icon rail plus two views, switched by a tiny hash -router (`#/chat`, `#/settings/agent/general`, `#/settings/agent/ -accounts`, `#/settings/providers`, `#/settings/about`), no -vue-router. The chat view is the session inventory plus the live -transcript; the settings view is a searchable nav plus pages. The -agent's identity (name, mark, avatar) loads -once and renders everywhere — rail, sidebar, chat, window title — -through `AgentAvatar`, which owns the precedence: avatar image, then -mark or initials. Settings pages stage edits into a local draft and +The shell is one sidebar plus a view, switched by a tiny hash router +(`#/chat`, `#/settings/agent/general`, `#/settings/agent/accounts`, +`#/settings/providers`, `#/settings/about`), no vue-router. The sidebar +holds the session list in chat and the searchable settings nav in +settings. Both start with the product mark and end with a link to the +other view plus the claw's health. The chat view is the live +transcript; the settings view is pages on an 880px column. The agent's +identity (name, mark, avatar) loads once and renders in the chat rows +and the sidebar account row through `AgentAvatar`, which owns the +precedence: avatar image, then mark or initials. Settings pages stage +edits into a local draft and apply them with an explicit Save (`PUT /v1/providers/active` answers the new pair only; the client carries the provider list forward). The providers page also manages the roster itself: the add form renders @@ -189,7 +191,7 @@ from the `addable` kinds the claw serves; each kind's `fields` carry without (llama.cpp needs neither of its fields, it serves keyless on a default url); the form demands only those, marks the rest optional, and takes an optional instance name; unnamed, the id is the kind. Model -options carry a `◉ vision` mark when the live listing knows the model +options carry a `(vision)` note when the live listing knows the model takes images (`supports_vision: true`); the key's absence is unknown, never a no, so it renders nothing. A login is `PUT /v1/providers/{id}/credentials`: apply immediately, @@ -201,12 +203,14 @@ claw-side. ``` app/ - app.vue the shell: rail, banners, view switch - assets/css/main.css the Jadeite tokens (matches the TUI's - palette.rs DARK) + card/badge primitives + app.vue the shell: sidebar, banners, view switch + assets/css/main.css the Rhema Together palette (light and + dark), type scale, controls, cards, + markdown + assets/fonts/ FiraCode Nerd Font Mono for code components/ - AppRail.vue the icon rail: views, claw pulse - AppBadge.vue the status/tag pill + SidebarBrand.vue the product mark and name + AppBadge.vue the quiet tag AppCallout.vue the toned inline note (info/ok/warn/error) AppMarkdown.vue agent replies as markdown (markdown-it, raw HTML escaped, styles in main.css .md) @@ -218,12 +222,13 @@ app/ AppMarkdown SessionsSidebar.vue conversable dispatch keys (phone status keys hidden), interactive first; the - + form creates a session + + form creates a session; settings and + the agent's health in the footer PageHeader.vue title + subtitle + page actions SettingCard.vue one titled card of rows SettingRow.vue name + description + control - SettingsNav.vue searchable settings nav - StatusDot.vue one honest state dot + SettingsNav.vue searchable settings nav; chat and + health in the footer settings/ ProvidersPage.vue the backend switch: draft → Save/Discard AboutPage.vue identity, stack, the routes spoken diff --git a/web/claw/app/app.vue b/web/claw/app/app.vue index ca6e1e6..622f397 100644 --- a/web/claw/app/app.vue +++ b/web/claw/app/app.vue @@ -1,8 +1,8 @@ @@ -959,22 +979,8 @@ onUnmounted(() => {
-