§
    øžyjá  ã                  ó2   — d Z ddlmZ ddlZddlmZ d
d	„ZdS )z�``hermes debug`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
é    )ÚannotationsN)ÚCallableÚ	cmd_debugr   ÚreturnÚNonec               ón  — |                       dddt          j        d¬¦  «        }|                     d¬¦  «        }|                      dd	¬
¦  «        }|                     dt
          dd¬¦  «         |                     dt
          dd¬¦  «         |                     ddd¬¦  «         |                     dddd¬¦  «         |                     ddd¬¦  «         |                     ddd¬¦  «         |                      dd¬
¦  «        }|                     dd g d!¬"¦  «         |                     |¬#¦  «         d$S )%z2Attach the ``debug`` subcommand to ``subparsers``.Údebugu7   Debug tools â€” upload logs and system info for supportz›Debug utilities for Hermes Agent. Use 'hermes debug share' to upload a debug report (system info + recent logs) to a paste service and get a shareable URL.a:  Examples:
    hermes debug share              Upload debug report (asks for confirmation)
    hermes debug share --yes        Skip confirmation (for scripts/CI)
    hermes debug share --lines 500  Include more log lines
    hermes debug share --expire 30  Keep paste for 30 days
    hermes debug share --local      Print report locally (no upload)
    hermes debug share --no-redact  Disable upload-time secret redaction
    hermes debug share --nous       Upload to Nous-internal storage (private)
    hermes debug delete <url>       Delete a previously uploaded paste
)ÚhelpÚdescriptionÚformatter_classÚepilogÚdebug_command)ÚdestÚsharez@Upload debug report to a paste service and print a shareable URL)r
   z--lineséÈ   z:Number of log lines to include per log file (default: 200))ÚtypeÚdefaultr
   z--expireé   z!Paste expiry in days (default: 7)z--localÚ
store_truez-Print the report locally instead of uploading)Úactionr
   z-yz--yesz¾Skip the confirmation prompt and upload immediately. Required in non-interactive contexts (scripts/CI); without it, and with no TTY on stdin, the command refuses rather than upload silently.z--no-redactzÓDisable upload-time secret redaction (default: redact). Logs are normally run through agent.redact.redact_sensitive_text with force=True before upload so credentials are not leaked into the public paste service.z--nousu4  Upload the debug bundle to Nous-internal storage (AWS S3) instead of a public paste service. The bundle is private â€” viewable only by Nous staff (and allowlisted Discord mods) via a Google-login-gated viewer â€” and auto-deletes after 14 days. Still force-redacts secrets unless --no-redact is also passed.Údeletez/Delete a paste uploaded by 'hermes debug share'ÚurlsÚ*z?One or more paste URLs to delete (e.g. https://paste.rs/abc123))Únargsr   r
   )ÚfuncN)Ú
add_parserÚargparseÚRawDescriptionHelpFormatterÚadd_subparsersÚadd_argumentÚintÚset_defaults)Ú
subparsersr   Údebug_parserÚ	debug_subÚshare_parserÚdelete_parsers         úB/home/ragecks/.hermes/hermes-agent/hermes_cli/subcommands/debug.pyÚbuild_debug_parserr)      sÚ  € ð
 ×(Ò(ØØFð+õ !Ô<ð
ð )ñ ô €Lð& ×+Ò+°Ð+ÑAÔA€IØ×'Ò'ØØOð (ñ ô €Lð ×ÒØÝØØIð	 ñ ô ð ð ×ÒØÝØØ0ð	 ñ ô ð ð ×ÒØØØ<ð ñ ô ð ð
 ×ÒØØØðPð ñ 	ô 	ð 	ð ×ÒØØð-ð	 ñ 	ô 	ð 	ð ×ÒØØð9ð	 ñ 
ô 
ð 
ð ×(Ò(ØØ>ð )ñ ô €Mð ×ÒØØØØNð	 ñ ô ð ð ×Ò 9ÐÑ-Ô-Ð-Ð-Ð-ó    )r   r   r   r   )Ú__doc__Ú
__future__r   r   Útypingr   r)   © r*   r(   ú<module>r/      sb   ððð ð #Ð "Ð "Ð "Ð "Ð "à €€€Ø Ð Ð Ð Ð Ð ðW.ð W.ð W.ð W.ð W.ð W.r*   