From 9c597ef5b501b171455b55c3ae088a159e3118e4 Mon Sep 17 00:00:00 2001 From: Perry Sy Date: Mon, 6 Jul 2026 17:11:28 -0400 Subject: [PATCH 1/2] add missing cvssScore, cvssVector in extracted and pass to LLM, fix typo in remediation --- src/features/inbox/agent/match.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/features/inbox/agent/match.ts b/src/features/inbox/agent/match.ts index 125d909..1f6ebd8 100644 --- a/src/features/inbox/agent/match.ts +++ b/src/features/inbox/agent/match.ts @@ -138,13 +138,13 @@ function renderCandidates(candidates: Candidates): string { candidates.vulnerabilities .map((entry, i) => { const e = entry.extracted; - const line = `Vulnerability #${i + 1}: cveId=${e.cveId ?? "?"}`; + const line = `Vulnerability #${i + 1} extracted: cveId=${e.cveId ?? "?"} | cvssScore: ${e.cvssScore ?? "?"} | cvssVector: ${e.cvssVector ?? "?"}`; const matches = entry.matches.length > 0 ? entry.matches .map( (m) => - ` - id: ${m.id} | cveId: ${m.cveId ?? "(none)"} | description: ${m.description} ?? "(none)"} | cvssScore: ${m.cvssScore ?? "(none)"} | cvssVector: ${m.cvssVector ?? "(none)"}`, + ` - id: ${m.id} | cveId: ${m.cveId ?? "(none)"} | cvssScore: ${m.cvssScore ?? "(none)"} | cvssVector: ${m.cvssVector ?? "(none)"}`, ) .join("\n") : " - (no candidates found)"; @@ -161,7 +161,7 @@ function renderCandidates(candidates: Candidates): string { candidates.remediations .map((entry, i) => { const e = entry.extracted; - const line = `Remediations #${i + 1}: linkedtoCveId=${e.linkedCveId ?? "?"} | description=${e.description} ?? "?"}`; + const line = `Remediations #${i + 1} extracted: linkedtoCveId=${e.linkedCveId ?? "?"} | description=${e.description} ?? "?"}`; const matches = entry.matches.length > 0 ? entry.matches @@ -184,13 +184,13 @@ function renderCandidates(candidates: Candidates): string { candidates.assets .map((entry, i) => { const e = entry.extracted; - const line = `Asset #${i + 1}: ip=${e.ip ?? "?"} | hostname=${e.hostname ?? "?"} | macAddress=${e.macAddress ?? "?"} | serialNumber=${e.serialNumber ?? "?"}`; + const line = `Asset #${i + 1} extracted: ip=${e.ip ?? "?"} | hostname=${e.hostname ?? "?"} | macAddress=${e.macAddress ?? "?"} | serialNumber=${e.serialNumber ?? "?"}`; const matches = entry.matches.length > 0 ? entry.matches .map( (m) => - ` - id: ${m.id} | ip: ${m.ip ?? "(none)"} | hostname: ${m.hostname ?? "(none)"} | macAddress: ${m.macAddress ?? "(none)"} | serialNumber=${e.serialNumber ?? "(none)"}`, + ` - id: ${m.id} | ip: ${m.ip ?? "(none)"} | hostname: ${m.hostname ?? "(none)"} | macAddress: ${m.macAddress ?? "(none)"} | serialNumber=${m.serialNumber ?? "(none)"}`, ) .join("\n") : " - (no candidates found)"; From 9b19051bdcaec451a393347553da86648d42bd4a Mon Sep 17 00:00:00 2001 From: Perry Sy Date: Tue, 7 Jul 2026 10:37:09 -0400 Subject: [PATCH 2/2] fixed typo in remediation description string literal --- src/features/inbox/agent/match.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/inbox/agent/match.ts b/src/features/inbox/agent/match.ts index 1f6ebd8..201f620 100644 --- a/src/features/inbox/agent/match.ts +++ b/src/features/inbox/agent/match.ts @@ -161,7 +161,7 @@ function renderCandidates(candidates: Candidates): string { candidates.remediations .map((entry, i) => { const e = entry.extracted; - const line = `Remediations #${i + 1} extracted: linkedtoCveId=${e.linkedCveId ?? "?"} | description=${e.description} ?? "?"}`; + const line = `Remediations #${i + 1} extracted: linkedtoCveId=${e.linkedCveId ?? "?"} | description=${e.description ?? "?"}`; const matches = entry.matches.length > 0 ? entry.matches