Files
loki/scripts
CatoandClaude Opus 5.5 84f47582a5 chore(chatkit): the broken-word audit runs in audit:responsive and the widget test (#1425)
* chore(chatkit): 0.14.2 — the broken-word audit runs in audit:responsive and the widget test

chatkit 0.14.2 exports `@bitbaum/chatkit/audit`: `findBrokenWords(root)` and
`BROKEN_WORDS_SOURCE`, every word drawn across two lines (words beside
- / . @ : _ and over 24 characters exempt). "Di / re / ct / or / y" is five
syllables nobody wrote, and reading the CSS never finds it — only laying the
words out does.

- `pnpm run audit:responsive` now fails a page/viewport on a cut word, listing
  the page, the width and every word (the list names the cause: one word is a
  narrow cell, all of them a `break-all` on an ancestor). Same retry path as
  the overflow measure.
- scripts/test/widget-host-avoid-browser.ts serves the chat chunk
  (public/widget-chat.js, built as build:widget builds it) from the mocked
  origin, opens the panel with data-fc-chat="kit" at 390 and runs the same
  measure on the panel. Mutation-proven: `word-break: break-all` on the panel
  fails it with the greeting, starters and mode labels listed.
- No cut word found: the widget panel at 390, and / /sign-in /change /build
  /fleet /pricing /sign-up /u/cato /docs/feedback-widget and two more public
  pages at 320/390/768/1440 on the live site all pass.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* chore(chatkit): 0.15.0, and a variable read with its fallback has a default

chatkit 0.15.0 is additive over 0.14.2. Its stylesheet reads
var(--ck-n, 1), a per-element variable with the fallback at the point of
use, which widget-chat-css's "every other variable has chatkit's own
default" check counted as unset. It now counts a fallback as a default; the
colour check (every colour from the widget theme) is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 13:29:01 +02:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00