Sanity Library Reference Docs
    Preparing search index...

    How the generated runtime under a root compares with the definitions it was generated from.

    interface GeneratedRuntimeAlignment {
        divergences: PlanDivergence[];
        existingPaths: readonly string[];
        needs: RuntimeEmissionPlan;
        plan: EmissionWritePlan;
    }
    Index

    Properties

    divergences: PlanDivergence[]

    Every planned file whose contents are not already at its path, in plan order. Empty means every planned file is on disk with its planned contents, and nothing more: of the files the definitions no longer produce, GeneratedRuntimeAlignment.plan reports an orphaned handler stub and an orphaned effect registry, and a function directory the definitions stopped emitting is reported by neither.

    existingPaths: readonly string[]

    Every handler path already under the root, relative and POSIX-separated.

    The runtime the definitions require, whatever is on disk.

    The tree those definitions would generate into the root as it is now.