A CLI for publishing standard.site documents to ATProto sequoia.pub

Hash published record instead of raw file #206

Open heaths.dev
targeting main from strip-hugo-shortcodes
Open opened by heaths.dev
targeting main from strip-hugo-shortcodes

contentHash now covers the document record fields Sequoia publishes
(title, site, path, dates, description, tags and textContent) plus the
cover image, so edits that don't change the record, such as image
attributes, shortcodes or unmapped frontmatter, no longer trigger
updates. createDocument and updateDocument share getDocumentFields so
the hash and the record can't drift apart.

Stored hashes from earlier versions are migrated: if a post's stored
hash matches the legacy raw-file hash, the new hash is saved without
republishing. Dry runs report how many hashes would migrate.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Commits 2

Hash published record instead of raw file
Strip Hugo shortcodes from published textContent
Sign up or Sign in to add to the discussion.