pi-diff-review 0.1.11 → 0.1.12
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 +22 -0
- package/package.json +20 -5
package/README.md
CHANGED
|
@@ -20,6 +20,13 @@ Or install directly from GitHub:
|
|
|
20
20
|
pi install https://github.com/cmpadden/pi-diff-review
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
For local development, clone the repository and install from the local path:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
git clone https://github.com/cmpadden/pi-diff-review
|
|
27
|
+
pi install ./pi-diff-review
|
|
28
|
+
```
|
|
29
|
+
|
|
23
30
|
## Features
|
|
24
31
|
|
|
25
32
|
- `/diff` reviews the current unstaged `git diff`
|
|
@@ -39,6 +46,21 @@ pi install https://github.com/cmpadden/pi-diff-review
|
|
|
39
46
|
- Comments are cached per session and restored when reopening the same diff
|
|
40
47
|
- `q` to exit
|
|
41
48
|
|
|
49
|
+
## Development
|
|
50
|
+
|
|
51
|
+
Install [pre-commit](https://pre-commit.com/) and enable the repository hooks to run typechecking, tests, and formatting checks before each commit:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pre-commit install
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Run the same checks manually with either:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pre-commit run --all-files
|
|
61
|
+
npm run precommit
|
|
62
|
+
```
|
|
63
|
+
|
|
42
64
|
## Release
|
|
43
65
|
|
|
44
66
|
See [RELEASE.md](./RELEASE.md).
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-diff-review",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Local diff review TUI extension for pi",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/cmpadden/pi-diff-review.git"
|
|
@@ -26,16 +27,30 @@
|
|
|
26
27
|
"LICENSE"
|
|
27
28
|
],
|
|
28
29
|
"scripts": {
|
|
29
|
-
"
|
|
30
|
+
"check": "npm run typecheck && npm test",
|
|
31
|
+
"format": "prettier --write .",
|
|
32
|
+
"precommit": "npm run check && npx prettier --check .",
|
|
33
|
+
"test": "node --import tsx --test test/**/*.test.ts",
|
|
34
|
+
"typecheck": "tsc --noEmit"
|
|
30
35
|
},
|
|
31
36
|
"devDependencies": {
|
|
32
|
-
"
|
|
37
|
+
"@earendil-works/pi-ai": "^0.74.0",
|
|
38
|
+
"@earendil-works/pi-coding-agent": "^0.74.1",
|
|
39
|
+
"@earendil-works/pi-tui": "^0.74.1",
|
|
40
|
+
"@types/node": "^24.12.4",
|
|
41
|
+
"prettier": "^3.5.3",
|
|
42
|
+
"tsx": "^4.22.1",
|
|
43
|
+
"typescript": "^6.0.3"
|
|
33
44
|
},
|
|
34
45
|
"peerDependencies": {
|
|
46
|
+
"@earendil-works/pi-ai": "*",
|
|
35
47
|
"@earendil-works/pi-coding-agent": "*",
|
|
36
48
|
"@earendil-works/pi-tui": "*"
|
|
37
49
|
},
|
|
38
50
|
"peerDependenciesMeta": {
|
|
51
|
+
"@earendil-works/pi-ai": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
39
54
|
"@earendil-works/pi-coding-agent": {
|
|
40
55
|
"optional": true
|
|
41
56
|
},
|
|
@@ -46,10 +61,10 @@
|
|
|
46
61
|
"pi": {
|
|
47
62
|
"extensions": [
|
|
48
63
|
"./extensions"
|
|
49
|
-
]
|
|
64
|
+
],
|
|
65
|
+
"image": "https://github.com/user-attachments/assets/3fd00163-5d19-489b-94ed-3d4816c6cad3"
|
|
50
66
|
},
|
|
51
67
|
"dependencies": {
|
|
52
|
-
"@earendil-works/pi-ai": "^0.74.0",
|
|
53
68
|
"@pierre/diffs": "^1.1.21"
|
|
54
69
|
}
|
|
55
70
|
}
|