Skip to content

Add source fragment conversion contract#99

Merged
chubes4 merged 1 commit into
mainfrom
source-fragment-conversion
May 4, 2026
Merged

Add source fragment conversion contract#99
chubes4 merged 1 commit into
mainfrom
source-fragment-conversion

Conversation

@chubes4
Copy link
Copy Markdown
Owner

@chubes4 chubes4 commented May 4, 2026

Summary

  • Add bfb_convert_fragment() for standalone HTML fragment conversion to serialized block markup.
  • Return fragment-scoped diagnostics and provenance for targeted update workflows.
  • Expose block-format-bridge/convert-fragment ability and smoke coverage for hero/section fragments plus scoped fallback diagnostics.

Fixes #92.

Testing

  • php -l includes/api.php
  • php -l includes/abilities.php
  • php -l tests/BFBConversionUnitTest.php
  • homeboy test --path /Users/chubes/Developer/block-format-bridge@source-fragment-conversion
  • homeboy lint --path /Users/chubes/Developer/block-format-bridge@source-fragment-conversion

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (gpt-5.5)
  • Used for: Implemented the source-fragment conversion contract, ability surface, and smoke coverage; Chris remains responsible for review and testing.

@chubes4 chubes4 merged commit 3f0386e into main May 4, 2026
4 checks passed
@chubes4 chubes4 deleted the source-fragment-conversion branch May 4, 2026 15:54
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.

Explore source-fragment conversion for targeted site updates

1 participant