pumuki-ast-hooks 5.5.26 → 5.5.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki-ast-hooks",
3
- "version": "5.5.26",
3
+ "version": "5.5.27",
4
4
  "description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -265,7 +265,14 @@ function updateAIEvidence(violations, gateResult, tokenUsage) {
265
265
  const isProtected = ['main', 'master', baseBranch].includes(currentBranch);
266
266
  const criticalViolations = violations.filter(v => v.severity === 'CRITICAL');
267
267
  const highViolations = violations.filter(v => v.severity === 'HIGH');
268
- const blockingViolations = [...criticalViolations, ...highViolations].slice(0, 50);
268
+ const mediumViolations = violations.filter(v => v.severity === 'MEDIUM');
269
+ const lowViolations = violations.filter(v => v.severity === 'LOW');
270
+
271
+ let gateViolations = [...criticalViolations, ...highViolations];
272
+ if (gateViolations.length === 0) {
273
+ gateViolations = [...mediumViolations, ...lowViolations];
274
+ }
275
+ const blockingViolations = gateViolations.slice(0, 50);
269
276
 
270
277
  const gateScope = String(env.get('AI_GATE_SCOPE', 'staging') || 'staging').trim().toLowerCase();
271
278