@dreb/coding-agent 2.42.0 → 2.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -81,7 +81,7 @@ Or use a custom provider (corporate proxy, Bedrock, etc.) — see [Custom provid
81
81
 
82
82
  Then just talk to dreb. All 11 built-in tools are enabled by default: `read`, `write`, `edit`, `bash`, `grep`, `find`, `ls`, `web_search`, `web_fetch`, `subagent`, and `wait`. Use `--tools` to restrict to a subset (e.g., `--tools read,grep,find,ls` for read-only). Three additional tools — `search`, `skill`, and `tasks_update` — are always active regardless of `--tools`. `suggest_next` is active by default but excluded when `--tools` is specified. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [packages](#packages).
83
83
 
84
- **Also available:** [`@dreb/telegram`](https://www.npmjs.com/package/@dreb/telegram) — run dreb as a Telegram bot with live tool status and visible results for user-facing tools (`npm install -g @dreb/telegram`). [`@dreb/dashboard`](https://www.npmjs.com/package/@dreb/dashboard) — run `dreb dashboard` for a browser UI with fleet overview, full chat steering, subagent observability, host file browser, and Tailscale/rotating-code pairing (`npm install -g @dreb/dashboard`; see [docs/dashboard.md](docs/dashboard.md)). Its top bar and persistent session header indicators report connecting, connected, retrying, resyncing, disconnected, or auth failed; bounded SSE replay plus an explicit snapshot barrier restores session state and tasks after a reload, restart, gap, backpressure disconnect, or stalled stream.
84
+ **Also available:** [`@dreb/telegram`](https://www.npmjs.com/package/@dreb/telegram) — run dreb as a Telegram bot with live tool status and visible results for user-facing tools (`npm install -g @dreb/telegram`). [`@dreb/dashboard`](https://www.npmjs.com/package/@dreb/dashboard) — run `dreb dashboard` for a browser UI with fleet overview, full chat steering, subagent observability, host file browser, curated appearance themes (per-browser light/dark), and Tailscale/rotating-code pairing (`npm install -g @dreb/dashboard`; see [docs/dashboard.md](docs/dashboard.md)). Its top bar and persistent session header indicators report connecting, connected, retrying, resyncing, disconnected, or auth failed; bounded SSE replay plus an explicit snapshot barrier restores session state and tasks after a reload, restart, gap, backpressure disconnect, or stalled stream.
85
85
 
86
86
  **Platform notes:** [Windows](docs/windows.md) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
87
87
 
package/docs/dashboard.md CHANGED
@@ -123,7 +123,7 @@ networking window above.
123
123
  | **Session view** | Full chat drill-in. Markdown streaming transcript (text, thinking blocks with expand preference, agent-result cards, tool cards with bespoke read/write/edit/bash bodies plus full expandable inputs and markdown-rendered results for markdown-contract tools like subagent/skill/web_fetch/suggest_next, compaction/branch summaries, custom messages), per-message copy, tasks panel, subagent strip, status line with elapsed time plus ■ stop and compaction/retry aborts, a persistent session-header live indicator, and an info bar with cwd, branch, session name, token breakdown, cost/(sub)/daily rollup, ctx%, median tok/s, and a stats popover. Composer supports auto-grow, history, `/` autocomplete from `get_commands`, image attach/paste, queued-message chips with restore-all, steer/follow-up modes, and suggest-next. The ⋯ menu covers export HTML, compact, rename, fork-from-message, loaded context, and tool expand/collapse. Session names update live from manual rename or auto-naming. Extension UI requests (select/confirm/input/editor) render as modals; notifications as toasts. |
124
124
  | **Subagent view** | Read-only transcript of a background agent: live events via the RPC relay, hydrated from the agent's on-disk session log (`/subagents/:agentId/messages`) so the view survives browser reloads. Shows the task, streaming output, and tool activity. No composer — subagents can't be steered yet; the parent session controls them. |
125
125
  | **Files** | Host-wide browser with places shortcuts (home, /tmp, project roots), breadcrumbs to `/`, new-folder, download, drop-zone/picker upload with explicit collision prompts, and "new session here" on any directory. It also shows the **effective global nested-context trust** for the displayed canonical directory: untrusted, trusted by that root, inherited from a granting root, or global expert trust-all. You can trust the displayed folder and descendants, or untrust the actual granting root; untrusting an inherited folder removes that root's trust for all descendants. |
126
- | **Settings** | Persistent defaults (default model, thinking level, steering/follow-up queue modes, auto-compaction, auto-retry) via `get_settings`/`set_settings` — validation errors are shown verbatim. Entering Settings flushes pending writes and reloads durable global + project settings, so external edits appear; read, parse, or write failures fail loudly instead of showing stale settings. The global-only nested-context policy lists every explicit trusted root for audit and revoke, offers a simple add-by-path control, and includes a prominently warned expert trust-all toggle; the Files view remains the primary place to grant trust while browsing. Most defaults seed new sessions; context-trust changes are observed by active main/subagent processes for future lazy loads, but cannot remove already injected content. Dashboard-local preferences (always expand thinking, needs-attention notification permission) live in the browser. Shows the current rotating pairing code on the host/local dashboard, plus the paired-devices list with unpair. |
126
+ | **Settings** | Persistent defaults (default model, thinking level, steering/follow-up queue modes, auto-compaction, auto-retry) via `get_settings`/`set_settings` — validation errors are shown verbatim. Entering Settings flushes pending writes and reloads durable global + project settings, so external edits appear; read, parse, or write failures fail loudly instead of showing stale settings. The global-only nested-context policy lists every explicit trusted root for audit and revoke, offers a simple add-by-path control, and includes a prominently warned expert trust-all toggle; the Files view remains the primary place to grant trust while browsing. Most defaults seed new sessions; context-trust changes are observed by active main/subagent processes for future lazy loads, but cannot remove already injected content. Dashboard-local preferences (always expand thinking, needs-attention notification permission) live in the browser, alongside an appearance section: a theme gallery of eight curated themes (entropist.ca, Dim, Solarized, Gruvbox, Caves of Qud, Van Gogh, and the colorblind-safe Okabe-Ito and Paul Tol) with live preview cards and a system/light/dark mode selector, saved per browser. Shows the current rotating pairing code on the host/local dashboard, plus the paired-devices list with unpair. |
127
127
  | **Pairing** | Remote first-login: identity echo, rotating-code entry, and the security copy explaining what pairing grants. |
128
128
 
129
129
  ## Live connection and recovery
@@ -305,8 +305,42 @@ Browser dashboard (SolidJS + Vite, tokens.css design system)
305
305
  RPC sessions get the same LLM-generated session names as the TUI and update
306
306
  live via `session_name_changed`.
307
307
  - **Visual language**: `tokens.css` (`packages/dashboard/src/client/styles/`),
308
- the dashboard's design system IBM Plex Mono, light + dark via
309
- `prefers-color-scheme`.
308
+ the dashboard's design system, with `themes.css` as an additive layer on top.
309
+ The pristine default (the entropist.ca theme + system mode) renders exactly as
310
+ the `tokens.css` baseline; a curated theme or a forced mode overrides the design
311
+ tokens. See the appearance system below.
312
+
313
+ ## Appearance system
314
+
315
+ The dashboard owns its own palette surface, deliberately **independent of the
316
+ TUI theme system** — dashboard themes intentionally do not map to TUI themes.
317
+
318
+ - **Curated themes.** Eight themes — entropist.ca (the default baseline), Dim,
319
+ Solarized, Gruvbox, Caves of Qud, Van Gogh, and the colorblind-safe Okabe-Ito
320
+ and Paul Tol palettes — each a *family* with its own light and dark palette.
321
+ The two CVD-safe themes keep running/error on a blue/teal-vs-vermillion/red
322
+ axis (never green-vs-red) so status stays legible under deutan/protan/tritan
323
+ color vision. A separate mode toggle (system / light / dark) picks which
324
+ variant renders; forced light/dark works for every theme, including
325
+ entropist.ca. `system` follows the OS via `prefers-color-scheme`.
326
+ - **Theme gallery.** The settings appearance section shows a mode selector plus
327
+ a grid of live preview cards (one per theme). Each card previews its palette
328
+ locally without touching the page until you commit by clicking it.
329
+ - **Per-browser persistence.** Selections are stored in per-browser
330
+ `localStorage` (`dreb.dashboard.theme` / `dreb.dashboard.colorMode`), with a
331
+ cross-tab sync listener; a pristine install (entropist.ca + system) leaves no keys
332
+ behind and renders byte-for-byte identically to the `tokens.css` baseline. No
333
+ server/RPC involvement, no runtime dependencies.
334
+ - **No wrong-theme flash.** A synchronous bootstrap in `index.html` paints the
335
+ correct theme before any CSS loads, and keeps a live `theme-color` meta in
336
+ sync with the active background.
337
+ - **Self-hosted fonts.** Most themes use IBM Plex Mono; Gruvbox uses
338
+ self-hosted JetBrains Mono (OFL, provenance in
339
+ `src/client/assets/fonts/`), lazy-loaded by the browser only when Gruvbox is
340
+ active. No `light-dark()` is used, keeping an iOS Safari 16.4 floor.
341
+ - **PWA launch colors.** The static `manifest.webmanifest` keeps white
342
+ (default-light) launch colors as the fallback; the live `theme-color` meta
343
+ follows the active appearance once the app loads.
310
344
 
311
345
  ## Limitations (deliberate, sequenced later)
312
346
 
@@ -314,4 +348,3 @@ Browser dashboard (SolidJS + Vite, tokens.css design system)
314
348
  loop; the tree design and RPC are ready).
315
349
  - No shell passthrough from the browser.
316
350
  - No subagent steering (the drill-in view is read-only).
317
- - Fixed light/dark via `prefers-color-scheme` — no TUI-theme following.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreb/coding-agent",
3
- "version": "2.42.0",
3
+ "version": "2.43.0",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "drebConfig": {