AutoMovie API
    Preparing search index...

    Function resolveAutoMovieArtifact

    • Read one keyed artifact, or compute and store it: the read-or-compute step every stage cache shares.

      A stored entry is reused only after its bytes hash to the digest recorded at write time; a failing entry is removed and recomputed, so a truncated or replaced file never reaches a consumer. With verify, a valid entry is recomputed anyway and the digests compared; a difference replaces the entry and reports mismatched rather than letting the first writer win. The computation must be a pure function of everything its key declares.

      Parameters

      • store: IAutoMovieArtifactStore

        Storage port; read, written and asked to digest.

      • key: string

        A key from composeAutoMovieArtifactKey.

      • compute: () => Promise<Uint8Array<ArrayBufferLike>>

        Produces the artifact when no valid entry exists or when verifying; a rejection propagates and stores nothing.

      • verify: boolean = false

        Recompute and compare even when a valid entry exists.

      Returns Promise<IAutoMovieArtifactResolution>

      The artifact, its content digest and the outcome.