+
    ^eòjD  ã                  ó¸   € R t ^ RIHt ^ RIt^ RIHt ^ RIHtHtH	t	H
t
HtHt ^ RIHt ^ RIHt  ! R R]4      tR	 R
 ltR R lt ! R R4      tR R lt. ROtR# )a4  Optional readers for configuration-driven, process-local diagnostics.

Readers expose restricted evidence to their caller. They do not enable collection,
install exporters, or confer authority on an external client. Returned dictionaries
are caller-owned; use snapshot_json for canonical wire serialization.
)ÚannotationsN)ÚAny)ÚMAX_QUERY_BYTESÚMAX_QUERY_DEPTHÚMAX_QUERY_FIELD_NAME_BYTESÚMAX_QUERY_NODESÚMAX_QUERY_OBJECT_FIELDSÚNUMERIC_QUERY_FIELDS)ÚDiagnosticsReader)Údiagnostics_readerc                  ó2   a € ] tR t^tRtR V 3R lltRtV ;t# )ÚDiagnosticsErrorz9Reader failure with a stable machine-readable ``reason``.c               ó    € V ^8„  d   QhRRRR/# )é   ÚreasonÚstrÚreturnÚNone© )Úformats   "Ú�/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/nemo_relay/diagnostics.pyÚ__annotate__ÚDiagnosticsError.__annotate__   s   € ÷ ñ ˜sð  tñ ó    c                	ó2   <€ \         SV `  V4       Wn        R # ©N)ÚsuperÚ__init__r   )Úselfr   Ú	__class__s   &&€r   r   ÚDiagnosticsError.__init__   s   ø€ Ü‰Ñ˜Ô ØŽr   )r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú__static_attributes__Ú__classcell__)r   s   @r   r   r      s   ø† ÙC÷ö r   r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úvaluer   Ú	remainingÚintr   r   )r   s   "r   r   r   $   s!   € ÷ 
ñ 
�cð 
 cð 
¨cñ 
r   c                óÊ   € \        V 4      V8”  d   \        R 4      h \        V P                  R4      4      pY!8”  d   \        R 4      hT#   \         d    \        R 4      Rhi ; i)Úinvalid_queryzutf-8N)Úlenr   ÚencodeÚUnicodeEncodeError)r)   r*   Úsizes   && r   Ú
_utf8_sizer2   $   sg   € ä
ˆ5ƒz�IÔÜ˜Ó/Ð/ð:Ü�5—<‘< Ó(Ó)ˆð ÔÜ˜Ó/Ð/Ø€Køô	 ô :Ü˜Ó/°TÐ9ð:ús   �A
 Á
A"c               ó    € V ^8„  d   QhRRRR/# ©r   Úqueryúdict[str, Any] | Noner   r   r   )r   s   "r   r   r   1   s   € ÷ !ñ !Ð,ð !°ñ !r   c                ó&  aaa€ V f   R# ^ o^ oRR VVV3R lllo. p^ p\         P                  ! RRR7      P                  S! V 4      4       F2  pV\        V\        V,
          4      ,          pVP                  V4       K4  	  RP                  V4      # )	Nz{}Ú c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r)   r   Úkeyr   Údepthr+   r   r   )r   s   "r   r   Ú!_query_json.<locals>.__annotate__9   s(   € ÷ ñ ˜ð  3ð °Cð Àñ r   c                ó
  <€ S^,          oS\         8”  g"   V\        8”  g   \        V\        4      '       g   \	        R4      hS\        V\        \        \        S,
          4      4      ,          o\        V \        4      '       d   S\        V \        S,
          4      ,          o\        V \        4      '       dS   \        V 4      \        8”  d   \	        R4      hV P                  4        UUu/ uF  w  r4VS! WCV^,           4      bK  	  upp# V\        9   d;   \        V 4      \        J d(   ^ T u;8:  d   R8:  g   M \	        R4      h\        V 4      # V e+   \        V 4      \        \        \         39  d   \	        R4      hV # u uppi )é   r-   l   ÿÿÿÿ )r   r   Ú
