Embed comments in document record (ATProto)
Comments are now stored as an array inside the com.diffdown.document
ATProto record on the owner's PDS, making documents fully self-contained
and portable.
Changes:
- Add EmbeddedComment type and Comments field to Document model
- Remove old com.diffdown.comment per-record approach
- CommentCreate/CommentList do read-modify-write on owner's document
- Comment sidebar shown for owners and collaborators
- Paragraph click in rich editor shows a comment button
- ownerDID threaded through comment API calls for collaborator access
- Clicking a comment scrolls to and highlights the target paragraph
(Web Animations API, yellow outline pulse)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>