pai
    Preparing search index...

    Function applySetup

    • Writes a plan from planSetup. Before it edits a file it copies it to <file>.pai.bak, unless the file is still as pai last wrote it: then the copy from before pai's first change stays. A file that changed after the plan read it is left alone and listed in skipped. Then it runs any MCP commands.

      Parameters

      • env: Env
      • plan: SetupPlan
      • exec: (cmd: string, args: string[]) => void = ...

        Runs an agent's CLI, such as claude mcp add.

      Returns SetupResult