+
    ^eòj5R  ã                  óâ  € R t ^ RIHt ^ RIt^ RIHtHt ^ RIHt ^ RI	H
t
HtHtHt ^ RIHtHtHtHtHtHt ^ RIHtHtHtHtHtHtHtHtHtHtH t H!t!H"t"H#t#H$t$ ^ RI%H&t' ^ R	I%H(t) ^ R
I%H*t+ ^ RI%H,t- ^ RI%H.t/ ^ RI%H0t1 ^ RI%H2t3 ^ RI4H5t5H6t6 ]'       d   ^ RI7H8t8 ^ RIH9t9  ! R R]4      t: ! R R]:RR7      t; ! R R]4      t< ! R R]<RR7      t= ! R R]4      t>]RO,          t? ! R R]4      t@ ! R  R!]@RR7      tA ! R" R#]4      tB ! R$ R%]4      tC ! R& R']CRR7      tD ! R( R)]4      tE]RP,          tF  ! R* R+]4      tG ! R, R-]4      tH ! R. R/]4      tIR0R/R1 R2 lltJR3 R4 ltKR5 R6 ltL]
! R7R87       ! R9 R:4      4       tM]
! R7R87       ! R; R<4      4       tN]
! R7R87       ! R= R>4      4       tO ! R? R@4      tPRQRA RB llt*]RQRC RD ll4       tQRQRE RF llt0RG RH lt2RI RJ ltRRK RL ltSRM RN ltT. RROtUR# )Sa  Generic plugin configuration and registration helpers.

