@agent-inspect/viewer 6.8.0 → 6.9.0

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.cjs CHANGED
@@ -2013,7 +2013,11 @@ function normalizeFinding(rule, finding) {
2013
2013
  message: finding.message,
2014
2014
  ...finding.expected !== void 0 ? { expected: finding.expected } : {},
2015
2015
  ...finding.actual !== void 0 ? { actual: finding.actual } : {},
2016
- evidence: [...finding.evidence ?? []]
2016
+ evidence: [...finding.evidence ?? []],
2017
+ ...finding.category !== void 0 ? { category: finding.category } : {},
2018
+ ...finding.confidence !== void 0 ? { confidence: finding.confidence } : {},
2019
+ ...finding.detector !== void 0 ? { detector: finding.detector } : {},
2020
+ ...finding.action !== void 0 ? { action: finding.action } : {}
2017
2021
  };
2018
2022
  }
2019
2023
  function summarize(findings, diagnostics) {
@@ -2057,15 +2061,19 @@ function eventEvidence(event, path16) {
2057
2061
  function runEvidence(run) {
2058
2062
  return run ? [{ runId: run.runId, name: run.name, status: run.status }] : [];
2059
2063
  }
2060
- function failFinding(ruleId, message, evidence, expected, actual) {
2064
+ function failFinding(ruleId, message, evidence, expected, actual, meta) {
2061
2065
  return {
2062
2066
  ruleId,
2063
- severity: "error",
2064
- status: "fail",
2067
+ severity: meta?.severity ?? "error",
2068
+ status: meta?.status ?? "fail",
2065
2069
  message,
2066
2070
  ...expected !== void 0 ? { expected } : {},
2067
2071
  ...actual !== void 0 ? { actual } : {},
2068
- evidence: [...evidence]
2072
+ evidence: [...evidence],
2073
+ ...{},
2074
+ ...{},
2075
+ ...{},
2076
+ ...{}
2069
2077
  };
2070
2078
  }
2071
2079
  function toolName(event) {