pumuki-ast-hooks 5.6.11 → 5.6.12
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/assets/Hook_01.png +0 -0
- package/assets/Hook_02.png +0 -0
- package/assets/ai-start.png +0 -0
- package/assets/ai_gate.png +0 -0
- package/assets/ast_intelligence_01.png +0 -0
- package/assets/ast_intelligence_01.svg +40 -0
- package/assets/ast_intelligence_02.png +0 -0
- package/assets/ast_intelligence_02.svg +39 -0
- package/assets/ast_intelligence_03.png +0 -0
- package/assets/ast_intelligence_03.svg +55 -0
- package/assets/ast_intelligence_04.png +0 -0
- package/assets/ast_intelligence_04.svg +39 -0
- package/assets/ast_intelligence_05.png +0 -0
- package/assets/ast_intelligence_05.svg +45 -0
- package/assets/logo.png +0 -0
- package/assets/logo_banner.svg +29 -0
- package/assets/pre-flight-check.png +0 -0
- package/package.json +2 -1
- package/scripts/hooks-system/.audit_tmp/hook-metrics.jsonl +4 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/ast-common.spec.js +30 -0
- package/scripts/hooks-system/infrastructure/ast/common/ast-common.js +12 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900" role="img" aria-label="AST Intelligence System Overview">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.bg { fill: #0b0f14; }
|
|
6
|
+
.panel { fill: #0f1620; stroke: #1f2a37; stroke-width: 2; }
|
|
7
|
+
.title { fill: #7dd3fc; font: 700 40px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
8
|
+
.sub { fill: #a7f3d0; font: 600 22px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
9
|
+
.txt { fill: #e5e7eb; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
10
|
+
.muted { fill: #9ca3af; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
11
|
+
.accent { fill: #fbbf24; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
12
|
+
.ok { fill: #34d399; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
13
|
+
.warn { fill: #f59e0b; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
14
|
+
</style>
|
|
15
|
+
</defs>
|
|
16
|
+
|
|
17
|
+
<rect class="bg" x="0" y="0" width="1600" height="900" />
|
|
18
|
+
<rect class="panel" x="40" y="40" width="1520" height="820" rx="18" />
|
|
19
|
+
|
|
20
|
+
<text class="title" x="80" y="115">PUMUKI — Hook-System (run: npx ast-hooks)</text>
|
|
21
|
+
<text class="sub" x="80" y="160">AST Intelligence System Overview</text>
|
|
22
|
+
|
|
23
|
+
<text class="txt" x="80" y="230">1) Pattern checks</text>
|
|
24
|
+
<text class="txt" x="80" y="265">2) ESLint audits</text>
|
|
25
|
+
<text class="txt" x="80" y="300">3) AST Intelligence analysis</text>
|
|
26
|
+
<text class="txt" x="80" y="335">4) Intelligent Audit Gate (block/allow)</text>
|
|
27
|
+
<text class="txt" x="80" y="370">5) Evidence update (.AI_EVIDENCE.json)</text>
|
|
28
|
+
|
|
29
|
+
<text class="muted" x="80" y="435">Pipeline</text>
|
|
30
|
+
<text class="accent" x="80" y="470">Source files → AST analyzers → violations → severity evaluation → AI Gate verdict</text>
|
|
31
|
+
|
|
32
|
+
<text class="muted" x="80" y="535">Outputs</text>
|
|
33
|
+
<text class="txt" x="80" y="570">• .audit_tmp/ast-summary.json</text>
|
|
34
|
+
<text class="txt" x="80" y="605">• .audit_tmp/ast-summary-enhanced.json</text>
|
|
35
|
+
<text class="txt" x="80" y="640">• reports/ (json + text)</text>
|
|
36
|
+
<text class="txt" x="80" y="675">• .AI_EVIDENCE.json (ai_gate + metrics)</text>
|
|
37
|
+
|
|
38
|
+
<text class="warn" x="80" y="750">Rule: Fail fast, block early</text>
|
|
39
|
+
<text class="ok" x="80" y="785">Goal: deterministic governance across iOS / Android / Backend / Frontend</text>
|
|
40
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900" role="img" aria-label="AST Intelligence Workflow">
|
|
2
|
+
<defs>
|
|
3
|
+
<style>
|
|
4
|
+
.bg { fill: #0b0f14; }
|
|
5
|
+
.panel { fill: #0f1620; stroke: #1f2a37; stroke-width: 2; }
|
|
6
|
+
.h { fill: #a7f3d0; font: 700 26px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
7
|
+
.t { fill: #e5e7eb; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
8
|
+
.m { fill: #9ca3af; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
9
|
+
.accent { fill: #fbbf24; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
10
|
+
.warn { fill: #f59e0b; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
11
|
+
</style>
|
|
12
|
+
</defs>
|
|
13
|
+
|
|
14
|
+
<rect class="bg" x="0" y="0" width="1600" height="900" />
|
|
15
|
+
<rect class="panel" x="40" y="40" width="1520" height="820" rx="18" />
|
|
16
|
+
|
|
17
|
+
<text class="h" x="80" y="120">QUICK SUMMARY</text>
|
|
18
|
+
|
|
19
|
+
<text class="t" x="80" y="190">Files scanned: 269</text>
|
|
20
|
+
<text class="t" x="80" y="220">Total violations: 69</text>
|
|
21
|
+
<text class="t" x="80" y="250">ESLint errors: 0</text>
|
|
22
|
+
<text class="t" x="80" y="280">Critical issues: 3</text>
|
|
23
|
+
<text class="t" x="80" y="310">High priority: 38</text>
|
|
24
|
+
|
|
25
|
+
<text class="warn" x="80" y="365">⚠ STATUS: ACTION REQUIRED</text>
|
|
26
|
+
<text class="accent" x="80" y="395">Critical or high-severity issues detected</text>
|
|
27
|
+
|
|
28
|
+
<text class="h" x="80" y="465">1) PATTERN CHECKS</text>
|
|
29
|
+
<text class="t" x="110" y="510">• TODO / FIXME: 4</text>
|
|
30
|
+
<text class="t" x="110" y="540">• CONSOLE_LOG: 205</text>
|
|
31
|
+
<text class="t" x="110" y="570">• ANY TYPE: 8</text>
|
|
32
|
+
<text class="t" x="110" y="600">• SQL_RAW: 3</text>
|
|
33
|
+
|
|
34
|
+
<text class="h" x="80" y="670">2) ESLINT AUDIT RESULTS</text>
|
|
35
|
+
<text class="t" x="110" y="715">ESLint: errors=0 warnings=0</text>
|
|
36
|
+
|
|
37
|
+
<text class="h" x="80" y="785">3) AST INTELLIGENCE — SEVERITY BREAKDOWN</text>
|
|
38
|
+
<text class="m" x="110" y="830">Staging Area: no staged files to analyze</text>
|
|
39
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900" role="img" aria-label="AST Intelligence Audit - Part 1">
|
|
2
|
+
<defs>
|
|
3
|
+
<style>
|
|
4
|
+
.bg { fill: #0b0f14; }
|
|
5
|
+
.panel { fill: #0f1620; stroke: #1f2a37; stroke-width: 2; }
|
|
6
|
+
.h { fill: #a7f3d0; font: 700 24px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
7
|
+
.t { fill: #e5e7eb; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
8
|
+
.muted { fill: #9ca3af; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
9
|
+
.sevC { fill: #fb7185; }
|
|
10
|
+
.sevH { fill: #f59e0b; }
|
|
11
|
+
.sevM { fill: #fbbf24; }
|
|
12
|
+
.sevL { fill: #60a5fa; }
|
|
13
|
+
.dot { stroke: #1f2a37; stroke-width: 2; }
|
|
14
|
+
</style>
|
|
15
|
+
</defs>
|
|
16
|
+
|
|
17
|
+
<rect class="bg" x="0" y="0" width="1600" height="900" />
|
|
18
|
+
<rect class="panel" x="40" y="40" width="1520" height="820" rx="18" />
|
|
19
|
+
|
|
20
|
+
<text class="h" x="80" y="120">Platform: iOS</text>
|
|
21
|
+
<circle class="sevC dot" cx="95" cy="160" r="10" /><text class="t" x="120" y="166">CRITICAL: 2</text>
|
|
22
|
+
<circle class="sevH dot" cx="260" cy="160" r="10" /><text class="t" x="285" y="166">HIGH: 15</text>
|
|
23
|
+
<circle class="sevM dot" cx="395" cy="160" r="10" /><text class="t" x="420" y="166">MEDIUM: 6</text>
|
|
24
|
+
<circle class="sevL dot" cx="555" cy="160" r="10" /><text class="t" x="580" y="166">LOW: 13</text>
|
|
25
|
+
|
|
26
|
+
<text class="muted" x="80" y="210">Files affected: 1</text>
|
|
27
|
+
<text class="t" x="80" y="250">Top violations:</text>
|
|
28
|
+
<text class="t" x="110" y="285">ios.quality.long_function: 3</text>
|
|
29
|
+
<text class="t" x="110" y="315">ios.solid.isp.unused_dependency: 2</text>
|
|
30
|
+
<text class="t" x="110" y="345">ios.concurrency.missing_actor: 2</text>
|
|
31
|
+
<text class="t" x="110" y="375">ios.force_unwrapping: 2</text>
|
|
32
|
+
<text class="t" x="110" y="405">ios.uikit.viewmodel_delegation: 1</text>
|
|
33
|
+
|
|
34
|
+
<text class="h" x="80" y="500">Platform: Android</text>
|
|
35
|
+
<circle class="sevC dot" cx="95" cy="540" r="10" /><text class="t" x="120" y="546">CRITICAL: 0</text>
|
|
36
|
+
<circle class="sevH dot" cx="260" cy="540" r="10" /><text class="t" x="285" y="546">HIGH: 8</text>
|
|
37
|
+
<circle class="sevM dot" cx="395" cy="540" r="10" /><text class="t" x="420" y="546">MEDIUM: 8</text>
|
|
38
|
+
<circle class="sevL dot" cx="555" cy="540" r="10" /><text class="t" x="580" y="546">LOW: 1</text>
|
|
39
|
+
|
|
40
|
+
<text class="t" x="80" y="610">Top violations:</text>
|
|
41
|
+
<text class="t" x="110" y="645">android.asynctask: 2</text>
|
|
42
|
+
<text class="t" x="110" y="675">android.di.missing_android_entry_point: 1</text>
|
|
43
|
+
<text class="t" x="110" y="705">android.networking.missing_error_handling: 1</text>
|
|
44
|
+
<text class="t" x="110" y="735">android.coroutines.missing_lifecycle_scope: 1</text>
|
|
45
|
+
|
|
46
|
+
<text class="h" x="920" y="500">Platform: Other</text>
|
|
47
|
+
<circle class="sevC dot" cx="935" cy="540" r="10" /><text class="t" x="960" y="546">CRITICAL: 0</text>
|
|
48
|
+
<circle class="sevH dot" cx="1100" cy="540" r="10" /><text class="t" x="1125" y="546">HIGH: 2</text>
|
|
49
|
+
<circle class="sevM dot" cx="1235" cy="540" r="10" /><text class="t" x="1260" y="546">MEDIUM: 0</text>
|
|
50
|
+
<circle class="sevL dot" cx="1395" cy="540" r="10" /><text class="t" x="1420" y="546">LOW: 0</text>
|
|
51
|
+
|
|
52
|
+
<text class="t" x="920" y="610">Top violations:</text>
|
|
53
|
+
<text class="t" x="950" y="645">workflow.tdd.low_test_coverage: 1</text>
|
|
54
|
+
<text class="t" x="950" y="675">workflow.sequence.tests_lagging: 1</text>
|
|
55
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900" role="img" aria-label="AST Intelligence Audit - Part 2">
|
|
2
|
+
<defs>
|
|
3
|
+
<style>
|
|
4
|
+
.bg { fill: #0b0f14; }
|
|
5
|
+
.panel { fill: #0f1620; stroke: #1f2a37; stroke-width: 2; }
|
|
6
|
+
.h { fill: #a7f3d0; font: 700 24px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
7
|
+
.t { fill: #e5e7eb; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
8
|
+
.muted { fill: #9ca3af; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
9
|
+
</style>
|
|
10
|
+
</defs>
|
|
11
|
+
|
|
12
|
+
<rect class="bg" x="0" y="0" width="1600" height="900" />
|
|
13
|
+
<rect class="panel" x="40" y="40" width="1520" height="820" rx="18" />
|
|
14
|
+
|
|
15
|
+
<text class="h" x="80" y="120">5) TOP VIOLATIONS & REMEDIATION</text>
|
|
16
|
+
|
|
17
|
+
<text class="t" x="80" y="200">• common.types.any (8 violations)</text>
|
|
18
|
+
<text class="muted" x="110" y="235">→ Review and fix violations.</text>
|
|
19
|
+
|
|
20
|
+
<text class="t" x="80" y="285">• ios.quality.long_function (3 violations)</text>
|
|
21
|
+
<text class="muted" x="110" y="320">→ Review and fix violations.</text>
|
|
22
|
+
|
|
23
|
+
<text class="t" x="80" y="370">• android.asynctask (2 violations)</text>
|
|
24
|
+
<text class="muted" x="110" y="405">→ Review and fix violations.</text>
|
|
25
|
+
|
|
26
|
+
<text class="t" x="80" y="455">• common.network.missing_timeout (2 violations)</text>
|
|
27
|
+
<text class="muted" x="110" y="490">→ Review and fix violations.</text>
|
|
28
|
+
|
|
29
|
+
<text class="t" x="80" y="540">• common.network.missing_error_handling (2 violations)</text>
|
|
30
|
+
<text class="muted" x="110" y="575">→ Review and fix violations.</text>
|
|
31
|
+
|
|
32
|
+
<text class="t" x="80" y="625">• ios.solid.isp.unused_dependency (2 violations)</text>
|
|
33
|
+
<text class="muted" x="110" y="660">→ Review and fix violations.</text>
|
|
34
|
+
|
|
35
|
+
<text class="t" x="80" y="710">• ios.concurrency.missing_actor (2 violations)</text>
|
|
36
|
+
<text class="muted" x="110" y="745">→ Review and fix violations.</text>
|
|
37
|
+
|
|
38
|
+
<text class="h" x="80" y="830">6) EXECUTIVE SUMMARY</text>
|
|
39
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900" role="img" aria-label="AST Intelligence Audit - Part 3">
|
|
2
|
+
<defs>
|
|
3
|
+
<style>
|
|
4
|
+
.bg { fill: #0b0f14; }
|
|
5
|
+
.panel { fill: #0f1620; stroke: #1f2a37; stroke-width: 2; }
|
|
6
|
+
.h { fill: #a7f3d0; font: 700 24px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
7
|
+
.t { fill: #e5e7eb; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
8
|
+
.muted { fill: #9ca3af; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
9
|
+
.errBox { fill: none; stroke: #fb7185; stroke-width: 3; }
|
|
10
|
+
.err { fill: #fb7185; font: 18px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
|
11
|
+
.sevC { fill: #fb7185; }
|
|
12
|
+
.sevH { fill: #f59e0b; }
|
|
13
|
+
.sevM { fill: #fbbf24; }
|
|
14
|
+
.sevL { fill: #60a5fa; }
|
|
15
|
+
.dot { stroke: #1f2a37; stroke-width: 2; }
|
|
16
|
+
</style>
|
|
17
|
+
</defs>
|
|
18
|
+
|
|
19
|
+
<rect class="bg" x="0" y="0" width="1600" height="900" />
|
|
20
|
+
<rect class="panel" x="40" y="40" width="1520" height="820" rx="18" />
|
|
21
|
+
|
|
22
|
+
<text class="h" x="80" y="120">METRICS</text>
|
|
23
|
+
<text class="t" x="80" y="170">Total violations detected: 69</text>
|
|
24
|
+
<text class="t" x="80" y="200">ESLint errors: 0</text>
|
|
25
|
+
<text class="t" x="80" y="230">Critical issues: 3</text>
|
|
26
|
+
<text class="t" x="80" y="260">High priority issues: 38</text>
|
|
27
|
+
<text class="t" x="80" y="290">Files scanned: 269</text>
|
|
28
|
+
|
|
29
|
+
<text class="muted" x="80" y="335">Code Health Score: 65% (Good)</text>
|
|
30
|
+
|
|
31
|
+
<rect class="errBox" x="80" y="370" width="1440" height="90" rx="10" />
|
|
32
|
+
<text class="err" x="110" y="425">ACTION REQUIRED: Critical or high-severity issues detected. Please review and fix before proceeding.</text>
|
|
33
|
+
|
|
34
|
+
<text class="h" x="80" y="520">FINAL SUMMARY — VIOLATIONS BY SEVERITY</text>
|
|
35
|
+
|
|
36
|
+
<circle class="sevC dot" cx="95" cy="565" r="10" /><text class="t" x="120" y="571">CRITICAL: 3</text>
|
|
37
|
+
<circle class="sevH dot" cx="95" cy="605" r="10" /><text class="t" x="120" y="611">HIGH: 38</text>
|
|
38
|
+
<circle class="sevM dot" cx="95" cy="645" r="10" /><text class="t" x="120" y="651">MEDIUM: 14</text>
|
|
39
|
+
<circle class="sevL dot" cx="95" cy="685" r="10" /><text class="t" x="120" y="691">LOW: 14</text>
|
|
40
|
+
|
|
41
|
+
<text class="muted" x="80" y="760">COMMIT BLOCKED — STRICT REPO+STAGING</text>
|
|
42
|
+
<text class="muted" x="80" y="795">Action: clean entire repository before committing.</text>
|
|
43
|
+
|
|
44
|
+
<text class="t" x="80" y="845">Generated by Pumuki — Hook-System</text>
|
|
45
|
+
</svg>
|
package/assets/logo.png
ADDED
|
Binary file
|