This module exposes the top-level plugin system used to validate and activate
adaptive and custom plugin components. Component registration names are scoped
per component by the runtime, so end users do not provide instance ids.
)ÚannotationsN)ÚAsyncGeneratorÚCallable)Úasynccontextmanager)Ú	dataclassÚfieldÚfieldsÚis_dataclass)ÚTYPE_CHECKINGÚLiteralÚProtocolÚSelfÚ	TypedDictÚcast)ÚEventMetadataInjectorCallbackÚEventSanitizeGuardrailÚJsonÚ
JsonObjectÚ LlmConditionalExecutionGuardrailÚLlmExecutionInterceptÚLlmRequestInterceptÚLlmSanitizeRequestGuardrailÚLlmSanitizeResponseGuardrailÚLlmStreamExecutionInterceptÚ!ToolConditionalExecutionGuardrailÚToolExecutionInterceptÚToolRequestInterceptÚToolSanitizeGuardrailÚUnsupportedBehavior)Ú_PluginHostActivation)Úderegister_plugin)Ú
initialize)Úlist_plugin_kinds)Úregister_plugin)Úvalidate)Úvalidate_exact)ÚConditionalMiddlewareGuardrailÚRuntimeRegistrationKind)ÚTracebackType)ÚEventc                  ó6   € ] tR t^?t$ R]R&   R]R&   R]R&   RtR# )Ú_ConfigDiagnosticRequiredzLiteral['warning', 'error']ÚlevelÚstrÚcodeÚmessage© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__Ú__static_attributes__r0   ó    Úˆ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/nemo_relay/plugin.pyr+   r+   ?   s   ‡ Ø&Ó&Ø
ƒIØ‡Lr8   r+   c                  ó0   € ] tR t^Et$ RtR]R&   R]R&   RtR# )ÚConfigDiagnosticz!One plugin validation diagnostic.r-   Ú	componentr   r0   N©r2   r3   r4   r5   Ú__doc__r6   r7   r0   r8   r9   r;   r;   E   s   ‡ Ù+àƒNØ‡Jr8   r;   F)Útotalc                  ó@   € ] tR t^Lt$ R]R&   R]R&   R]R&   R]R&   RtR# )	Ú_RuntimeDiagnosticRequiredr-   r.   r<   r/   ÚintÚcountr0   Nr1   r0   r8   r9   rA   rA   L   s   ‡ Ø
ƒIØƒNØƒLØ‡Jr8   rA   c                  ó0   € ] tR t^St$ RtR]R&   R]R&   RtR# )ÚRuntimeDiagnosticz5One aggregated runtime failure from an active plugin.r-   r   Ú
session_idr0   Nr=   r0   r8   r9   rE   rE   S   s   ‡ Ù?àƒJØ‡Or8   rE   c                  ó0   € ] tR t^Zt$ RtR]R&   R]R&   RtR# )ÚConfigReportz4Validation or activation report for a plugin config.zlist[ConfigDiagnostic]Údiagnosticszlist[RuntimeDiagnostic]Úruntime_diagnosticsr0   Nr=   r0   r8   r9   rH   rH   Z   s   ‡ Ù>à'Ó'Ø0×0r8   rH   c                  óX   € ] tR t^dt$ RtR]R&   R]R&   R]R&   R]R&   R]R&   R]R&   R	tR
# )Ú&_DynamicPluginValidationStatusRequiredz2Per-phase validation state for one dynamic plugin.ÚDynamicPluginCheckStateÚmanifestÚcompatibilityÚ	integrityÚenvironmentÚauthenticityÚpolicy_satisfiedr0   Nr=   r0   r8   r9   rL   rL   d   s)   ‡ Ù<à%Ó%Ø*Ó*Ø&Ó&Ø(Ó(Ø)Ó)Ø-×-r8   rL   c                  ó,   € ] tR t^ot$ R]R&   R]R&   RtR# )ÚDynamicPluginValidationStatusz
str | NoneÚ
checked_atr/   r0   Nr1   r0   r8   r9   rU   rU   o   s   ‡ ØÓØ×r8   rU   c                  ó:   € ] tR t^tt$ RtR]R&   R]R&   R]R&   RtR# )ÚDynamicPluginFailurezBActionable reason a dynamic plugin could not be trusted or loaded.r-   Úphaser.   r/   r0   Nr=   r0   r8   r9   rX   rX   t   s   ‡ ÙLàƒJØ
ƒIØ‡Lr8   rX   c                  óN   € ] tR t^|t$ RtR]R&   R]R&   R]R&   R]R&   R	]R
&   RtR# )Ú&_DynamicPluginValidationReportRequiredz>Validation result for one authored dynamic plugin declaration.r-   Ú	plugin_idÚmanifest_refÚDynamicPluginKindÚkindrU   ÚstatusÚboolÚselectedr0   Nr=   r0   r8   r9   r[   r[   |   s!   ‡ ÙHàƒNØÓØ
ÓØ)Ó)Ø‡Nr8   r[   c                  ó"   € ] tR t^†t$ R]R&   RtR# )ÚDynamicPluginValidationReportzDynamicPluginFailure | NoneÚfailurer0   Nr1   r0   r8   r9   rd   rd   †   s   ‡ Ø(×(r8   rd   c                  óD   € ] tR t^Št$ RtR]R&   R]R&   R]R&   R]R	&   R
tR# )ÚPluginHostReportz?Static and dynamic validation results owned by one plugin host.rH   Úconfigz#list[DynamicPluginValidationReport]Údynamic_pluginsú	list[str]Úconfig_pathsr   Úresolved_configr0   Nr=   r0   r8   r9   rg   rg   Š   s   ‡ ÙIàÓØ8Ó8ØÓØ×r8   rg   c                  óæ   € ] tR t^—tRtR R ltR R ltR R ltR R	 ltR
 R lt	R R lt
R R ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR  R! ltR" R# ltR$tR%# )&ÚPluginContextzGComponent-scoped registration context passed to custom plugin handlers.c               ó$   € V ^8„  d   QhRRRRRR/# )é   Únamer-   ÚcallbackzCallable[[Event], None]ÚreturnÚNoner0   )Úformats   "r9   Ú__annotate__ÚPluginContext.__annotate__š   s#   € ÷ ñ ¨ð Ð7Nð ÐSWñ r8   c                ó   € R# )z;Register an infallible event subscriber for this component.Nr0   )Úselfrq   rr   s   &&&r9   Úregister_subscriberÚ!PluginContext.register_subscriberš   ó   € ár8   c          
     ó,   € V ^8„  d   QhRRRRRRRRRR	/# )
rp   rq   r-   Úkindszset[RuntimeRegistrationKind]Úregistration_nameÚ	guardrailr&   rs   rt   r0   )ru   s   "r9   rv   rw   ž   s<   € ÷ ñ àðð ,ðð ð	ð
 2ðð 
