129 Commits
Author SHA1 Message Date
CatoandClaude 4a1af07415 ModelSheet and ModelChip; a failed turn can carry its way on (0.46.0) (#118)
The model button, the bring-your-own-key sheet and the link under a failed
turn ("Get a pass") were built in Heidi. They are the chat's experience, so
they belong here: ModelChip for the header, ModelSheet driven by the
product's vendor allowlist and key check, and ChatFailure.action/retry so a
transport can say what the reader can do next and when Retry cannot help.


Claude-Session: https://claude.ai/code/session_019MDtmteJuDGFouA1itJ5tM

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 09:39:11 +01:00
CatoandClaude 4ce893b3b9 docs(roadmap): Messenger reply gating, CommentThread maxLength/stance/edit, German labels (#116)
Gaps reported while moving evig onto chatkit.


Claude-Session: https://claude.ai/code/session_019MDtmtoej4Vu1mYafzzcLc

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 19:41:22 +01:00
CatoandClaude Opus 5.5 f82952e06c feat(field): DictationField with no state in the app — native forms and react-hook-form (0.45.0) (#114)
* feat(field): DictationField with no state in the app — native forms and react-hook-form (0.44.0)

- Uncontrolled mode: value/onValueChange optional, new defaultValue; the real
  text box carries name, so a native form or server action posts typed and
  said words, and a form reset restores defaultValue.
- react-hook-form: forwardRef (ref is the text box), onChange(event) for
  every change including microphone/Improve/Undo/setText, onBlur(event).
- Browser test drives react-hook-form itself (register, Controller, reset)
  and a native form; docs/roadmap.md records the remaining typing gaps.

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

* docs(field): say the ref works across the peer React range, not a version

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.45.0
2026-11-15 19:13:22 +01:00
CatoandClaude b8b11b843d fix(messenger): Info leaves agents out and lists delivery only when it came first (#115)
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6

Co-authored-by: Claude <noreply@anthropic.com>
v0.44.1
2026-11-15 18:30:54 +01:00
dependabot[bot] 414da5692c chore(deps-dev): bump the dev group with 3 updates (#112)
Bumps the dev group with 3 updates: [playwright](https://github.com/microsoft/playwright), [prettier](https://github.com/prettier/prettier) and [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint).


Updates `playwright` from 1.64.1 to 1.65.0
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.64.1...v1.65.0)

Updates `prettier` from 3.9.10 to 3.10.1
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.10...3.10.1)

Updates `typescript-eslint` from 8.72.1 to 8.72.2
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.72.2/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: playwright
  dependency-version: 1.65.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev
- dependency-name: prettier
  dependency-version: 3.10.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev
- dependency-name: typescript-eslint
  dependency-version: 8.72.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-15 17:57:30 +01:00
CatoandClaude 7902b8afeb feat(messenger): Show text under a voice message; ship the styles 0.39 and 0.42 lost (0.44.0) (#113)
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6

Co-authored-by: Claude <noreply@anthropic.com>
v0.44.0
2026-11-15 17:53:18 +01:00
CatoandClaude fd7031ea04 feat(composer, field): one box — Composer and DictationField are two shapes of one implementation (0.43.0) (#111)
The four steps 0.41 left in the README are done:
- One frame: TypingBox (typing.tsx) draws the voice bar, box, strip, text,
  tools row and the take's problem for both. The field's tools row is the
  composer's ck-tools, so its paperclip and microphone are bare icons like
  the composer's (they were bordered circles). Frame and text share one set
  of rules in styles.css; each shape keeps only its differences.
- One text hookup: useTypingText (dictation + appendTranscript +
  clipToMaxLength + the latest-text ref).
- One submit-key rule: submitKeyAction in composer.ts, exported.
- Same controls on both: Composer `attachments`; DictationField
  `handleRef` (DictationFieldHandle) and `attachExtras`.

Public APIs are additive. All existing tests unchanged; new unit, render
and browser checks (390px, 320px dark, desktop).


Claude-Session: https://claude.ai/code/session_019MDtmv1SAs6YZn4FrewbXR

Co-authored-by: Claude <noreply@anthropic.com>
v0.43.0
2026-11-15 16:50:56 +01:00
CatoandClaude Opus 5.5 42e760d540 feat(messenger): forward a message; pin and mute a conversation (0.42.0) (#110)
* feat(messenger): forward a message; pin and mute a conversation (0.41.0)

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

* chore: release as 0.42.0 (0.41.0 is the DictationField release)

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.42.0
2026-11-15 16:07:32 +01:00
CatoandClaude f7401fc7fa release: v0.40.0 (DictationField gets the composer's paperclip; one way a person types) (#109)
DictationField takes `attach?: boolean | AttachOptions` and an app-owned
`attachments?: AttachmentsController`: the same paperclip sheet, paste,
drop, staged previews with Remove and limits as Composer. Off by default.

The paperclip wiring, staged strip, mic button and the shared voice and
attach labels move into one internal module (src/react/typing.tsx) used by
both Composer and DictationField. Composer's behaviour and API unchanged.
README gains the Composer-vs-DictationField rule and the plan for the rest
of the unification.


Claude-Session: https://claude.ai/code/session_019MDtmv1SAs6YZn4FrewbXR

Co-authored-by: Claude <noreply@anthropic.com>
v0.41.0
2026-11-15 14:23:48 +01:00
CatoandClaude e770b4597b fix(composer, field): one shape for a composer's tools; the one-line field keeps one box (v0.40.1) (#108)
A framed Composer drew Attach and the microphone as filled circles next
to a bare model chip; they are bare icons now, as in the inline composer.
DictationField had the double box 0.39.1 removed from the composer: a
host's input rounding and focus ring drew inside its frame. Both are
measured inside the hostile-host demo.


Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh

Co-authored-by: Claude <noreply@anthropic.com>
v0.40.1
2026-11-15 14:11:03 +01:00
CatoandClaude b495ba5a8d feat(ChatApp): hostList + onListChange, so a product can draw the chat list in its own sidebar (v0.40.0) (#107)
On OrangeCat, the Cat's chat rail sat beside the app's Bots list: two
lists taking half the screen. `hostList` drops the rail, the drawer and
the Chats button; `onListChange` hands the product the rows, the load
state, the open chat and the busy chats, so it can nest them under the
bot in one lane. Opening and starting chats already go through the handle.

busyIds is re-created only when its members change, so a host that keeps
the list in state does not render in a loop.


Claude-Session: https://claude.ai/code/session_019MDtmtCeJSbD69gBDGaLAE

Co-authored-by: Claude <noreply@anthropic.com>
v0.40.0
2026-11-15 13:55:07 +01:00
CatoandClaude 43bb583152 release: v0.39.1 (every Composer keeps one box inside a host's base styles) (#106)
Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh

Co-authored-by: Claude <noreply@anthropic.com>
v0.39.1
2026-11-15 13:29:14 +01:00
CatoandClaude 3cfa412350 fix(composer): every Composer keeps one box inside a host's base styles (#105)
Found on OrangeCat (owner's phone, 2026-11-15) in the Cat chat: the site's
*:focus-visible ring and rounded textarea rule drew a second box inside the
composer. The Messenger was guarded; the plain Composer was not. The guard
now sits on every composer's field and the Messenger's copy is gone.
test/browser.mjs measures the focused field inside a hostile host
stylesheet (one shared demo helper, demo/hostile-host.ts): FAIL before
(ring + 6px radius), PASS after. Embedded sheet 10,996 B gzipped (budget
11,000), by dropping a rule that set an outline only to remove it.


Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 13:01:38 +01:00
CatoandClaude Opus 5.5 20f5b5849b feat(messenger): delivered, read and when; delete for me or for everyone; edit history (0.39.0) (#104)
* feat(messenger): delivered, read and when; delete for me or for everyone; edit history (0.39.0)

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

* fix(sheet): a close the app caused never shuts the next sheet; tests wait for it

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

* test(messenger): say what the page looked like when the actions sheet did not open

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

* fix(sheet): a late close event never shuts a sheet that is open again

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.39.0
2026-11-15 11:35:04 +01:00
CatoandClaude Opus 5.5 ae88db6c0b fix(messenger): the Agent mark only under an agent; a message is never drawn as nothing (0.38.0) (#103)
* fix(styles): starters are one column at every width (0.31.3)

The empty chat's starters wrapped into a row of pills. A row of choices is
never wrapping pills (fleet AGENTS.md, "One shape per kind"; OrangeCat UX
audit 2026-11-12, auth-firstrun#5). .ck-starters-list is now a column and
each .ck-starter a full-width, left-aligned, 44px row. Checked in
test/styles.test.js and test/browser-app.mjs at 390px and 1440px.

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

* fix(messenger): a message's actions by keyboard; alone with an agent every message is for it, and its answer reads it

- The actions button of a message was display:none until hovered, so Tab
  never reached it and Edit and Delete had no way in without a mouse. It is
  hidden by opacity now, takes focus, is 44px, and stays on the screen on a
  phone. Long press and right click are unchanged.
- soleAgent(): one person and one agent. There the empty conversation says
  the agent answers every message, Ask <agent> is not offered, and a message
  starts the wait for a named agent without naming it.
- receiptOf(): where only agents could read a message, it is read once an
  agent's own read mark is past it. A conversation with only an agent stayed
  at Sent for ever.
- An awaited agent is not also shown typing.

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

* chore(release): 0.35.0

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

* test(app): a 44px control measured mid-slide is not a small target

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

* fix(messenger): the Agent mark only under an agent; a message is never drawn as nothing (0.37.0)

Found on OrangeCat (owner's phone, 2026-11-15), a conversation with a
person and the Cat:

- The top bar drew "Agent · Cat is in this conversation" under the
  person's name, so it read as "Penguin is an agent". The mark is now drawn
  only where the title is an agent; with people here the line reads
  "@penguin · Cat is here". `agentHere` is now "{name} is here" (the old
  wording was cut off at 390px).
- A message with no words, card or files was an empty row with a time and
  a tick. It now says "This message could not be shown."
  (`labels.emptyMessage`).

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

* test: drop tests duplicated by the branch merge

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.38.0
2026-11-15 02:36:32 +01:00
CatoandClaude be943e2647 feat(messenger): voice messages people find, and that play everywhere (0.37.0) (#102)
The empty box's send slot records a voice message in the box's place; one
tap sends it. A voice note plays in the thread in the bubble's own colours.
AAC in MP4 first, so every phone plays it. Its length travels with it.

Fix: the timer rounded to 0:01 at half a second and a short take was
dropped without a word.


Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6

Co-authored-by: Claude <noreply@anthropic.com>
v0.37.0
2026-11-15 01:41:03 +01:00
CatoandClaude ca1a15844b fix(messenger): a message's actions by keyboard; alone with an agent every message is for it (0.36.0) (#101)
* fix(styles): starters are one column at every width (0.31.3)

The empty chat's starters wrapped into a row of pills. A row of choices is
never wrapping pills (fleet AGENTS.md, "One shape per kind"; OrangeCat UX
audit 2026-11-12, auth-firstrun#5). .ck-starters-list is now a column and
each .ck-starter a full-width, left-aligned, 44px row. Checked in
test/styles.test.js and test/browser-app.mjs at 390px and 1440px.

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

* fix(messenger): a message's actions by keyboard; alone with an agent every message is for it, and its answer reads it

- The actions button of a message was display:none until hovered, so Tab
  never reached it and Edit and Delete had no way in without a mouse. It is
  hidden by opacity now, takes focus, is 44px, and stays on the screen on a
  phone. Long press and right click are unchanged.
- soleAgent(): one person and one agent. There the empty conversation says
  the agent answers every message, Ask <agent> is not offered, and a message
  starts the wait for a named agent without naming it.
- receiptOf(): where only agents could read a message, it is read once an
  agent's own read mark is past it. A conversation with only an agent stayed
  at Sent for ever.
- An awaited agent is not also shown typing.

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

* chore(release): 0.35.0

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

* test(app): a 44px control measured mid-slide is not a small target

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.36.0
2026-11-14 11:13:26 +01:00
Catoandbitbaum-fleet 1273503e97 chore: add the fleet package template files this repo is missing (release-notify-tagged.yml) (#100)
Files from bitbaum/fleet `templates/package` that this repository does not have yet:

- `.github/workflows/release-notify-tagged.yml`

Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.

Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.

Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
2026-11-14 10:20:42 +01:00
CatoandClaude af38830544 feat(messenger): search inside a conversation (0.35.0) (#99)
transport.search puts a search in the top bar; a match is led to, loading
earlier pages until it is there. A search field takes no host focus ring
inside its pill.


Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6

Co-authored-by: Claude <noreply@anthropic.com>
v0.35.0
2026-11-14 09:52:15 +01:00
CatoandClaude aa5fba7351 feat(messenger): voice messages (0.34.0) (#98)
Record in the box's +, listen, add to the message. The take is a file like
any other. The microphone is open only while recording and is closed on every
way out.


Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6

Co-authored-by: Claude <noreply@anthropic.com>
v0.34.0
2026-11-13 21:51:00 +01:00
CatoandClaude f3e59f04b0 feat(messenger): New opens on the app's suggestions, and an agent is offered as one (0.33.0) (#97)
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6

Co-authored-by: Claude <noreply@anthropic.com>
v0.33.0
2026-11-13 20:50:36 +01:00
CatoandClaude dc53be7893 feat(send-queue): a queued message keeps its conversation; an unanswered question says so (0.32.0) (#96)
Measured on Loki's chat, 2026-11-13: three quick messages in a new chat
became three conversations, two queued messages vanished on reload, and a
question whose answer died with the page showed nothing under it, forever.

- send-queue (pure): takeQueuedFor, queuedFor, storableQueue,
  serializeQueue, parseStoredQueue, unansweredTurn.
- ChatThread takes `unanswered` and says so, with Try again when onRetry
  is given; ChatApp passes it.

test/send-queue.test.js; verify (format, lint, typecheck, build, tests,
browser tests) passes.


Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq

Co-authored-by: Claude <noreply@anthropic.com>
v0.32.0
2026-11-13 16:42:49 +01:00
CatoandClaude 320db4ebd2 fix(messenger): hold its shape inside a product's own styles (0.31.3) (#95)
A photo that is not square was a tall oval; a host's focus ring drew a box
inside the composer; a host's 44px minimum for links pushed the name off its
subtitle; a host's paragraph rules loosened an agent's answer. The browser
suite now loads a hostile host stylesheet and a 300x500 photo and measures.


Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 13:22:27 +01:00
CatoandClaude b4d7ac6a54 fix(styles): starters are one column at every width (0.31.3) (#94)
The empty chat's starters wrapped into a row of pills. A row of choices is
never wrapping pills (fleet AGENTS.md, "One shape per kind"; OrangeCat UX
audit 2026-11-12, auth-firstrun#5). .ck-starters-list is now a column and
each .ck-starter a full-width, left-aligned, 44px row. Checked in
test/styles.test.js and test/browser-app.mjs at 390px and 1440px.


Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

Co-authored-by: Claude <noreply@anthropic.com>
v0.31.3
2026-11-13 12:07:47 +01:00
Catoandfleet-reconciler e751eb91a0 chore(deps): raise shared package floors to published versions (#93)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-13 11:46:38 +01:00
CatoandClaude 5930ec6425 Messenger: export MessengerComposerAction (0.31.2) (#92)
* feat(messenger): replies, reactions, and things of value in a conversation (0.31.0)

Reply to any message (the answer carries one line of the original, which
leads back to it); emoji reactions, one per person, shown at once; cards for
value in a thread (a payment request, money sent, a gift), written by the app
for this reader and drawn in one shape; the app's own actions in the box's
"+", with one "how much?" sheet for those that need an amount.

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

* feat(messenger): an action's amount sheet takes the app's note length

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

* feat(messenger): an action's amount sheet takes the app's note length

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

* chore(release): 0.31.1

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

* fix(messenger): export MessengerComposerAction

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

* fix(messenger): export MessengerComposerAction (0.31.2)

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.31.2
2026-11-13 10:34:39 +01:00
CatoandClaude 24e09b1c01 Messenger: an action's amount sheet takes the app's note length (0.31.1) (#91)
* feat(messenger): replies, reactions, and things of value in a conversation (0.31.0)

Reply to any message (the answer carries one line of the original, which
leads back to it); emoji reactions, one per person, shown at once; cards for
value in a thread (a payment request, money sent, a gift), written by the app
for this reader and drawn in one shape; the app's own actions in the box's
"+", with one "how much?" sheet for those that need an amount.

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

* feat(messenger): an action's amount sheet takes the app's note length

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

* feat(messenger): an action's amount sheet takes the app's note length

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

* chore(release): 0.31.1

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.31.1
2026-11-13 10:15:00 +01:00
CatoandClaude bc078bfcd5 feat(messenger): replies, reactions, and things of value in a conversation (0.31.0) (#90)
Reply to any message (the answer carries one line of the original, which
leads back to it); emoji reactions, one per person, shown at once; cards for
value in a thread (a payment request, money sent, a gift), written by the app
for this reader and drawn in one shape; the app's own actions in the box's
"+", with one "how much?" sheet for those that need an amount.


Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6

Co-authored-by: Claude <noreply@anthropic.com>
v0.31.0
2026-11-13 10:03:10 +01:00
CatoandClaude 8452fb12ab VoiceMode: talking with a chat, and a microphone that cannot be opened twice (0.30.0) (#89)
Cat Bot has to be a complete equivalent of Grok Bot, which has a voice mode.
The chat could take dictation and read an answer aloud, but not hold a
spoken conversation.

- VoiceMode (the screen), useVoiceMode (the loop), voiceModeReducer (the
  rules, pure): listening -> thinking -> speaking -> listening. One big
  button ends the person's turn (a pause ends it by itself where the
  browser's recogniser runs) and cuts in while the answer is read. The app
  passes onTurn(text) => Promise<answer> and, if it has one, a studio
  speaker.
- The microphone and the voice follow the phase and nothing else
  (voiceModeWants): never both open, neither open when the call is off. Two
  empty takes, a failed transcription or an answer that never comes each end
  the call in words, with "Talk again".
- Fix, useDictation: a second start() before the browser had handed the
  microphone over opened a second microphone and orphaned the first, whose
  track stayed live with nothing left to stop it. One request at a time now,
  and a take cancelled while the microphone was still opening closes it
  where it arrives. Found by this change's browser test.
- Its styles are their own section and styles/voice.css, so the embedded
  chat sheet stays inside its 11 KB budget.

test/voice-mode.test.js (8) and test/browser-voice.mjs (a real browser, a
fake-device microphone, every opened track counted). pnpm run verify passes.


Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi

Co-authored-by: Claude <noreply@anthropic.com>
v0.30.0
2026-11-13 08:18:12 +01:00
CatoandClaude e690b2254a Messenger: people talking to people, and to the agents among them (0.29.0) (#82)
* Messenger: people talking to people, and to the agents among them (0.26.0)

OrangeCat's direct messages were built in the app, so what was wrong with
them could not be fixed for the next product: an agent's answer in a
conversation between two people looked like the other person's, nothing
said an agent was taking part, top bar and a two-row box took half a
phone, and nothing could be attached. This is the messenger as a package.

@bitbaum/chatkit/messenger: Messenger (the whole screen) and its parts
useMessenger, ConversationList, MessageThread, MessageAttachments. The app
implements MessengerTransport; the package has no database, websocket or
storage. styles/messenger.css is the embedded sheet plus the Messenger's
section, without ChatApp.

- An agent is told from a person by the shape of its face, an Agent mark
  with whom it answered for, and an outlined bubble; the top bar says it
  is in the conversation; naming it shows that it is thinking, and says
  so if it never answers.
- Files: Camera, Photos, Videos, Files, checked against the attachment
  policy before an upload starts, photos shrunk in the browser, progress
  and Try again per file, a full-screen viewer, a film drawn as its still.
- The thread: runs, day lines, a New line, ticks from readState, a failed
  message kept with Try again, earlier messages loaded above with the
  reader's place kept, one bubble per message however often it arrives.
- Composer: layout="inline", attachmentsAlone, attach.take, attach.accept,
  a "videos" source, files dropped onto the box. Defaults unchanged.

The state is one pure function (messengerReducer), tested in Node.
test/browser-messenger.mjs drives demo/messenger.html at 390px, 320px
dark and 1280px. It found two defects before any product did: a read mark
that cleared the badge without telling the server, and a page of history
that pulled the reader to the end of the thread.

threadkit 0.1.2 (attachment policy, mention matcher, readState) is merged
and tagged but not on npm, so those rules are carried word for word in
src/thread-rules.ts with threadkit's own tests; the file says when it goes.

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

* test(messenger): wait for the opened conversation before reading its thread

Side by side, the conversation that was open can still be on screen with a
"New" line of its own, so the check read the old thread on a slow runner.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.29.0
2026-11-12 16:26:03 +01:00
CatoandClaude ea5963c80e fix(field): a dictated take or a rewrite never passes the field's maxLength (0.28.1) (#87)
* feat(field): DictationField in a form — name, error, submit keys, field-level focus (0.27.0)

Loki's 36 hand-made text areas could not become DictationField because a
form needs props the field did not pass through (measured: onKeyDown 10,
maxLength 9, id 7, autoFocus 7, disabled 5, onBlur 2, onFocus 1, name 2,
spellCheck 1, plus validation errors on the field).

- name, autoFocus, readOnly (no mic, no Improve, no Undo)
- invalid / error: aria-invalid, the frame in --ck-danger, the error under
  the field as role=alert, error and hint linked with aria-describedby
- onKeyDown, and onSubmit owned by the package: Cmd/Ctrl+Enter in a text
  area, Enter in one line; never while composing, disabled, read-only or
  during a take
- onFocus / onBlur for the whole field: the mic is not a blur, and a blur
  during a take is held until its words reach onValueChange
- inputProps for spellCheck, autoComplete, inputMode, aria-*, data-*;
  managed props win
- Enter in Improve's instruction box applies it

Tests: server markup in render.test.js; a Strict Mode form fixture in
browser-field.mjs at 390px and desktop, light and dark, and 320px with an
error shown. Version 0.27.0 (0.26.0 is already on npm).

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

* fix(field): Improve at work is not a blur; Enter never sends the native form mid-take

Review findings on the 0.27.0 DictationField form props:
- Improve disables its own box and button while it works, so focus fell off
  with nowhere to go and the field reported a blur. Improve at work now
  counts as busy, like a take.
- With onSubmit, Enter in a one-line field (Shift+Enter, during a take,
  read-only) no longer runs the browser's implicit form post.
- error="" or 0 is no error: no danger frame, no aria-invalid with nothing said.
- inputProps.style no longer reaches the box (16px text is the package's).
- The form fixture loads a development bundle, so Strict Mode is exercised.
- README and CHANGELOG: a held blur is not reported if the host unmounts
  the field; the hint's aria-describedby is the one markup change.

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

* fix(field): a dictated take or a rewrite never passes the field's maxLength

The attribute stops typing and pasting at the limit and nothing else: text
the field sets itself went straight past it, and the form then refused or
cut what the person had said. Found reviewing Loki's converted fields, which
set 300 and 1000.

clipToMaxLength cuts at the limit, back to a whole word when one is within
24 characters, and is exported. Unit test in core.test.js.

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

* release 0.27.1: dictation and Improve respect a field's maxLength

The fix was pushed after #85 had merged, so 0.27.0 went out without it.
It gets its own patch release and changelog entry.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.28.1
2026-11-12 11:15:16 +01:00
CatoandClaude b53f8e615a fix(thread): following never scrolls the page up, and --ck-follow-gap (#88)
On bitbaum /hire/ at 390x844 the contact box (a ChatThread, a receipt link
and the Composer) sits mid-page and the document owns the scroll. The
reader's first message pinned the end of the thread to the bottom of the
viewport, which scrolled the page UP by about 300px and pushed the composer
they were typing in below the fold.

What a consumer gets:
- When the document owns the scroll, following only moves the page down:
  with the end of the thread already on screen, nothing moves. A thread or
  panel that scrolls itself is unchanged, and the jump button still goes to
  the latest turn in either direction, because the reader asked.
- --ck-follow-gap (a length, default 0) on the thread's wrapper or any
  ancestor leaves that much room under the latest turn when the page
  follows, so a composer under the thread stays in view. The browser
  resolves it (rem, em, px, calc); unset, negative or invalid is 0.
- While the reader has sent nothing on a page, nothing moves, as before.

How it is checked: test/browser-scroll.mjs gains a mid-page fixture
(demo/scroll.html?owner=page&greeting&below) at 390 and 1280px. With the
composer mid-screen the first message does not scroll the page up and the
composer stays on screen; as the thread grows past the foot of the screen
the page follows and leaves the end at 0px, 10rem, 6em, 90px and (invalid)
0px above the bottom of the viewport, within 2px. Both checks fail on the
previous code; every existing scroll case passes unchanged.

Claude-Session: https://claude.ai/code/session_019MDtmsSWTTpVpe4wh3v1sb

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 10:30:35 +01:00
CatoandClaude 53b889531a feat(comments): a refused comment says why (CommentRefused, 0.26.0) (#83)
CommentThread always said "The comment could not be posted... try again"
whatever the server answered, so a comment that was too short or over a
rate limit was retried forever (seen on Substrata, 2026-11-12).

A transport may throw new CommentRefused(words) from post or remove; the
thread shows those words. Any other error still shows postFailed /
removeFailed, so a raw error or a server's English never reaches a reader
by accident (the ChatTurnError rule). commentFailure(error, fallback) is
exported for apps that build their own box.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

Co-authored-by: Claude <noreply@anthropic.com>
v0.28.0
2026-11-12 10:20:28 +01:00
CatoandClaude c33ffa32b3 fix(composer): a visible border while the composer has keyboard focus (#86)
The composer's text area drops its outline, and the only sign of focus
was a 1px border stepping from 90% to 82% grey: 1.5:1 against the
composer in light, 1.35:1 in dark, and no change at all in ChatScreen's
floating composer (measured on bitbaum.orangecat.ch, 2026-11-12).

While the composer holds focus its border now takes --ck-focus, a new
overridable variable that defaults to the secondary ink (--ck-fg-2):
5.7:1 in light and 7.0:1 in dark with the design tokens, in every
composer shape including ChatScreen's dock. Still a 1px border with no
ring, so the box keeps its quiet look and its size. An app can set
--ck-focus to its own colour.

test/browser.mjs tabs to the composer on the demo and the full screen
at 390 and 1280px, light and dark, and checks that the border changes,
that it contrasts at least 3:1 with the composer's own background
(computed in the page), and that the composer measures the same focused
and unfocused. The contrast and dock checks fail without this change.

Claude-Session: https://claude.ai/code/session_019MDtmsSWTTpVpe4wh3v1sb

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 10:00:18 +01:00
CatoandClaude 3a3384c5b8 feat(field): DictationField can stand in for a form's text area (0.27.0) (#85)
* feat(field): DictationField in a form — name, error, submit keys, field-level focus (0.27.0)

Loki's 36 hand-made text areas could not become DictationField because a
form needs props the field did not pass through (measured: onKeyDown 10,
maxLength 9, id 7, autoFocus 7, disabled 5, onBlur 2, onFocus 1, name 2,
spellCheck 1, plus validation errors on the field).

- name, autoFocus, readOnly (no mic, no Improve, no Undo)
- invalid / error: aria-invalid, the frame in --ck-danger, the error under
  the field as role=alert, error and hint linked with aria-describedby
- onKeyDown, and onSubmit owned by the package: Cmd/Ctrl+Enter in a text
  area, Enter in one line; never while composing, disabled, read-only or
  during a take
- onFocus / onBlur for the whole field: the mic is not a blur, and a blur
  during a take is held until its words reach onValueChange
- inputProps for spellCheck, autoComplete, inputMode, aria-*, data-*;
  managed props win
- Enter in Improve's instruction box applies it

Tests: server markup in render.test.js; a Strict Mode form fixture in
browser-field.mjs at 390px and desktop, light and dark, and 320px with an
error shown. Version 0.27.0 (0.26.0 is already on npm).

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

* fix(field): Improve at work is not a blur; Enter never sends the native form mid-take

Review findings on the 0.27.0 DictationField form props:
- Improve disables its own box and button while it works, so focus fell off
  with nowhere to go and the field reported a blur. Improve at work now
  counts as busy, like a take.
- With onSubmit, Enter in a one-line field (Shift+Enter, during a take,
  read-only) no longer runs the browser's implicit form post.
- error="" or 0 is no error: no danger frame, no aria-invalid with nothing said.
- inputProps.style no longer reaches the box (16px text is the package's).
- The form fixture loads a development bundle, so Strict Mode is exercised.
- README and CHANGELOG: a held blur is not reported if the host unmounts
  the field; the hint's aria-describedby is the one markup change.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
v0.27.0
2026-11-12 08:58:49 +01:00
CatoandClaude 29db16250a fix(thread): a greeting on a page no longer takes the page (#84)
A ChatThread holding one greeting, at the foot of a long page, has no
scroll of its own, so the document owned the scroll and useStickToBottom
pinned the document to the thread's end on mount. bitbaum.orangecat.ch
/hire/ and /builders/ opened on the contact box, past the headline and
the prices.

While the document owns the scroll and the reader has sent nothing, the
thread does not move the page and shows no jump button. The reader's
first message starts the following, as before; a conversation that
already holds a turn from the reader still opens at its latest turn.

test/browser-scroll.mjs covers it on a new fixture
(demo/scroll.html?owner=page&greeting) at 390 and 1280px and fails on
0.25.0.

Claude-Session: https://claude.ai/code/session_019MDtmsSWTTpVpe4wh3v1sb

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 08:47:23 +01:00
bitbaum-fleet 9ea96bf7ea release v0.26.0 v0.26.0 2026-11-12 07:13:15 +00:00
CatoandClaude f6c26f054c fix(dictation): no microphone on a page whose policy refuses one (#81)
A host that sends Permissions-Policy: microphone=() (the fleet's starter
template, and orangecat.ch for a while) made every take fail with
'blocked', which the person cannot fix, while every Composer and
DictationField still drew the mic. useDictation's supported is now false
when the page's policy refuses the microphone; microphoneAllowedByPolicy is
exported for apps that draw their own. A browser without the policy API
behaves as before. Found by the package audit of 2026-11-12; Loki's widget
hand-rolled the same check.


Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 08:02:41 +01:00
CatoandClaude ab1708b1bd Agents are members: an Agent mark and whom it works for (#80)
ChatSpeaker gains kind (agent | person) and onBehalfOf, drawn as
'Loki [Agent] · for Georgy' in the thread and on the streaming turn.
Labels translatable and optional; existing apps unchanged.


Claude-Session: https://claude.ai/code/session_019MDtmumjtt5TjdvRDGHoa5

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-11 13:07:05 +01:00
bitbaum-fleet 1b26e9ec70 release v0.25.0 v0.25.0 2026-11-10 11:12:54 +00:00
Cato a9dca01b11 feat(attach): sources option, so a text-only app offers no Camera or Photos and refuses pasted pictures (#79)
Claude-Session: https://claude.ai/code/session_019MDtmvGASoUtc3fejF7Lsy
2026-11-10 12:07:53 +01:00
bitbaum-fleet b96d94ab7c release v0.24.0 v0.24.0 2026-11-10 10:47:12 +00:00
Cato 35d5dc73ae fix(dictation): localized signIn/busy problems from the HTTP status; never show a server's sentence by default (#78)
Claude-Session: https://claude.ai/code/session_019MDtmvGASoUtc3fejF7Lsy
2026-11-10 11:42:19 +01:00
Cato 0425281bf9 chore(deps): exempt every @bitbaum package from minimumReleaseAge with one glob (#77)
Replaces the per-package (and per-version) exclusions with '@bitbaum/*' plus
the four unscoped packages, so a fresh or new shared package installs on its
first floor raise without a hand edit here. Third-party packages keep the
release-age delay. Same shape as the fleet starter (bitbaum/fleet#509).
2026-11-10 08:16:48 +01:00
dependabot[bot] 2b89d690af chore(deps): bump pdfjs-dist from 6.4.299 to 6.5.438 (#76)
Bumps [pdfjs-dist](https://github.com/mozilla/pdf.js) from 6.4.299 to 6.5.438.
- [Release notes](https://github.com/mozilla/pdf.js/releases)
- [Commits](https://github.com/mozilla/pdf.js/compare/v6.4.299...v6.5.438)

---
updated-dependencies:
- dependency-name: pdfjs-dist
  dependency-version: 6.5.438
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-08 19:20:34 +01:00
dependabot[bot] 3842617320 chore(deps-dev): bump the dev group with 2 updates (#75)
Bumps the dev group with 2 updates: [eslint](https://github.com/eslint/eslint) and [globals](https://github.com/sindresorhus/globals).


Updates `eslint` from 10.13.0 to 10.14.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.13.0...v10.14.0)

Updates `globals` from 17.13.0 to 17.14.0
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v17.13.0...v17.14.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 10.14.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev
- dependency-name: globals
  dependency-version: 17.14.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-08 19:17:27 +01:00
Catoandbitbaum-fleet 060db57fdc docs(agents): the org rules block, generated from bitbaum/fleet (#74)
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
2026-11-06 09:59:04 +01:00
CatoandClaude 6451d3b9d0 feat(react): DictationField and CommentThread — any text box has the microphone (#73)
The owner's finding, 2026-11-06: every product installs the shared packages
and the text boxes people type in are still made by hand, with no microphone;
two comment systems were written in one week. This gives the two remaining
shapes of "a person types words" a component, so there is nothing to build
locally.

- DictationField: a labelled text area (or one line) with the composer's
  microphone — Web Speech, the recording fallback, the take with its timer,
  kept for a retry — appending to what is there; 16px, 44px targets.
  Optional improve={{ run, suggestions }}: one tap or say/type what to change;
  working, failure and Undo in words, the text untouched on failure. No model
  call or prompt here; run is the app's.
- CommentThread: oldest first, the box is Composer, a transport the app
  implements (post, optional remove), optimistic removal rolled back with a
  message, a refused post keeps the draft, text not markup, a sign-in link
  for a signed-out reader, times in a stated timeZone.
- VoiceBar/VoiceProblem are one implementation shared by Composer and the
  field; Composer behaves as before.
- Styles after the ChatApp boundary: the embedded sheet keeps its budget.
- test/browser-field.mjs + fixture page; render tests; README; 0.23.0.

verify: format, lint, typecheck, build, 142 unit tests, and all five browser
suites (the four existing ones unchanged) pass.


Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD

Co-authored-by: Claude <noreply@anthropic.com>
v0.23.0
2026-11-06 09:22:19 +01:00
Catoandfleet-reconciler be746f8da7 chore(deps): raise shared package floors to published versions (#72)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-03 09:40:54 +01:00
Catoandfleet-reconciler 904d772d99 chore(deps): raise shared package floors to published versions (#71)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-03 09:22:24 +01:00