diff --git a/src/application/ArtifactInventory.ts b/src/application/ArtifactInventory.ts index fdd867b62..288114153 100644 --- a/src/application/ArtifactInventory.ts +++ b/src/application/ArtifactInventory.ts @@ -22,7 +22,7 @@ export type { ArtifactNativeMountPolicy, } from "./ArtifactInventory/types.js"; -/** Inventory one local artifact without extracting or mounting it. */ +/** Inventory one local artifact and return every graph collection inline. */ export const inventoryArtifact = async ( inputPath: string, options: { @@ -35,19 +35,6 @@ export const inventoryArtifact = async ( return artifactInventoryResultSchema.parse(snapshot); }; -/** Inventory one artifact and return every graph collection in one response. */ -export const inventoryArtifactFully = async ( - inputPath: string, - options: { - readonly signal?: AbortSignal; - readonly nativeMount?: ArtifactNativeMountPolicy; - readonly integrity?: ArtifactIntegrityPolicy; - } = {}, -): Promise => { - const snapshot = await scanArtifactInventory(inputPath, options); - return artifactInventoryResultSchema.parse(snapshot); -}; - /** Scan an artifact once and retain the complete immutable graph for projection. */ export const scanArtifactInventory = async ( inputPath: string, diff --git a/src/artifacts/ArtifactProvider.ts b/src/artifacts/ArtifactProvider.ts index 5a39e0d3c..ef7f03fdf 100644 --- a/src/artifacts/ArtifactProvider.ts +++ b/src/artifacts/ArtifactProvider.ts @@ -7,7 +7,7 @@ import { type ProviderIdentity, type ExecutionOptions, } from "../application/AnalysisProvider.js"; -import { inventoryArtifactFully } from "../application/ArtifactInventory.js"; +import { inventoryArtifact } from "../application/ArtifactInventory.js"; import { extractArtifact } from "../application/ArtifactExtraction.js"; import { ARTIFACT_ANALYSIS_OPERATIONS, @@ -217,7 +217,7 @@ class ArtifactClient implements AnalysisClient { }, options?: ExecutionOptions, ) { - return inventoryArtifactFully(this.target.sourcePath ?? this.target.path, { + return inventoryArtifact(this.target.sourcePath ?? this.target.path, { ...(options?.signal === undefined ? {} : { signal: options.signal }), nativeMount: resolveNativeMountPolicy( parsed.native_mount_approved === true,