cultnet-ts: drop unset optional keys from createDocumentPutMessage #13
Loading…
Reference in a new issue
No description provided.
Delete branch "libby/cultnet-ts-put-nil-keys"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
createDocumentPutMessagesetsourceRuntimeId/sourceAgentId/sourceRole/tagstoundefinedwhen unset; MessagePack encodes that as nil and the peer rejects the document. Absent keys are now omitted. New test asserts the key set and that the decoded wire holds no nil.npm testin packages/cultnet-ts: 255 tests, 254 pass, 1 fail. The failure isesbuild bundles dist/content.js with platform 'browser'and is environmental: esbuild walks up parent dirs for package.json and hit a 0-byte/var/lib/mind-libby-self/package.json(../../../../package.json:1:0: ERROR: Unexpected end of file in JSON). Not a repo defect. The run completes in ~4.4s here; I could not reproduce a hang.🤖 Generated with Claude Code