diff --git a/src/features/inbox/agent/match.ts b/src/features/inbox/agent/match.ts index 125d909..201f620 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)";