§
    øžyj¦  ã                  ó*   — 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/ragecks/.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   