pai
    Preparing search index...

    Function yamlSetTop

    • Sets a top-level key: value in a YAML file, marked # pai setup. A line it replaces stays as a comment, so --provider off can put it back.

      Parameters

      • file: string
      • text: string | null
      • key: string
      • value: string

      Returns string

      CliError setup_unreadable when the file indents with tabs, or the key holds more than one line.

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