megareviewer 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +64 -2
- package/dist/THIRD_PARTY_LICENSES.txt +1844 -0
- package/dist/cli.js +26 -0
- package/dist/grammars/queries/c_sharp.scm +26 -0
- package/dist/grammars/queries/go.scm +16 -0
- package/dist/grammars/queries/java.scm +18 -0
- package/dist/grammars/queries/javascript.scm +23 -0
- package/dist/grammars/queries/jsx.scm +6 -0
- package/dist/grammars/queries/python.scm +17 -0
- package/dist/grammars/queries/rust.scm +23 -0
- package/dist/grammars/queries/typescript.scm +29 -0
- package/dist/grammars/tree-sitter-c_sharp.wasm +0 -0
- package/dist/grammars/tree-sitter-go.wasm +0 -0
- package/dist/grammars/tree-sitter-java.wasm +0 -0
- package/dist/grammars/tree-sitter-javascript.wasm +0 -0
- package/dist/grammars/tree-sitter-python.wasm +0 -0
- package/dist/grammars/tree-sitter-rust.wasm +0 -0
- package/dist/grammars/tree-sitter-tsx.wasm +0 -0
- package/dist/grammars/tree-sitter-typescript.wasm +0 -0
- package/dist/grammars/web-tree-sitter.wasm +0 -0
- package/dist/server.js +62996 -0
- package/dist/web/assets/c-Cz4nF6n_.js +1 -0
- package/dist/web/assets/c-SSSlmE39.js +1 -0
- package/dist/web/assets/core-B6rr2vvd.js +12 -0
- package/dist/web/assets/cpp-Cts1PyIS.js +1 -0
- package/dist/web/assets/cpp-DzjeI0uH.js +1 -0
- package/dist/web/assets/csharp-dmMxLVLW.js +1 -0
- package/dist/web/assets/css-BGIxQoYs.js +1 -0
- package/dist/web/assets/css-DgaLhXQH.js +1 -0
- package/dist/web/assets/diff-woXpYk--.js +1 -0
- package/dist/web/assets/docker-IyjqRm3v.js +1 -0
- package/dist/web/assets/engine-javascript-D-6se_EF.js +141 -0
- package/dist/web/assets/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/web/assets/github-light-default-BXViO-2h.js +1 -0
- package/dist/web/assets/go-rLFTqkRN.js +1 -0
- package/dist/web/assets/graphql-BHtseKAV.js +1 -0
- package/dist/web/assets/graphql-f69H1Mm0.js +1 -0
- package/dist/web/assets/html-BMn1ogTm.js +1 -0
- package/dist/web/assets/html-BWDvXlHg.js +1 -0
- package/dist/web/assets/index-ClcSjEKy.css +1 -0
- package/dist/web/assets/index-DwjurLQh.js +65 -0
- package/dist/web/assets/ini-B5eOa1yu.js +1 -0
- package/dist/web/assets/java-BtIQNnN0.js +1 -0
- package/dist/web/assets/java-_ATy9zCa.js +1 -0
- package/dist/web/assets/javascript-BzbQS41l.js +1 -0
- package/dist/web/assets/javascript-CpIGwZ_Y.js +1 -0
- package/dist/web/assets/json-B88Oqtu5.js +1 -0
- package/dist/web/assets/json-C3WlssX3.js +1 -0
- package/dist/web/assets/jsonc-CYpm1nAK.js +1 -0
- package/dist/web/assets/jsx-C4yDKi0A.js +1 -0
- package/dist/web/assets/jsx-D3KKoC5L.js +1 -0
- package/dist/web/assets/kotlin-DhhofPvG.js +1 -0
- package/dist/web/assets/make-Dixweg8N.js +1 -0
- package/dist/web/assets/markdown-BYOwaDjH.js +1 -0
- package/dist/web/assets/php-CUj1wjLQ.js +1 -0
- package/dist/web/assets/python-gzcpVVnB.js +1 -0
- package/dist/web/assets/ruby-DAHFNlv9.js +1 -0
- package/dist/web/assets/rust-DpiIf5JO.js +1 -0
- package/dist/web/assets/scss-8bKmll0B.js +1 -0
- package/dist/web/assets/shellscript-CVTB3cr6.js +1 -0
- package/dist/web/assets/shellscript-CqHdAlCp.js +1 -0
- package/dist/web/assets/sql-CNu3Or2W.js +1 -0
- package/dist/web/assets/sql-CfM2IJm3.js +1 -0
- package/dist/web/assets/svelte-DAcAPYhA.js +1 -0
- package/dist/web/assets/swift-CyEgAFGc.js +1 -0
- package/dist/web/assets/toml-CcmNWLt0.js +1 -0
- package/dist/web/assets/tsx-BOvsFOI6.js +1 -0
- package/dist/web/assets/tsx-CGosfAUg.js +1 -0
- package/dist/web/assets/typescript-Bb1J8qyy.js +1 -0
- package/dist/web/assets/typescript-j_1H8WHN.js +1 -0
- package/dist/web/assets/vue-DfeOw4hL.js +1 -0
- package/dist/web/assets/xml-DuKfbPI6.js +1 -0
- package/dist/web/assets/xml-WY0zc4PG.js +1 -0
- package/dist/web/assets/yaml-DDA_XMNu.js +1 -0
- package/dist/web/assets/yaml-DijMHRDA.js +1 -0
- package/dist/web/index.html +14 -0
- package/package.json +76 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mark Dorofeev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
-
#
|
|
1
|
+
# megareviewer
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Turns a GitHub or Bitbucket Cloud pull request into a guided review. You see what the PR was asked to do next to what the code actually does. Changes are sorted by risk, with mechanical ones collapsed and proved. Changes are ordered as a tour, and the decisions the code makes are listed for you to approve or reject. Your verdicts are posted back to the PR as one review.
|
|
4
|
+
|
|
5
|
+
## Run
|
|
6
|
+
|
|
7
|
+
Needs Node 22.13 or later.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx megareviewer
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx megareviewer doctor
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
`doctor` checks every credential below and exits 1 if something required is missing.
|
|
20
|
+
|
|
21
|
+
## Credentials
|
|
22
|
+
|
|
23
|
+
Set them as environment variables. You need at least one git host and Anthropic.
|
|
24
|
+
|
|
25
|
+
**GitHub.** The first one found is used:
|
|
26
|
+
|
|
27
|
+
| Source | Notes |
|
|
28
|
+
|---|---|
|
|
29
|
+
| `GITHUB_TOKEN` | Fine-grained token with Pull requests: read and write, Contents: read and Metadata: read. A classic token needs `repo` (or `public_repo` for public repositories only) |
|
|
30
|
+
| `GH_TOKEN` | Same as `GITHUB_TOKEN` |
|
|
31
|
+
| `gh auth token` | Used when you're signed in with the GitHub CLI |
|
|
32
|
+
|
|
33
|
+
**Bitbucket Cloud**
|
|
34
|
+
|
|
35
|
+
| Variable | Notes |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `BITBUCKET_EMAIL` | Your Atlassian account email |
|
|
38
|
+
| `BITBUCKET_API_TOKEN` | A scoped Atlassian API token with `read:user:bitbucket`, `read:repository:bitbucket`, `read:pullrequest:bitbucket` and `write:pullrequest:bitbucket` |
|
|
39
|
+
| `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 |
|
|
40
|
+
| `BITBUCKET_WORKSPACE` | Optional. The workspace whose PRs the picker lists. It scans the 50 most recently updated repositories; a pasted PR URL always works |
|
|
41
|
+
|
|
42
|
+
**Anthropic.** `ANTHROPIC_API_KEY`, or a profile from `ant auth login`. Analyses use Claude Opus 5.5 and are billed to your account.
|
|
43
|
+
|
|
44
|
+
**Jira.** Optional: without it, ticket keys are shown but not fetched.
|
|
45
|
+
|
|
46
|
+
| Variable | Notes |
|
|
47
|
+
|---|---|
|
|
48
|
+
| `JIRA_BASE_URL` | e.g. `https://your-site.atlassian.net` |
|
|
49
|
+
| `JIRA_EMAIL` | Your Atlassian account email |
|
|
50
|
+
| `JIRA_API_TOKEN` | An Atlassian API token without scopes (scoped tokens don't work with the site URL) |
|
|
51
|
+
|
|
52
|
+
## Privacy
|
|
53
|
+
|
|
54
|
+
Your code goes only to Anthropic's API, for the analysis. Nothing is sent to us, and there is no telemetry. Credentials stay in the local server process and never reach the browser. Analyses and verdicts are stored in `~/.megareviewer` (`MEGAREVIEWER_HOME` to move it).
|
|
55
|
+
|
|
56
|
+
## Contributing
|
|
57
|
+
|
|
58
|
+
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.
|
|
59
|
+
|
|
60
|
+
- [MISSION.md](MISSION.md): why this exists
|
|
61
|
+
- [DESIGN.md](DESIGN.md): how review should work
|
|
62
|
+
- [ARCHITECTURE.md](ARCHITECTURE.md): how it's built
|
|
63
|
+
- [ENGINEERING.md](ENGINEERING.md): how we write code
|
|
64
|
+
- [docs/plan](docs/plan/README.md): the implementation plan
|
|
65
|
+
- [evals](evals/README.md): measuring the model passes
|