Aegis Bridge API - v0.3.2-alpha
    Preparing search index...

    Function detectApprovalMethod

    • Detect whether CC is showing numbered permission options (e.g. "1. Yes, 2. No") vs a simple y/N prompt. Returns the approval method to use.

      CC's permission UI uses indented numbered lines with "Esc to cancel" nearby. We look for the pattern " .

      Parameters

      • paneText: string

      Returns "numbered" | "yes"