isinstancer   r   r2   Úminr   r   Údictr.   r   Úitemsr	   Útyper+   Úbool)r)   r:   r;   ÚkÚvÚadmitted_bytesÚnodesÚ	normalizes   &&&  €€€r   rI   Ú_query_json.<locals>.normalize9   s,  ø€ à��
ˆØ”?Ô" e¬oÔ&=ÄZÐPSÔUX×EYÒEYÜ" ?Ó3Ð3Øœ* S¬#Ô.HÌ/Ð\jÕJjÓ*kÓlÕlˆÜ�eœS×!Ò!Øœj¨´À.Õ0PÓQÕQˆNÜ�eœT×"Ò"Ü�5‹zÔ3Ô3Ü& Ó7Ð7Ø>C¿k¹k¼mÔL¹m±d°a�A‘y  u¨q¥yÓ1Ò1¹mÒLÐLØÔ&Ô&¬4°«;¼#Ó+=Ø˜Ö* Ö*Ü& Ó7Ð7Ü�u“:ÐØÒ¤ e£´S¼#¼tÐ4DÔ!DÜ" ?Ó3Ð3Øˆùó Ms   Ã*E?F)Úensure_asciiÚ
separators)r8   é    )Ú,Ú:)ÚjsonÚJSONEncoderÚ
iterencoder2   r   ÚappendÚjoin)r5   Úchunksr1   ÚchunkrG   rH   rI   s   &   @@@r   Ú_query_jsonrW   1   s‰   ú€ Ø‚}Ùð €NØ€E÷ô ð( €FØ€DÜ×!Ò!¨uÀÔL×WÑWÑXaÐbgÓXhÖiˆØ”
˜5¤/°DÕ"8Ó9Õ9ˆØ�‰�eÖñ jð �7‰7�6‹?Ðr   c                  óv   € ] tR t^UtRtRtR R ltRR R lltRR R lltRR	 R
 llt	RR R llt
R R ltRtR# )r
   zHRead-only service capability, independent of plugin activation lifetime.c               ó    € V ^8„  d   QhRRRR/# )r   ÚnativeÚ_NativeReaderr   r   r   )r   s   "r   r   ÚDiagnosticsReader.__annotate__Z   s   € ÷ ñ ˜}ð °ñ r   c                	ó   € Wn         R # r   ©Ú_native)r   rZ   s   &&r   r   ÚDiagnosticsReader.__init__Z   s   € ØŽr   Nc               ó    € V ^8„  d   QhRRRR/# ©r   r5   r6   r   údict[str, Any]r   )r   s   "r   r   r\   ]   s   € ÷ Tñ TÐ3ð T¸~ñ Tr   c                ó    €  V P                   P                  \        V4      4      #   \         d   p\	        \        TRR4      4      RhRp?ii ; i)zCReturn one bounded page; diagnostic counters and durations are int.r   ÚunavailableN)r_   ÚsnapshotrW   ÚRuntimeErrorr   Úgetattr©r   r5   Úexcs   && r   rf   ÚDiagnosticsReader.snapshot]   sJ   € ð	TØ—<‘<×(Ñ(¬°UÓ);Ó<Ð<øÜô 	TÜ"¤7¨3°¸-Ó#HÓIÈtÐSûð	Túó   ‚#& ¦A±AÁAc               ó    € V ^8„  d   QhRRRR/# r4   r   )r   s   "r   r   r\   d   s   € ÷ Tñ TÐ#8ð TÀCñ Tr   c                ó    €  V P                   P                  \        V4      4      #   \         d   p\	        \        TRR4      4      RhRp?ii ; i©z>Return canonical JSON with decimal-string diagnostic integers.r   re   N)r_   Úsnapshot_jsonrW   rg   r   rh   ri   s   && r   rp   ÚDiagnosticsReader.snapshot_jsond   sJ   € ð	TØ—<‘<×-Ñ-¬k¸%Ó.@ÓAÐAøÜô 	TÜ"¤7¨3°¸-Ó#HÓIÈtÐSûð	Túrl   c               ó    € V ^8„  d   QhRRRR/# rb   r   )r   s   "r   r   r\   k   s   € ÷ Tñ TÐ$9ð TÀ^ñ Tr   c                ó    €  V P                   P                  \        V4      4      #   \         d   p\	        \        TRR4      4      RhRp?ii ; i)zJReturn one bounded memory page; diagnostic counters and durations are int.r   re   N)r_   Úinspect_memoryrW   rg   r   rh   ri   s   && r   rt   Ú DiagnosticsReader.inspect_memoryk   sJ   € ð	TØ—<‘<×.Ñ.¬{¸5Ó/AÓBÐBøÜô 	TÜ"¤7¨3°¸-Ó#HÓIÈtÐSûð	Túrl   c               ó    € V ^8„  d   QhRRRR/# r4   r   )r   s   "r   r   r\   r   s   € ÷ Tñ TÐ)>ð TÈ#ñ Tr   c                ó    €  V P                   P                  \        V4      4      #   \         d   p\	        \        TRR4      4      RhRp?ii ; iro   )r_   Úinspect_memory_jsonrW   rg   r   rh   ri   s   && r   rx   Ú%DiagnosticsReader.inspect_memory_jsonr   sJ   € ð	TØ—<‘<×3Ñ3´KÀÓ4FÓGÐGøÜô 	TÜ"¤7¨3°¸-Ó#HÓIÈtÐSûð	Túrl   c               ó   € V ^8„  d   QhRR/# )r   r   rc   r   )r   s   "r   r   r\   y   s   € ÷ Tñ T�nñ Tr   c                óŒ   €  V P                   P                  4       #   \         d   p\        \	        TRR4      4      RhRp?ii ; i)zCReturn separate core/copy budgets, occupancy, and logging coverage.r   re   N)r_   Úinforg   r   rh   )r   rj   s   & r   r|   ÚDiagnosticsReader.infoy   sC   € ð	TØ—<‘<×$Ñ$Ó&Ð&øÜô 	TÜ"¤7¨3°¸-Ó#HÓIÈtÐSûð	Tús   ‚ œA§>¾Ar^   r   )r!   r"   r#   r$   r%   Ú	__slots__r   rf   rp   rt   rx   r|   r&   r   r   r   r
   r
   U   s3   † ÙRà€Iõ÷T÷T÷T÷T÷Tñ Tr   r
   c               ó   € V ^8„  d   QhRR/# )r   r   r
   r   )r   s   "r   r   r   �   s   € ÷ Pñ PÐ!ñ Pr   c                 ó~   €  \        \        4       4      #   \         d   p \        \	        T RR4      4      RhRp ? ii ; i)aB  Obtain a reader for the process diagnostics service.

Returns:
    DiagnosticsReader: A reader for the service selected during plugin initialization.

Raises:
    DiagnosticsError: If the service has not been initialized or this process
        inherited it across a fork. The ``reason`` attribute identifies the failure.
r   re   N)r
   Ú_readerrg   r   rh   )rj   s    r   Úreaderr‚   �   s=   € ðPÜ ¤£Ó+Ð+øÜô PÜœw s¨H°mÓDÓEÈ4ÐOûðPús   ‚ •< 7·<)r   r
   r‚   )r%   Ú
__future__r   rP   Útypingr   Ú&nemo_relay._diagnostics_query_contractr   r   r   r   r   r	   Únemo_relay._nativer
   r[   r   r�   rg   r   r2   rW   r‚   Ú__all__r   r   r   Ú<module>rˆ      sY   ðñõ #ã Ý ÷÷ õ BÝ <ô�|ô õ
õ!÷H)Tñ )TõXPò  >‚r   