galaxyrepowatch 2.5.3 → 2.5.4
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/dist/cli.js +6 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -633,7 +633,12 @@ if [ -z "$GEMINI_API_KEY" ]; then
|
|
|
633
633
|
fi
|
|
634
634
|
|
|
635
635
|
${Oi}
|
|
636
|
-
`;if(tp.writeFileSync(Qd,e2),process.platform!=="win32")try{hv(`chmod +x ${Qd}`)}catch{}let Dd=".repowatchrc";tp.existsSync(Dd)||tp.writeFileSync(Dd,JSON.stringify({ignoredPaths:[".env",".env.*","**/.env","**/.env.*","**/node_modules/**","**/.next/**","**/*.test.*","**/*.md","**/.husky/**"],riskBlockThreshold:75,customLocalRules:[]},null,2)),console.log(
|
|
636
|
+
`;if(tp.writeFileSync(Qd,e2),process.platform!=="win32")try{hv(`chmod +x ${Qd}`)}catch{}let Dd=".repowatchrc";tp.existsSync(Dd)||tp.writeFileSync(Dd,JSON.stringify({ignoredPaths:[".env",".env.*","**/.env","**/.env.*","**/node_modules/**","**/.next/**","**/*.test.*","**/*.md","**/.husky/**"],riskBlockThreshold:75,customLocalRules:[]},null,2)),console.log(`
|
|
637
|
+
\u2705 AI Guard installed successfully! Just run 'git commit' to test it.
|
|
638
|
+
|
|
639
|
+
\u2B50 Enjoying Galaxy Repo Watch? Please take a moment to leave a review:
|
|
640
|
+
\u{1F4DD} https://galaxyrepowatch.galaxyweblinks.com/app-reviews
|
|
641
|
+
`),process.exit(0)}Uyt();let J=null;try{let Jr;try{Jr=await import("../config/impact-analyzer.ts")}catch{Jr=await Promise.resolve().then(()=>(ELe(),CLe))}OLe=Jr.MODULE_IMPACT_CONFIG||[],FLe=Jr.FILE_TYPE_MAPPINGS||[],LLe=Jr.GLOBAL_RISK_RULES||[],Jr.getRiskLevelString&&(MLe=Jr.getRiskLevelString)}catch(Jr){Jr.code!=="ERR_MODULE_NOT_FOUND"&&(J=Jr)}if(J){let Jr=wLe(),gf=z0("git config --get remote.origin.url"),hv=PLe(),NS=z0("git log -1 --pretty=%B")||"Commit blocked due to config load error",Zb=ALe(),Oi=NLe(),Qd=J.message||String(J),e2={severity:"CRITICAL",description:`Configuration syntax/compilation error: ${Qd}`,file:"config/impact-analyzer.ts",fatal:!0};console.error(`
|
|
637
642
|
${Br.bold}${Br.red}\u2717 CONFIGURATION LOAD ERROR:${Br.reset} Failed to load config/impact-analyzer.ts due to syntax/compilation error.
|
|
638
643
|
`),console.error(`${Br.red}${J.stack||J}${Br.reset}
|
|
639
644
|
`);let Dd=null;try{Dd=await DLe({repo_name:z0("basename `git rev-parse --show-toplevel`"),author_name:Zb,author_email:Oi,branch_name:Jr,commit_hash:hv,commit_message:NS,commit_timestamp:new Date().toISOString(),repository_remote_url:gf,score:100,risk_level:"CRITICAL",status:"BLOCKED",issues:{violations:[]},suggestions:{findings:[e2],summary:"Pre-commit check failed: Failed to load config/impact-analyzer.ts due to syntax/compilation error.",impactAnalysis:{affectedModules:[],indirectImpact:[],fileTypeCounts:{},regressionSuggestions:[],smokeTestSuggestions:[]}}})}catch(IS){qh.error("Failed to store syntax error review in database.",IS)}console.log(`
|
package/package.json
CHANGED