ñr8   c                ó   € R# )zDRegister an activation-owned gate for a global runtime registration.Nr0   )ry   rq   r~   r   r€   s   &&&&&r9   Ú)register_conditional_middleware_guardrailÚ7PluginContext.register_conditional_middleware_guardrailž   s   € ñ 	r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   rq   r-   ÚpriorityrB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   ¨   s,   € ÷ ñ ØðØ#&ðØ2Oðà	ñr8   c                ó   € R# )z7Register an event metadata injector for this component.Nr0   ©ry   rq   r…   rr   s   &&&&r9   Ú register_event_metadata_injectorÚ.PluginContext.register_event_metadata_injector¨   ó   € ñ 	r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# ©	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   ®   s*   € ÷ ñ °Sð ÀCð ÐSið Ðnrñ r8   c                ó   € R# )z3Register a mark event sanitizer for this component.Nr0   r‡   s   &&&&r9   Ú register_mark_sanitize_guardrailÚ.PluginContext.register_mark_sanitize_guardrail®   r|   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# rŒ   r0   )ru   s   "r9   rv   rw   ²   s,   € ÷ ñ ØðØ#&ðØ2Hðà	ñr8   c                ó   € R# )z:Register a scope-start event sanitizer for this component.Nr0   r‡   s   &&&&r9   Ú'register_scope_sanitize_start_guardrailÚ5PluginContext.register_scope_sanitize_start_guardrail²   rŠ   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# rŒ   r0   )ru   s   "r9   rv   rw   ¸   s*   € ÷ ñ ¸#ð Èð ÐXnð Ðswñ r8   c                ó   € R# )z8Register a scope-end event sanitizer for this component.Nr0   r‡   s   &&&&r9   Ú%register_scope_sanitize_end_guardrailÚ3PluginContext.register_scope_sanitize_end_guardrail¸   r|   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# ©	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   ¼   ó,   € ÷ ñ ØðØ#&ðØ2Gðà	ñr8   c                ó   € R# )z>Register a tool sanitize-request guardrail for this component.Nr0   r‡   s   &&&&r9   Ú(register_tool_sanitize_request_guardrailÚ6PluginContext.register_tool_sanitize_request_guardrail¼   rŠ   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# r™   r0   )ru   s   "r9   rv   rw   Â   rš   r8   c                ó   € R# )z?Register a tool sanitize-response guardrail for this component.Nr0   r‡   s   &&&&r9   Ú)register_tool_sanitize_response_guardrailÚ7PluginContext.register_tool_sanitize_response_guardrailÂ   rŠ   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   È   s,   € ÷ ñ ØðØ#&ðØ2Sðà	ñr8   c                ó   € R# )zCRegister a tool conditional-execution guardrail for this component.Nr0   r‡   s   &&&&r9   Ú-register_tool_conditional_execution_guardrailÚ;PluginContext.register_tool_conditional_execution_guardrailÈ   rŠ   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   Î   ó,   € ÷ ñ ØðØ#&ðØ2Mðà	ñr8   c                ó   € R# )z>Register an LLM sanitize-request guardrail for this component.Nr0   r‡   s   &&&&r9   Ú'register_llm_sanitize_request_guardrailÚ5PluginContext.register_llm_sanitize_request_guardrailÎ   rŠ   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   Ô   s,   € ÷ ñ ØðØ#&ðØ2Nðà	ñr8   c                ó   € R# )z?Register an LLM sanitize-response guardrail for this component.Nr0   r‡   s   &&&&r9   Ú(register_llm_sanitize_response_guardrailÚ6PluginContext.register_llm_sanitize_response_guardrailÔ   rŠ   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   Ú   s,   € ÷ ñ ØðØ#&ðØ2Rðà	ñr8   c                ó   € R# )zCRegister an LLM conditional-execution guardrail for this component.Nr0   r‡   s   &&&&r9   Ú,register_llm_conditional_execution_guardrailÚ:PluginContext.register_llm_conditional_execution_guardrailÚ   rŠ   r8   c          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )rp   rq   r-   r…   rB   Úbreak_chainra   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   à   s4   € ÷ ñ ØðØ#&ðØ59ðØEXðà	ñr8   c                ó   € R# )z5Register an LLM request intercept for this component.Nr0   ©ry   rq   r…   r´   rr   s   &&&&&r9   Úregister_llm_request_interceptÚ,PluginContext.register_llm_request_interceptà   rŠ   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   æ   s*   € ÷ ñ °Sð ÀCð ÐShð Ðmqñ r8   c                ó   € R# )z7Register an LLM execution intercept for this component.Nr0   r‡   s   &&&&r9   Ú register_llm_execution_interceptÚ.PluginContext.register_llm_execution_interceptæ   r|   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   ê   r§   r8   c                ó   € R# )zARegister an LLM streaming execution intercept for this component.Nr0   r‡   s   &&&&r9   Ú'register_llm_stream_execution_interceptÚ5PluginContext.register_llm_stream_execution_interceptê   rŠ   r8   c          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )rp   rq   r-   r…   rB   r´   ra   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   ð   s4   € ÷ ñ ØðØ#&ðØ59ðØEYðà	ñr8   c                ó   € R# )z5Register a tool request intercept for this component.Nr0   r¶   s   &&&&&r9   Úregister_tool_request_interceptÚ-PluginContext.register_tool_request_interceptð   rŠ   r8   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   rq   r-   r…   rB   rr   r   rs   rt   r0   )ru   s   "r9   rv   rw   ö   s*   € ÷ ñ °cð ÀSð ÐTjð Ðosñ r8   c                ó   € R# )z7Register a tool execution intercept for this component.Nr0   r‡   s   &&&&r9   Ú!register_tool_execution_interceptÚ/PluginContext.register_tool_execution_interceptö   r|   r8   r0   N)r2   r3   r4   r5   r>   rz   r‚   rˆ   rŽ   r’   r–   rœ   r    r¤   r©   r­   r±   r·   r»   r¿   rÃ   rÇ   r7   r0   r8   r9   rn   rn   —   s_   † ÙQõõõõõõõõõõõõõõõõ÷ñ r8   rn   c                  ó2   € ] tR t^ûtRtR R ltR R ltRtR# )ÚPluginz Custom plugin callback contract.c               ó    € V ^8„  d   QhRRRR/# )rp   Úplugin_configr   rs   zlist[ConfigDiagnostic] | Noner0   )ru   s   "r9   rv   ÚPlugin.__annotate__þ   s   € ÷ ñ  jð Ð5Rñ r8   c                ó   € R# )zðValidate one component-local config object.

