pumuki-ast-hooks 5.5.26 → 5.5.28

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.28",
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": {
@@ -115,6 +115,7 @@ class ConfigurationGeneratorService {
115
115
  packageJson.scripts['ast:guard:restart'] = 'bash scripts/hooks-system/bin/evidence-guard restart';
116
116
  packageJson.scripts['ast:guard:status'] = 'bash scripts/hooks-system/bin/evidence-guard status';
117
117
  packageJson.scripts['ast:guard:logs'] = 'bash scripts/hooks-system/bin/evidence-guard logs';
118
+ packageJson.scripts['ast:check-version'] = 'node scripts/hooks-system/bin/check-version.js';
118
119
 
119
120
  fs.writeFileSync(projectPackageJsonPath, JSON.stringify(packageJson, null, 2));
120
121
  this.logSuccess('npm scripts added');
@@ -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