pumuki-ast-hooks 5.3.5 → 5.3.7
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/.AI_TOKEN_STATUS.txt +1 -1
- package/scripts/hooks-system/.audit-reports/notifications.log +4 -0
- package/scripts/hooks-system/.audit-reports/token-monitor.log +12 -0
- package/scripts/hooks-system/infrastructure/shell/orchestrators/audit-orchestrator.sh +8 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki-ast-hooks",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.7",
|
|
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": {
|
|
@@ -524,3 +524,7 @@
|
|
|
524
524
|
{"timestamp":"2025-12-29T16:03:43.921Z","level":"debug","component":"NotificationCenter","event":"Notification enqueued","data":{"id":"8a762550-4bb3-4239-96ce-e7a08838d24b","type":"token_ok"},"context":{}}
|
|
525
525
|
{"timestamp":"2025-12-29T16:06:44.037Z","level":"debug","component":"NotificationCenter","event":"Notification enqueued","data":{"id":"d6372050-8b4f-4c01-9e26-cf035e9feb05","type":"token_ok"},"context":{}}
|
|
526
526
|
{"timestamp":"2025-12-29T16:09:44.150Z","level":"debug","component":"NotificationCenter","event":"Notification enqueued","data":{"id":"46322b8d-19ff-4888-8ce9-d901a54191d4","type":"token_ok"},"context":{}}
|
|
527
|
+
{"timestamp":"2025-12-29T16:12:44.258Z","level":"debug","component":"NotificationCenter","event":"Notification enqueued","data":{"id":"eac1ff0f-5133-41b1-a324-40c38c8b8f02","type":"token_ok"},"context":{}}
|
|
528
|
+
{"timestamp":"2025-12-29T16:15:44.361Z","level":"debug","component":"NotificationCenter","event":"Notification enqueued","data":{"id":"b013b103-7ea4-4f60-aebd-e9c0b4f21438","type":"token_ok"},"context":{}}
|
|
529
|
+
{"timestamp":"2025-12-29T16:18:44.475Z","level":"debug","component":"NotificationCenter","event":"Notification enqueued","data":{"id":"adfff9a0-05b6-495e-ae81-38855a5dca1a","type":"token_ok"},"context":{}}
|
|
530
|
+
{"timestamp":"2025-12-29T16:21:44.578Z","level":"debug","component":"NotificationCenter","event":"Notification enqueued","data":{"id":"c252550d-1535-4f24-be5f-fe09722460df","type":"token_ok"},"context":{}}
|
|
@@ -1576,3 +1576,15 @@
|
|
|
1576
1576
|
{"timestamp":"2025-12-29T16:09:44.139Z","level":"debug","component":"TokenMonitor","event":"CURSOR_SERVICE_USING_FILE","data":{"usage":{"tokensUsed":0,"maxTokens":1000000,"percentUsed":72.36585,"timestamp":"2025-12-29T15:38:11.174Z","source":"file","untrusted":false}},"context":{}}
|
|
1577
1577
|
{"timestamp":"2025-12-29T16:09:44.140Z","level":"debug","component":"TokenMonitor","event":"TOKEN_MONITOR_METRICS","data":{"timestamp":"2025-12-29T15:38:11.174Z","tokensUsed":0,"maxTokens":1000000,"percentUsed":0,"remainingTokens":1000000,"level":"ok","source":"file","stale":true,"untrusted":false},"context":{}}
|
|
1578
1578
|
{"timestamp":"2025-12-29T16:09:44.150Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"ok","percentUsed":0,"tokensUsed":0,"maxTokens":1000000,"source":"file","stale":true,"untrusted":false},"context":{"message":"Result level=ok percent=0% used=0/1000000 source=file (stale)"}}
|
|
1579
|
+
{"timestamp":"2025-12-29T16:12:44.248Z","level":"debug","component":"TokenMonitor","event":"CURSOR_SERVICE_USING_FILE","data":{"usage":{"tokensUsed":0,"maxTokens":1000000,"percentUsed":72.36585,"timestamp":"2025-12-29T15:38:11.174Z","source":"file","untrusted":false}},"context":{}}
|
|
1580
|
+
{"timestamp":"2025-12-29T16:12:44.249Z","level":"debug","component":"TokenMonitor","event":"TOKEN_MONITOR_METRICS","data":{"timestamp":"2025-12-29T15:38:11.174Z","tokensUsed":0,"maxTokens":1000000,"percentUsed":0,"remainingTokens":1000000,"level":"ok","source":"file","stale":true,"untrusted":false},"context":{}}
|
|
1581
|
+
{"timestamp":"2025-12-29T16:12:44.258Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"ok","percentUsed":0,"tokensUsed":0,"maxTokens":1000000,"source":"file","stale":true,"untrusted":false},"context":{"message":"Result level=ok percent=0% used=0/1000000 source=file (stale)"}}
|
|
1582
|
+
{"timestamp":"2025-12-29T16:15:44.350Z","level":"debug","component":"TokenMonitor","event":"CURSOR_SERVICE_USING_FILE","data":{"usage":{"tokensUsed":0,"maxTokens":1000000,"percentUsed":72.36585,"timestamp":"2025-12-29T15:38:11.174Z","source":"file","untrusted":false}},"context":{}}
|
|
1583
|
+
{"timestamp":"2025-12-29T16:15:44.351Z","level":"debug","component":"TokenMonitor","event":"TOKEN_MONITOR_METRICS","data":{"timestamp":"2025-12-29T15:38:11.174Z","tokensUsed":0,"maxTokens":1000000,"percentUsed":0,"remainingTokens":1000000,"level":"ok","source":"file","stale":true,"untrusted":false},"context":{}}
|
|
1584
|
+
{"timestamp":"2025-12-29T16:15:44.362Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"ok","percentUsed":0,"tokensUsed":0,"maxTokens":1000000,"source":"file","stale":true,"untrusted":false},"context":{"message":"Result level=ok percent=0% used=0/1000000 source=file (stale)"}}
|
|
1585
|
+
{"timestamp":"2025-12-29T16:18:44.466Z","level":"debug","component":"TokenMonitor","event":"CURSOR_SERVICE_USING_FILE","data":{"usage":{"tokensUsed":0,"maxTokens":1000000,"percentUsed":72.36585,"timestamp":"2025-12-29T15:38:11.174Z","source":"file","untrusted":false}},"context":{}}
|
|
1586
|
+
{"timestamp":"2025-12-29T16:18:44.467Z","level":"debug","component":"TokenMonitor","event":"TOKEN_MONITOR_METRICS","data":{"timestamp":"2025-12-29T15:38:11.174Z","tokensUsed":0,"maxTokens":1000000,"percentUsed":0,"remainingTokens":1000000,"level":"ok","source":"file","stale":true,"untrusted":false},"context":{}}
|
|
1587
|
+
{"timestamp":"2025-12-29T16:18:44.476Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"ok","percentUsed":0,"tokensUsed":0,"maxTokens":1000000,"source":"file","stale":true,"untrusted":false},"context":{"message":"Result level=ok percent=0% used=0/1000000 source=file (stale)"}}
|
|
1588
|
+
{"timestamp":"2025-12-29T16:21:44.567Z","level":"debug","component":"TokenMonitor","event":"CURSOR_SERVICE_USING_FILE","data":{"usage":{"tokensUsed":0,"maxTokens":1000000,"percentUsed":72.36585,"timestamp":"2025-12-29T15:38:11.174Z","source":"file","untrusted":false}},"context":{}}
|
|
1589
|
+
{"timestamp":"2025-12-29T16:21:44.568Z","level":"debug","component":"TokenMonitor","event":"TOKEN_MONITOR_METRICS","data":{"timestamp":"2025-12-29T15:38:11.174Z","tokensUsed":0,"maxTokens":1000000,"percentUsed":0,"remainingTokens":1000000,"level":"ok","source":"file","stale":true,"untrusted":false},"context":{}}
|
|
1590
|
+
{"timestamp":"2025-12-29T16:21:44.579Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"ok","percentUsed":0,"tokensUsed":0,"maxTokens":1000000,"source":"file","stale":true,"untrusted":false},"context":{"message":"Result level=ok percent=0% used=0/1000000 source=file (stale)"}}
|
|
@@ -56,7 +56,13 @@ source "$INFRASTRUCTURE_DIR/eslint/eslint-integration.sh"
|
|
|
56
56
|
|
|
57
57
|
# Initialize
|
|
58
58
|
START_TIME=$(date +%s)
|
|
59
|
-
|
|
59
|
+
|
|
60
|
+
# Determine repository root using git
|
|
61
|
+
if command -v git >/dev/null 2>&1; then
|
|
62
|
+
ROOT_DIR=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
|
|
63
|
+
else
|
|
64
|
+
ROOT_DIR=$(pwd)
|
|
65
|
+
fi
|
|
60
66
|
|
|
61
67
|
# Default to temp directories to avoid polluting repositories.
|
|
62
68
|
# Can be overridden by setting AUDIT_TMP / AUDIT_REPORTS.
|
|
@@ -366,8 +372,7 @@ compute_staged_summary() {
|
|
|
366
372
|
.findings
|
|
367
373
|
| map(select(
|
|
368
374
|
.filePath as $fp
|
|
369
|
-
| $staged[] as $sf
|
|
370
|
-
| ($fp | endswith($sf)) or ($fp | contains("/" + $sf))
|
|
375
|
+
| any($staged[]; . as $sf | ($fp | endswith($sf)) or ($fp | contains("/" + $sf)))
|
|
371
376
|
))
|
|
372
377
|
| group_by(.severity | ascii_downcase)
|
|
373
378
|
| map({key: .[0].severity | ascii_downcase, value: length})
|