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 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
- export ANTHROPIC_API_KEY=your-key-here
41
+ ANTHROPIC_API_KEY=your-key-here
40
42
 
41
43
  # For Gemini (Google)
42
- export GEMINI_API_KEY=your-key-here
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": "claude",
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
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ require('dotenv').config();
3
4
  const path = require('path');
4
5
  const fs = require('fs');
5
6
  const { getDiff, getChangedFiles, getBranchName, isGitRepo } = require('../src/git');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-diff-ai-reviewer",
3
- "version": "1.1.0",
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
+ }