pumuki 6.3.151 → 6.3.153
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.
|
@@ -1309,6 +1309,26 @@ const hasAppliedGateWaiver = (evidenceResult: EvidenceReadResult): boolean => {
|
|
|
1309
1309
|
);
|
|
1310
1310
|
};
|
|
1311
1311
|
|
|
1312
|
+
const collectBlockingSeverityCounts = (
|
|
1313
|
+
evidenceResult: Extract<EvidenceReadResult, { kind: 'valid' }>
|
|
1314
|
+
): Record<'INFO' | 'WARN' | 'ERROR' | 'CRITICAL', number> => {
|
|
1315
|
+
const counts = {
|
|
1316
|
+
INFO: 0,
|
|
1317
|
+
WARN: 0,
|
|
1318
|
+
ERROR: 0,
|
|
1319
|
+
CRITICAL: 0,
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
for (const finding of evidenceResult.evidence.snapshot.findings) {
|
|
1323
|
+
if (finding.blocking === false) {
|
|
1324
|
+
continue;
|
|
1325
|
+
}
|
|
1326
|
+
counts[finding.severity] += 1;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
return counts;
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1312
1332
|
const collectEvidencePolicyThresholdViolations = (params: {
|
|
1313
1333
|
evidenceResult: EvidenceReadResult;
|
|
1314
1334
|
policy: ReturnType<typeof resolvePolicyForStage>['policy'];
|
|
@@ -1323,7 +1343,7 @@ const collectEvidencePolicyThresholdViolations = (params: {
|
|
|
1323
1343
|
return [];
|
|
1324
1344
|
}
|
|
1325
1345
|
|
|
1326
|
-
const severityCounts = params.evidenceResult
|
|
1346
|
+
const severityCounts = collectBlockingSeverityCounts(params.evidenceResult);
|
|
1327
1347
|
const blockSeverity = toHighestTriggeredSeverity(
|
|
1328
1348
|
severityCounts,
|
|
1329
1349
|
params.policy.blockOnOrAbove
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.153",
|
|
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": {
|