Memco

Function provenance

  • Where the generated client in this package came from.

    Reports what the descriptor records; it does not re-verify the checksums. That is CI's job, and it runs against the contract itself, which an installed package does not carry.

    The descriptor is compiled in, parsed once and the result reused.

    Returns Provenance

    The server commit the export was cut from, and the contract files it was generated from.

    MemcoConfigError if the descriptor is not in the shape the export writes.

    import { provenance } from '@memco/memcoai'

    console.log(provenance().serverCommit)
    console.log(provenance().protos[0]?.path)

On this page