pai
    Preparing search index...

    Function restoreSetup

    • Puts back the files pai setup changed, from the copies it kept (<file>.pai.bak), and removes the files it created. Only a file still as pai wrote it: one changed since (Codex adds [projects] tables to its config, for example) is left alone and listed, since the copy would undo that change too. --provider off removes pai's lines from such a file.

      Parameters

      • env: Env
      • opts: { agent?: string; dryRun?: boolean } = {}

        agent limits it to one agent's files (shell for the startup file).

      Returns RestoreResult