pai
    Preparing search index...

    Function progress

    • Progress on stderr: a spinner line that updates in a terminal, one line per step otherwise, so agents reading the output get plain text.

      Parameters

      • io: { isTTY?: boolean; stderr: (s: string) => void }

      Returns { end(final?: string): void; fail(): void; step(next: string): void }

      • end: function
        • Marks the current step done, and prints final if given.

          Parameters

          • Optionalfinal: string

          Returns void

      • fail: function
        • Marks the current step as the one that failed.

          Returns void

      • step: function
        • Shows next as the current step, and marks the one before it done.

          Parameters

          • next: string

          Returns void