Every phase of docs/prds/pr-review-agent.md that can be computed is computed here, in a package that imports the standard library only: diff parsing with renames, deletions, multi-hunk files and no-newline markers; directory clustering; per-language blast radius; evidence packages; scoring, deduplication, line mapping to diff coordinates and the review event. The review event is REQUEST_CHANGES when a finding is blocking and COMMENT otherwise; there is no approving value, because archie does not own the merge decision. internal/domain/workflow/prreview is now the one diff parser in this repository: the diff-rules step's addedDiffLines delegates to it and the private hunk-header and path helpers it used to carry are deleted, so a repository rule and a review comment cannot disagree about which line a change introduced. diff_rules_test.go is unchanged. Blast radius resolves Go imports through the module path in go.mod, Python module names, and JavaScript/TypeScript relative specifiers, all against files inside the snapshot; an import that resolves to nothing there contributes no edge. Evidence extraction reads through an fs.FS rooted at the snapshot, so both are tested against fstest.MapFS fixtures. NOTICE records the derivation from PR-AF (Apache-2.0).
14 lines
547 B
Plaintext
14 lines
547 B
Plaintext
NOTICE
|
|
|
|
This product includes software derived from PR-AF
|
|
(https://github.com/Agent-Field/pr-af), Copyright AgentField,
|
|
licensed under the Apache License, Version 2.0.
|
|
|
|
Derived portions: internal/domain/workflow/prreview -- the unified diff
|
|
parser, change clustering, blast radius, evidence extraction, scoring,
|
|
deduplication, line mapping and review-event selection.
|
|
|
|
PR-AF declares the Apache License, Version 2.0 in its pyproject.toml and
|
|
ships no license file. A copy of the License is available at
|
|
https://www.apache.org/licenses/LICENSE-2.0
|