pi-diff-review 0.1.0 → 0.1.2
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 +12 -0
- package/extensions/review.ts +3 -838
- package/package.json +5 -1
- package/src/diff-parser.ts +410 -0
- package/src/diff-source.ts +32 -0
- package/src/index.ts +56 -0
- package/src/prompt.ts +49 -0
- package/src/review-component.ts +808 -0
- package/src/types.ts +61 -0
package/README.md
CHANGED
|
@@ -8,6 +8,16 @@ Easily provide code reviews directly within [pi](https://pi.dev/).
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
+
Install from npm:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pi install npm:pi-diff-review
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Package: https://www.npmjs.com/package/pi-diff-review
|
|
18
|
+
|
|
19
|
+
Or install directly from GitHub:
|
|
20
|
+
|
|
11
21
|
```bash
|
|
12
22
|
pi install https://github.com/cmpadden/pi-diff-review
|
|
13
23
|
```
|
|
@@ -17,6 +27,8 @@ pi install https://github.com/cmpadden/pi-diff-review
|
|
|
17
27
|
- `/diff` reviews the current unstaged `git diff`
|
|
18
28
|
- `/diff <git-diff-args>` passes arguments through to `git diff` (for example `/diff main...HEAD`)
|
|
19
29
|
- `j/k` or arrow keys to move
|
|
30
|
+
- `ctrl-u` / `ctrl-d` to move up/down by half a page
|
|
31
|
+
- `t` toggles the diff between unified and side-by-side split rendering
|
|
20
32
|
- `J/K` to extend a highlighted selection into a comment range
|
|
21
33
|
- `esc` clears the active selection, or exits review when no selection is active
|
|
22
34
|
- `n/p` to jump hunks
|