From 75c274191264f8b1539b69df8fbaf1ce7f5dde66 Mon Sep 17 00:00:00 2001 From: 64579525 <17373302683@163.com> Date: Tue, 13 Oct 2026 12:21:11 +0800 Subject: [PATCH] refactor(artifacts): use JSON-safe inventory producer output directly --- src/artifacts/ArtifactProvider.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/artifacts/ArtifactProvider.ts b/src/artifacts/ArtifactProvider.ts index 905aa06ff..c95cec6d5 100644 --- a/src/artifacts/ArtifactProvider.ts +++ b/src/artifacts/ArtifactProvider.ts @@ -346,11 +346,10 @@ class ArtifactClient implements AnalysisClient { this.target.sourcePath ?? this.target.path, inventory.manifest, ); - const { ines, ...inventoryGraph } = inventory; const inventoryEvidence = createEvidence(subject, ARTIFACT_GRAPH_PROVIDER, { operation: "inventory_artifact", parameters: inventoryParameters, - result: { ...inventoryGraph, ...(ines === undefined ? {} : { ines }) }, + result: inventory, rawResult: null, limitations: inventory.limitations, // The nested inventory already names every occurrence's logical path.