@clear-capabilities/agentic-security-scanner 0.136.9 → 0.137.1

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.
@@ -433,6 +433,9 @@ async function cmdScan(args) {
433
433
  if (process.stderr.isTTY) process.stderr.write(`\r[${p.phase}] ${p.current}/${p.total} ${p.file} `);
434
434
  },
435
435
  });
436
+ // The BOM/attestation emitters stamp the producing engine's version into
437
+ // their metadata; carry the real package version so it can never drift.
438
+ if (meta && meta.engineVersion == null) meta.engineVersion = PKG_VERSION;
436
439
  if (process.stderr.isTTY) process.stderr.write('\r' + ' '.repeat(80) + '\r');
437
440
 
438
441
  const only = args.flags.only;
package/dist/435.index.js CHANGED
@@ -814,8 +814,16 @@ const scan_diff = {
814
814
  fileContents[rel] = content;
815
815
  }
816
816
 
817
+ // PRD R1 (docs/DETECTION_GAP_REMEDIATION_PRD.md): deep mode is default-on
818
+ // for the interactive CLI scan but was never requested here, so an
819
+ // agent's pre-write self-correction scan was regex/AST-only — blind to
820
+ // any bug whose source and sink are connected only through a call
821
+ // (`fileContents` scopes the deep engine's IR to exactly the files
822
+ // passed in, same bound this tool already enforces via MAX_FILES_PER_SCAN
823
+ // / MAX_TOTAL_SCAN_BYTES, so this does not turn scan_diff into a
824
+ // full-project deep scan).
817
825
  const runScan = await getRunScan();
818
- const result = await runScan(sessionRoot, { network: false, fileContents });
826
+ const result = await runScan(sessionRoot, { network: false, fileContents, deep: true, deepInCi: true });
819
827
  const wantSet = new Set(Object.keys(fileContents));
820
828
  const sevRank = { info: 0, low: 1, medium: 2, high: 3, critical: 4 };
821
829
  const min = sevRank[severity] ?? 0;