+
    jHàj  ã                   óP   a € R t0 t R t^ RItRt] ^ k R R ltR R lt]! 4       tR# )z=Hermes CLI - Unified command-line interface for Hermes Agent.Nz	2026.9.24c                ó0   € V ^8„  d   QhR\         R\         /# )é   ÚnameÚreturn)Ústr)Úformats   "Ú8/home/ubuntu/.hermes/hermes-agent/hermes_cli/__init__.pyÚ__annotate__r	   
   s   € ÷ Nñ N”cð Nœcñ Nó    c                ó¢  € V R8w  d   \        R\        : RV : 24      h^ RIHp  ^ RIHp \#        T! T! 4       4      P%                  R4      ;'       g    R4      #   \         dé   pTP                  R8w  d-   TP                  ;'       g    RP                  R4      '       g   h ^ R	I	p^ R
I
Hp  TP                  T! \        4      P                  4       P                  ^,          R,          P!                  RR7      4      p\#        TP%                  R4      ;'       g    R4      u R	p?#   \&        \(        \         3 d	      R	p?R# i ; iR	p?ii ; i)a€  Old-updater compat: shipped updaters import ``__version__`` after the checkout swap.

tests/compat/old_updater_surface.json freezes that import. In-tree code resolves
identity through hermes_cli.version_info.get_version_info(); this reads only the
install stamp -- never git -- and keeps the pre-stamp placeholder when a checkout
has no stamp.

Lazy because ``pm`` is not importable when this package loads: a venv
editable-installed from a pre-PM tree maps only the top-level packages it knew
at install time, and the repo root reaches ``sys.path`` only once
``hermes_bootstrap`` runs -- after this ``__init__``, from ``hermes_cli.main``.
Ú__version__zmodule z has no attribute )Úread_install_stamp)Ú	repo_rootÚpmÚ zpm.N)ÚPathzinstall-stamp.jsonz	utf-8-sig)ÚencodingÚbaseVersionz0.0.0)ÚAttributeErrorÚ__name__Úhermes_cli.stewardr   Úpm.pathsr   ÚModuleNotFoundErrorr   Ú
startswithÚjsonÚpathlibr   ÚloadsÚ__file__ÚresolveÚparentsÚ	read_textr   ÚgetÚOSErrorÚ
ValueError)r   r   r   Úexcr   r   Ústamps   &      r   Ú__getattr__r&   
   s  € ð ˆ}ÔÜ˜w¤x¡lÐ2DÀTÁHÐMÓNÐNÝ5ðÝ&ô Ñ!¡)£+Ó.×2Ñ2°=ÓA×LÐLÀWÓMÐMøô ô 
Ø�8‰8�tÔ S§X¡X§^ ^°×$?Ñ$?À×$FÒ$FØãÝ ð	Ø—J‘J¡¤X£× 6Ñ 6Ó 8× @Ñ @ÀÕ CÐFZÕ Z×eÑeÐozÐeÓ{Ó|ˆEÜ�u—y‘y Ó/×:Ð:°7Ó;Õ;øÜœ¤^Ð4ô 	Þð	þð
úsN   ¦A ÁEÁ&#E	Â
E	Â"E	Â.A-D(ÄD(Ä"EÄ(EÄ>E	ÅEÅE	Å	Ec                ó$   € V ^8„  d   QhR\         /# )r   r   )Úbool)r   s   "r   r	   r	   *   s   € ÷ ñ ”dñ r
   c            
     ó²  € Rp R F±  p\        \        VR4      pVf   K   \        VRR4      ;'       g    RP                  4       P                  RR4      R8X  d   KW  \        VRR4      p\	        V4      '       d   V! RR	R
7       M/\        VP                  4       RRR	^RR7      p\        \        W4       Rp K³  	  V #   \        \        \        3 d     KÐ  i ; i)u7  Force UTF-8 stdout/stderr to prevent UnicodeEncodeError crashes; True when a stream was repaired.

The CLI prints box-drawing characters and the â˜¤ glyph in the setup wizard, doctor, and status
banners; under a non-UTF-8 codec that raises before the command can even start (e.g.
`hermes setup` on a fresh Pi).
FNr   r   Ú-Úutf8Úreconfigurezutf-8Úreplace)r   ÚerrorsÚw)r   r.   Ú	bufferingÚclosefdT)ÚstdoutÚstderr)ÚgetattrÚsysÚlowerr-   ÚcallableÚopenÚfilenoÚsetattrr   r"   r#   )ÚrepairedÚstream_nameÚstreamr,   Ú
new_streams        r   Ú_ensure_utf8r?   *   s×   € ð €HÛ+ˆÜœ˜k¨4Ó0ˆØŠ>Ùð	Ü˜ 
¨BÓ/×5Ð5°2×<Ñ<Ó>×FÑFÀsÈBÓOÐSYÔYÙô " &¨-¸Ó>ˆKÜ˜×$Ò$Ù W°YÖ?ô " &§-¡-£/°3ÀÐQZØ,-°uô>�
äœ˜[Ô5ØŠHñ# ,ð( €Oøô ¤¬Ð4ô 	Úð	ús    B<´&B<ÁAB<Â<CÃCc                ó@   € V ^8„  d   Qh/ ^ \         9   d
   \        ;R&   # )r   r   )Ú__conditional_annotations__r   )r   s   "r   r	   r	      s   € × CÑ C÷ Ò ŒSÑ ò Dr
   )rA   Ú__doc__r5   Ú__release_date__r&   r?   Ú_stdio_repairedr	   )rA   s   @r   Ú<module>rE      s+   øðÞ Cã 
àÐ ã õNõ@ñD “.‚r
   