galaxyrepowatch 2.0.7 → 2.5.1
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 +23 -0
- package/dist/cli.d.ts +10 -0
- package/dist/cli.js +291 -186
- package/dist/codeImpactAnalyzer.d.ts +1 -0
- package/dist/databaseAnalyzer/cacheManager.d.ts +8 -0
- package/dist/databaseAnalyzer/formatter.d.ts +2 -0
- package/dist/databaseAnalyzer/geminiClient.d.ts +2 -0
- package/dist/databaseAnalyzer/index.d.ts +1 -0
- package/dist/databaseAnalyzer/promptBuilder.d.ts +2 -0
- package/dist/databaseAnalyzer/scanner.d.ts +12 -0
- package/dist/databaseAnalyzer/scoreCalculator.d.ts +12 -0
- package/dist/databaseAnalyzer/types.d.ts +20 -0
- package/package.json +12 -4
package/README.md
CHANGED
|
@@ -41,6 +41,13 @@ The setup wizard will configure everything automatically.
|
|
|
41
41
|
- 🔍 Highlights affected files, APIs, databases, and frontend components
|
|
42
42
|
- 🤖 Recommends relevant tests to run before pushing your changes
|
|
43
43
|
|
|
44
|
+
### 3. 🗄️ Database Analyzer
|
|
45
|
+
- 🏗️ Analyzes database schema changes for architectural issues
|
|
46
|
+
- 🔒 Detects security risks like exposed PII and plain-text credentials
|
|
47
|
+
- 📈 Identifies missing indexes and foreign key constraints
|
|
48
|
+
- ⚡ Suggests performance optimizations and normalization improvements
|
|
49
|
+
- 💾 Supports Prisma, SQLAlchemy, and other ORM configurations
|
|
50
|
+
|
|
44
51
|
---
|
|
45
52
|
|
|
46
53
|
# 📦 What Happens During Setup
|
|
@@ -138,6 +145,21 @@ The impact report is informational only and does not block your commit.
|
|
|
138
145
|
|
|
139
146
|
---
|
|
140
147
|
|
|
148
|
+
### 🗄️ Database Analyzer
|
|
149
|
+
|
|
150
|
+
Introduced in **v2.5.0**, Database Analyzer provides detailed analysis of database schema changes and architectural impacts.
|
|
151
|
+
|
|
152
|
+
When your commit includes database schema modifications (Prisma, SQLAlchemy, etc.), Galaxy Repo Watch automatically analyzes:
|
|
153
|
+
|
|
154
|
+
- **Security Issues** — Detects exposed PII, plain-text credentials, and unencrypted sensitive data
|
|
155
|
+
- **Performance Concerns** — Identifies missing indexes on frequently queried or foreign key fields
|
|
156
|
+
- **Architecture Quality** — Flags missing constraints, normalization issues, and design patterns
|
|
157
|
+
- **Optimization Opportunities** — Recommends best practices for scalability and maintenance
|
|
158
|
+
|
|
159
|
+
The database analysis output is informational and helps teams maintain database health standards before changes reach production.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
141
163
|
# 📁 Configuration
|
|
142
164
|
|
|
143
165
|
Galaxy Repo Watch creates a configuration file named:
|
|
@@ -270,6 +292,7 @@ Galaxy Repo Watch only analyzes your staged changes before a commit.
|
|
|
270
292
|
- ✅ Commit Risk Scoring
|
|
271
293
|
- ✅ Automatic Project Setup
|
|
272
294
|
- ✅ Code Impact Analyzer
|
|
295
|
+
- ✅ Database Analyzer
|
|
273
296
|
|
|
274
297
|
### Coming Soon
|
|
275
298
|
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* galaxyrepowatch: AI Git Review Guard
|
|
4
|
+
*
|
|
5
|
+
* This script is executed by a pre-commit hook. It performs a comprehensive
|
|
6
|
+
* local analysis of staged code changes, including rule-based checks,
|
|
7
|
+
* linting integration, and AI-powered review, calculates a risk score,
|
|
8
|
+
* and blocks the commit if the risk exceeds a configurable threshold.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|