pumuki-ast-hooks 5.5.10 → 5.5.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki-ast-hooks",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.12",
|
|
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": {
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
},
|
|
117
117
|
"exports": {
|
|
118
118
|
".": "./index.js",
|
|
119
|
+
"./package.json": "./package.json",
|
|
119
120
|
"./ast": "./scripts/hooks-system/infrastructure/ast/ast-intelligence.js",
|
|
120
121
|
"./domain": "./scripts/hooks-system/domain/index.js",
|
|
121
122
|
"./application": "./scripts/hooks-system/application/index.js",
|
|
@@ -503,8 +503,12 @@ function updateAIEvidenceMetrics(findings, levelTotals, root) {
|
|
|
503
503
|
try {
|
|
504
504
|
const evidence = JSON.parse(fs.readFileSync(evidencePath, 'utf8'));
|
|
505
505
|
|
|
506
|
+
const now = new Date().toISOString();
|
|
507
|
+
|
|
508
|
+
evidence.timestamp = now;
|
|
509
|
+
|
|
506
510
|
evidence.severity_metrics = {
|
|
507
|
-
last_updated:
|
|
511
|
+
last_updated: now,
|
|
508
512
|
total_violations: findings.length,
|
|
509
513
|
by_severity: {
|
|
510
514
|
CRITICAL: levelTotals.CRITICAL || 0,
|
|
@@ -761,6 +761,8 @@ async function validateAndFix(params) {
|
|
|
761
761
|
const McpProtocolHandler = require('./services/McpProtocolHandler');
|
|
762
762
|
const protocolHandler = new McpProtocolHandler(process.stdin, process.stdout);
|
|
763
763
|
|
|
764
|
+
const SERVER_NAME = (process.env.MCP_SERVER_NAME || '').trim() || 'ast-intelligence-automation';
|
|
765
|
+
|
|
764
766
|
async function handleMcpMessage(message) {
|
|
765
767
|
try {
|
|
766
768
|
const request = JSON.parse(message);
|
|
@@ -788,7 +790,7 @@ async function handleMcpMessage(message) {
|
|
|
788
790
|
}
|
|
789
791
|
},
|
|
790
792
|
serverInfo: {
|
|
791
|
-
name:
|
|
793
|
+
name: SERVER_NAME,
|
|
792
794
|
version: '3.0.0',
|
|
793
795
|
description: 'Autonomous AST Intelligence + Git Flow Automation'
|
|
794
796
|
}
|