Args:
    plugin_config: The `config` object from a single component.

Returns:
    A list of diagnostics, or `None` for no diagnostics.

Behavior:
    Error diagnostics block `initialize(...)`.
Nr0   )ry   rÌ   s   &&r9   r$   ÚPlugin.validateþ   s   € ñ 	r8   c               ó$   € V ^8„  d   QhRRRRRR/# )rp   rÌ   r   Úcontextrn   rs   rt   r0   )ru   s   "r9   rv   rÍ     s!   € ÷ ñ  jð ¸=ð ÈTñ r8   c                ó   € R# )av  Install middleware and subscribers for one component instance.

Args:
    plugin_config: The `config` object from a single component.
    context: Component-scoped registration context used to install
        middleware and subscribers.

Returns:
    `None`.

Behavior:
    Any exception aborts the current initialization and triggers
    rollback of partial registrations.
Nr0   )ry   rÌ   rÑ   s   &&&r9   ÚregisterÚPlugin.register  s   € ñ 	r8   r0   N)r2   r3   r4   r5   r>   r$   rÓ   r7   r0   r8   r9   rÊ   rÊ   û   s   † Ù*õ÷ñ r8   rÊ   c                  ó"   € ] tR tRtR R ltRtR# )Ú_SupportsToDicti  c               ó   € V ^8„  d   QhRR/# ©rp   rs   r   r0   )ru   s   "r9   rv   Ú_SupportsToDict.__annotate__  s   € ×(Ñ(˜Ñ(r8   c                	ó   € R # ©Nr0   ©ry   s   &r9   Úto_dictÚ_SupportsToDict.to_dict  s   € ¡Sr8   r0   N)r2   r3   r4   r5   rÝ   r7   r0   r8   r9   rÖ   rÖ     s   † ß(Ñ(r8   rÖ   Úpreserve_nullsc               ó$   € V ^8„  d   QhRRRRRR/# )rp   ÚvalueÚobjectrß   ra   rs   r   r0   )ru   s   "r9   rv   rv   "  s!   € ÷ ñ �fð °ð À$ñ r8   c          
     óÜ  € \        V R 4      '       d   \        \        V 4      P                  4       # \	        V 4      '       dl   \        V \        4      '       gV   \        V 4       UUu/ uF=  p\        WP                  4      pV'       g   Vf   K&  VP                  \        W1R7      bK?  	  upp# \        V \        4      '       d   V  Uu. uF  p\        WAR7      NK  	  up# \        V \        4      '       dY   V P                  4        UUu/ uF;  w  rVV'       g   Vf   K  \        \        V4      \        Ya;'       g    VR8H  R7      bK=  	  upp# \        \        V 4      # u uppi u upi u uppi )rÝ   ©rß   rh   )Úhasattrr   rÖ   rÝ   r	   Ú
isinstanceÚtyper   Úgetattrrq   Ú
_normalizeÚlistÚdictÚitemsr-   r   )rá   rß   Ú
field_infoÚfield_valueÚitemÚkeyÚvals   &$     r9   ré   ré   "  s+  € Üˆu�i× Ò Ü”O UÓ+×3Ñ3Ó5Ð5Ü�E×Ò¤:¨e´T×#:Ò#:ô % Uœmô
á+�
Ü '¨¯©Ó ?�ß ô ˆJ�O‰OœZ¨ÔSÐS‰OÙ+ò
ð 	
ô �%œ×ÒÙLQÓRÉEÀD”
˜4×?ÉEÑRÐRÜ�%œ×Òð "ŸK™KœMô
á)‘�ß ô ^ŒD”�c‹NœJ s×;\Ð;\ÈSÐT\É_Ô]Ò]Ù)ò
ð 	
ô
 ”�eÓÐùó
