diffninja 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/review/call-flow-html.d.ts +1 -1
- package/dist/review/call-flow-html.js +115 -21
- package/dist/review/connected-analysis.d.ts +19 -0
- package/dist/review/connected-analysis.js +23 -0
- package/dist/review/connected-html.js +79 -4
- package/dist/review/connected.d.ts +5 -3
- package/dist/review/connected.js +2 -1
- package/dist/review/explanation.d.ts +143 -0
- package/dist/review/explanation.js +310 -0
- package/dist/review/html.d.ts +7 -0
- package/dist/review/html.js +98 -4
- package/dist/review/mcp.js +75 -10
- package/dist/review/process-html.d.ts +93 -0
- package/dist/review/process-html.js +525 -0
- package/dist/review/report-pages.d.ts +16 -0
- package/dist/review/report-pages.js +22 -1
- package/dist/review/service.js +3 -1
- package/dist/review/types.d.ts +15 -0
- package/package.json +1 -1
package/dist/review/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { PullRequestIntent, ReviewEvidence } from "./evidence-types.js";
|
|
|
2
2
|
import type { ChangeFacts } from "./change-facts.js";
|
|
3
3
|
import type { ReviewQuestion } from "./questions.js";
|
|
4
4
|
import type { HunkHistory, ProjectContext } from "./history.js";
|
|
5
|
+
import type { AgentExplanation, ExplainedFunction } from "./explanation.js";
|
|
5
6
|
export type ReviewStatus = "attention" | "uncertain" | "low" | "passed";
|
|
6
7
|
/**
|
|
7
8
|
* Structural status for a call-flow node. The engine only knows `same`,
|
|
@@ -184,6 +185,20 @@ export interface ReviewReport {
|
|
|
184
185
|
* agent's reading rather than a verified claim.
|
|
185
186
|
*/
|
|
186
187
|
agentSummary?: AgentSummary;
|
|
188
|
+
/**
|
|
189
|
+
* Every function a reader meets in this report (around the hunks and in the
|
|
190
|
+
* call flows), each with a stable `<file>#<name>` id, for the reviewing agent
|
|
191
|
+
* to explain in business terms. Empty for a patch, which resolves none;
|
|
192
|
+
* absent only on a report assembled by hand, which counts as empty.
|
|
193
|
+
*/
|
|
194
|
+
functions?: ExplainedFunction[];
|
|
195
|
+
/**
|
|
196
|
+
* The reviewing agent's business explanation: a plain purpose for every
|
|
197
|
+
* listed function, the processes the change touches as steps and decisions,
|
|
198
|
+
* and the business rules it adds, changes, or removes. Attributed to the
|
|
199
|
+
* client that wrote it; never generated by diffninja.
|
|
200
|
+
*/
|
|
201
|
+
agentExplanation?: AgentExplanation;
|
|
187
202
|
/**
|
|
188
203
|
* Local repository context for a git-range review: prior reverts, contributor
|
|
189
204
|
* guidelines, and sibling-file conventions. Absent for a patch.
|