Team Ai
Apppublic

Yash030/claude-code-proxy

sourceHugging Faceupdated 5mo agoView on Hugging Face
2likes
command_dispatcher.cpython-314.pyc16 linesDownload Raw Back to __pycache__
1+
2�Ej���f�Rt^RIHt^RIHt^RIHtHtHt^RI	H3t4RRltRRltR	R5lt
R#)z4Command parsing and dispatch for messaging handlers.)�annotations)�Any)�handle_clear_command�handle_stats_command�handle_stop_command)�IncomingMessagec� �V^8�dQhRRRR/#)��textz6str | None�return�str�)�formats"�GC:\Users\yashw\.claude\claude-code-free\messaging\command_dispatcher.py�__annotate__rs��/�/�Z�/�C�/�c��T;'gRP4P4pV'd7V^,MRpV'dVPR^4^,#R#)z4Return the slash command without bot mention suffix.��@)�strip�split)r8�parts�cmds&  r�parse_command_basersI��
�Z�Z�R��� �&�&�(�E��%��(��C�#&�3�9�9�S�!��Q��.�B�.rc� �V^8�dQhRRRR/#)r	�command_baserrr
)rs"rrrs��D�D�3�D�3�Drc�8�VPR4'dR#R#)z4Return the persistence kind for an incoming message.�/�command�content)�9startswith)rs&r�message_kind_for_commandr!s��$�/�/��4�4�9�C�)�Crc�(�V^8�dQhRRRRRRRR/#)	r	�handlerr�incomingrrrr�boolr
)rs"rrrs0����
������10�	rc��"�R\R\R\/pVPV4pVfR#V!W4GRjx�L11R#L5i)z;Dispatch a known command and return whether it was handled.z/clearz/stopz/statsNFT)rrr�get)r#r$r�commandsrs&&&  r�dispatch_commandr)sN���	�&��$��&��H�12�l�l�<�(�G����13�'�14$�$�$��%�s�7A�A�AN)�__doc__�15__future__r�typingrr(rrr�modelsrrr!r)r
rr�<module>r.s'��:�"��U�U�#�/�D�16r