6 Commits
Author SHA1 Message Date
CatoandClaude 234d424707 Files on a message: an attachment policy, read receipts that ignore an assistant, whole-word mentions (#54)
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>
2026-11-12 07:13:19 +01:00
CatoandClaude cb2a422317 feat: publish as @bitbaum/threadkit (same code, same version) (#51)
Owner, 2026-11-06: the fleet's packages belong under the @bitbaum npm
organization; this one was published earlier, unscoped, and never moved
(fleet docs/package-scope-migration-plan.md). Name, imports in tests, examples
and docs change; no API changes. The old name stays installable and is
deprecated once no adopter uses it.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 13:48:59 +01:00
CatoandClaude Opus 5 f7a8c04a27 docs: link back to bitbaum, and to who uses this package (#36)
Claude-Session: https://claude.ai/code/session_01DzY8KuwgUM7u95GVTpRL2m

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 01:04:12 -07:00
7d6902454f docs: sync docs with actual stack (#25)
README's install line still said `npm install`; the fleet's one package
manager is pnpm (packageManager: pnpm@11.25.0). Package name `threadkit`
verified live on the npm registry at 0.1.1 — unchanged.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 07:52:00 -07:00
Mao NakamotoandClaude Opus 5 82723a5183 test: prove the invariants, and consume the tarball the way npm does
Each invariant was verified to fail when broken: forcing the visibility
window open fails 4 targeted tests, and swapping the per-participant read
mark for a shared one fails exactly the test that names that bug.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 13:17:01 +02:00
Mao Nakamoto 082d431fd4 chore: initial commit 2026-08-16 13:05:50 +02:00