galaxyrepowatch 1.0.1 → 1.0.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 +25 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 🛡️ Galaxy Repo Watch — AI Guard
|
|
2
|
+
|
|
3
|
+
Enterprise-grade AI Git Review Guard powered by Gemini.
|
|
4
|
+
|
|
5
|
+
⚠️ **DO NOT RUN `npm install`** ⚠️
|
|
6
|
+
This package is an automated installer. To set up AI Guard in your project, simply run the init command:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npx galaxyrepowatch init
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## What this does:
|
|
13
|
+
Running the command above will automatically:
|
|
14
|
+
1. Install the required dependencies.
|
|
15
|
+
2. Initialize Husky in your project.
|
|
16
|
+
3. Configure a `pre-commit` hook to automatically review your code before every commit.
|
|
17
|
+
4. Ask for your Gemini API key (only once) and save it locally.
|
|
18
|
+
5. Create a `.repowatchrc` configuration file for custom rules.
|
|
19
|
+
|
|
20
|
+
## How it works:
|
|
21
|
+
Every time you run `git commit`, the AI Guard will:
|
|
22
|
+
- Check your code for critical syntax errors.
|
|
23
|
+
- Scan for hardcoded secrets and passwords.
|
|
24
|
+
- Run a Gemini 2.5 Flash AI code review on your staged changes.
|
|
25
|
+
- Block the commit if the code exceeds the risk threshold (75/100).
|