git-diff-ai-reviewer 1.1.0 → 1.1.3
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 +7 -5
- package/bin/review.js +1 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -32,14 +32,16 @@ npm install --save-dev @anthropic-ai/sdk @google/genai
|
|
|
32
32
|
|
|
33
33
|
## Setup
|
|
34
34
|
|
|
35
|
-
Set the API key for your chosen provider:
|
|
35
|
+
Set the API key for your chosen provider. You can set these as environment variables, or simply create a `.env` file in the root of your project:
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
+
# .env file
|
|
39
|
+
|
|
38
40
|
# For Claude (Anthropic)
|
|
39
|
-
|
|
41
|
+
ANTHROPIC_API_KEY=your-key-here
|
|
40
42
|
|
|
41
43
|
# For Gemini (Google)
|
|
42
|
-
|
|
44
|
+
GEMINI_API_KEY=your-key-here
|
|
43
45
|
```
|
|
44
46
|
|
|
45
47
|
## Usage
|
|
@@ -129,9 +131,9 @@ Create `.ai-review.config.json` in your project root:
|
|
|
129
131
|
|
|
130
132
|
```json
|
|
131
133
|
{
|
|
132
|
-
"provider": "
|
|
134
|
+
"provider": "gemini",
|
|
133
135
|
"baseBranch": "main",
|
|
134
|
-
"model": "",
|
|
136
|
+
"model": "gemini-2.0-flash",
|
|
135
137
|
"maxTokens": 4096,
|
|
136
138
|
"outputDir": "./reviews",
|
|
137
139
|
"reviewRules": "standard"
|
package/bin/review.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-diff-ai-reviewer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "AI-powered code review using Claude or Gemini API. Reviews git branch diffs and generates actionable fix prompts.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -39,5 +39,8 @@
|
|
|
39
39
|
"@google/genai": {
|
|
40
40
|
"optional": true
|
|
41
41
|
}
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"dotenv": "^17.3.1"
|
|
42
45
|
}
|
|
43
|
-
}
|
|
46
|
+
}
|