+
    Q(i
                       a  R t0 t ^ RIt^ RIHtHt ^ RIHt ^ RIt^ RI	t	^ RIH
t
 ^ RIHt ^ RIHtHt ]],          ]]P$                  P&                  ,          ,          ]]]P$                  P&                  ,          ,          ,          t] ^ k ]]]
]3,          .]3,          ]]]
]3,          .]],          3,          ,          t] ^k R R ltR	 R
 ltR R ltR R ltR# )    N)	AwaitableCallable)	TypeAlias)ClientSession)ListRootsFnT)LifespanContextTRequestContextc                n    V ^8  d   QhR\         R\        \        P                  P                  ,          /#    rootsreturn)	RootsListlistmcptypesRoot)formats   "Z/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/fastmcp/client/roots.py__annotate__r      s'      i D,@     c                    . pV  F  p\        V\        P                  P                  4      '       d   VP	                  V4       K@  \        V\
        P                  4      '       d2   VP	                  \        P                  P                  VR 7      4       K  \        V\        4      '       dF   VP	                  \        P                  P                  \
        P                  ! V4      R 7      4       K  \        RV 24      h	  V# ))urizInvalid root: )	
isinstancer   r   r   appendpydanticFileUrlstr
ValueError)r   
roots_listrs   &  r   convert_roots_listr"      s    Ja((a 8++,,ciinnn343ciinn1A1A!1DnEF~aS122  r   c                F    V ^8  d   QhR\         \        ,          R\        /# )r   handlerr   )r   RootsHandlerr   )r   s   "r   r   r   !   s!     	> 	>%	>	>r   c                     \        V \        4      '       d   \        V 4      # \        P                  ! V 4      '       d   \        V 4      # \        R V  24      h)zInvalid roots handler: )r   r   !_create_roots_callback_from_rootsinspect
isfunction_create_roots_callback_from_fnr   )r$   s   &r   create_roots_callbackr+   !   sK     '4  099			G	$	$-g6627)<==r   c                0    V ^8  d   QhR\         R\        /# r   )r   r   )r   s   "r   r   r   -   s     
 


r   c                 0   a  \        S 4      o R  V 3R llpV# )c                z    V ^8  d   QhR\         \        \        3,          R\        P                  P
                  /# r   contextr   )r	   r   r   r   r   ListRootsResult)r   s   "r   r   7_create_roots_callback_from_roots.<locals>.__annotate__2   s1     6 6/? ?@6		"	"6r   c                 L   <"   \         P                  P                  SR 7      # 5i)r   )r   r   r1   )r0   r   s   &r   _roots_callback:_create_roots_callback_from_roots.<locals>._roots_callback2   s       yy((u(55s   !$)r"   )r   r5   s   f r   r'   r'   -   s!     u%E6 6
 r   c                    V ^8  d   QhR\         \        \        \        3,          .\        3,          \         \        \        \        3,          .\
        \        ,          3,          ,          R\        /# )r   fnr   )r   r	   r   r   r   r   r   )r   s   "r   r   r   :   s\      .0@!@ABIMN}.>>?@)IBVVW	X r   c                    a  R  V 3R llpV# )c                    V ^8  d   QhR\         \        \        3,          R\        P                  P
                  \        P                  P                  ,          /# r/   )r	   r   r   r   r   r1   	ErrorData)r   s   "r   r   4_create_roots_callback_from_fn.<locals>.__annotate__>   s@      /? ?@		"	"SYY%8%8	8r   c                 t  <"    S! V 4      p\         P                  ! V4      '       d   VG R j  xL
 p\        P                  P	                  \        V4      R7      #  L-  \         dM   p\        P                  P                  \        P                  P                  \        T4      R7      u R p?# R p?ii ; i5i)Nr4   )codemessage)
r(   isawaitabler   r   r1   r"   	Exceptionr;   INTERNAL_ERRORr   )r0   r   er8   s   &  r   r5   7_create_roots_callback_from_fn.<locals>._roots_callback>   s     		wKE""5))#99,,3Ee3L,MM $ 	99&&YY--A '  	sE   B8)A A,A B8A B5)AB0*B5+B80B55B8 )r8   r5   s   f r   r*   r*   :   s      r   c                h    V ^8  d   Qh/ ^ \         9   d
   \        ;R&   ^\         9   d
   \        ;R&   # )r   r   r%   )__conditional_annotations__r   )r   s   "r   r   r      s/     U T9 T  i  r   )rG   r(   collections.abcr   r   typingr   	mcp.typesr   r   r   mcp.client.sessionr   mcp.shared.contextr   r	   r   r   r   r   r   r%   r"   r+   r'   r*   r   )rG   s   @r   <module>rM      s     /     + ?Cy4		#77$sSYY^^?S:TT	 T n],<<=>	IJ}.>>?@)IBVVWX  	>
r   