+
    „WÝj/  ã                   ó²   € R t ^ RIt^ RIHt ^ RIHtHt ^ RIHt R R lt	R R lt
R	 R
 ltR R ltR R ltRR R lltR R ltRR R lltRR R lltR# )zTShared CLI output helpers (``print_*`` + ``prompt()``) for the setup/config wizards.N)Út)ÚColorsÚcolor)Úmasked_secret_promptc                ó(   € V ^8„  d   QhR\         RR/# ©é   ÚtextÚreturnN©Ústr)Úformats   "ÚIC:\Users\johnn\AppData\Local\hermes\hermes-agent\hermes_cli\cli_output.pyÚ__annotate__r   
   s   € ÷ *ñ *”Sð *˜Tñ *ó    c                 óR   € \        \        R V  2\        P                  4      4       R# )ú  N)Úprintr   r   ÚDIM©r	   s   &r   Ú
print_infor   
   s   € Ü	Œ%�"�T�F�œVŸZ™ZÓ
(Ö)r   c                ó(   € V ^8„  d   QhR\         RR/# r   r   )r   s   "r   r   r      s   € ÷ .ñ .œð . ñ .r   c                 óR   € \        \        R V  2\        P                  4      4       R# )u   âœ“ N)r   r   r   ÚGREENr   s   &r   Úprint_successr      s   € Ü	Œ%�$�t�f�œvŸ|™|Ó
,Ö-r   c                ó(   € V ^8„  d   QhR\         RR/# r   r   )r   s   "r   r   r      s   € ÷ /ñ /œð / ñ /r   c                 óR   € \        \        R V  2\        P                  4      4       R# )u   âš  N©r   r   r   ÚYELLOWr   s   &r   Úprint_warningr      ó   € Ü	Œ%�$�t�f�œvŸ}™}Ó
-Ö.r   c                ó(   € V ^8„  d   QhR\         RR/# r   r   )r   s   "r   r   r      s   € ÷ ,ñ ,”cð ,˜dñ ,r   c                 óR   € \        \        R V  2\        P                  4      4       R# )u   âœ— N)r   r   r   ÚREDr   s   &r   Úprint_errorr$      s   € Ü	Œ%�$�t�f�œvŸz™zÓ
*Ö+r   c                ó(   € V ^8„  d   QhR\         RR/# r   r   )r   s   "r   r   r      s   € ÷ /ñ /”sð /˜tñ /r   c                 óR   € \        \        R V  2\        P                  4      4       R# )z
  Nr   r   s   &r   Úprint_headerr'      r    r   c                óB   € V ^8„  d   QhR\         R,          R\        RR/# )r   ÚmoreNÚhintr
   )Úintr   )r   s   "r   r   r      s%   € ÷ 	7ñ 	7œ# �*ð 	7¬Cð 	7¸ñ 	7r   c                óÀ   € V e   \        R\        V 4      R7      M
\        R4      pV'       d   RV R2MRp\        \        RV V 2\        P
                  4      4       R# )	a9  Footer for a capped listing so a cut list never reads as the whole list.

``more`` is the exact number of hidden rows, or ``None`` when the caller only probed
one row past its cap (``LIMIT n+1``) and knows just that at least one more exists.
``hint`` names how to see the rest (``"use --limit 40 to see more"``).
Nzcli.shared.n_more)Úcountzcli.shared.more_not_shownú (Ú)Ú u     â€¦ )r   r   r   r   r   r   )r)   r*   r-   Úsuffixs   &&  r   Úprint_truncatedr2      sQ   € ð 8<Ò7GŒAÐ!¬¨T«Õ3ÌQÐOjÓMk€Eß!ˆr�$��q‰\ r€FÜ	Œ%�&˜˜ ˜xÐ(¬&¯*©*Ó
5Ö6r   c                ó0   € V ^8„  d   QhR\         R\         /# )r   Úprompt_textr
   r   )r   s   "r   r   r   *   s   € ÷ "ñ "œCð "¤Cñ "r   c                ór  € \         P                  P                  4       '       d%   \         P                  P                  4       '       g   \	        V 4      #  ^ RIHp ^ RIHp  T! T! T 4      4      #   \         d    \	        T 4      u # i ; i  \        \        3 d    h \         d    \	        T 4      u # i ; i)a   Read non-secret text with normal cursor-editing keys on a real TTY.

