patch main #28 / 43
aaronrene · 14 days ago · May 24, 2026 · Diff

Add SectionSource pure builder

Implement the body-free Phase 1A section source builder with focused seven-tier tests so section candidates can be derived without exposing bodies, snippets, transports, indexes, persistence, or Scooling runtime behavior.

sha256:b4cd1fcb82690ebaa315e45e2d68e5668510200551bc2d020f5254ed6bd9045a sha
+14 symbols
sha256:d7d0ef9c4f7e0e0bdce1ff1b65ae8d102881f403c0a6360dd66c4c47093cd7ce snapshot
+14
symbols added
0
dead code introduced
Semantic Changes 14 symbols
~ lib/section-source.mjs .mjs 13 symbols added
+ assignSectionIds function function assignSectionIds L135–141
+ bodyAvailabilityByHeadingId function function bodyAvailabilityByHeadingId L185–203
+ buildSectionSource function function buildSectionSource L72–82
+ buildSectionSourceFromMarkdown function function buildSectionSourceFromMarkdown L42–48
+ buildSectionSourceFromOutlineAndBody function function buildSectionSourceFromOutlineAndBody L109–128
+ collectHeadingNodes function function collectHeadingNodes L222–233
+ endOffset function function endOffset L299–302
+ flattenSections function function flattenSections L160–178
+ flattenTreeHeadingIds function function flattenTreeHeadingIds L209–216
+ hasBodyContentInBoundary function function hasBodyContentInBoundary L242–252
+ hasSubstantiveContent function function hasSubstantiveContent L276–284
+ nextPeerOrAncestorStartOffset function function nextPeerOrAncestorStartOffset L260–270
+ startOffsetOf function function startOffsetOf L290–293
~ test/section-source.test.mjs .mjs 1 symbol added
+ note function function note L20–27

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:b4cd1fcb82690ebaa315e45e2d68e5668510200551bc2d020f5254ed6bd9045a --body "your comment"