pumuki-ast-hooks 5.5.29 → 5.5.30
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 +1 -1
- package/scripts/hooks-system/bin/check-version.js +4 -0
- package/scripts/hooks-system/infrastructure/ast/archive/kotlin-parser.js +4 -0
- package/scripts/hooks-system/infrastructure/ast/ast-intelligence.js +4 -1
- package/scripts/hooks-system/infrastructure/mcp/ast-intelligence-automation.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki-ast-hooks",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.30",
|
|
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": {
|
|
@@ -43,6 +43,10 @@ function getInstalledVersion() {
|
|
|
43
43
|
return { version: pkg.version, type: 'npm', path: packageRoot, packageName };
|
|
44
44
|
} catch (err) {
|
|
45
45
|
// Try next package name
|
|
46
|
+
const error = err && err.message ? err.message : String(err);
|
|
47
|
+
if (process.env.DEBUG) {
|
|
48
|
+
console.warn(`[check-version] Failed to resolve ${packageName}: ${error}`);
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
|
|
@@ -44,6 +44,10 @@ class KotlinParser {
|
|
|
44
44
|
{ encoding: 'utf-8', stdio: 'pipe' }
|
|
45
45
|
);
|
|
46
46
|
} catch (error) {
|
|
47
|
+
const errorMsg = error && error.message ? error.message : String(error);
|
|
48
|
+
if (process.env.DEBUG) {
|
|
49
|
+
console.warn(`[kotlin-parser] Detekt execution failed for ${filePath}: ${errorMsg}`);
|
|
50
|
+
}
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
if (!fs.existsSync(tmpXml)) {
|
|
@@ -570,7 +570,10 @@ function sendAuditNotification(totalViolations, levelTotals) {
|
|
|
570
570
|
level
|
|
571
571
|
});
|
|
572
572
|
} catch (error) {
|
|
573
|
-
|
|
573
|
+
const errorMsg = error && error.message ? error.message : String(error);
|
|
574
|
+
if (process.env.DEBUG) {
|
|
575
|
+
console.warn(`[ast-intelligence] Notification failed (optional): ${errorMsg}`);
|
|
576
|
+
}
|
|
574
577
|
}
|
|
575
578
|
}
|
|
576
579
|
|
|
@@ -157,7 +157,10 @@ function getBranchStateSafe(gitQuery, repoRoot, branch) {
|
|
|
157
157
|
try {
|
|
158
158
|
return gitQuery.getBranchState(branch);
|
|
159
159
|
} catch (error) {
|
|
160
|
-
|
|
160
|
+
const errorMsg = error && error.message ? error.message : String(error);
|
|
161
|
+
if (process.env.DEBUG) {
|
|
162
|
+
console.warn(`[ast-intelligence-automation] gitQuery.getBranchState failed, falling through to CLI: ${errorMsg}`);
|
|
163
|
+
}
|
|
161
164
|
}
|
|
162
165
|
}
|
|
163
166
|
|