agentaudit 3.9.47 → 3.9.48

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.
Files changed (2) hide show
  1. package/cli.mjs +4 -5
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -2630,8 +2630,7 @@ async function main() {
2630
2630
  }
2631
2631
 
2632
2632
  if (hadErrors && results.length === 0) { process.exitCode = 2; return; }
2633
- const totalFindings = results.reduce((sum, r) => sum + r.findings.length, 0);
2634
- process.exitCode = totalFindings > 0 ? 1 : 0;
2633
+ process.exitCode = 0;
2635
2634
  return;
2636
2635
  }
2637
2636
 
@@ -2644,12 +2643,12 @@ async function main() {
2644
2643
  return;
2645
2644
  }
2646
2645
 
2647
- let hasFindings = false;
2646
+ let hasErrors = false;
2648
2647
  for (const url of urls) {
2649
2648
  const report = await auditRepo(url);
2650
- if (report?.findings?.length > 0) hasFindings = true;
2649
+ if (!report) hasErrors = true;
2651
2650
  }
2652
- process.exitCode = hasFindings ? 1 : 0;
2651
+ process.exitCode = hasErrors ? 2 : 0;
2653
2652
  return;
2654
2653
  }
2655
2654
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentaudit",
3
- "version": "3.9.47",
3
+ "version": "3.9.48",
4
4
  "description": "Security scanner for AI packages — MCP server + CLI",
5
5
  "type": "module",
6
6
  "bin": {