Evalkeeper
    Preparing search index...

    Type Alias SettingsSwitch

    One atomic switch: maybe a new version, then live, then the log.

    type SettingsSwitch = {
        by: string | null;
        create?: { promptVersion: string | null; settings: Settings };
        evidence?: unknown;
        expectLive: string | null;
        kind: ChangeKind;
        reason: string | null;
        versionId?: string;
    }
    Index
    by: string | null
    create?: { promptVersion: string | null; settings: Settings }

    Make a new version with these settings (numbered next).

    evidence?: unknown
    expectLive: string | null

    The live version this switch was decided against (null: none). The store refuses the switch if another one got in first.

    reason: string | null
    versionId?: string

    Or make this existing version live.