mirror of
https://github.com/bitbaum/threadkit.git
synced 2026-12-03 16:17:16 +01:00
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>