pumuki-ast-hooks 5.3.20 → 5.3.21
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/docs/RELEASE_NOTES.md +35 -0
- package/docs/VIOLATIONS_RESOLUTION_PLAN.md +58 -58
- package/package.json +3 -3
- package/scripts/hooks-system/.AI_TOKEN_STATUS.txt +1 -1
- package/scripts/hooks-system/.audit-reports/notifications.log +935 -0
- package/scripts/hooks-system/.audit-reports/token-monitor.log +2809 -0
- package/scripts/hooks-system/application/CompositionRoot.js +38 -22
- package/scripts/hooks-system/application/services/AutonomousOrchestrator.js +0 -18
- package/scripts/hooks-system/application/services/ContextDetectionEngine.js +0 -58
- package/scripts/hooks-system/application/services/DynamicRulesLoader.js +2 -12
- package/scripts/hooks-system/application/services/GitFlowService.js +0 -80
- package/scripts/hooks-system/application/services/GitTreeState.js +2 -5
- package/scripts/hooks-system/application/services/HookSystemScheduler.js +0 -4
- package/scripts/hooks-system/application/services/IntelligentCommitAnalyzer.js +0 -25
- package/scripts/hooks-system/application/services/IntelligentGitTreeMonitor.js +0 -11
- package/scripts/hooks-system/application/services/PlatformAnalysisService.js +0 -19
- package/scripts/hooks-system/application/services/PlatformDetectionService.js +0 -19
- package/scripts/hooks-system/application/services/PlaybookRunner.js +1 -22
- package/scripts/hooks-system/application/services/PredictiveHookAdvisor.js +0 -19
- package/scripts/hooks-system/application/services/RealtimeGuardPlugin.js +0 -25
- package/scripts/hooks-system/application/services/RealtimeGuardService.js +71 -41
- package/scripts/hooks-system/application/services/SmartDirtyTreeAnalyzer.js +0 -11
- package/scripts/hooks-system/application/services/commit/CommitMessageGenerator.js +0 -11
- package/scripts/hooks-system/application/services/commit/FeatureDetector.js +0 -11
- package/scripts/hooks-system/application/services/evidence/EvidenceContextManager.js +0 -25
- package/scripts/hooks-system/application/services/guard/GuardAutoManagerService.js +31 -21
- package/scripts/hooks-system/application/services/guard/GuardConfig.js +15 -18
- package/scripts/hooks-system/application/services/guard/GuardEventLogger.js +0 -11
- package/scripts/hooks-system/application/services/guard/GuardHealthReminder.js +0 -26
- package/scripts/hooks-system/application/services/guard/GuardHeartbeatMonitor.js +6 -20
- package/scripts/hooks-system/application/services/guard/GuardLockManager.js +0 -11
- package/scripts/hooks-system/application/services/guard/GuardMonitorLoop.js +0 -25
- package/scripts/hooks-system/application/services/guard/GuardNotificationHandler.js +0 -11
- package/scripts/hooks-system/application/services/guard/GuardProcessManager.js +23 -11
- package/scripts/hooks-system/application/services/guard/GuardRecoveryService.js +0 -11
- package/scripts/hooks-system/application/services/installation/ConfigurationGeneratorService.js +0 -18
- package/scripts/hooks-system/application/services/installation/FileSystemInstallerService.js +0 -18
- package/scripts/hooks-system/application/services/installation/GitEnvironmentService.js +1 -19
- package/scripts/hooks-system/application/services/installation/HookInstaller.js +62 -24
- package/scripts/hooks-system/application/services/installation/IdeIntegrationService.js +0 -11
- package/scripts/hooks-system/application/services/installation/InstallService.js +1 -25
- package/scripts/hooks-system/application/services/installation/McpConfigurator.js +2 -19
- package/scripts/hooks-system/application/services/installation/PlatformDetectorService.js +0 -11
- package/scripts/hooks-system/application/services/installation/VSCodeTaskConfigurator.js +0 -11
- package/scripts/hooks-system/application/services/logging/AuditLogger.js +0 -8
- package/scripts/hooks-system/application/services/logging/UnifiedLogger.js +13 -15
- package/scripts/hooks-system/application/services/monitoring/ActivityMonitor.js +0 -33
- package/scripts/hooks-system/application/services/monitoring/AstMonitor.js +0 -27
- package/scripts/hooks-system/application/services/monitoring/DevDocsMonitor.js +0 -26
- package/scripts/hooks-system/application/services/monitoring/EvidenceMonitor.js +0 -18
- package/scripts/hooks-system/application/services/monitoring/EvidenceMonitorService.js +4 -28
- package/scripts/hooks-system/application/services/monitoring/GitTreeMonitor.js +0 -28
- package/scripts/hooks-system/application/services/monitoring/GitTreeMonitorService.js +0 -26
- package/scripts/hooks-system/application/services/monitoring/HealthCheckProviders.js +0 -4
- package/scripts/hooks-system/application/services/monitoring/HealthCheckService.js +0 -25
- package/scripts/hooks-system/application/services/monitoring/HeartbeatMonitorService.js +0 -26
- package/scripts/hooks-system/application/services/monitoring/TokenMonitor.js +0 -26
- package/scripts/hooks-system/application/services/notification/MacNotificationSender.js +0 -11
- package/scripts/hooks-system/application/services/notification/NotificationCenterService.js +0 -18
- package/scripts/hooks-system/application/services/notification/NotificationDispatcher.js +0 -11
- package/scripts/hooks-system/application/services/notification/components/NotificationCooldownManager.js +0 -18
- package/scripts/hooks-system/application/services/notification/components/NotificationDeduplicator.js +0 -18
- package/scripts/hooks-system/application/services/notification/components/NotificationQueue.js +0 -11
- package/scripts/hooks-system/application/services/notification/components/NotificationRetryExecutor.js +0 -20
- package/scripts/hooks-system/application/services/platform/PlatformHeuristics.js +0 -19
- package/scripts/hooks-system/application/services/recovery/AutoRecoveryManager.js +0 -19
- package/scripts/hooks-system/application/services/smart-commit/CommitMessageSuggester.js +0 -11
- package/scripts/hooks-system/application/services/smart-commit/FileContextGrouper.js +0 -19
- package/scripts/hooks-system/application/services/smart-commit/SmartCommitSummaryBuilder.js +0 -4
- package/scripts/hooks-system/application/services/token/CursorTokenService.js +0 -20
- package/scripts/hooks-system/application/services/token/TokenMetricsService.js +2 -12
- package/scripts/hooks-system/application/services/token/TokenMonitorService.js +0 -19
- package/scripts/hooks-system/application/services/token/TokenStatusReporter.js +0 -12
- package/scripts/hooks-system/bin/cli.js +15 -1
- package/scripts/hooks-system/bin/guard-env.sh +18 -38
- package/scripts/hooks-system/bin/guard-supervisor.js +5 -515
- package/scripts/hooks-system/bin/session-loader.sh +3 -262
- package/scripts/hooks-system/bin/start-guards.sh +21 -184
- package/scripts/hooks-system/bin/update-evidence.sh +10 -1161
- package/scripts/hooks-system/config/project.config.json +1 -1
- package/scripts/hooks-system/domain/events/index.js +31 -24
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/AndroidAnalysisOrchestrator.js +3 -2
- package/scripts/hooks-system/infrastructure/ast/ast-core.js +12 -20
- package/scripts/hooks-system/infrastructure/ast/ast-intelligence.js +8 -18
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/BackendPatternDetector.js +2 -1
- package/scripts/hooks-system/infrastructure/ast/backend/ast-backend.js +18 -14
- package/scripts/hooks-system/infrastructure/ast/frontend/ast-frontend.js +196 -196
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSASTIntelligentAnalyzer.js +3 -2
- package/scripts/hooks-system/infrastructure/hooks/skill-activation-prompt.js +3 -2
- package/scripts/hooks-system/infrastructure/logging/UnifiedLoggerFactory.js +5 -4
- package/scripts/hooks-system/infrastructure/mcp/ast-intelligence-automation.js +88 -0
- package/scripts/hooks-system/infrastructure/orchestration/intelligent-audit.js +17 -16
- package/scripts/hooks-system/infrastructure/shell/orchestrators/audit-orchestrator.sh +92 -54
- package/scripts/hooks-system/infrastructure/telemetry/metrics-server.js +3 -2
- package/scripts/hooks-system/infrastructure/validators/enforce-english-literals.js +6 -8
package/docs/RELEASE_NOTES.md
CHANGED
|
@@ -34,6 +34,41 @@ npm run install-hooks
|
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
|
37
|
+
# Release Notes - v5.3.20
|
|
38
|
+
|
|
39
|
+
**Release Date**: December 31, 2025
|
|
40
|
+
**Type**: Patch Release (compatible with 5.3.x)
|
|
41
|
+
**Compatibility**: Fully backward compatible with 5.3.x
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 🎯 Overview
|
|
46
|
+
- Removed runtime side-effects in the library: Express/CORS stripped from entry point; `dotenv.config()` removed from config.
|
|
47
|
+
- Fixed syntax in `ast-backend.js` (test block) to ensure lint/parse correctness.
|
|
48
|
+
- Published npm `pumuki-ast-hooks@5.3.20` (tag `latest`).
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 🐛 Bug Fixes
|
|
53
|
+
|
|
54
|
+
### Fixed: Runtime side-effects
|
|
55
|
+
- **Issue**: Library had runtime side-effects due to Express/CORS and `dotenv.config()`.
|
|
56
|
+
- **Resolution**: Removed Express/CORS from entry point and `dotenv.config()` from config.
|
|
57
|
+
- **Impact**: Library no longer has runtime side-effects.
|
|
58
|
+
|
|
59
|
+
### Fixed: Syntax in `ast-backend.js`
|
|
60
|
+
- **Issue**: Syntax error in `ast-backend.js` (test block) caused lint/parse issues.
|
|
61
|
+
- **Resolution**: Fixed syntax in `ast-backend.js` (test block).
|
|
62
|
+
- **Impact**: `ast-backend.js` now lint/parse correct.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 📚 Documentation
|
|
67
|
+
- CHANGELOG updated with 5.3.20.
|
|
68
|
+
- Installation notes reviewed for safe npm consumption.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
37
72
|
# Release Notes - v5.3.9
|
|
38
73
|
|
|
39
74
|
**Release Date**: December 29, 2025
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
# 🚀
|
|
1
|
+
# 🚀 Violations Resolution Plan - ast-intelligence-hooks
|
|
2
2
|
|
|
3
|
-
## 🧭
|
|
4
|
-
- ✅ **
|
|
5
|
-
- 🚧 **
|
|
6
|
-
- ⏳ **
|
|
7
|
-
- ❌ **
|
|
8
|
-
- 🔄 **
|
|
3
|
+
## 🧭 Status Legend (living)
|
|
4
|
+
- ✅ **Done** (task completed successfully)
|
|
5
|
+
- 🚧 **In progress** (task currently being worked on)
|
|
6
|
+
- ⏳ **Pending** (task not started yet)
|
|
7
|
+
- ❌ **Blocked** (task blocked by dependencies or external issues)
|
|
8
|
+
- 🔄 **Review** (completed but pending verification/adjustments)
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
## 📊
|
|
13
|
-
- **
|
|
12
|
+
## 📊 Executive Summary
|
|
13
|
+
- **Current status:** ⚠️ Action required (211 critical, 5 high, 122 medium, 185 low)
|
|
14
14
|
- **Branch:** `feature/add-prometheus-metrics`
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
1)
|
|
15
|
+
- **Start date:** 2025-12-30 — **Overall ETA:** 2026-01-15
|
|
16
|
+
- **Goal:** Reduce CRITICAL/HIGH to 0 and bring total < 20 before allowing commits without bypass.
|
|
17
|
+
- **Risks:**
|
|
18
|
+
1) Exception refactor complexity; 2) Cross-module/config dependencies; 3) Limited time for instrumentation (Prometheus / audit logging).
|
|
19
19
|
|
|
20
|
-
**
|
|
20
|
+
**Quick references:**
|
|
21
21
|
- [Violations report](../.violations-by-priority.md)
|
|
22
22
|
- [AST summary JSON](../.audit-reports/latest_ast_summary.json)
|
|
23
23
|
- [Arquitectura](../ARCHITECTURE.md)
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
-
## 📅 Timeline
|
|
27
|
+
## 📅 Visual Timeline (estimated dates)
|
|
28
28
|
```mermaid
|
|
29
29
|
gantt
|
|
30
|
-
title
|
|
30
|
+
title Violations Resolution Phases
|
|
31
31
|
dateFormat YYYY-MM-DD
|
|
32
|
-
section
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
section Phase 1: BLOCKERS (CRITICAL + HIGH)
|
|
33
|
+
Resolve CRITICAL :active, crit1, 2025-12-30, 1d
|
|
34
|
+
Resolve HIGH : high1, after crit1, 2d
|
|
35
35
|
|
|
36
|
-
section
|
|
37
|
-
|
|
36
|
+
section Phase 2: MEDIUM
|
|
37
|
+
MEDIUM refactoring : med1, after high1, 7d
|
|
38
38
|
|
|
39
|
-
section
|
|
40
|
-
|
|
39
|
+
section Phase 3: LOW
|
|
40
|
+
Optimizations and documentation : low1, after med1, 5d
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
|
-
## 🔴
|
|
46
|
-
|
|
|
45
|
+
## 🔴 Phase 1: BLOCKER Violations (CRITICAL + HIGH)
|
|
46
|
+
| Status | Severity | Count | Owner | DOD (Definition of Done) | Source |
|
|
47
47
|
|--------|-----------|-------|-------------|--------------------------|--------|
|
|
48
|
-
| ⏳ | CRITICAL |
|
|
49
|
-
| ⏳ | HIGH |
|
|
48
|
+
| ⏳ | CRITICAL | 211 | BE | Resolve CRITICAL violations in repository (0 CRITICAL to unblock) | `.audit_tmp/ast-summary.json` / `.violations-by-priority.md` |
|
|
49
|
+
| ⏳ | HIGH | 5 | BE | Resolve HIGH violations in repository (0 HIGH to unblock) | `.audit_tmp/ast-summary.json` / `.violations-by-priority.md` |
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
|
-
## 🟠
|
|
54
|
-
|
|
|
53
|
+
## 🟠 Phase 2: MEDIUM Violations (122)
|
|
54
|
+
| Status | Violation | Count | Owner | DOD | Doc |
|
|
55
55
|
|--------|-----------|-------|-------------|-----|-----|
|
|
56
|
-
| ⏳ | MEDIUM |
|
|
56
|
+
| ⏳ | MEDIUM | 122 | BE | Resolve remaining medium-complexity violations | [Medium violations](../docs/medium-violations.md) |
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
60
|
-
## 🔵
|
|
61
|
-
|
|
|
60
|
+
## 🔵 Phase 3: LOW Violations (185)
|
|
61
|
+
| Status | Violation | Count | Owner | DOD | Doc |
|
|
62
62
|
|--------|-----------|-------|-------------|-----|-----|
|
|
63
|
-
| ⏳ | LOW |
|
|
63
|
+
| ⏳ | LOW | 185 | BE/FE | Resolve remaining low-priority violations | [Low violations](../docs/low-violations.md) |
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
67
|
-
## 🎯 Top
|
|
68
|
-
|
|
|
67
|
+
## 🎯 Top violations (by volume / impact) — to prioritize within MEDIUM/LOW
|
|
68
|
+
| Priority | Violation | Count | Notes |
|
|
69
69
|
|----------|-----------|-------|------|
|
|
70
|
-
| P1 | backend.error.custom_exceptions | 105 |
|
|
71
|
-
| P1 | backend.config.missing_env_separation | 81 |
|
|
72
|
-
| P1 | backend.security.missing_audit_logging | 69 |
|
|
73
|
-
| P2 | backend.metrics.missing_prometheus | 42 | MEDIUM/LOW
|
|
74
|
-
| P2 | backend.reliability.missing_bulkhead | 41 | MEDIUM/LOW: bulkheads/timeouts
|
|
75
|
-
| P2 | backend.testing.mocks | 40 | MEDIUM:
|
|
76
|
-
| P2 | backend.observability.missing_prometheus | 30 | LOW:
|
|
77
|
-
| P3 | backend.event.handler | 26 | LOW: try/catch
|
|
70
|
+
| P1 | backend.error.custom_exceptions | 105 | Typically MEDIUM: refactor to CustomError + replace generic `Error` in backend |
|
|
71
|
+
| P1 | backend.config.missing_env_separation | 81 | Typically MEDIUM: environment-specific config separation |
|
|
72
|
+
| P1 | backend.security.missing_audit_logging | 69 | Typically MEDIUM: audit trail for sensitive operations |
|
|
73
|
+
| P2 | backend.metrics.missing_prometheus | 42 | MEDIUM/LOW depending on rule: service instrumentation |
|
|
74
|
+
| P2 | backend.reliability.missing_bulkhead | 41 | MEDIUM/LOW: bulkheads/timeouts in critical paths |
|
|
75
|
+
| P2 | backend.testing.mocks | 40 | MEDIUM: improve testing strategy |
|
|
76
|
+
| P2 | backend.observability.missing_prometheus | 30 | LOW: observability and dashboards |
|
|
77
|
+
| P3 | backend.event.handler | 26 | LOW: try/catch and resilience |
|
|
78
78
|
| P3 | backend.auth.missing_cors | 17 | LOW: CORS/headers |
|
|
79
|
-
| P3 | backend.event.emitter | 14 | LOW:
|
|
79
|
+
| P3 | backend.event.emitter | 14 | LOW: safe event emitters |
|
|
80
80
|
|
|
81
81
|
---
|
|
82
82
|
|
|
83
|
-
## 📈
|
|
84
|
-
|
|
|
83
|
+
## 📈 Progress Metrics
|
|
84
|
+
| Phase | Total | Completed | % |
|
|
85
85
|
|------|-------|------------|---|
|
|
86
|
-
|
|
|
87
|
-
| MEDIUM |
|
|
88
|
-
| LOW |
|
|
89
|
-
| **TOTAL** | **
|
|
90
|
-
|
|
91
|
-
**
|
|
92
|
-
1)
|
|
93
|
-
|
|
94
|
-
**
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
86
|
+
| BLOCKERS (CRITICAL + HIGH) | 216 | 0 | 0% |
|
|
87
|
+
| MEDIUM | 122 | 0 | 0% |
|
|
88
|
+
| LOW | 185 | 0 | 0% |
|
|
89
|
+
| **TOTAL** | **523** | **0** | **0%** |
|
|
90
|
+
|
|
91
|
+
**Updated risks:**
|
|
92
|
+
1) Prometheus implementation may require infra changes; 2) Security review depends on team availability; 3) Refactors may impact timelines.
|
|
93
|
+
|
|
94
|
+
**Collaborative notes:**
|
|
95
|
+
- Add notes under each table when closing tasks (use the legend to update status).
|
|
96
|
+
- Progress on Prometheus metrics: automatic sweep applied over `scripts/hooks-system/application/services/**`; the audit still reports 42 (`backend.metrics.missing_prometheus`) and 30 (`backend.observability.missing_prometheus`) pending.
|
|
97
|
+
- Last scan (31/12/2025 10:39): 451 files, 523 total violations (211 critical, 5 high, 122 medium, 185 low).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki-ast-hooks",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.21",
|
|
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": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"hook-plan-review": "./bin/plan-review.js"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"install-hooks": "
|
|
23
|
+
"install-hooks": "node bin/install.js",
|
|
24
24
|
"check-version": "node bin/check-version.js",
|
|
25
25
|
"audit": "node bin/ast",
|
|
26
26
|
"ast": "node bin/ast",
|
|
@@ -122,4 +122,4 @@
|
|
|
122
122
|
"./skills": "./skills/skill-rules.json",
|
|
123
123
|
"./hooks": "./hooks/index.js"
|
|
124
124
|
}
|
|
125
|
-
}
|
|
125
|
+
}
|