prreviewbuddy 0.88.1 → 0.91.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,87 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.91.1
4
+
5
+ **Issues lead with what they mean.** Each issue from a new analysis now opens with its consequence:
6
+ a short title saying what can happen, a sentence or two on when and how, and, when there is a
7
+ specific one, the step that would settle it, marked **To verify** or **To decide**. The technical
8
+ title, the reasoning, the code location and the history are under **Technical details** on the
9
+ card, one click (or Enter) away, with nothing to wait for.
10
+
11
+ Outstanding issues are grouped by the decision they ask of you: **Failures**, **Possible risks**,
12
+ **Intent to confirm** and **Maintenance**, each ordered by severity. The group comes from the
13
+ evidence the analysis read, not from its severity or how confident it is; both are still shown on
14
+ every card. The pane opens with one sentence on what the change touches, a count of what is
15
+ outstanding, and buttons to jump to each group. Folding a group is remembered for the next review.
16
+
17
+ Resolved and dismissed issues stay in the closed list at the bottom. An issue the new commits fixed
18
+ leads with what the code now does, when the update could see it in the code; one settled by a
19
+ comment never claims a fix. Updates keep each issue's consequence true: they are shown it, and
20
+ restate or withdraw it when the new commits change what it describes.
21
+
22
+ Reviews made before this are shown as they were, and are not rewritten. Beside the new groups their
23
+ issues sit under **Other issues**; on their own they need no heading.
24
+
25
+ For coding agents, `list_findings` and `get_finding` (and `prreviewbuddy findings --json` and
26
+ `finding --json`) carry each issue's `consequence` and, on an issue the code resolved,
27
+ `resolved_behaviour`, so a list of findings can be triaged without fetching each one.
28
+
29
+ ## 0.90.0
30
+
31
+ **Connect your coding agent from Settings.** A new **AI integrations** section in Settings shows,
32
+ for Claude Code and Codex, whether each can use PR Review Buddy, and connects it in one step. You
33
+ see the exact command before it runs, and it is the agent's own `mcp add`, so nothing edits the
34
+ agent's files directly. **Verify connection** starts the registered server and lists its tools;
35
+ **Disconnect** removes it. Verify checks that what answers is PR Review Buddy with all of its
36
+ tools, started with the variables the agent's config gives it. A Codex registration switched off
37
+ in its config shows as **Turned off**. A registration that points at another copy of PR Review Buddy, often an
38
+ older install, shows as such, and **Replace** points it at this one, putting the old registration
39
+ back if the agent refuses the new one. **Copy command** gives the same command to run yourself.
40
+
41
+ What is registered is the full path of the `prreviewbuddy` that runs this workspace, checked to be
42
+ this version first, because an agent started from a desktop app may not see your shell's `PATH`
43
+ and could otherwise start an older copy. Connect manages each agent's default configuration; a
44
+ Claude Code profile kept in its own directory gets a command to run for it instead. Copy command
45
+ pins the config the row names, so a shell that selects another profile does not write there.
46
+
47
+ After a finished review, once the guided tour has been answered, the review page mentions AI
48
+ integrations once, and only when an agent is installed and none is connected yet. **Not now**
49
+ puts it away for good. Help has a new **Coding agents** topic covering what an agent can and cannot
50
+ do, connecting, verifying and troubleshooting. The manual commands in the docs and in
51
+ `prreviewbuddy help mcp` now register the full path too.
52
+
53
+ ## 0.89.0
54
+
55
+ **Coding agents can use PR Review Buddy directly.** `prreviewbuddy mcp serve` is a local MCP server
56
+ for Claude Code, Codex and other MCP clients. An agent can start a review, follow it, read its
57
+ findings, re-check it after fixing them, and ask Buddy AI about the change, without opening a
58
+ browser. PR Review Buddy still does the analysis with the agent you configured, in an isolated
59
+ checkout, and every review it starts is in the workspace as usual. Nothing is added to an agent's
60
+ settings unless you add it: `claude mcp add --scope user pr-review-buddy -- prreviewbuddy mcp serve`,
61
+ or `codex mcp add pr-review-buddy -- prreviewbuddy mcp serve`.
62
+
63
+ **Reviews as JSON.** `--json` on `review`, and on the new `show`, `findings`, `finding`, `status` and
64
+ `ask` commands, writes one JSON document to stdout and nothing else. Findings come in pages of
65
+ compact records, filtered by kind, open or closed, and grade, and each has a `finding_id` that stays
66
+ the same across every update of its review. A finding is identified by its review and its
67
+ `finding_id` together. `review --json --no-wait` starts the work in the
68
+ background and answers at once. `ask --json --no-wait` does the same for a question and returns
69
+ its `ask_id`; `status <review> --ask <ask_id>` returns the answer once there is one.
70
+ `review --review <review> --resume` carries on an analysis that stopped. The contract and its versioning are in `docs/agent-interface.md`.
71
+
72
+ **Exit codes say what went wrong.** Every command now uses one table: 2 for a usage error, 3 for a
73
+ review that does not exist, 4 for an operation declined, 5 for an analysis that failed, 6 when the
74
+ workspace server cannot be reached, 7 for a timeout and 8 for a command refused inside an agent run.
75
+ Failures that exited 1 still exit non-zero, with the same message. A review that finds problems
76
+ exits 0.
77
+
78
+ **An agent run cannot start a review.** Every agent PR Review Buddy starts runs marked, and in that
79
+ environment the CLI and the MCP server read reviews but refuse to start reviews, updates or
80
+ questions, on top of the flags that already keep PR Review Buddy's MCP server out of a nested session.
81
+
82
+ Not covered by `--json` yet: lens reviews, several pull requests at once, `--reanalyse` and
83
+ `--delete`.
84
+
3
85
  ## 0.88.1
4
86
 
5
87
  **One change to a review at a time, from anywhere on the Reviews list.** While a change made from a
package/README.md CHANGED
@@ -91,6 +91,21 @@ prreviewbuddy help every command
91
91
  Run `prreviewbuddy help` for the full command reference, and `prreviewbuddy review --help` for
92
92
  every option a review takes. How reviews, updates and lenses work is under Help in the workspace.
93
93
 
94
+ ## Use it from your coding agent
95
+
96
+ PR Review Buddy can be a tool your coding agent calls: it starts the review, reads the findings,
97
+ fixes what is real and checks again, while you can still open every review in the browser.
98
+
99
+ Connect it from **Settings → AI integrations** in the workspace, or by hand:
100
+
101
+ ```
102
+ claude mcp add --scope user pr-review-buddy -- "$(command -v prreviewbuddy)" mcp serve
103
+ codex mcp add pr-review-buddy -- "$(command -v prreviewbuddy)" mcp serve
104
+ ```
105
+
106
+ Then ask: "Review my changes with PR Review Buddy and fix the real problems." Scripts can use the
107
+ same reviews as JSON: `prreviewbuddy review --json`, `prreviewbuddy findings <review> --json`.
108
+
94
109
  ## What you need
95
110
 
96
111
  - **Node 20 or newer**, and **git**.