ùò Sùó
s   Á&#EÂEÃE#ÄE(Ä,E(c               ó    € V ^8„  d   QhRRRR/# ©rp   rá   râ   rs   r   r0   )ru   s   "r9   rv   rv   7  s   € ÷ /ñ /˜Vð /¨
ñ /r8   c                ó4   € \        \        \        V 4      4      # rÛ   ©r   r   ré   ©rá   s   &r9   Ú_normalize_objectr÷   7  s   € Ü”
œJ uÓ-Ó.Ð.r8   c               ó    € V ^8„  d   QhRRRR/# ró   r0   )ru   s   "r9   rv   rv   ;  s   € ÷ Dñ D vð D°*ñ Dr8   c                ó8   € \        \        \        V R R7      4      # )Trä   rõ   rö   s   &r9   Ú_normalize_component_configrú   ;  s   € Ü”
œJ u¸TÔBÓCÐCr8   T)Úslotsc                  óR   € ] tR tRt$ RtRtR]R&   RtR]R&   RtR]R&   R	 R
 lt	Rt
R# )ÚConfigPolicyi?  aµ  Policy for unsupported plugin configuration.

Args:
    unknown_component: How to handle unknown component kinds.
    unknown_field: How to handle unknown fields inside known components.
    unsupported_value: How to handle known fields with unsupported values.

Behavior:
    `"warn"` emits a warning diagnostic, `"error"` emits an error
    diagnostic that blocks initialization, and `"ignore"` suppresses the
    diagnostic entirely.
Úwarnr   Úunknown_componentÚunknown_fieldÚerrorÚunsupported_valuec               ó   € V ^8„  d   QhRR/# rØ   r0   )ru   s   "r9   rv   ÚConfigPolicy.__annotate__R  ó   € ÷ 
ñ 
˜ñ 
r8   c                óN   € RV P                   RV P                  RV P                  /# )z9Serialize this policy to the canonical JSON object shape.rÿ   r   r  )rÿ   r   r  rÜ   s   &r9   rÝ   ÚConfigPolicy.to_dictR  s/   € ð   ×!7Ñ!7Ø˜T×/Ñ/Ø ×!7Ñ!7ð
ð 	
r8   r0   N)r2   r3   r4   r5   r>   rÿ   r6   r   r  rÝ   r7   r0   r8   r9   rý   rý   ?  s6   ‡ ñð .4ÐÐ*Ó3Ø)/€MÐ&Ó/Ø-4ÐÐ*Ó4÷
ñ 
r8   rý   c                  ó\   € ] tR tRt$ RtR]R&   RtR]R&   ]! ]R7      t	R	]R
&   R R lt
RtR# )ÚComponentSpeci[  a#  One top-level custom plugin component.

Args:
    kind: Registered plugin kind string.
    enabled: Whether the component should be activated.
    config: Component-local JSON config object.

Behavior:
    Disabled components are still validated but skipped during runtime
    registration.
r-   r_   Tra   Úenabled©Údefault_factoryr   rh   c               ó   € V ^8„  d   QhRR/# rØ   r0   )ru   s   "r9   rv   ÚComponentSpec.__annotate__m  r  r8   c                ó`   € RV P                   RV P                  R\        V P                  4      /# )z<Serialize this component to the canonical JSON object shape.r_   r
  rh   )r_   r
  rú   rh   rÜ   s   &r9   rÝ   ÚComponentSpec.to_dictm  s/   € ð �D—I‘IØ�t—|‘|ØÔ1°$·+±+Ó>ð
ð 	
r8   r0   N)r2   r3   r4   r5   r>   r6   r
  r   rë   rh   rÝ   r7   r0   r8   r9   r	  r	  [  s1   ‡ ñ
ð ƒIØ€GˆTÓÙ¨tÔ4€FˆJÓ4÷
ñ 
r8   r	  c                  ó|   € ] tR tRt$ Rt^tR]R&   ]! ]R7      t	R]R&   ]! ]
R7      tR]R	&   R
tR]R&   R R ltRtR
# )ÚPluginConfigiv  aø  Canonical plugin configuration document.

Args:
    version: Plugin config schema version.
    components: Ordered list of top-level components. This may mix
        `plugin.ComponentSpec(...)` and `adaptive.ComponentSpec(...)`.
    policy: Plugin-level unsupported-config policy.
    diagnostics: Optional startup-only host service settings. Omission uses
        file layers; supplying settings overrides the complete service profile.

Behavior:
    Component order is preserved during initialization.
