pumuki 6.3.349 → 6.3.351
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",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.351",
|
|
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": {
|
|
@@ -89,7 +89,16 @@ const toPlatformMap = (
|
|
|
89
89
|
): Map<string, number> =>
|
|
90
90
|
new Map((summary.platformAuditRows ?? []).map((row) => [row.platform, row.violations]));
|
|
91
91
|
|
|
92
|
-
const
|
|
92
|
+
const formatSummaryFinding = (
|
|
93
|
+
finding: FrameworkMenuEvidenceSummary['topFindings'][number] | undefined
|
|
94
|
+
): string => {
|
|
95
|
+
if (!finding) {
|
|
96
|
+
return 'none';
|
|
97
|
+
}
|
|
98
|
+
return `[${finding.severity}] ${finding.ruleId} -> ${finding.file}:${finding.line}`;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export const buildConsumerRuntimeEvidenceDriftLines = (
|
|
93
102
|
gateSummary: FrameworkMenuEvidenceSummary,
|
|
94
103
|
canonicalSummary: FrameworkMenuEvidenceSummary
|
|
95
104
|
): string[] => {
|
|
@@ -129,6 +138,18 @@ const buildConsumerRuntimeEvidenceDriftLines = (
|
|
|
129
138
|
}
|
|
130
139
|
}
|
|
131
140
|
|
|
141
|
+
const topFindingCount = Math.max(
|
|
142
|
+
gateSummary.topFindings.length,
|
|
143
|
+
canonicalSummary.topFindings.length
|
|
144
|
+
);
|
|
145
|
+
for (let index = 0; index < topFindingCount; index += 1) {
|
|
146
|
+
const gateFinding = formatSummaryFinding(gateSummary.topFindings[index]);
|
|
147
|
+
const evidenceFinding = formatSummaryFinding(canonicalSummary.topFindings[index]);
|
|
148
|
+
if (gateFinding !== evidenceFinding) {
|
|
149
|
+
drifts.push(`topFinding.${index} gate=${gateFinding} evidence=${evidenceFinding}`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
132
153
|
if (drifts.length === 0) {
|
|
133
154
|
return [];
|
|
134
155
|
}
|
|
@@ -18,6 +18,28 @@ const formatTopFiles = (topFiles: ReadonlyArray<{ file: string; count: number }>
|
|
|
18
18
|
.join(', ')}`;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
const formatPlatforms = (
|
|
22
|
+
platformRows: FrameworkMenuEvidenceSummary['platformAuditRows']
|
|
23
|
+
): string => {
|
|
24
|
+
if (!platformRows || platformRows.length === 0) {
|
|
25
|
+
return 'Platforms: none';
|
|
26
|
+
}
|
|
27
|
+
return `Platforms: ${platformRows
|
|
28
|
+
.map((entry) => `${entry.platform}=${entry.violations}`)
|
|
29
|
+
.join(', ')}`;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const formatTopFindings = (
|
|
33
|
+
topFindings: FrameworkMenuEvidenceSummary['topFindings']
|
|
34
|
+
): string => {
|
|
35
|
+
if (topFindings.length === 0) {
|
|
36
|
+
return 'Top findings: none';
|
|
37
|
+
}
|
|
38
|
+
return `Top findings: ${topFindings
|
|
39
|
+
.map((entry) => `[${entry.severity}] ${entry.ruleId} -> ${entry.file}:${entry.line}`)
|
|
40
|
+
.join('; ')}`;
|
|
41
|
+
};
|
|
42
|
+
|
|
21
43
|
export const formatEvidenceSummaryForMenu = (
|
|
22
44
|
summary: FrameworkMenuEvidenceSummary
|
|
23
45
|
): string => {
|
|
@@ -45,5 +67,7 @@ export const formatEvidenceSummaryForMenu = (
|
|
|
45
67
|
`Severities (enterprise): critical=${byEnterpriseSeverity.CRITICAL} high=${byEnterpriseSeverity.HIGH} medium=${byEnterpriseSeverity.MEDIUM} low=${byEnterpriseSeverity.LOW}`,
|
|
46
68
|
`Severities (legacy): critical=${summary.bySeverity.CRITICAL} error=${summary.bySeverity.ERROR} warn=${summary.bySeverity.WARN} info=${summary.bySeverity.INFO}`,
|
|
47
69
|
formatTopFiles(summary.topFiles),
|
|
70
|
+
formatPlatforms(summary.platformAuditRows),
|
|
71
|
+
formatTopFindings(summary.topFindings),
|
|
48
72
|
].join('\n');
|
|
49
73
|
};
|