import { realpath } from "node:fs/promises"; import { scanCanonicalArtifactInventory, type ArtifactInventoryOptions, type ArtifactInventorySnapshot, } from "./ArtifactInventory.js"; /** Resolve, authorize, and scan one artifact without a second path resolution. */ export const scanAuthorizedArtifactInventory = async ( inputPath: string, options: ArtifactInventoryOptions = {}, ): Promise => { const path = await realpath(inputPath); return scanCanonicalArtifactInventory(path, options); };