pumuki-ast-hooks 5.6.8 → 5.6.9

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/bin/cli.js CHANGED
@@ -3,4 +3,6 @@
3
3
  * Script Wrapper
4
4
  * Redirects to the centralized implementation in scripts/hooks-system
5
5
  */
6
- require('../scripts/hooks-system/bin/cli.js');
6
+ const { runCli } = require('../scripts/hooks-system/bin/cli.js');
7
+
8
+ runCli(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki-ast-hooks",
3
- "version": "5.6.8",
3
+ "version": "5.6.9",
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": {
@@ -2,3 +2,4 @@
2
2
  {"timestamp":"2026-01-11T00:47:24.400Z","level":"info","component":"AutoRecovery","event":"NotificationCenterService shutdown","data":{"totalEnqueued":0,"totalSent":0,"totalDeduplicated":0,"totalCooldownSkipped":0,"totalFailed":0,"totalRetries":0,"queueSize":0,"deduplication":{"size":0},"cooldowns":{"activeCooldowns":0}},"context":{}}
3
3
  {"timestamp":"2026-01-11T00:48:07.599Z","level":"info","component":"AutoRecovery","event":"NotificationCenterService shutdown","data":{"totalEnqueued":0,"totalSent":0,"totalDeduplicated":0,"totalCooldownSkipped":0,"totalFailed":0,"totalRetries":0,"queueSize":0,"deduplication":{"size":0},"cooldowns":{"activeCooldowns":0}},"context":{}}
4
4
  {"timestamp":"2026-01-11T14:18:31.035Z","level":"info","component":"AutoRecovery","event":"NotificationCenterService shutdown","data":{"totalEnqueued":0,"totalSent":0,"totalDeduplicated":0,"totalCooldownSkipped":0,"totalFailed":0,"totalRetries":0,"queueSize":0,"deduplication":{"size":0},"cooldowns":{"activeCooldowns":0}},"context":{}}
5
+ {"timestamp":"2026-01-11T18:11:22.230Z","level":"info","component":"AutoRecovery","event":"NotificationCenterService shutdown","data":{"totalEnqueued":0,"totalSent":0,"totalDeduplicated":0,"totalCooldownSkipped":0,"totalFailed":0,"totalRetries":0,"queueSize":0,"deduplication":{"size":0},"cooldowns":{"activeCooldowns":0}},"context":{}}
@@ -14,3 +14,7 @@
14
14
  {"timestamp":"2026-01-11T14:18:31.376Z","level":"info","component":"InstallWizard","event":"INSTALL_WIZARD_CONFIG_EXISTS","data":{"configPath":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/.hook-system/config.json"},"context":{}}
15
15
  {"timestamp":"2026-01-11T14:18:31.376Z","level":"error","component":"InstallWizard","event":"INSTALL_WIZARD_SYMLINK_FAILED","data":{"error":"EEXIST: file already exists, symlink '/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/scripts/hooks-system/bin/guard-supervisor.js' -> '/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/.git/hooks/guard-supervisor'"},"context":{}}
16
16
  {"timestamp":"2026-01-11T14:18:31.376Z","level":"info","component":"InstallWizard","event":"INSTALL_WIZARD_COMPLETED","data":{},"context":{}}
17
+ {"timestamp":"2026-01-11T18:11:22.132Z","level":"info","component":"InstallWizard","event":"INSTALL_WIZARD_START","data":{"repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"},"context":{}}
18
+ {"timestamp":"2026-01-11T18:11:22.141Z","level":"info","component":"InstallWizard","event":"INSTALL_WIZARD_CONFIG_EXISTS","data":{"configPath":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/.hook-system/config.json"},"context":{}}
19
+ {"timestamp":"2026-01-11T18:11:22.141Z","level":"error","component":"InstallWizard","event":"INSTALL_WIZARD_SYMLINK_FAILED","data":{"error":"EEXIST: file already exists, symlink '/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/scripts/hooks-system/bin/guard-supervisor.js' -> '/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/.git/hooks/guard-supervisor'"},"context":{}}
20
+ {"timestamp":"2026-01-11T18:11:22.141Z","level":"info","component":"InstallWizard","event":"INSTALL_WIZARD_COMPLETED","data":{},"context":{}}
@@ -326,3 +326,27 @@
326
326
  {"timestamp":1768141111035,"hook":"audit_logger","operation":"ensure_dir","status":"started"}
327
327
  {"timestamp":1768141111035,"hook":"audit_logger","operation":"ensure_dir","status":"success"}
328
328
  {"timestamp":1768141111035,"hook":"audit_logger","operation":"constructor","status":"success","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
329
+ {"timestamp":1768155082228,"hook":"audit_logger","operation":"constructor","status":"started","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
330
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"ensure_dir","status":"started"}
331
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"ensure_dir","status":"success"}
332
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"constructor","status":"success","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
333
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"constructor","status":"started","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
334
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"ensure_dir","status":"started"}
335
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"ensure_dir","status":"success"}
336
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"constructor","status":"success","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
337
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"constructor","status":"started","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
338
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"ensure_dir","status":"started"}
339
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"ensure_dir","status":"success"}
340
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"constructor","status":"success","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
341
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"constructor","status":"started","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
342
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"ensure_dir","status":"started"}
343
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"ensure_dir","status":"success"}
344
+ {"timestamp":1768155082229,"hook":"audit_logger","operation":"constructor","status":"success","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
345
+ {"timestamp":1768155082230,"hook":"audit_logger","operation":"constructor","status":"started","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
346
+ {"timestamp":1768155082230,"hook":"audit_logger","operation":"ensure_dir","status":"started"}
347
+ {"timestamp":1768155082230,"hook":"audit_logger","operation":"ensure_dir","status":"success"}
348
+ {"timestamp":1768155082230,"hook":"audit_logger","operation":"constructor","status":"success","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
349
+ {"timestamp":1768155082230,"hook":"audit_logger","operation":"constructor","status":"started","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
350
+ {"timestamp":1768155082230,"hook":"audit_logger","operation":"ensure_dir","status":"started"}
351
+ {"timestamp":1768155082230,"hook":"audit_logger","operation":"ensure_dir","status":"success"}
352
+ {"timestamp":1768155082230,"hook":"audit_logger","operation":"constructor","status":"success","repoRoot":"/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system"}
@@ -11,8 +11,8 @@ const fs = require('fs');
11
11
  const path = require('path');
12
12
  const env = require('../config/env');
13
13
 
14
- const command = process.argv[2];
15
- const args = process.argv.slice(3);
14
+ let command = process.argv[2];
15
+ let args = process.argv.slice(3);
16
16
 
17
17
  const HOOKS_ROOT = path.join(__dirname, '..');
18
18
 
@@ -623,12 +623,15 @@ Documentation:
623
623
  },
624
624
 
625
625
  version: () => {
626
- const pkg = require('../package.json');
626
+ const pkg = require(path.join(__dirname, '../../../package.json'));
627
627
  console.log(`v${pkg.version}`);
628
628
  }
629
629
  };
630
630
 
631
- if (require.main === module) {
631
+ function runCli(argv = process.argv) {
632
+ command = argv[2];
633
+ args = argv.slice(3);
634
+
632
635
  if (!command || !commands[command]) {
633
636
  commands.help();
634
637
  process.exit(command ? 1 : 0);
@@ -636,4 +639,8 @@ if (require.main === module) {
636
639
  commands[command]();
637
640
  }
638
641
 
639
- module.exports = { commands, proposeHumanIntent };
642
+ if (require.main === module) {
643
+ runCli(process.argv);
644
+ }
645
+
646
+ module.exports = { commands, proposeHumanIntent, runCli };
@@ -10,3 +10,6 @@
10
10
  {"timestamp":"2026-01-11T14:18:34.198Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"ok","percentUsed":10,"tokensUsed":100000,"maxTokens":1000000,"source":"realtime","stale":false},"context":{"message":"Result level=ok percent=10% used=100000/1000000 source=realtime"}}
11
11
  {"timestamp":"2026-01-11T14:18:34.200Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"warning","percentUsed":91,"tokensUsed":910000,"maxTokens":1000000,"source":"fallback","stale":false},"context":{"message":"Result level=warning percent=91% used=910000/1000000 source=fallback"}}
12
12
  {"timestamp":"2026-01-11T14:18:34.201Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"critical","percentUsed":98,"tokensUsed":980000,"maxTokens":1000000,"source":"realtime","stale":true},"context":{"message":"Result level=critical percent=98% used=980000/1000000 source=realtime (stale)"}}
13
+ {"timestamp":"2026-01-11T18:11:25.198Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"ok","percentUsed":10,"tokensUsed":100000,"maxTokens":1000000,"source":"realtime","stale":false},"context":{"message":"Result level=ok percent=10% used=100000/1000000 source=realtime"}}
14
+ {"timestamp":"2026-01-11T18:11:25.199Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"warning","percentUsed":91,"tokensUsed":910000,"maxTokens":1000000,"source":"fallback","stale":false},"context":{"message":"Result level=warning percent=91% used=910000/1000000 source=fallback"}}
15
+ {"timestamp":"2026-01-11T18:11:25.199Z","level":"info","component":"TokenMonitor","event":"TOKEN_MONITOR_RESULT","data":{"level":"critical","percentUsed":98,"tokensUsed":980000,"maxTokens":1000000,"source":"realtime","stale":true},"context":{"message":"Result level=critical percent=98% used=980000/1000000 source=realtime (stale)"}}