@djibrilm/lazy-review 0.0.3 → 0.0.5
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 +49 -24
- package/dist/client/assets/{index-CJtKCyBg.js → index-DaPfCkZ0.js} +46 -46
- package/dist/client/index.html +1 -1
- package/dist/modules/database/database.module.d.ts.map +1 -1
- package/dist/modules/database/database.module.js +2 -1
- package/dist/modules/database/database.module.js.map +1 -1
- package/dist/modules/database/vector-database.service.d.ts.map +1 -1
- package/dist/modules/database/vector-database.service.js +2 -1
- package/dist/modules/database/vector-database.service.js.map +1 -1
- package/dist/modules/github/github.module.d.ts +1 -0
- package/dist/modules/github/github.module.d.ts.map +1 -1
- package/dist/modules/github/github.module.js +77 -0
- package/dist/modules/github/github.module.js.map +1 -1
- package/dist/modules/main.module.d.ts.map +1 -1
- package/dist/modules/main.module.js +0 -1
- package/dist/modules/main.module.js.map +1 -1
- package/dist/modules/server/entities/settings.entity.d.ts +2 -0
- package/dist/modules/server/entities/settings.entity.d.ts.map +1 -1
- package/dist/modules/server/entities/settings.entity.js +10 -0
- package/dist/modules/server/entities/settings.entity.js.map +1 -1
- package/dist/modules/server/server.module.d.ts.map +1 -1
- package/dist/modules/server/server.module.js +20 -4
- package/dist/modules/server/server.module.js.map +1 -1
- package/dist/modules/server/services/auth.services.d.ts.map +1 -1
- package/dist/modules/server/services/auth.services.js +6 -2
- package/dist/modules/server/services/auth.services.js.map +1 -1
- package/dist/modules/server/services/settings.service.d.ts.map +1 -1
- package/dist/modules/server/services/settings.service.js +2 -1
- package/dist/modules/server/services/settings.service.js.map +1 -1
- package/dist/paths.d.ts +3 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +9 -0
- package/dist/paths.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,55 @@
|
|
|
6
6
|
|
|
7
7
|
A CLI tool that reviews GitHub pull requests using local AI models. Point it at a repository, select a PR, and it posts a structured review comment back to GitHub — no cloud inference, no API keys beyond GitHub OAuth.
|
|
8
8
|
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
Lazy Review relies on several native C++ modules (like `better-sqlite3` and `tree-sitter`) for fast local vector search and code parsing. Because of this, **we strongly recommend using `npm`** for the global installation.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g @djibrilm/lazy-review
|
|
15
|
+
lrv run
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
This will start the local server on `http://localhost:16500`.
|
|
19
|
+
|
|
20
|
+
### Troubleshooting Installation Errors
|
|
21
|
+
|
|
22
|
+
If you encounter an error like `Error: Could not locate the bindings file`, it means the native dependencies failed to compile or download during installation.
|
|
23
|
+
|
|
24
|
+
**1. Using `pnpm` or `yarn`**
|
|
25
|
+
These block build scripts by default, preventing C++ binaries from downloading.
|
|
26
|
+
|
|
27
|
+
- **For pnpm:** Run `pnpm approve-builds -g`. Use the `Space` bar to select the blocked packages, then press `Enter`.
|
|
28
|
+
- **For yarn:** Add `enableScripts: true` to your `.yarnrc.yml` before installing.
|
|
29
|
+
_(Alternatively, just install via `npm` instead)._
|
|
30
|
+
|
|
31
|
+
**2. Missing Build Tools**
|
|
32
|
+
If you are on a very new or uncommon version of Node.js (e.g. Node 26), prebuilt binaries may not exist yet, forcing the modules to compile from source. If this fails, ensure you have C++ build tools installed:
|
|
33
|
+
|
|
34
|
+
- **macOS:** Run `xcode-select --install`
|
|
35
|
+
- **Linux:** Run `sudo apt-get install build-essential python3`
|
|
36
|
+
- **Windows:** Run `npm install --global windows-build-tools`
|
|
37
|
+
|
|
38
|
+
**3. EPERM: operation not permitted (macOS/Linux)**
|
|
39
|
+
If you are installing globally using `sudo npm install -g @djibrilm/lazy-review` and see a `Download failed: EPERM` error, `npm` has downgraded permissions during the post-install step. To fix this, tell `npm` to keep root permissions during the installation scripts:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
sudo npm install -g @djibrilm/lazy-review --unsafe-perm
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### From source
|
|
46
|
+
|
|
47
|
+
Requires Node.js 18+ and pnpm.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git clone https://github.com/djibrilm/lazy-review
|
|
51
|
+
cd lazy-review
|
|
52
|
+
pnpm install
|
|
53
|
+
pnpm run dev
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
This starts both the Express server (port `16500`) and the Vite dev server concurrently.
|
|
57
|
+
|
|
9
58
|
## Overview
|
|
10
59
|
|
|
11
60
|
Lazy Review fetches PR diffs from GitHub and runs them through a multi-agent pipeline on your machine. The output is a structured GitHub PR review comment with categorized findings (`approve` / `request_changes` / `comment`), severity scores, and file-level annotations.
|
|
@@ -71,30 +120,6 @@ Since the models alone take up around 7 GB and other computer operations also ne
|
|
|
71
120
|
|
|
72
121
|
GPU inference can be toggled in Settings. If the app crashes during model initialization (common on older GPUs), switch to CPU inference.
|
|
73
122
|
|
|
74
|
-
## Installation
|
|
75
|
-
|
|
76
|
-
### From npm
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
npm install -g @djibrilm/lazy-review
|
|
80
|
-
lrv run
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Starts the server on `http://localhost:16500`.
|
|
84
|
-
|
|
85
|
-
### From source
|
|
86
|
-
|
|
87
|
-
Requires Node.js 18+ and pnpm.
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
git clone https://github.com/djibrilm/lazy-review
|
|
91
|
-
cd lazy-review
|
|
92
|
-
pnpm install
|
|
93
|
-
pnpm run dev
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
This starts both the Express server (port `16500`) and the Vite dev server concurrently.
|
|
97
|
-
|
|
98
123
|
## CLI Commands
|
|
99
124
|
|
|
100
125
|
The CLI is available as either `lazy-review` or the `lrv` shorthand.
|