You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sdk-core): add rich text facets support for activity descriptions
Without this patch, activity descriptions in hypercerts could only contain
plain text without any inline markup or annotations.
This is a problem because the AT Protocol supports rich text facets for
mentions, URLs, hashtags, and other inline markup, and the hypercerts
lexicon v0.10.0-beta.7 added support for these facets in activity
descriptions.
This patch solves the problem by adding optional shortDescriptionFacets
and descriptionFacets fields to CreateHypercertParams, updating the
createHypercertRecord() method to include these fields in the record, and
enhancing documentation with comprehensive examples showing proper byte
indexing for facets. This enables developers to create richer, more
interactive hypercert descriptions following AT Protocol facet standards.
Changes:
- Add AppBskyRichtextFacet import to repository interfaces
- Add shortDescriptionFacets and descriptionFacets to CreateHypercertParams
- Update createHypercertRecord() to pass facets through to record
- Enhance HypercertClaim type documentation with facet usage examples
- Add changeset documenting this enhancement
- Mark Change 2 complete in lexicon sync plan (part 2 of 6)
Co-authored-by: Claude Code <noreply@anthropic.com>
0 commit comments