mirror of
https://github.com/morluto/rea
synced 2026-10-28 06:46:47 -04:00
fix(artifacts): publish addressable inspection sources through both adapters
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { readArtifactInspectionSources } from "../domain/artifactInspection.js";
|
||||
import { dispatchQueuedInterrupts } from "../process/queuedInterrupts.js";
|
||||
import { absoluteCallerPath } from "../filesystem/callerPath.js";
|
||||
import { requireAuthenticationHeadroom } from "./JsonAuthenticationHeadroom.js";
|
||||
@@ -84,7 +85,16 @@ export const deliverAnalysisEvidence = async (
|
||||
});
|
||||
if (!headroom.ok)
|
||||
return err(headroom.error.retainPartialObservation(evidence));
|
||||
const bundle = createImmutableEvidenceBundle([evidence]);
|
||||
const sourceEvidence =
|
||||
evidence.operation === "inspect_artifact"
|
||||
? readArtifactInspectionSources(evidence.normalized_result)
|
||||
: ok([]);
|
||||
if (!sourceEvidence.ok)
|
||||
return err(sourceEvidence.error.retainPartialObservation(evidence));
|
||||
const bundle = createImmutableEvidenceBundle([
|
||||
...sourceEvidence.value,
|
||||
evidence,
|
||||
]);
|
||||
const delivered =
|
||||
detail === "summary"
|
||||
? inspectAnalysisViewValidated(
|
||||
|
||||
Reference in New Issue
Block a user