pumuki-ast-hooks 5.4.2 → 5.4.4

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.4.2",
3
+ "version": "5.4.4",
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": {
@@ -343,7 +343,7 @@ async function runPlatformAnalysis(project, findings, context) {
343
343
  * Generate analysis output and reports
344
344
  */
345
345
  function generateOutput(findings, context, project, root) {
346
- const stagingOnlyMode = env.get('STAGING_ONLY_MODE', '0') === '1';
346
+ const stagingOnlyMode = context && context.stagingOnlyMode;
347
347
  if (stagingOnlyMode) {
348
348
  try {
349
349
  const { execSync } = require('child_process');
@@ -409,13 +409,13 @@ function generateOutput(findings, context, project, root) {
409
409
  console.error(`AST SUMMARY LEVELS: CRITICAL=${levelTotals.CRITICAL} HIGH=${levelTotals.HIGH} MEDIUM=${levelTotals.MEDIUM} LOW=${levelTotals.LOW}`);
410
410
  console.error(`AST SUMMARY PLATFORM: Backend=${platformTotals.Backend} Frontend=${platformTotals.Frontend} iOS=${platformTotals.iOS} Android=${platformTotals.Android} Other=${platformTotals.Other}`);
411
411
 
412
- saveDetailedReport(findings, levelTotals, platformTotals, project, root);
412
+ saveDetailedReport(findings, levelTotals, platformTotals, project, root, context);
413
413
  }
414
414
 
415
415
  /**
416
416
  * Save detailed JSON report
417
417
  */
418
- function saveDetailedReport(findings, levelTotals, platformTotals, project, root) {
418
+ function saveDetailedReport(findings, levelTotals, platformTotals, project, root, context) {
419
419
  const outDir = env.get('AUDIT_TMP', path.join(root, ".audit_tmp"));
420
420
  try {
421
421
  fs.mkdirSync(outDir, { recursive: true });