Problem
Review documents work with diffs through ad-hoc parsing. ReviewPR.md
carries // TODO: we need an easier way to work with diffs here over
const changedFilePaths = pr.files.map((file) => file.path); — and earlier
iterations parsed raw git diff --name-status text (rename forms included)
inside components.
Proposal
A first-class diff API in @executablemd/code-review-agent (or the runtime):
changed paths, per-file hunks/added lines, rename handling — so documents and
components consume typed values instead of re-parsing diff text. Remove the
TODOs in ReviewPR.md / ReviewPR.local.md when done.
Problem
Review documents work with diffs through ad-hoc parsing.
ReviewPR.mdcarries
// TODO: we need an easier way to work with diffs hereoverconst changedFilePaths = pr.files.map((file) => file.path);— and earlieriterations parsed raw
git diff --name-statustext (rename forms included)inside components.
Proposal
A first-class diff API in
@executablemd/code-review-agent(or the runtime):changed paths, per-file hunks/added lines, rename handling — so documents and
components consume typed values instead of re-parsing diff text. Remove the
TODOs in
ReviewPR.md/ReviewPR.local.mdwhen done.