pai
    Preparing search index...

    Type Alias SetupFile

    One file setup changes, with its text before and after.

    type SetupFile = {
        action: "create" | "update" | "remove";
        after: string | null;
        agent: SetupAgent | "shell";
        before: string | null;
        file: string;
        mode?: number;
        skill?: boolean;
    }
    Index
    action: "create" | "update" | "remove"

    create, update or remove.

    after: string | null

    Its text after. null removes it.

    agent: SetupAgent | "shell"

    The agent it is for, or shell for the startup file.

    before: string | null

    Its text now. null when it does not exist.

    file: string

    The file.

    mode?: number

    The file's mode, for a file that holds a key.

    skill?: boolean

    True for the skill: pai's own file, so it gets no backup and no diff.