Opt-in redline view; default reads point at it

↗ view on GitHub · Eli Ziff · 2026-07-29 · bcd07547

library_read and read_document accept mode="redline" for DOCX: the
projectDocxRedline projection - {++ins++}/{--del--}/{>>author:
comment<<}, [ink] for strike/colour formatting standing in for tracked
markup - returned as a labeled JSON envelope with a marker legend,
counts, and the projection's own notes. Plumbing mirrors mode="drafting"
exactly (schema enum, dispatcher routing, per-mode turn-read dedup,
JSON ok-flag success check); edit paths untouched.

Default plain-text reads whose sniffer report shows tracked changes or
a likely manual redline now append one advisory to the 3i-1 notes:
"Struck or inserted text is invisible in this plain-text view; request
the redline view to see it." Clean documents carry neither markers nor
the advisory; the default text stays byte-identical throughout.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012AgUm5EcRKbT3duVFMbrQD
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents 256efd78
Stats 7 files changed , +332 , -23
Part of SourceDoc / DOCX engine: redlines, tracked changes, editing benchmark

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-bcd07547.md from inside the repo you want the change in.

⬇ Download capture-commit-bcd07547.md