UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

13 lines • 722 B
import type { ChromaAccessor } from '../../accessor/chroma.ts'; import type { IndexCacheStore } from '../../cache/index/store.ts'; /** * Fill in the exact size of every unsized file in one directory. * * The path tree's own `size` is producer-supplied and describes the source * document, not the chunk join mirage serves, so it cannot be trusted as a * byte length. This pays one scan per directory actually stat'd instead, and * only for files still missing a size. A page with no chunks reads as nothing, * so it is sized 0 and never scanned again. */ export declare function ensureDirSizes(accessor: ChromaAccessor, directory: string, index: IndexCacheStore): Promise<void>; //# sourceMappingURL=sizes.d.ts.map