Files
CatoandClaude 26c35499d6 feat(messages): the packaged Messenger — files on messages, and a Cat nobody mistakes for a person (#1688)
* feat(messages): the packaged Messenger, with files and a Cat nobody mistakes for a person

/messages is now @bitbaum/chatkit/messenger: OrangeCat keeps the transport
(routes, storage, realtime) and the words; the screen is the package's.

- The Cat is marked as an agent, with whom it answered for; the top bar says
  it is in the conversation.
- The conversation fills the phone screen: no blank band under the box.
- Photos, videos and files on a message: private bucket on R2, signed upload
  and read URLs, one policy (config/message-attachments.ts) checked in the
  browser, the route and the bucket; 1 GB a person; unsent uploads and the
  files of deleted messages are swept daily.
- Unread counts are real, and the badge follows them.

The chatkit dependency moves to the published release in the next commit,
once the package is out.

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

* chore(type-scale): hold the ground the Messenger took (7 arbitrary sizes)

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

* fix(migrations): messages_can_carry_files takes an unused timestamp

Main's identity-handover migration took 20261112120000 first.

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

* fix(migrations): messages_can_carry_files moves to 20261112235900

Main's members-only-groups migration took 20261112200000.

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

* fix: leave main's members-only references on their own migration

The timestamp rename caught two files that name main's migration
20261112200000_members_only_groups_hide_their_members.

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

* test(messages): a link to an old conversation keeps the inbox, on the Messenger's reducer

main's #1682 test drove useConversations, which this branch deletes. The same
rule is checked where it now lives: the package's reducer adds the linked
conversation and keeps the list.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 07:01:30 +01:00
..