
    oq'j                    *    d Z ddlmZ ddlmZ d
dZd	S )z``hermes login`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
    )annotations)Callable	cmd_loginr   returnNonec                  |                      ddd          }|                    dg 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S )!z2Attach the ``login`` subcommand to ``subparsers``.loginz'Authenticate with an inference providerz2Run OAuth device authorization flow for Hermes CLI)helpdescriptionz
--provider)nouszopenai-codexz	xai-oauthNz-Provider to authenticate with (default: nous))choicesdefaultr
   z--portal-urlz,Portal base URL (default: production portal))r
   z--inference-urlz:Inference API base URL (default: production inference API)z--client-idz,OAuth client id to use (default: hermes-cli))r   r
   z--scopezOAuth scope to requestz--no-browser
store_truez0Do not attempt to open the browser automatically)actionr
   z	--timeoutg      .@z-HTTP request timeout in seconds (default: 15))typer   r
   z--ca-bundlez/Path to CA bundle PEM file for TLS verificationz
--insecurez'Disable TLS verification (testing only))func)
add_parseradd_argumentfloatset_defaults)
subparsersr   login_parsers      A/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/login.pybuild_login_parserr      s   
 ((6H )  L
 555<	     K     I     t*X     i<TUUU?    
 <	     M     6    
 9-----    N)r   r   r   r   )__doc__
__future__r   typingr   r    r   r   <module>r       sS     # " " " " "      .. .. .. .. .. ..r   