Documentation
    Preparing search index...

    Manages SHA-256 deduplication cache with token cost accounting and git repository sync.

    Index

    Constructors

    Accessors

    • get size(): number

      Returns number

    Methods

    • Retrieves cache entry by file hash.

      Parameters

      • hash: string

      Returns DedupEntry | undefined

    • Aggregates token and cost statistics across all ingested items.

      Returns DedupStats

    • Checks if a document hash is already known.

      Parameters

      • hash: string

      Returns boolean

    • Loads the cache from disk if it exists.

      Returns Promise<void>

    • Registers a new or updated entry in the cache.

      Parameters

      Returns void

    • Saves dirty cache to disk.

      Returns Promise<void>

    • Reconstructs or updates the dedup cache by reading existing OKF markdown files in a Git repository.

      Parameters

      • gitLocalPath: string

        Root path of the Git repository.

      Returns Promise<number>

      Number of newly synchronized documents.