rB   Úversionr  zlist[object]Ú
componentsrý   ÚpolicyNzJsonObject | NonerI   c               ó   € V ^8„  d   QhRR/# rØ   r0   )ru   s   "r9   rv   ÚPluginConfig.__annotate__‹  s   € ÷ 
ñ 
˜ñ 
r8   c           	     óä   € RV P                   RV P                   Uu. uF  p\        V4      NK  	  upRV P                  P	                  4       /V P
                  e   RV P
                  /C# / C# u upi )z;Serialize this config to the canonical JSON document shape.r  r  r  rI   )r  r  ré   r  rÝ   rI   )ry   r<   s   & r9   rÝ   ÚPluginConfig.to_dict‹  sz   € ð �t—|‘|ØÀ$Ç/Â/ÓRÁ/°Yœ: iÖ0Á/ÑRØ�d—k‘k×)Ñ)Ó+ð
ð 59×4DÑ4DÒ4P�˜t×/Ñ/Ð0ð	
ð 	
ð WYð	
ð 	
ùâRs   œA-
r0   )r2   r3   r4   r5   r>   r  r6   r   rê   r  rý   r  rI   rÝ   r7   r0   r8   r9   r  r  v  sF   ‡ ñð €GˆSÓÙ$°TÔ:€J�Ó:Ù °Ô>€FˆLÓ>Ø%)€KÐ"Ó)÷
ñ 
r8   r  c                  óz   € ] tR tRtRtRtR R lt]R R l4       t]R R l4       t	R	 R
 lt
R R ltR R ltRtR# )ÚPluginHostActivationi•  a  Owned lifetime for one process-wide static and dynamic plugin host.

Keep this object alive while agent code may invoke callbacks from the
loaded plugins. Prefer ``async with`` or call :meth:`close` explicitly.
Native finalization performs best-effort cleanup when an object is dropped.
c               ó    € V ^8„  d   QhRRRR/# )rp   ÚnativeÚ_NativePluginHostActivationrs   rt   r0   )ru   s   "r9   rv   Ú!PluginHostActivation.__annotate__Ÿ  s   € ÷ ñ Ð:ð ¸tñ r8   c                	ó   € Wn         R # rÛ   ©Ú_native)ry   r  s   &&r9   Ú__init__ÚPluginHostActivation.__init__Ÿ  s   € ØŽr8   c               ó   € V ^8„  d   QhRR/# )rp   rs   rg   r0   )ru   s   "r9   rv   r  £  s   € ÷ ;ñ ;Ð(ñ ;r8   c                óJ   € \        \        V P                  P                  4      # )z8Return the validation report captured during activation.)r   rg   r"  ÚreportrÜ   s   &r9   r'  ÚPluginHostActivation.report¢  s   € ô Ô$ d§l¡l×&9Ñ&9Ó:Ð:r8   c               ó   € V ^8„  d   QhRR/# )rp   rs   ra   r0   )ru   s   "r9   rv   r  ¨  s   € ÷ &ñ &˜4ñ &r8   c                ó.   € V P                   P                  # )z„Return whether this activation handle has not begun teardown.

Failed teardown leaves the handle active so :meth:`close` can retry.
)r"  Ú	is_activerÜ   s   &r9   r+  ÚPluginHostActivation.is_active§  s   € ð �|‰|×%Ñ%Ð%r8   c               ó   € V ^8„  d   QhRR/# )rp   rs   rt   r0   )ru   s   "r9   rv   r  ¯  s   € ÷ #ñ #˜Tñ #r8   c              ƒ  óV   "  € V P                   P                  4       G Rj  x€L
  R#  L5i)z<Clear callbacks and unload plugins; repeated calls are safe.N)r"  ÚcloserÜ   s   &r9   r/  ÚPluginHostActivation.close¯  s   é € à�l‰l× Ñ Ó"×"Ô"ùs   ‚) '¡)c               ó   € V ^8„  d   QhRR/# )rp   rs   r   r0   )ru   s   "r9   rv   r  ³  s   € ÷ ñ  $ñ r8   c              ƒ  ó   "  € V # 5i)z7Return this active host when entering an async context.r0   rÜ   s   &r9   Ú
