xploitscan 1.0.3 → 1.0.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/dist/index.js CHANGED
@@ -3003,13 +3003,13 @@ function renderSarifReport(result) {
3003
3003
  }
3004
3004
  },
3005
3005
  results: result.findings.map((f) => {
3006
- const entry = {
3006
+ const messageText = f.fix ? `${f.title}: ${f.description}
3007
+ Suggested fix: ${f.fix}` : `${f.title}: ${f.description}`;
3008
+ return {
3007
3009
  ruleId: f.rule,
3008
3010
  ruleIndex: ruleIndex.get(f.rule) ?? 0,
3009
3011
  level: SEVERITY_TO_SARIF[f.severity],
3010
- message: {
3011
- text: `${f.title}: ${f.description}`
3012
- },
3012
+ message: { text: messageText },
3013
3013
  locations: [
3014
3014
  {
3015
3015
  physicalLocation: {
@@ -3022,10 +3022,6 @@ function renderSarifReport(result) {
3022
3022
  }
3023
3023
  ]
3024
3024
  };
3025
- if (f.fix) {
3026
- entry.fixes = [{ description: { text: f.fix } }];
3027
- }
3028
- return entry;
3029
3025
  })
3030
3026
  }
3031
3027
  ]
@@ -3596,7 +3592,7 @@ async function uninstallHookCommand() {
3596
3592
  var program = new Command();
3597
3593
  program.name("xploitscan").description(
3598
3594
  "AI security scanner for vibe-coded apps. Find vulnerabilities before attackers do."
3599
- ).version("1.0.3");
3595
+ ).version("1.0.4");
3600
3596
  program.command("scan").description("Scan a directory for security vulnerabilities").argument("[directory]", "Directory to scan", ".").option("--no-ai", "Skip AI-powered analysis").option("-f, --format <format>", "Output format: terminal, json, sarif", "terminal").option("-v, --verbose", "Show detailed output", false).option("--diff [base]", "Scan only files changed vs base branch (default: main)").option("-w, --watch", "Watch for file changes and re-scan automatically", false).action(async (directory, opts) => {
3601
3597
  await scanCommand(directory, {
3602
3598
  directory,