Skip to content

identifier: add msg type - #75

Open
dickhardt wants to merge 1 commit into
mainfrom
identifier-msg-type
Open

dickhardt wants to merge 1 commit into
mainfrom
identifier-msg-type

Conversation

@dickhardt

Copy link
Copy Markdown
Member

Adds msg to identifierTypes so @hellocoop/identifier can mint and validate message identifiers for secret.agent.coop (msg_<24>_<3>), and bumps the package to 1.7.0.

Until this is published, secret.agent.coop computes msg_ ids with the package's exported HELLO_ALPHABET and checksum, so the ids are identical to what generators.msg() will produce; only validate() rejects them today.

Noticed while wiring it up: with TypeScript moduleResolution: "bundler" the package's exports map does not resolve dist/identifier.d.ts (TS7016), so the consumer carries a local declare module shim. Nesting types under each condition ("import": { "types": …, "default": … }) would fix that; left out of this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_013Nu2QEvzXpA3oepQ7EhtK8

secret.agent.coop mints message ids in the Hellō identifier format. Until
this ships it computes msg_ ids with the package's alphabet and checksum;
validate() will accept them once the type is here.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Nu2QEvzXpA3oepQ7EhtK8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant