§
    $Æ*jm  ã                  ó2   — d Z ddlmZ ddlZddlmZ dd
„ZdS )z¡``hermes dashboard`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
é    )ÚannotationsN)ÚCallableÚcmd_dashboardr   Úcmd_dashboard_registerÚreturnÚNonec               ó”  — |                       ddd¬¦  «        }|                     dt          dd¬¦  «         |                     d	d
d¬¦  «         |                     ddd¬¦  «         |                     ddd¬¦  «         |                     ddd¬¦  «         |                     ddd¬¦  «         |                     dddt          j        ¬¦  «         |                     ddd¬¦  «         |                     ddd¬¦  «         |                     ddt          j        ¬¦  «         |                     |¬ ¦  «         |                     d!¬"¦  «        }|                      d#d$d%¬¦  «        }|                     d&d'd(¬¦  «         |                     d)d*d'd+¬¦  «         |                     d,d-d'd.¬¦  «         |                     |¬ ¦  «         d'S )/zBAttach the ``dashboard`` subcommand (and its ``register`` action).Ú	dashboardzStart the web UI dashboardzQLaunch the Hermes Agent web dashboard for managing config, API keys, and sessions)ÚhelpÚdescriptionz--portiŸ#  zPort (default 9119))ÚtypeÚdefaultr   z--hostz	127.0.0.1zHost (default 127.0.0.1))r   r   z	--no-openÚ
store_truez Don't open browser automatically)Úactionr   z
--insecurezKAllow binding to non-localhost (DANGEROUS: exposes API keys on the network)z--skip-buildzÊSkip the web UI build step and serve the existing dist directly. Useful for non-interactive contexts (Windows Scheduled Tasks, CI) where npm may not be available. Pre-build with: cd web && npm run buildz
--isolateda9  When launched from a named profile (e.g. `worker dashboard`), run a dedicated dashboard server scoped to that profile instead of routing to the machine dashboard. Default behavior is unified: profile launches attach to (or start) ONE machine-level dashboard and preselect the profile in the UI's profile switcher.z--open-profileÚopen_profileÚ )Údestr   r   z--stopz4Stop all running hermes dashboard processes and exitz--statusz0List running hermes dashboard processes and exitz--tui)ÚfuncÚdashboard_subcommand)r   ÚregisterzVRegister a self-hosted dashboard with Nous Portal (writes the OAuth client ID to .env)z÷Register this install as a self-hosted dashboard with your Nous Portal account. Creates an OAuth client, writes HERMES_DASHBOARD_OAUTH_CLIENT_ID into ~/.hermes/.env, and prints how to engage the login gate. Requires being logged in (hermes setup).z--nameNzHHuman-readable label for the dashboard (default: an auto-generated name)z--redirect-uriÚredirect_uriz‡Optional public HTTPS OAuth redirect URI for the dashboard, e.g. https://hermes.example.com/auth/callback. Omit for localhost-only use.z--portal-urlÚ
portal_urlzìOverride the Nous Portal base URL for registration (default: the portal you logged into). The access token must be valid at this portal. Also settable via HERMES_DASHBOARD_PORTAL_URL. Mainly for testing against a staging/preview portal.)Ú
add_parserÚadd_argumentÚintÚargparseÚSUPPRESSÚset_defaultsÚadd_subparsers)Ú
subparsersr   r   Údashboard_parserÚdashboard_subparsersÚdashboard_register_parsers         úE/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/dashboard.pyÚbuild_dashboard_parserr%      sÌ  € ð "×,Ò,ØØ)Øgð -ñ ô Ðð
 ×!Ò!Ø•s DÐ/Dð "ñ ô ð ð ×!Ò!Ø˜+Ð,Fð "ñ ô ð ð ×!Ò!Ø˜LÐ/Qð "ñ ô ð ð ×!Ò!ØØØZð "ñ ô ð ð
 ×!Ò!ØØðVð	 "ñ ô ð ð ×!Ò!ØØðFð	 "ñ 
ô 
ð 
ð ×!Ò!ØØØÝÔð	 "ñ ô ð ð ×!Ò!ØØØCð "ñ ô ð ð
 ×!Ò!ØØØ?ð "ñ ô ð ð ×!Ò!ØØÝÔð "ñ ô ð ð
 ×!Ò! }Ð!Ñ5Ô5Ð5ð ,×:Ò:Ø#ð ;ñ ô Ðð !5× ?Ò ?ØØeðUð	 !@ñ 	!ô 	!Ðð ×*Ò*ØØØWð +ñ ô ð ð
 ×*Ò*ØØØðUð +ñ ô ð ð ×*Ò*ØØØð8ð +ñ 
ô 
ð 
ð ×*Ò*Ð0FÐ*ÑGÔGÐGÐGÐGó    )r   r   r   r   r   r   )Ú__doc__Ú
__future__r   r   Útypingr   r%   © r&   r$   ú<module>r+      sh   ððð ð #Ð "Ð "Ð "Ð "Ð "à €€€Ø Ð Ð Ð Ð Ð ðBHð BHð BHð BHð BHð BHr&   