__aenter__ÚPluginHostActivation.__aenter__³  s
   é € àˆùs   ‚c               ó(   € V ^8„  d   QhRRRRRRRR/# )	rp   Úexc_typeztype[BaseException] | NoneÚ	exc_valuezBaseException | NoneÚ	tracebackzTracebackType | Noners   rt   r0   )ru   s   "r9   rv   r  ·  s2   € ÷ ñ à,ðð (ðð (ð	ð
 
ñr8   c              ƒ  óH   "  € ???V P                  4       G Rj  x€L
  R#  L5i)z-Close the host when leaving an async context.N)r/  )ry   r6  r7  r8  s   &&&&r9   Ú	__aexit__ÚPluginHostActivation.__aexit__·  s   é € ð �i Ø�j‰j‹l×Ôùs   ‚"™ š"r!  N)r2   r3   r4   r5   r>   Ú	__slots__r#  Úpropertyr'  r+  r/  r3  r:  r7   r0   r8   r9   r  r  •  sO   † ñð €Iõð ô;ó ð;ð ô&ó ð&õ#õ÷ñ r8   r  c               ó$   € V ^8„  d   QhRRRRRR/# )rp   rh   úPluginConfig | JsonObjectÚadditional_plugins_tomlústr | os.PathLike[str] | Noners   r  r0   )ru   s   "r9   rv   rv   Â  s+   € ÷ Tñ TØ%ðTà:ðTð ñTr8   c              ƒ  ó’   "  € Ve   \         P                  ! V4      MRp\        \        \	        V 4      V4      G Rj  x€L
 4      #  L5i)aQ  Initialize the core-owned static and dynamic plugin host.

An optional explicit ``plugins.toml`` replaces user-file discovery. Relay
merges the selected file with the system file, then applies programmatic
configuration. The returned handle owns every activated plugin.

Args:
    config: Programmatic plugin configuration. It overrides file values.
    additional_plugins_toml: Optional explicit configuration layer. A
        missing file is reported as a warning in the activation report.

Returns:
    An owned activation whose report includes static and dynamic results.

Raises:
    ValueError: If the supplied configuration is malformed or fails plugin
        validation.
    FileNotFoundError: If a referenced plugin resource is unavailable.
    RuntimeError: If activation cannot acquire the host or a plugin cannot
        be registered.
N)ÚosÚfspathr  Ú_initializer÷   ©rh   r@  Úpaths   && r9   r!   r!   Â  s=   é € ð2 2IÒ1TŒ2�9Š9Ð,Ô-ÐZ^€DÜ¤kÔ2CÀFÓ2KÈTÓ&R× RÓSÐSÑ Rùs   ‚:A¼A½	Ac               ó$   € V ^8„  d   QhRRRRRR/# )rp   rh   r?  r@  rA  rs   z$AsyncGenerator[PluginHostActivation]r0   )ru   s   "r9   rv   rv   à  s&   € ÷ !ñ !Ø%ð!à:ð!ð *ñ!r8   c               ó´   "  € \        W4      G Rj  x€L
 p V5x € VP                  4       G Rj  x€L
  R#  L$ L  TP                  4       G Rj  x€L 
  i ; i5i)aà  Initialize and close the plugin host around an async context.

Use :func:`initialize` instead when the activation lifetime must extend
beyond one ``async with`` block.

Args:
    config: Programmatic plugin configuration. It overrides file values.
    additional_plugins_toml: Optional explicit configuration layer. A
        missing file is reported as a warning in the activation report.

Returns:
    An async context manager that yields the owned activation.

Raises:
    ValueError: If the supplied configuration is malformed or fails plugin
        validation.
    FileNotFoundError: If a referenced plugin resource is unavailable.
    RuntimeError: If activation cannot acquire the host or a plugin cannot
        be registered.
N)r!   r/  )rh   r@  Ú
activations   && r9   ÚactivaterK  ß  sN   é € ô2 " &ÓB×B€Jð!ØÓà×ÑÓ × Ò ñ	 Cñ 	!øˆj×ÑÓ × Ò üs<   ‚A‘6’A—: œA¯8°A¸AºAÁAÁAÁAc               ó$   € V ^8„  d   QhRRRRRR/# )rp   rh   r?  r@  rA  rs   rg   r0   )ru   s   "r9   rv   rv   ÿ  s+   € ÷ Nñ NØ%ðNà:ðNð ñNr8   c                ó€   € Ve   \         P                  ! V4      MRp\        \        \	        \        V 4      V4      4      # )a°  Validate the core-owned static and dynamic plugin host.

This resolves the same configuration layers as :func:`initialize` without
loading plugin code or acquiring the process-wide activation lease.

Args:
    config: Programmatic plugin configuration. It overrides file values.
    additional_plugins_toml: Optional explicit configuration layer. A
        missing file is reported as a warning in the returned report.

Returns:
    A static configuration report and selected dynamic validation reports.

Raises:
    ValueError: If the supplied configuration or a resolved configuration
        layer is malformed.
    FileNotFoundError: If a referenced plugin resource is unavailable.
    RuntimeError: If validation encounters an internal host failure.

Notes:
    Static plugin validation errors are returned in the report rather than
    raised. Use :func:`validate_exact` when only the supplied static
    configuration should be checked.
N)rC  rD  r   rg   Ú	_validater÷   rF  s   && r9   r$   r$   ÿ  s7   € ð8 2IÒ1TŒ2�9Š9Ð,Ô-ÐZ^€DÜÔ ¤)Ô,=¸fÓ,EÀtÓ"LÓMÐMr8   c               ó    € V ^8„  d   QhRRRR/# )rp   rh   r?  rs   rg   r0   )ru   s   "r9   rv   rv     s    € ÷ Nñ NÐ4ð NÐ9Iñ Nr8   c                ó–   € \        V \        4      '       d   RV 9   d   \        R4      h\        \        \        \        V 4      4      4      # )a  Validate only the supplied static plugin configuration.

