Repository navigation
v0.6.2
Patch release: insertion placement now follows authoring intent (ADR-0025).
Fixes
appendcontinues the section's text. It used to insert at the raw span end — after the blank lines separating the section from the next heading, gluing the new text to that heading (lead\n\nmore\n## B). It now backs up over the trailing whitespace-only lines to sit directly after the last non-blank line, leaving the separator in place (lead\nmore\n\n## B). A span ending at EOF keeps the literal end (matchingappend_notes); no separator is ever added or removed.insert_before/insert_afterkeep blank-line seams. Inserted sibling blocks were glued to both neighbours; they now get the same both-seams blank-line rulemovealready applied (only ever adds, never removes), via one shared implementation.
Notes
- Spans,
content_hash, overlap footprints, and the wire schema are unchanged — only insertion offsets and seam padding moved. Byte-level output changes for callers that pinned the old placement. - The
edit_sectionsdescription now spells out placement, including thescope:"section"trap: plain text appended at a subtree's end structurally joins the last subsection — usescope:"body"for the section's own prose.