megareviewer 0.2.17 → 0.2.20

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 CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Turns a GitHub or Bitbucket Cloud pull request into a guided review. Changes are ordered as a tour that follows the call graph, with each test next to the code it tests. Risky changes (dependencies, schemas, auth, CI, removed tests) stand out, and mechanical ones are collapsed with proof. Your review is posted back to the PR.
4
4
 
5
- On any review, the Request AI review button adds what the PR was asked to do next to what the code actually does, plain-language titles for the tour's steps, and its points on the code: what looks wrong, as a draft comment under its line you can add to your review as it is; contract changes that deserve a hard look, as a note under their lines; and why the code makes its choices, as footnotes you can hide. Saying nothing means it's fine. You pick the verdict when you publish.
5
+ On any review, the Request AI review button adds what the PR was asked to do next to what the code actually does, a tour of the change in a few steps, and its points on the code: what looks wrong, as a draft comment under its line you can add to your review as it is; contract changes that deserve a hard look, as a note under their lines; and why the code makes its choices, as footnotes you can hide. Saying nothing means it's fine. You pick the verdict when you publish.
6
6
 
7
- An AI review follows your preferences, kept on your machine: rules you write on the Preferences page, “Look for” or “Don't flag”, for every repository or for one, and a repository's guideline files such as `REVIEW.md` that you switch on. On request, megareviewer also proposes rules for a repository from the points you dismissed and raised there and your own review comments on its host; none is used until you accept it. A point says which preference shaped it, and one a “Don't flag” rule covers is folded to a line, not hidden.
7
+ An AI review follows your preferences, kept on your machine: rules you write on the Preferences page, “Look for” or “Don't flag”, for every repository or for one, and a repository's guideline files such as `REVIEW.md` that you switch on, with the files they link. On request, megareviewer also proposes rules for a repository from the points you dismissed and raised there and your own review comments on its host; none is used until you accept it. A point says which preference shaped it, and one a “Don't flag” rule covers is folded to a line, not hidden.
8
8
 
9
9
  ## Run
10
10
 
@@ -14,7 +14,7 @@ Needs Node 22.13 or later.
14
14
  npx megareviewer
15
15
  ```
16
16
 
17
- It starts a server on `127.0.0.1` and opens the review UI in your browser. `--port <n>` picks the port, and `--no-open` skips the browser. Run it in a git checkout of the PR's repository, or pass `--checkout <dir>`, and the review also shows the code outside the PR that calls what it changes. The checkout is only read, and only when it has the PR's head commit.
17
+ It starts a server on `127.0.0.1` and opens the review UI in your browser. `--port <n>` picks the port, and `--no-open` skips the browser. The review also shows the code outside the PR that calls what it changes, read from a clone on your machine that has the PR's head commit. megareviewer looks in the folder it's started in, or the one given with `--checkout <dir>`, then in the clones it read before, then through your home folder. `--no-search` turns the last off. Clones are only read, never changed. When none has the commit, megareviewer downloads that one commit with your GitHub or Bitbucket credentials into `~/.megareviewer/repos`, and the callers appear on the open review when it's done. It needs git 2.32 or newer, and `--no-download` turns it off.
18
18
 
19
19
  ```bash
20
20
  npx megareviewer doctor
@@ -26,11 +26,19 @@ npx megareviewer doctor
26
26
 
27
27
  To have `megareviewer` as a command instead of `npx megareviewer`:
28
28
 
29
+ ```bash
30
+ npm install -g megareviewer
31
+ ```
32
+
33
+ Running it again updates it.
34
+
35
+ **With the script.** It checks your Node first, and installs into `~/.local` when npm's global folder needs root:
36
+
29
37
  ```bash
30
38
  curl -fsSL https://raw.githubusercontent.com/markdorofeev/megareviewer/main/install.sh | sh
31
39
  ```
32
40
 
