pumuki-ast-hooks 5.5.22 → 5.5.23
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/README.md
CHANGED
|
@@ -1065,6 +1065,15 @@ For coding standards, see [CODE_STANDARDS.md](./docs/CODE_STANDARDS.md).
|
|
|
1065
1065
|
|
|
1066
1066
|
## 📝 Recent Changes
|
|
1067
1067
|
|
|
1068
|
+
### Version 5.5.22 (2026-01-04)
|
|
1069
|
+
|
|
1070
|
+
**🔴 CRITICAL Fix:**
|
|
1071
|
+
- Replaced self-referential wrapper with complete session-loader implementation
|
|
1072
|
+
- Root cause: wrapper called itself causing infinite recursion
|
|
1073
|
+
- Session loader now works correctly in all consuming projects
|
|
1074
|
+
|
|
1075
|
+
---
|
|
1076
|
+
|
|
1068
1077
|
### Version 5.5.21 (2026-01-04)
|
|
1069
1078
|
|
|
1070
1079
|
**🐛 Bug Fixes:**
|
package/docs/RELEASE_NOTES.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
# Release Notes - v5.5.22
|
|
2
|
+
|
|
3
|
+
**Release Date**: January 4, 2026
|
|
4
|
+
**Type**: Critical Patch Release
|
|
5
|
+
**Compatibility**: Fully backward compatible with 5.5.x
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🔴 CRITICAL Fix
|
|
10
|
+
|
|
11
|
+
### Root Cause Analysis
|
|
12
|
+
|
|
13
|
+
The session-loader fork bomb was caused by an **architectural flaw** in the wrapper pattern:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
scripts/hooks-system/bin/session-loader.sh (WRAPPER)
|
|
17
|
+
→ calls: bash "$REPO_ROOT/scripts/hooks-system/bin/session-loader.sh"
|
|
18
|
+
→ which is THE SAME FILE
|
|
19
|
+
→ INFINITE RECURSION → FORK BOMB
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Solution
|
|
23
|
+
|
|
24
|
+
Replaced the 6-line self-referential wrapper with the **complete 108-line implementation** directly in `scripts/hooks-system/bin/session-loader.sh`.
|
|
25
|
+
|
|
26
|
+
### Impact
|
|
27
|
+
|
|
28
|
+
- **Before**: Any project installing the library would get the broken wrapper, causing fork bombs on IDE startup
|
|
29
|
+
- **After**: Projects get a fully working session-loader that displays context correctly
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 📦 Installation / Upgrade
|
|
34
|
+
```bash
|
|
35
|
+
npm install --save-dev pumuki-ast-hooks@5.5.22
|
|
36
|
+
npm run install-hooks
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
1
41
|
# Release Notes - v5.5.21
|
|
2
42
|
|
|
3
43
|
**Release Date**: January 4, 2026
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki-ast-hooks",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.23",
|
|
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": {
|
|
@@ -391,6 +391,16 @@ function updateAIEvidence(violations, gateResult, tokenUsage) {
|
|
|
391
391
|
fs.writeFileSync(evidencePath, JSON.stringify(evidence, null, 2));
|
|
392
392
|
console.log('[Intelligent Audit] ✅ .AI_EVIDENCE.json updated with complete format (ai_gate, severity_metrics, token_usage, git_flow, watchers)');
|
|
393
393
|
|
|
394
|
+
try {
|
|
395
|
+
const gateStatus = evidence.ai_gate.status;
|
|
396
|
+
const violationCount = evidence.severity_metrics.total_violations;
|
|
397
|
+
const notifTitle = gateStatus === 'BLOCKED' ? '🚨 AI Gate BLOCKED' : '✅ Evidence Updated';
|
|
398
|
+
const notifMsg = `Gate: ${gateStatus} | Violations: ${violationCount} | Tokens: ${tokenPercent}%`;
|
|
399
|
+
execSync(`osascript -e 'display notification "${notifMsg}" with title "${notifTitle}" sound name "Glass"'`, { stdio: 'ignore' });
|
|
400
|
+
} catch (notifErr) {
|
|
401
|
+
// Silent fail for non-macOS
|
|
402
|
+
}
|
|
403
|
+
|
|
394
404
|
} catch (evidenceFileUpdateError) {
|
|
395
405
|
process.stderr.write(`[Intelligent Audit] ⚠️ Evidence update failed: ${toErrorMessage(evidenceFileUpdateError)}\n`);
|
|
396
406
|
}
|