Team Ai
Apppublic

Yash030/claude-code-proxy

sourceHugging Faceupdated 5mo agoView on Hugging Face
2likes
ui_updates.cpython-314.pyc27 linesDownload Raw Back to __pycache__
1+
2�Ej��r�Rt^RIHt^RIt^RIHt^RIHt^RIH	t	^RI3Ht^RIH
t
Ht!RR	4tR#)4z=Throttled platform UI updates driven by transcript rendering.)�annotationsN)�Callable)�logger)�MessagingPlatform)�format_exception_for_log)�	RenderCtx�TranscriptBufferc�\�]tRt^tRtRR/RRllt]RRl4tR
R	R/R5RllltRt	R#)�ThrottledTranscriptEditorz<Rate-limited status message edits from a growing transcript.�log_messaging_error_detailsFc�D�V^8�dQhRRRRRRRRR	R6RRR
RRRRRRRRR/#)��platformr�7parse_mode�8str | None�get_limit_charszCallable[[], int]�9transcriptr�10render_ctxr�node_id�str�chat_id�
status_msg_id�debug_platform_edits�boolr�return�None�)�formats"�?C:\Users\yashw\.claude\claude-code-free\messaging\ui_updates.py�__annotate__�&ThrottledTranscriptEditor.__annotate__sz��-�-�$�-��	-�11+�-�%�
-��-��-��-��-�#�-�&*�-�12�-�c13	��WnW nW0nW@nWPnW`nWpnW�nW�nW�n	RVn14RVnRVnR#)gN)
�	_platform�_parse_mode�_get_limit_chars�_transcript�_render_ctx�_node_id�_chat_id�_status_msg_id�_debug_platform_edits�_log_messaging_error_details�_last_ui_update�_last_displayed_text�_last_status)�selfrrrrrrrrrrs&$$$$$$$$$$r�__init__�"ThrottledTranscriptEditor.__init__sU��"��%�� /��%��%���
��
�+��%9�"�,G�)�"���04��!�(,��r!c��V^8�dQhRR/#)r
rrr)rs"rrr /s��!�!�Z�!r!c	��VP#�N)r/)r0s&r�last_status�%ThrottledTranscriptEditor.last_status.s��� � � r!N�forcec�$�V^8�dQhRRRRRR/#)r
�statusrr8rrrr)rs"rrr 2s"��3�3�:�3��3�QU�3r!c�
�"�\P!4pV'gW0P,15R8dR#W0nVeWnVPP	VP16VP
4VR7pT'd�Y@P8wd�\P!RTPTPTP \#T4T\%T44TP&'d\P!RT4Y@n
TP(P+TPTP TTP,R7GRjx�L17R#R#R# \dBp\P!RTP\YPPR74Rp?R#Rp?ii;iLY \dBp\P!R	TP\YPPR74Rp?R#Rp?ii;i5i)18zGRender transcript + optional status line and edit the platform message.g�?N)�limit_charsr:z(Transcript render failed for node {}: {})�log_full_messagezLPLATFORM_EDIT: node_id={} chat_id={} msg_id={} force={} status={!r} chars={}zPLATFORM_EDIT_TEXT:19{})rz)Failed to update platform for node {}: {})�timer-r/r&�renderr'r%�	Exceptionr�warningr(rr,r.�debugr)r*r�lenr+r#�queue_edit_messager$)r0r:r8�now�display�es&&$   r�update� ThrottledTranscriptEditor.update2s�����i�i�k����3�3�3�c�9��"���� &��	��&�&�-�-�� � � �1�1�3��.��G��w�";�";�;��L�L�^��
�
��
�
��#�#��U����G��
��)�)�)����6��@�(/�%�
��n�n�7�7��M�M��'�'��#�/�/�	8����<�7���	��N�N�:��
�
�(��(I�(I��
�
��	��.���
����?��M�M�,��,M�,M�����
�st�AG?�206E�G?�BG?�AF0�F.�F0�G?�F+�*6F&� G?�&F+�+G?�.F0�0G<�;6G7�1G?�7G<�<G?)
r)r+r%r.r/r-r,r(r$r#r'r*r&r5)21�__name__�22__module__�__qualname__�__firstlineno__�__doc__r1�propertyr6rH�__static_attributes__rr!rr23r24s9��F�-�-2�-�8�!��!�3�u�3�3r!r25)rN�26__future__rr>�collections.abcr�logurur�platforms.baser�safe_diagnosticsrrrrr27rr!r�<module>rVs)��C�"��$��-�6�3�V�Vr!