@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 +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +13 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2006,7 +2006,11 @@ function normalizeFinding(rule, finding) {
|
|
|
2006
2006
|
message: finding.message,
|
|
2007
2007
|
...finding.expected !== void 0 ? { expected: finding.expected } : {},
|
|
2008
2008
|
...finding.actual !== void 0 ? { actual: finding.actual } : {},
|
|
2009
|
-
evidence: [...finding.evidence ?? []]
|
|
2009
|
+
evidence: [...finding.evidence ?? []],
|
|
2010
|
+
...finding.category !== void 0 ? { category: finding.category } : {},
|
|
2011
|
+
...finding.confidence !== void 0 ? { confidence: finding.confidence } : {},
|
|
2012
|
+
...finding.detector !== void 0 ? { detector: finding.detector } : {},
|
|
2013
|
+
...finding.action !== void 0 ? { action: finding.action } : {}
|
|
2010
2014
|
};
|
|
2011
2015
|
}
|
|
2012
2016
|
function summarize(findings, diagnostics) {
|
|
@@ -2050,15 +2054,19 @@ function eventEvidence(event, path16) {
|
|
|
2050
2054
|
function runEvidence(run) {
|
|
2051
2055
|
return run ? [{ runId: run.runId, name: run.name, status: run.status }] : [];
|
|
2052
2056
|
}
|
|
2053
|
-
function failFinding(ruleId, message, evidence, expected, actual) {
|
|
2057
|
+
function failFinding(ruleId, message, evidence, expected, actual, meta) {
|
|
2054
2058
|
return {
|
|
2055
2059
|
ruleId,
|
|
2056
|
-
severity: "error",
|
|
2057
|
-
status: "fail",
|
|
2060
|
+
severity: meta?.severity ?? "error",
|
|
2061
|
+
status: meta?.status ?? "fail",
|
|
2058
2062
|
message,
|
|
2059
2063
|
...expected !== void 0 ? { expected } : {},
|
|
2060
2064
|
...actual !== void 0 ? { actual } : {},
|
|
2061
|
-
evidence: [...evidence]
|
|
2065
|
+
evidence: [...evidence],
|
|
2066
|
+
...{},
|
|
2067
|
+
...{},
|
|
2068
|
+
...{},
|
|
2069
|
+
...{}
|
|
2062
2070
|
};
|
|
2063
2071
|
}
|
|
2064
2072
|
function toolName(event) {
|