Unlike :func:`validate`, this does not discover or merge ``plugins.toml``
files. Use it for component-specific validation when ``config`` is the
complete document to check. Host-only ``diagnostics`` settings are rejected;
use :func:`validate` to validate those settings.

Args:
    config: Complete static plugin configuration.

Returns:
    The static validation report with no dynamic plugin results.

Raises:
    ValueError: If ``config`` contains host-only diagnostics settings.
rI   z:diagnostics is a host-only setting; use layered validation)ræ   rë   Ú
ValueErrorr   rg   Ú_validate_exactr÷   )rh   s   &r9   r%   r%     s=   € ô" �&œ$×Ò M°VÔ$;ÜÐUÓVÐVÜÔ ¤/Ô2CÀFÓ2KÓ"LÓMÐMr8   c               ó   € V ^8„  d   QhRR/# )rp   rs   rj   r0   )ru   s   "r9   rv   rv   5  s   € ÷ 
 ñ 
 �Iñ 
 r8   c                 ó   € \        4       # )zÖList registered custom plugin kinds.

Returns:
    A sorted list of plugin kind strings known to the plugin registry.

Behavior:
    This reports available plugin kinds, not the currently active
    component set.
)Ú_list_plugin_kindsr0   r8   r9   Ú
list_kindsrV  5  s   € ô ÓÐr8   c               ó$   € V ^8„  d   QhRRRRRR/# )rp   Úplugin_kindr-   ÚpluginrÊ   rs   rt   r0   )ru   s   "r9   rv   rv   B  s!   € ÷ *ñ *˜#ð * vð *°$ñ *r8   c                ó   € \        W4       R# )zéRegister a custom plugin implementation.

Args:
    plugin_kind: Unique top-level component kind string.
    plugin: Custom plugin implementation.

Returns:
    `None`.

Behavior:
    Registering the same kind twice raises an error.
N)Ú_register_plugin)rX  rY  s   &&r9   rÓ   rÓ   B  s   € ô �[Ö)r8   c               ó    € V ^8„  d   QhRRRR/# )rp   rX  r-   rs   ra   r0   )ru   s   "r9   rv   rv   R  s   € ÷ +ñ +˜Cð + Dñ +r8   c                ó   € \        V 4      # )aT  Deregister a custom plugin kind.

Args:
    plugin_kind: Kind string to remove from the plugin registry.

Returns:
    `True` if a plugin was removed, otherwise `False`.

Behavior:
    This affects future validation and initialization only. Active runtime
    registrations remain until the owning :class:`PluginHostActivation`
    closes.
)Ú_deregister_plugin)rX  s   &r9   Ú
deregisterr_  R  s   € ô ˜kÓ*Ð*r8   )ÚunknownÚvalidÚinvalid)Úrust_dynamicÚworkerrÛ   )r	  r;   rE   rý   rH   rM   rX   r^   rd   rU   r  rn   r  rg   rÊ   rK  r!   r_  rV  rÓ   r$   r%   )Vr>   Ú
__future__r   rC  Úcollections.abcr   r   Ú
contextlibr   Údataclassesr   r   r   r	   Útypingr
   r   r   r   r   r   Ú
nemo_relayr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Únemo_relay._nativer   r  r    r^  r!   rE  r"   rU  r#   r[  r$   rN  r%   rR  Ú nemo_relay.runtime_registrationsr&   r'   Útypesr(   r)   r+   r;   rA   rE   rH   rM   rL   rU   rX   r[   rd   rg   r^   rn   rÊ   rÖ   ré   r÷   rú   rý   r	  r  r  rK  rV  rÓ   r_  Ú__all__r0   r8   r9   Ú<module>ro     s  ðñõ #ã 	ß 4Ý *ß >Ó >ß J× J÷÷ ÷ ÷ ñ õ" Tõõõõõõ÷ eçÝ#å ô 	ô ôÐ0¸õ ô ô ôÐ2¸%õ ô1�9ô 1ð "Ð"?Õ@Ð ô.¨Yô .ôÐ$JÐRWõ ô
˜9ô ô¨Yô ô)Ð$JÐRWõ )ô �yô  ð Ð4Õ5Ð Ø 5ôa�Hô aôH ˆXô  ôF)�hô )ð¸÷ õ*/õDñ �Ô÷
ð 
ó ð
ñ6 �Ô÷
ð 
ó ð
ñ4 �Ô÷
ð 
ó ð
÷<*ñ *÷ZTð: ö!ó ð!÷>Nõ@Nõ,
 õ*õ +ò"‚r8   