codeprobe-scanner 1.0.16 → 1.0.17

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": "codeprobe-scanner",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Automated vulnerability scanner with exploit verification and video evidence",
5
5
  "type": "module",
6
6
  "bin": {
@@ -78,7 +78,8 @@ function displayReport(report: Report, json: boolean, durationMs: number): void
78
78
  `Theoretical Risk: ${report.summary.theoretical_count}`
79
79
  )
80
80
  );
81
- console.log(`Patches Available: ${report.scan.patches_available}`);
81
+ const patchCount = report.scan.patches_available ?? 0;
82
+ console.log(chalk.green(`Patches Available: ${patchCount}/${report.summary.total_cves}`));
82
83
  console.log(`Duration: ${msToHuman(durationMs)}`);
83
84
 
84
85
  if (report.scan.cves.length > 0) {
@@ -90,14 +90,14 @@ export class PatchGenerator {
90
90
  // Try Nosana LLM if Kimi failed
91
91
  if (this.nosanaApiKey) {
92
92
  try {
93
- console.log(`[Nosana] Generating patch for ${cve.id}...`);
94
- const patch = await this.generatePatchWithNosana(cve);
93
+ console.log(`[Kimi] Generating patch for ${cve.id}...`);
94
+ const patch = await this.generatePatchWithKimi(cve);
95
95
  if (patch) {
96
96
  cve.patch_diff = patch;
97
97
  return patch;
98
98
  }
99
99
  } catch (error) {
100
- console.warn(`[Nosana] Failed to generate patch: ${error instanceof Error ? error.message : String(error)}`);
100
+ console.warn(`[Kimi] Failed to generate patch: ${error instanceof Error ? error.message : String(error)}`);
101
101
  }
102
102
  }
103
103
 
@@ -12,6 +12,7 @@ export class ReportBuilder {
12
12
  dependencies: number
13
13
  ): Promise<Report> {
14
14
  const exploitableCves = cves.filter((c) => c.exploitable);
15
+ const patchesAvailable = cves.filter((c) => c.patch_diff).length;
15
16
 
16
17
  const scan: Scan = {
17
18
  id: this.generateScanId(),
@@ -23,6 +24,7 @@ export class ReportBuilder {
23
24
  exploitable_count: exploitableCves.length,
24
25
  theoretical_count: cves.length - exploitableCves.length,
25
26
  total_dependencies: dependencies,
27
+ patches_available: patchesAvailable,
26
28
  };
27
29
 
28
30
  const report: Report = {