megareviewer 0.2.8 → 0.2.10
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 +28 -5
- package/dist/THIRD_PARTY_LICENSES.txt +663 -7
- package/dist/server.js +5934 -2020
- package/dist/web/assets/{core-DBYwsWC2.js → core-CNoefq_w.js} +1 -1
- package/dist/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/web/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/dist/web/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/dist/web/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/dist/web/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/dist/web/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/dist/web/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/dist/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/web/assets/index-B_MvOOEO.css +1 -0
- package/dist/web/assets/index-ooUZtZRN.js +78 -0
- package/dist/web/index.html +3 -3
- package/dist/web/theme.js +21 -0
- package/package.json +16 -2
- package/dist/web/assets/github-dark-default-DXG-b-1a.js +0 -1
- package/dist/web/assets/github-light-default-BXViO-2h.js +0 -1
- package/dist/web/assets/index-BR-oBtq9.js +0 -68
- package/dist/web/assets/index-DKMjNvc_.css +0 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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
|
-
|
|
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.
|
|
6
6
|
|
|
7
7
|
## Run
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ Needs Node 22.13 or later.
|
|
|
12
12
|
npx megareviewer
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
It starts a server on `127.0.0.1` and opens the review UI in your browser. `--port <n>` picks the port, `--no-open` skips the browser
|
|
15
|
+
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.
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
npx megareviewer doctor
|
|
@@ -20,6 +20,24 @@ npx megareviewer doctor
|
|
|
20
20
|
|
|
21
21
|
`doctor` checks every credential below and exits 1 if something required is missing.
|
|
22
22
|
|
|
23
|
+
## Install
|
|
24
|
+
|
|
25
|
+
To have `megareviewer` as a command instead of `npx megareviewer`:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
curl -fsSL https://raw.githubusercontent.com/markdorofeev/megareviewer/main/install.sh | sh
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
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.
|
|
32
|
+
|
|
33
|
+
**Without npm.** Where npm is blocked or holds new versions back, install the same package from its GitHub release:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
curl -fsSL https://raw.githubusercontent.com/markdorofeev/megareviewer/main/install.sh | MEGAREVIEWER_SOURCE=github sh
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
It goes into `~/.local/share/megareviewer`, linked as `~/.local/bin/megareviewer`, and running it again updates it. With the GitHub CLI signed in, the script checks that the file was built from this repository by its release workflow, and installs nothing if not. Releases from 0.2.10 on have the package.
|
|
40
|
+
|
|
23
41
|
## Credentials
|
|
24
42
|
|
|
25
43
|
Set them as environment variables. You need at least one git host.
|
|
@@ -41,7 +59,12 @@ Set them as environment variables. You need at least one git host.
|
|
|
41
59
|
| `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 |
|
|
42
60
|
| `BITBUCKET_WORKSPACE` | Optional. The workspace whose PRs the picker lists. It scans the 50 most recently updated repositories; a pasted PR URL always works |
|
|
43
61
|
|
|
44
|
-
**
|
|
62
|
+
**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:
|
|
63
|
+
|
|
64
|
+
- **Claude Code,** when it's installed and signed in: the analysis comes out of your Claude plan's usage. megareviewer runs the `claude` on your PATH, which uses its own sign-in, and never sees your Claude credentials.
|
|
65
|
+
- **The Anthropic API,** with `ANTHROPIC_API_KEY` or a profile from `ant auth login`, billed to your account.
|
|
66
|
+
- **Codex,** when it's installed and signed in (`codex login`): OpenAI's GPT-6 Luna and GPT-6 Sol, on your ChatGPT plan's usage, or billed to your OpenAI account if Codex is signed in with an API key. megareviewer runs your Codex, the `codex` on your PATH, and never reads its credentials. Each pass runs in Codex's read-only sandbox, without your Codex config, and is stopped if the model uses a tool.
|
|
67
|
+
- **opencode,** 2.3.0 or later, when it's installed and has a provider connected (`opencode auth login`, an API key in your environment, or a provider in your opencode config, local ones included): every model those providers offer, billed by each provider at its own prices, or free on a local one. megareviewer starts its own `opencode serve` on 127.0.0.1 and never reads opencode's credentials. It reads your opencode config, since that's where your providers are, but not the project's, and leaves out opencode's own free models. Each pass runs as an agent that's denied every tool, and its answer is discarded if the model used one anyway. These models are marked *unmeasured*: megareviewer's evals haven't run on them, so how often their findings are wrong isn't known, and small or local models may fail a pass more often.
|
|
45
68
|
|
|
46
69
|
**Jira.** Optional: without it, ticket keys are shown but not fetched.
|
|
47
70
|
|
|
@@ -53,11 +76,11 @@ Set them as environment variables. You need at least one git host.
|
|
|
53
76
|
|
|
54
77
|
## Privacy
|
|
55
78
|
|
|
56
|
-
|
|
79
|
+
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. Nothing is sent to us, and there is no telemetry. Credentials stay in the local server process and never reach the browser. Analyses and what you did with each point are stored in `~/.megareviewer` (`MEGAREVIEWER_HOME` to move it).
|
|
57
80
|
|
|
58
81
|
## Contributing
|
|
59
82
|
|
|
60
|
-
With pnpm installed, `pnpm install`, then `pnpm check` (types, lint, dependency rules, tests), `pnpm build` and `pnpm e2e` (end-to-end tests against the build) are what CI runs. `pnpm local` builds the package and starts it, as `npx megareviewer` would; arguments go after it, e.g. `pnpm local --
|
|
83
|
+
With pnpm installed, `pnpm install`, then `pnpm check` (types, lint, dependency rules, tests), `pnpm build` and `pnpm e2e` (end-to-end tests against the build) are what CI runs. `pnpm local` builds the package and starts it, as `npx megareviewer` would; arguments go after it, e.g. `pnpm local --checkout ~/code/repo`.
|
|
61
84
|
|
|
62
85
|
- [MISSION.md](MISSION.md): why this exists
|
|
63
86
|
- [DESIGN.md](DESIGN.md): how review should work
|