/** * Blob-download marker — the note `azure-blob-manager` leaves for `extract-metadata`. * * Both scripts write into the same `OUTPUT_PATH//…` layout: the blob manager * downloads metadata produced elsewhere, extraction writes metadata read from THIS * machine's PackagesLocalDirectory. Extraction then sweeps every `.json` under a model * it re-extracted that this run did not write (see pruneOrphanedMetadata), which is * how a deleted AOT object stops surviving rebuilds as a phantom. * * For a model that is BOTH downloaded and locally re-extracted, that sweep cannot tell * "the blob had it, this disk does not" apart from "it was deleted from the AOT", and * removes it. Local disk is meant to be authoritative for a model you just extracted, * so the precedence is intended — but on a machine with a partial PackagesLocalDirectory * it reads as data loss, and neither script said a word about the other. * * This marker is what lets the extract run SAY so. It is written at the metadata * directory root, not inside a model folder, so the sweep (which walks * OUTPUT_PATH/ only) can never touch it. */ /** File written into the metadata output directory. Not a model dir — scanners skip files. */ export declare const BLOB_DOWNLOAD_MARKER_FILENAME = ".blob-download.json"; export interface BlobDownloadMarker { /** ISO timestamp of the download that produced this marker. */ downloadedAt: string; /** What was asked for: 'standard' | 'custom' | 'all'. */ modelType: string; /** Models the download actually wrote into, as on-disk directory names. */ models: string[]; /** How many files the download wrote (diagnostics only). */ fileCount: number; } /** Record a completed blob download. Best-effort: a download succeeds even if this fails. */ export declare function writeBlobDownloadMarker(metadataDir: string, marker: BlobDownloadMarker): void; /** * Read the last blob download's marker, or `undefined` when this metadata directory * was never populated from blob storage (the normal local-only case). */ export declare function readBlobDownloadMarker(metadataDir: string): BlobDownloadMarker | undefined; //# sourceMappingURL=blobDownloadMarker.d.ts.map