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.
@@ -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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diffninja",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Local, deterministic PR review for coding agents over MCP: call flows, change facts, and a human review workspace",
5
5
  "type": "module",
6
6
  "exports": {