Skip to content

feat: PR markers land on the modules their hunks touch - #13

Draft
bryan-uipath wants to merge 2 commits into
feat/intra-file-arcsfrom
feat/pr-spans
Draft

bryan-uipath wants to merge 2 commits into
feat/intra-file-arcsfrom
feat/pr-spans

Conversation

@bryan-uipath

Copy link
Copy Markdown
Owner

Stacked on #12.

AnalyzerPr.spans?: { [path]: [start, end][] }: one extra gh pr diff <n> per open PR, hunk headers parsed to head-side line ranges per tree file (hunkSpans). Optional; a failed fetch keeps file-level placement.

ViewerprTargets(pr): inside a file isolate the marker's beams, altitude anchor and draft/collision scaffolding go to the modules whose [line, line+loc) intersects the PR's ranges for that file; a class with members resolves to the touched members instead. Falls back to the whole file when no spans or nothing intersects. Beams to member slabs land on the slab, not the plate under the stack. Folder scope is unchanged.

Verified on this repo: isolating viewer/src/main.ts shows #8#12 each beaming to their own touched functions with scaffolding on just those blocks.

🤖 Generated with Claude Code

bryan-uipath and others added 2 commits September 7, 2026 13:10
Analyzer keeps each PR's head-side hunk ranges per tree file
(Pr.spans, from gh pr diff). Inside a file isolate the marker's beams and
draft scaffolding go to the modules — or class members — those ranges
intersect, falling back to the whole file without spans.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

1 participant