Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...

    A ChunkSource that serves every chunk key of a packed node from one fetch of its pack (chunk_packs/<n>.pack), and every other key, or any key whose pack is missing, stale or fails its digest, from the wrapped source.

    Implements

    Index
    packs: Map<string, Pack> = ...

    Packed node prefix (with its trailing /) → pack.

    holding: Map<Pack, Held> = ...

    Packs whose fetch holds unserved members, least recently used first.

    held: number = 0
    maxHeldBytes: number

    Cap on heldBytes; the least recently used pack is let go past it.

    The store's own byte source; every key no pack answers goes to it.

    • Adopt the chunk_packs sidecar's attrs; returns the number of packs used. An index built for another content_hash is stale and adopts nothing.

      Parameters

      • index: unknown
      • contentHash: unknown

      Returns number

    • Re-read the source's identity token, bypassing every cache tier, so the store can tell "same dataset" from "something else now serves this address". null means the source could not answer — which is not evidence of a change (see the TTL handling in validateCache).

      Parameters

      • options: { signal?: AbortSignal; timeoutMsOverride?: number }

      Returns Promise<RemoteValidationToken | null>