Setup/model-selection commands run outside the chat's prompt_toolkit application, so a
short-lived prompt is safe here. Redirected stdin/stdout keep the built-in ``input`` used by
scripts, tests and numbered fallbacks.
)Úprompt)ÚANSI)ÚsysÚstdinÚisattyÚstdoutÚinputÚprompt_toolkitr6   Úprompt_toolkit.formatted_textr7   ÚImportErrorÚKeyboardInterruptÚEOFErrorÚ	Exception)r4   Úprompt_toolkit_promptr7   s   &  r   Ú
line_inputrD   *   s�   € ô �I‰I×Ñ×Ò¤3§:¡:×#4Ñ#4×#6Ò#6Ü�[Ó!Ð!ð"ÝBÝ6ð"Ù$¡T¨+Ó%6Ó7Ð7øô ô "Ü�[Ó!Ò!ð"ûô œxÐ(ô ØÜô "ô �[Ó!Ò!ð	"ús*   ÁA0 Á"B Á0B	ÂB	ÂB6Â'B6Â5B6c                óV   € V ^8„  d   QhR\         R\         R,          R\        R\         /# )r   ÚquestionÚdefaultNÚpasswordr
   ©r   Úbool)r   s   "r   r   r   C   s-   € ÷ 	ñ 	”Sð 	¤3¨¥:ð 	Äð 	ÔQTñ 	r   c                ó,  € V'       d   RV R2MRp\        RV  V R2\        P                  4      p V'       d   \        V4      M
\	        V4      P                  4       pV'       d   V# T;'       g    R#   \        \        3 d    \        4         R# i ; i)zMPrompt for input (stripped), or ``default`` on plain Enter; "" on Ctrl-C/EOF.z [Ú]r0   r   z: )	r   r   r   r   rD   Ústripr@   rA   r   )rF   rG   rH   r1   ÚdisplayÚvalues   &&&   r   r6   r6   C   s�   € ç 'ˆr�'�˜!‰_¨R€FÜ�b˜˜
 6 (¨"Ð-¬v¯}©}Ó=€Gðß2:Ô% gÔ.Ä
È7Ó@S×ZÑZÓ\ˆßˆuÐ2 G§M M¨rÐ2øÜœxÐ(ô ÜŒÚðús#   ²3A4 Á&A4 Á(A4 Á1A4 Á4BÂBc                ó<   € V ^8„  d   QhR\         R\        R\        /# )r   rF   rG   r
   rI   )r   s   "r   r   r   O   s&   € ÷ Qñ QœCð Q¬$ð Q¼$ñ Qr   c                 ó   € V'       d   \        R 4      M
\        R4      p\        V  RV R24      pV'       g   V# \        R4      P                  4       P                  4       pVP                  4       P	                  V'       d	   RV34      # R4      # )zcli.shared.yes_no_default_yeszcli.shared.yes_no_default_nor.   r/   zcli.shared.yes_initialÚy)r   r6   rM   ÚlowerÚ
startswith)rF   rG   r*   ÚanswerÚyes_initials   &&   r   Úprompt_yes_norW   O   sy   € ß18Œ1Ð,Ô-¼aÐ@^Ó>_€DÜ�x�j  4 &¨Ð*Ó+€FßØˆäÐ,Ó-×3Ñ3Ó5×;Ñ;Ó=€KØ�<‰<‹>×$Ñ$¿; c¨;Ð%7ÓPÐPÈCÓPÐPr   )r0   )NF)T)Ú__doc__r8   Ú
agent.i18nr   Úhermes_cli.colorsr   r   Úhermes_cli.secret_promptr   r   r   r   r$   r'   r2   rD   r6   rW   © r   r   Ú<module>r]      sH   ðÙ Zã 
å ß +Ý 9õ*õ.õ/õ,õ/÷	7õ"÷2	÷Qñ Qr   