
    *3j                    *    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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 )u|  Attach the deprecated ``login`` subcommand to ``subparsers``.

    ``hermes login`` was removed in favor of ``hermes auth`` / ``hermes model``
    (the runtime handler in ``hermes_cli/auth.py::login_command`` just prints a
    deprecation message and exits).  The subparser is kept registered so that
    old scripts/aliases invoking ``hermes login [--flags]`` still receive the
    actionable deprecation message rather than an argparse ``invalid choice:
    'login'`` error — but:

    - The subparser is registered WITHOUT a ``help=`` kwarg so the row is
      omitted from ``hermes --help`` (argparse only lists subcommands that
      have a help string).  This hides a command that no longer works (#24756)
      without the ``help=argparse.SUPPRESS`` ``==SUPPRESS==`` leak that
      argparse emits for a top-level subparser on Python 3.12+.
    - ``--provider`` accepts ANY value (no ``choices=``) so that, e.g.,
      ``hermes login --provider anthropic`` reaches the deprecation handler and
      gets pointed at ``hermes model`` instead of crashing in argparse with
      ``invalid choice: 'anthropic'`` before the handler can run.
    loginz{Deprecated. Use `hermes auth` to manage credentials, `hermes model` to select a provider, or `hermes setup` for full setup.)descriptionz
--providerNu:   (deprecated) Provider name; ignored — see `hermes model`)defaulthelpz--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)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      B/home/rurouni/.hermes/hermes-agent/hermes_cli/subcommands/login.pybuild_login_parserr      s   ( ((U )  L I    
 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      sY     # " " " " "      B. B. B. B. B. B.r   