§
    oq'j”  ã                  ó*   — 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               ó~  — |                       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dd ¬¦  «         |                     d!t          d"¬#¦  «         |                     d$dd%¬¦  «         |                     d&d'¬¦  «         |                      d(d)¬¦  «        }|                     dd*d+¬,¦  «         |                      d-d.¬¦  «        }|                     dd/¬¦  «         |                     d0d1¬¦  «         |                      d2d3¬¦  «        }|                     dd/¬¦  «         |                      d4d5¬¦  «        }|                     dd/¬¦  «         |                      d6d7¬¦  «        }	|	                     dd/¬¦  «         |                      d8d9¬¦  «        }
|
                     d:d*g d;¢d<¬=¦  «         |
                     dd>¬¦  «         |
                     d?d@¬¦  «         |
                     ddA¬¦  «         |
                     dddB¬¦  «         |
                     d!t          dC¬#¦  «         |                     |¬D¦  «         dES )Fz1Attach 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--manual-pastea  Skip the loopback callback listener and paste the failed callback URL from your browser instead. Use this on browser-only remotes (GCP Cloud Shell, GitHub Codespaces, EC2 Instance Connect, ...) where 127.0.0.1 on the remote isn't reachable from your laptop. See #26923.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              ú@/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/auth.pyÚbuild_auth_parserr3      su  € à×'Ò'ØØ1ð (ñ ô €Kð "×0Ò0°mÐ0ÑDÔD€OØ×)Ò)¨%Ð6OÐ)ÑPÔP€HØ×ÒØØMð ñ ô ð ð ×ÒØØØ/Ð/Ð/Ø%ð	 ñ ô ð ð ×Ò˜)Ð*BÐÑCÔCÐCØ×ÒØÐGð ñ ô ð ð ×Ò˜.Ð/EÐÑFÔFÐFØ×ÒÐ+Ð2KÐÑLÔLÐLØ×Ò˜-Ð.?ÐÑ@Ô@Ð@Ø×Ò˜)Ð*@ÐÑAÔAÐAØ×ÒØØØ9ð ñ ô ð ð
 ×ÒØØð<ð	 ñ 
ô 
ð 
ð ×ÒØ%Ð&Hð ñ ô ð ð ×ÒØØØ7ð ñ ô ð ð
 ×Ò˜-Ð.PÐÑQÔQÐQØ×*Ò*¨6Ð8QÐ*ÑRÔR€IØ×Ò˜:¨SÐ7QÐÑRÔRÐRØ!×,Ò,ØÐJð -ñ ô €Kð ×Ò˜Z¨mÐÑ<Ô<Ð<Ø×ÒØÐCð ñ ô ð ð !×+Ò+ØÐRð ,ñ ô €Jð ×Ò˜J¨]ÐÑ;Ô;Ð;Ø!×,Ò,ØÐ8ð -ñ ô €Kð ×Ò˜Z¨mÐÑ<Ô<Ð<Ø!×,Ò,ØÐGð -ñ ô €Kð ×Ò˜Z¨mÐÑ<Ô<Ð<Ø"×-Ò-ØÐ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   ððð ð #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð ða,ð a,ð a,ð a,ð a,ð a,r4   