
    (Gj                    *    d Z ddlmZ ddlmZ d
dZd	S )z``hermes auth`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
    )annotations)Callablecmd_authr   returnNonec               N   |                      dd          }|                    d          }|                     dd          }|                    dd	           |                    d
dg dd           |                    dd           |                    dd           |                    dd           |                    dd           |                    dd           |                    dd           |                    ddd           |                    dt          d !           |                    d"dd#           |                    d$d%           |                     d&d'          }|                    dd(d)*           |                     d+d,          }|                    dd-           |                    d.d/           |                     d0d1          }|                    dd-           |                     d2d3          }|                    dd-           |                     d4d5          }	|	                    dd-           |                     d6d7          }
|
                    d8d(g d9d:;           |
                    dd<           |
                    d=d>           |
                    dd?           |
                    ddd@           |
                    dt          dA!           |                    |B           dCS )Dz1Attach the ``auth`` subcommand to ``subparsers``.authz"Manage pooled provider credentials)helpauth_action)destaddzAdd a pooled credentialproviderz>Provider id (for example: anthropic, openai-codex, openrouter)z--type	auth_type)oauthzapi-keyapi_keyzCredential type to add)r   choicesr
   z--labelzOptional display labelz	--api-keyz+API key value (otherwise prompted securely)z--portal-urlzNous portal base URLz--inference-urlzNous inference base URLz--client-idzOAuth client idz--scopezOAuth scope overridez--no-browser
store_truez*Do not auto-open a browser for OAuth login)actionr
   z	--timeoutz OAuth/network timeout in seconds)typer
   z
--insecurez(Disable TLS verification for OAuth loginz--ca-bundlez Custom CA bundle for OAuth loginlistzList pooled credentials?zOptional provider filter)nargsr
   removez1Remove a pooled credential by index, id, or labelzProvider idtargetz*Credential index, entry id, or exact labelresetz:Clear exhaustion status for all credentials for a providerstatuszShow auth status for a providerlogoutz.Log out a provider and clear stored auth statespotifyz)Authenticate Hermes with Spotify via PKCEspotify_action)loginr   r   r    )r   r   defaultz7Spotify app client_id (or set HERMES_SPOTIFY_CLIENT_ID)z--redirect-uriz8Allow-listed localhost redirect URI for your Spotify appz!Override requested Spotify scopesz0Do not attempt to open the browser automaticallyz*Callback/token exchange timeout in seconds)funcN)
add_parseradd_subparsersadd_argumentfloatset_defaults)
subparsersr   auth_parserauth_subparsersauth_add	auth_listauth_remove
auth_resetauth_statusauth_logoutauth_spotifys              A/home/rurouni/.hermes/hermes-agent/hermes_cli/subcommands/auth.pybuild_auth_parserr3      sK   ''1 (  K "00m0DDO))%6O)PPHM     ///%	     )*BCCCG     ./EFFF+2KLLL-.?@@@)*@AAA9    
 %&H     7    
 -.PQQQ**68Q*RRI:S7QRRR!,,J -  K Zm<<<C     !++R ,  J J];;;!,,8 -  K Zm<<<!,,G -  K Zm<<<"--C .  L ---	     U     G     i.QRRR?    
 %&R     (+++++    N)r   r   r   r   )__doc__
__future__r   typingr   r3    r4   r2   <module>r9      sY     # " " " " "      V, V, V, V, V, V,r4   