33
- The script checks your Node and installs the npm package globally, or into `~/.local` when npm's global folder needs root. `MEGAREVIEWER_VERSION=0.2.9` before `sh` pins a version.
41
+ `MEGAREVIEWER_VERSION=0.2.9` before `sh` pins a version.
34
42
 
35
43
  **Without npm.** Where npm is blocked or holds new versions back, install the same package from its GitHub release:
36
44
 
@@ -57,9 +65,9 @@ Set them as environment variables. You need at least one git host.
57
65
  | Variable | Notes |
58
66
  |---|---|
59
67
  | `BITBUCKET_EMAIL` | Your Atlassian account email |
60
- | `BITBUCKET_API_TOKEN` | A scoped Atlassian API token with `read:user:bitbucket`, `read:repository:bitbucket`, `read:pullrequest:bitbucket` and `write:pullrequest:bitbucket` |
68
+ | `BITBUCKET_API_TOKEN` | A scoped Atlassian API token with `read:repository:bitbucket`, `read:pullrequest:bitbucket` and `write:pullrequest:bitbucket` |
61
69
  | `BITBUCKET_USERNAME` + `BITBUCKET_APP_PASSWORD` | Used instead of the two above when they aren't set: your Bitbucket username and an app password with Account: read, Repositories: read and Pull requests: write. Atlassian removed app passwords in July 2026, so they only work where Bitbucket still accepts them |
62
- | `BITBUCKET_WORKSPACE` | Optional. The workspace whose PRs the picker lists. It scans the 50 most recently updated repositories; a pasted PR URL always works |
70
+ | `BITBUCKET_WORKSPACE` | Optional. The workspace whose PRs the picker lists, and where megareviewer asks Bitbucket who you are, so one with a repository you were given access to. It scans the 50 most recently updated repositories; a pasted PR URL always works. Without it, Connections shows an error unless the token also has `read:user:bitbucket` |
63
71
 
64
72
  **The model.** Only for the Request AI review button, whose menu lists every model megareviewer offers, on each command or account that can run it; the ones your machine can't run are disabled, with the fix. Without a choice it runs Claude Sonnet 5.5 on the first of these that can:
65
73
 
@@ -78,7 +86,7 @@ Set them as environment variables. You need at least one git host.
78
86
 
79
87
  ## Privacy
80
88
 
81
- Until you press Request AI review, your code goes nowhere but your machine and your git host. Then the PR's code also goes to the model's maker for the analysis: to Anthropic through your Claude Code, under your own Claude plan and its privacy settings, or through the Anthropic API under your API account's; or, with Codex, to OpenAI under your own ChatGPT plan or OpenAI account and its settings; or, with opencode, to whichever provider the chosen model is on, under your account there, or nowhere off your machine for a local model. Your preferences and the guideline files you switched on go with it. Suggesting preferences sends the same maker what it reads instead of code: the points you dismissed and raised and the comments you posted, or your past comments on one repository. Nothing is sent to us, and there is no telemetry. Credentials stay in the local server process and never reach the browser. Analyses, your preferences and what you did with each point are stored in `~/.megareviewer` (`MEGAREVIEWER_HOME` to move it).
89
+ Until you press Request AI review, your code goes nowhere but your machine and your git host. Then the PR's code also goes to the model's maker for the analysis: to Anthropic through your Claude Code, under your own Claude plan and its privacy settings, or through the Anthropic API under your API account's; or, with Codex, to OpenAI under your own ChatGPT plan or OpenAI account and its settings; or, with opencode, to whichever provider the chosen model is on, under your account there, or nowhere off your machine for a local model. Your preferences go with it, and the guideline files you switched on with the files they link: the ones they import always, and the others when the model opens them. Suggesting preferences sends the same maker what it reads instead of code: the points you dismissed and raised and the comments you posted, or your past comments on one repository. Nothing is sent to us, and there is no telemetry. Credentials stay in the local server process and never reach the browser. Analyses, your preferences and what you did with each point are stored in `~/.megareviewer` (`MEGAREVIEWER_HOME` to move it).
82
90
 
83
91
  ## Contributing
84
92