* feat(pdf): read a PDF someone attaches, as text or as pictures of its pages
No model on a free chain reads a PDF file, so a PDF never leaves the device
as one. @bitbaum/chatkit/pdf reads it in the browser with pdf.js:
- a PDF with a text layer comes back as text, page markers kept;
- one without (slides exported as pictures, a scan) comes back as its pages,
four to a sheet at 784px a page, for a model that can see.
chatkit-copy-pdf-assets copies pdf.js's worker and decoders into the app's
static folder; readPdf takes their URL. Without the decoders, JPEG 2000
pages (macOS's "reduce file size" export) draw blank. The legacy build is
used so older iPhones read PDFs too; pdf.js loads only on the first PDF.
Found on OrangeCat 2026-10-27: a 17-slide investor deck (no text layer,
JPEG 2000 images) could not be shared with the Cat at all. Checked in
Chromium against that deck: 5 sheets, every slide legible.
Release 0.20.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3
* docs(pdf): describe the app's static folder without naming it as a chatkit path; chain the copy into build (pnpm skips prebuild)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3
---------
Co-authored-by: Claude <noreply@anthropic.com>
* ci(publish): a merged version bump releases itself
Publishing waited for someone to push a v* tag after the merge. That step
is easy to forget and impossible from an agent session (the git proxy
refuses tag pushes), so 0.4.0 sat merged and unpublished — exactly the
"fix merged, nobody has it" gap the release was meant to close.
publish.yml now also runs on pushes to main and on dispatch; the existing
registry check makes every merge that did not change the version a green
no-op. A release from main tags the commit v<version> itself, so versions
stay traceable. The auto-merge sweep re-arms publish.yml after a
GITHUB_TOKEN merge, which starts no push workflow on its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck
* fix(check): comments are not inputs; 0.4.1
The first run across the fleet flagged one line in loki — a comment
recording the old bug (`<input accept="image/*,text/*…">`). Comment lines,
block comments and trailing comments are skipped now. "/*" counts as a
comment only after space, "{" or "(", because inside an accept value it
follows a letter ("image/*") — a test pins that a trailing comment cannot
hide the real input before it.
0.4.0 was never published; this ships as 0.4.1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck
---------
Co-authored-by: Claude <noreply@anthropic.com>
- `@bitbaum/chatkit/attach`: AttachMenu, ATTACH_SOURCE_INPUT, isTextFile,
acceptFamilies and shrinkImage without the composer, so an app with no chat
(avatars, product photos, receipts) uses the same picker instead of
re-rolling a file input. AttachMenu takes `sources` (an image uploader offers
Camera + Photos; one source skips the sheet) and a `trigger`.
- `chatkit-check-file-inputs` (bin): fails CI on a literal accept that mixes
file families — the shape that hid screenshots on Android in loki, orangecat
and evig. Same rule as the package (acceptFamilies), so there is one
definition; a justified exception is marked on the line.
- shrinkImage moves out of the composer hook into src/image.ts (unchanged).
- README: install releases from npm, never a commit — heidi and substrata
stayed on the broken paperclip because they pinned old versions.
Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck
Co-authored-by: Claude <noreply@anthropic.com>