@reneturcios/hookcheck 0.1.13 → 0.1.15

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/dist/types.d.ts CHANGED
@@ -20,6 +20,17 @@ export interface HookFinding {
20
20
  command: string;
21
21
  /** 1-based line number of the hook inside its file, when known (workflow run steps). */
22
22
  line?: number;
23
+ /**
24
+ * Aggregation (P-070, v0.1.15): when at least 3 identical SAFE
25
+ * findings (same file, source, hook, command, rules, and evidence)
26
+ * repeat, they collapse into one aggregate record carrying count
27
+ * (the number of findings folded into it) and lastLine (the line
28
+ * of the last folded finding; line keeps the first). Only SAFE
29
+ * findings are ever aggregated. Absent on ordinary findings.
30
+ */
31
+ count?: number;
32
+ /** Line of the last finding folded into an aggregate record. */
33
+ lastLine?: number;
23
34
  classification: Classification;
24
35
  /** Rule ids that fired, e.g. ["NET-FETCH", "CRED-ACCESS"]. Empty for SAFE. */
25
36
  rules: string[];
@@ -36,6 +47,20 @@ export interface ScanReport {
36
47
  risky: number;
37
48
  unknown: number;
38
49
  };
50
+ /**
51
+ * Aggregation summary (P-070, v0.1.15), present only when at
52
+ * least one group of identical SAFE findings was collapsed.
53
+ * counts reflect the reported records; findingsBeforeAggregation
54
+ * preserves the full inventory total, and the verdict was
55
+ * computed on that full inventory before aggregation. The note
56
+ * states the collapse in words so it is never silent.
57
+ */
58
+ aggregation?: {
59
+ findingsBeforeAggregation: number;
60
+ aggregateRecords: number;
61
+ collapsedFindings: number;
62
+ note: string;
63
+ };
39
64
  warnings: string[];
40
65
  scannedAt: string;
41
66
  /**
package/package.json CHANGED
@@ -37,5 +37,5 @@
37
37
  "test": "tsx --test test/*.test.ts"
38
38
  },
39
39
  "type": "module",
40
- "version": "0.1.13"
40
+ "version": "0.1.15"
41
41
  }
package/server.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },
20
- "version": "0.1.13"
20
+ "version": "0.1.15"
21
21
  },
22
22
  {
23
23
  "identifier": "ghcr.io/cloudcorprecords/hookcheck:0.1.3",
@@ -48,5 +48,5 @@
48
48
  "source": "github",
49
49
  "url": "https://github.com/CloudCorpRecords/hookcheck"
50
50
  },
51
- "version": "0.1.13"
51
+ "version": "0.1.15"
52
52
  }