pai
    Preparing search index...

    Type Alias SetupContext

    What planSetup hands each agent's functions in SETUP_AGENTS.

    Compatibility export. Use planSetup, applySetup, and restoreSetup for agent setup.

    type SetupContext = {
        env: Env;
        home: string;
        model?: string;
        onPath?: (bin: string) => boolean;
        shellRc: string;
    }
    Index
    env: Env

    The environment pai runs in.

    home: string

    The home folder agents are found in.

    model?: string

    The model --model asked for, if any.

    onPath?: (bin: string) => boolean

    Whether a program is on PATH. Defaults to checking for real.

    shellRc: string

    The shell startup file the key block goes in (shellRcFile).