A messenger's costs live in its files, so what may be attached is a rule this package can answer: checkAttachment (allowlist, a ceiling per kind, a count per message, a quota per person), the lifetime predicates, and the Attachment type a Message can carry. Nothing is stored or signed here. readState answers none/some/all over the humans a message was for. In OrangeCat an assistant that had joined a conversation never read anything, so every later message stayed at delivered. mentionsAny/mentionMatcher export the whole-word matcher whenMentioned used, now aware of letters outside ASCII. mergeMessages, visibleMessages and unreadMessages are generic over the caller's message type. Released as 0.1.2: additive, inside every consumer's ^0.1.1 range. Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 Co-authored-by: Claude <noreply@anthropic.com>
2.6 KiB
Changelog
0.1.2 — Files on a message, read receipts with an assistant in the room
Additive: nothing that compiled against 0.1.1 changes.
- Attachments.
Message.attachments(anAttachment: kind, name, type, bytes, and pixels or duration where it has them) and the policy that decides what may be attached:checkAttachmentanswers with the kind or with the reason and its number (type,size,count,quota,empty). The policy is an allowlist; a type it does not name is refused, andimage/svg+xmlandtext/htmlare left out of the default because both can carry script.attachmentExpiresAt,isAttachmentExpiredandisAbandonedUploadare the lifetime rules,storedBytesis what a quota counts. The package still stores and signs nothing. readState(thread, message):none,someorall, over the humans the message was for. Found in OrangeCat, 2026-11-12: once its assistant had answered in a conversation it stayed as a participant, never "read" anything, and every later message was stuck at delivered, because the receipt waited for a reader that does not read.mentionsAny/mentionMatcher: the whole-word matcherwhenMentionedalready used, exported so an interface and a server share one definition. It now treats letters outside ASCII as letters (aiüno longer matches the aliasai).- Your own message type comes back.
mergeMessages,visibleMessagesandunreadMessagesare generic over the message, so rows that carry more than this package knows (a sender's name, an edited-at) no longer have to be looked up again by id after a merge.
Renamed — threadkit is now @bitbaum/threadkit
Same code, same version, same repository; the package now lives under the
@bitbaum npm organization like the rest of the fleet's packages. Install
@bitbaum/threadkit and import from it (threadkit stays installable and is deprecated
once no adopter uses it). No API changed.
This retrospective record was added on 2026-10-27 from the immutable sources linked below. Git commit dates are source dates, not inferred npm publication dates. A GitHub release does not itself establish npm publication. Application adoption and deployment evidence are tracked separately.
0.1.1
- Tagged source
v0.1.1 - Source commit, dated 2026-08-20.
No authored release notes were found for this tag when this record was made. The links identify the verified source; missing feature history is not invented.