Changeset 0.9.2 (#52)

This commit is contained in:
2026-02-23 19:31:33 +00:00
parent febcbde3d7
commit ac7c7c7d59
25 changed files with 534 additions and 54 deletions

View File

@@ -2,6 +2,35 @@
All notable changes to Chat Switchboard.
## [0.9.2] — 2026-02-23
### Added
- **Collapsible code blocks**: Code blocks over 15 lines auto-collapse into
`<details>` with language and line count summary. Language label shown in
top-left corner of all code blocks.
- **HTML preview**: "Preview" button on HTML code blocks opens a sandboxed
iframe (`allow-scripts`, no `allow-same-origin`). Auto-detected for
untagged blocks via heuristic.
- **Token count estimate**: Live token counter below input area showing
approximate tokens and context usage percentage when model has `max_context`.
- **Context length warning**: Dismissable banner above input at 75% (yellow)
and 90% (red) context usage with guidance to start a new chat.
- **Proxy interception detection**: `_parseJSON()` checks Content-Type before
`.json()` on all API paths including streaming. Typed `proxyBlocked` errors
with proxy page title extraction and actionable splash messages.
- **Environment injection**: `window.__ENV__` wired through entrypoint, k8s,
and index.html for dev/test/production gating.
- **Enhanced diagnostics**: `NET:PROXY` log type, Content-Type capture in
fetch interceptor, environment info in export header and state snapshot.
- **Team admin audit scoping**: New `GET /api/v1/teams/:teamId/audit` and
`/audit/actions` endpoints scoped to team members. Activity Log section
in team manage panel with filter dropdown and pagination.
- **New favicon**: Switchboard panel design with provider-colored jacks.
Animated SVG (rotating plugs), 32px PNG, 256px PNG, and ICO.
- **Seed users** (dev/test only): `SEED_USERS=user:pass:role,...` env var
pre-creates active users on startup. Ignored in production. K8s secret
`switchboard-seed-users` wired in backend manifest.
## [0.9.1] — 2026-02-23
### Removed