+
    .pÐjµ  ã                  óF   € R t ^ RIHt ^ RIt^ RIHtHtHt  ! R R4      tR# )z]Who is in the bot's Discord voice channel and who is speaking, for status and prompt context.)ÚannotationsN)ÚAnyÚDictÚOptionalc                  óx   € ] tR t^t$ R]R&   R]R&   R]R&   R]R&   R]R&   R]R	&   R
 R ltR R ltR R ltRtR# )ÚDiscordVoiceInfoMixinzdict[int, Any]Ú_voice_clientsÚ_voice_receiversÚ_voice_text_channelszdict[int, dict[str, Any]]Ú_voice_sourcesr   Ú_clientÚdiscard_pending_voice_inputc               ó(   € V ^8„  d   QhRRRRRRRR/# )	é   Úguild_idÚintÚtext_channel_idr   ÚsourcezOptional[dict]ÚreturnÚNone© )Úformats   "Ú;/opt/hermes/plugins/platforms/discord/adapter_voice_info.pyÚ__annotate__Ú"DiscordVoiceInfoMixin.__annotate__   s*   € ÷ 3ñ 3°ð 3Àsð 3ÐTbð 3Ðgkñ 3ó    c                óþ   € Vee   V P                   P                  V4      pVe8   WB8w  d2   V P                  V4       Vf   V P                  P	                  VR4       W P                   V&   Ve   W0P                  V&   R# R# )aÒ  A programmatic join's transcription binding, on every path: cold join, same voice channel and
move. The already-connected paths returned before writing it, so a successful join to another
text channel kept answering in the old one. Moving to another text channel drops speech captured
for the old one (as ``/voice join`` does) and, unless a new source is given, the old channel's
bound source, whose chat would otherwise keep routing turns into the old conversation.N)r
   Úgetr   r   Úpop)Úselfr   r   r   Úpreviouss   &&&& r   Ú_bind_voice_text_channelÚ.DiscordVoiceInfoMixin._bind_voice_text_channel   s{   € ð Ò&Ø×0Ñ0×4Ñ4°XÓ>ˆHØÒ#¨Ô(CØ×0Ñ0°Ô:Ø’>Ø×'Ñ'×+Ñ+¨H°dÔ;Ø2A×%Ñ% hÑ/ØÒØ,2×Ñ Ó)ñ r   c               ó    € V ^8„  d   QhRRRR/# )r   r   r   r   zOptional[dict[str, Any]]r   )r   s   "r   r   r       s   € ÷ 
ñ 
¨sð 
Ð7Oñ 
r   c           
     ó  € V P                   P                  V4      pV'       d   VP                  4       '       g   R# VP                  pV'       g   R# . pV P                  '       d   V P                  P
                  MRpVP                   F]  pV'       d   VP                  VP                  8X  d   K(  VP                  RVP                  RVP                  RVP                  /4       K_  	  \        4       pV P                  P                  V4      pV'       d›   \        P                  ! 4       p	VP                  ;_uu_ 4        VP                   P#                  4        FJ  w  r«W›,
          R8  g   K  VP$                  P                  V
4      pV'       g   K9  VP'                  V4       KL  	  RRR4       V F  pVR,          V9   VR&   K  	  RVP(                  R\+        V4      R	VR
\+        V4      /#   + '       g   i     LN; i)z]Return voice channel info (name, members, count, speaking user IDs) or None if not connected.NÚuser_idÚdisplay_nameÚis_botg       @Úis_speakingÚchannel_nameÚmember_countÚmembersÚspeaking_count)r   r   Úis_connectedÚchannelr   Úuserr+   ÚidÚappendr&   ÚbotÚsetr	   ÚtimeÚ	monotonicÚ_lockÚ_last_packet_timeÚitemsÚ_ssrc_to_userÚaddÚnameÚlen)r   r   Úvcr.   Úmembers_infoÚbot_userÚmÚspeaking_user_idsÚreceiverÚnowÚssrcÚlast_tÚuidÚinfos   &&            r   Úget_voice_channel_infoÚ,DiscordVoiceInfoMixin.get_voice_channel_info    s‡  € à× Ñ ×$Ñ$ XÓ.ˆß˜Ÿ™×*Ò*ÙØ—*‘*ˆßÙØˆØ(,¯¯¨�4—<‘<×$Ò$¸$ˆØ—”ˆAß˜AŸD™D H§K¡KÔ/ÙØ×Ñ ¨A¯D©D°.À!Ç.Á.ÐRZÐ\]×\aÑ\aÐ bÖcñ !ô "%£ÐØ×(Ñ(×,Ñ,¨XÓ6ˆßÜ—.’.Ó"ˆCØ——“Ø$,×$>Ñ$>×$DÑ$DÖ$F‘L�DØ•| cÖ)Ø&×4Ñ4×8Ñ8¸Ó>˜ß™3Ø-×1Ñ1°#Ö6ñ	 %G÷  ó !ˆDØ"& y¥/Ð5FÑ"FˆD�Óñ !ð ˜GŸL™L¨.¼#¸lÓ:KØ�|Ð%5´sÐ;LÓ7Mð
ð 	
÷  —ús   Å*G0Å0 G0ÆG0Ç0H 	c               ó    € V ^8„  d   QhRRRR/# )r   r   r   r   Ústrr   )r   s   "r   r   r   ?   s   € ÷ 	 ñ 	 °#ð 	 ¸#ñ 	 r   c                ó
  € V P                  V4      pV'       g   R# RVR,           RVR,           R2.pVR,           F3  pVR,          '       d   R	MRpVP                  R
VR,           V 24       K5  	  RP                  V4      # )zJReturn a human-readable voice channel context string for prompt injection.Ú z[Voice channel: #r)   u    â€” r*   z participant(s)]r+   r(   z (speaking)z  - r&   Ú
)rH   r1   Újoin)r   r   rG   Úpartsr@   Ústatuss   &&    r   Úget_voice_channel_contextÚ/DiscordVoiceInfoMixin.get_voice_channel_context?   s‹   € à×*Ñ*¨8Ó4ˆßÙØ$ T¨.Õ%9Ð$:¸%ÀÀ^Õ@TÐ?UÐUeÐfÐgˆØ�i—�ˆAØ&'¨×&6Ô&6‘]¸BˆFØ�L‰L˜4  .Õ 1Ð2°6°(Ð;Ö<ñ !ð �y‰y˜ÓÐr   r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__r!   rH   rR   Ú__static_attributes__r   r   r   r   r      s9   ‡ Ø"Ó"Ø$Ó$Ø(Ó(Ø-Ó-ØƒLØ!$Ó$õ3õ 
÷>	 ñ 	 r   r   )	Ú__doc__Ú
__future__r   r4   Útypingr   r   r   r   r   r   r   Ú<module>r]      s    ðÙ cÝ "ã ß &Ñ &÷@ ó @ r   