pumuki 6.3.350 → 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.350",
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 buildConsumerRuntimeEvidenceDriftLines = (
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
  }