+
    Q(i[                         ^ RI Ht ^ RIHt ^ RIHt ^ RIHtHtH	t	H
t
Ht ^ RIHt ^ RIHt ]'       d   ^ RIHt ]	! R4      t ! R	 R
4      tR# )    )Sequence)contextmanager)chain)TYPE_CHECKINGAnyTypeVarcastoverload)inverse_groups_from_app	Parameter)AppVc                   @  a  ] tR t^t o R t]RV 3R lR ll4       t]V 3R lR l4       t]V 3R lR l4       t	]V 3R	 lR
 l4       t
]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]RV 3R lR ll4       tRV 3R lR llt]V 3R lR l4       tRtV tR# )AppStackc                (    V..V n         / .V n        R # N)stackoverrides_stack)selfapps   &&X/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/cyclopts/app_stack.py__init__AppStack.__init__   s    (+ug
68T    Nc                x   < V ^8  d   QhRS[ R,          S[ S[,          ,          RS[S[S[3,          R,          /# )   appsr   	overridesN)r   strdictr   )format__classdict__s   "r   __annotate__AppStack.__annotate__   s;     C' C'Xe_x}< C'cSVhZ^I^ C'r   c              #  <	  "   V P                   T;'       g    / ,          pV P                  P                  T;'       g    / 4       V'       g"    R x  V P                  P                  4        R # \	        V^ ,          \
        4      '       dV   \        \        \
        ,          V4      pV P                  ^ ,          ^ ,          P                  VRR7      w  rEp\        V4      pM \        \        R,          \        V4      4      p?V'       g"    R x  V P                  P                  4        R # . pV Uu0 uF  p\        V4      kK  	  p	pV EFN  pVP                  f0   V'       d(   VR,          P                  e   VP                  4        K/  VP                  V4       VP                  P                  P                  VP                  4       4       VP                  P                  P                  T;'       g    / 4       Tp
V
P                  ;p
f   K  \        V
4      V	9   d   K$  VP                  4       pVP                  V
4       V
P                  P                  P                  V4       V
P                  P                  P                  T;'       g    / 4       K  	   R x  V F  pVP                  P                  P                  4        VP                  P                  P                  4        Tp
V
P                  ;p
f   K_  \        V
4      V	9   d   K$  V
P                  P                  P                  4        V
P                  P                  P                  4        Kn  	  V P                  P                  4        R #   T P                  P                  4        i ; i  T P                  P                  4        i ; iu upi   T F  pTP                  P                  P                  4        TP                  P                  P                  4        Tp
T
P                  ;p
f   K_  \        T
4      T	9   d   K$  T
P                  P                  P                  4        T
P                  P                  P                  4        Kn  	  T P                  P                  4        i ; i5i)NT)include_parent_metar   )r   r   appendpop
isinstancer    r	   r   r   parse_commandslistid_meta_parent	app_stackcopy_meta)r   r   r   str_apps_
apps_tupleresolved_appsso_farr   app_idsmeta_appmeta_subappss   &&&         r   __call__AppStack.__call__   sd     NNioo26	##IOO4+$$((* d1gs##HSM40H#zz!}Q/>>x]a>bA1'+J'7M ed4j9M+$$((*&34ms2c7m4 C'!8!8!DJJLMM#MM&&v{{}5MM))00bA H'~~-8:h<7*%{{}##H-""((//=""2299)//rJ+ !,	'$##'')--113#+>>1x>(|w. &&,,002&&66::< %   $$&s $$((*  $$((* 54 %##'')--113#+>>1x>(|w. &&,,002&&66::< %   $$&s   ;RRM; B6R
N "R0N9R"BR5RA?RRN>  ARA:R;NRN66R>AR A9RRc                    < V ^8  d   QhRS[ /# r   return)r!   )r"   r#   s   "r   r$   r%   ^   s      4 r   c                    / p\        V P                  4       F3  pVP                  4        F  w  r4Vf   K  VP                  W44       K  	  K5  	  V# r   )reversedr   items
setdefault)r   outoverrides_framekeyvalues   &    r   r   AppStack.overrides]   sJ    '(<(<=O-335
$NN3. 6  > 
r   c                    < V ^8  d   QhRS[ /# r>   r   )r"   r#   s   "r   r$   r%   g   s     	+ 	+9 	+r   c                `   . p\         P                  ! V P                  4       Fp  pVP                  '       d   K  TP	                  VP
                  P                   Uu. uF  q3P                  NK  	  up4       VP                  VP                  4       Kr  	  \        P                  ! V!  # u upi )zhdefault_parameter has special resolution since it needs to include the command groups in the derivation.)r   from_iterabler   r/   extendr0   command_groupsdefault_parameterr)   r   combine)r   cparams	child_appgroups   &   r   rN   AppStack.default_parameterf   s     ,,TZZ8I%%%NNATATAcAcdAc33AcdeNN9667	 9   '** es   B+
c                .   < V ^8  d   QhRS[ R,          /# )r   r?   r   r-   )r"   r#   s   "r   r$   r%   s   s      tE{ r   c                X    V P                   '       g   \        hV P                   R,          # )   r(   )r   
ValueError)r   s   &r   current_frameAppStack.current_framer   s    zzzzz"~r   c                &   < V ^8  d   QhRS[ RS[/# )r   	attributer?   )r    r   )r"   r#   s   "r   r$   r%   z   s    1111r   c                    R # r    )r   r\   s   &&r   resolveAppStack.resolvey   s    .1r   c                ,   < V ^8  d   QhRS[ RS[RS[/# )r   r\   overrider?   r    r   )r"   r#   s   "r   r$   r%   }   s    <<<<a<r   c                    R # r   r^   )r   r\   rb   s   &&&r   r_   r`   |   s    9<r   c                @   < V ^8  d   QhRS[ RS[R,          RS[RS[/# r   r\   rb   Nfallbackr?   rc   )r"   r#   s   "r   r$   r%      s!    PPPDPAP!Pr   c                    R # r   r^   r   r\   rb   rg   s   &&&&r   r_   r`      s    MPr   c                @   < V ^8  d   QhRS[ RS[R,          RS[RS[/# rf   rc   )r"   r#   s   "r   r$   r%      s"    ZZZDZaZTUZr   c                   R # r   r^   ri   s   &&&$r   r_   r`      s    WZr   c          	      \   < V ^8  d   QhRS[ RS[R,          RS[R,          RS[R,          /# rf   rc   )r"   r#   s   "r   r$   r%      s8       D 1t8 _`cg_g r   c                `   Ve   V# \        V P                  4       F  pW9   g   K  WA,          pVf   K  Vu # 	  \        \        \        P                  ! V P
                  4      4      4       F=  p\        Wa4      pVe   Vu # TpVP                  ;pf   K*  \        W4      pVf   K#  Vu # 	  V# )z,Resolve an attribute from the App hierarchy.)rA   r   r-   r   rK   r   getattrr/   )	r   r\   rb   rg   rE   rG   r   resultr9   s	   &&&&     r   r_   r`      s    O  ((<(<=O+'2$ L	  > D!4!4TZZ!@ABCS,F! H'4448A 5%!M C r   c                    < V ^8  d   QhRS[ /# r>   rU   )r"   r#   s   "r   r$   r%      s       r   c                  a V P                   R,          o V P                   R,          pVe'    \        V3R l\        V4       4       4      ^,          # . #   \         d    Rp L;i ; i  \         d    TP
                  p KY  i ; i)rW   Nc              3   D   <"   T F  q^ ,          SJ g   K  Vx  K  	  R# 5i)r   Nr^   ).0xcommand_apps   & r   	<genexpr>*AppStack.command_groups.<locals>.<genexpr>   s      c'K!QRtWbObAA'Ks    
 r(   )rY   
IndexErrornextr   StopIterationr/   )r   current_appru   s   & @r   rM   AppStack.command_groups   s    ((,	&*&8&8&<K %7c'>{'Kccdeff 	  	K	 ! 7)667s"   A $A( A%$A%(BB)r   r   r   )NN)__name__
__module____qualname____firstlineno__r   r   r;   propertyr   rN   rY   r
   r_   rM   __static_attributes____classdictcell__)r#   s   @r   r   r      s     : C' C' C'J   	+ 	+   1 1< <P PZZ Z 6  r   r   N)collections.abcr   
contextlibr   	itertoolsr   typingr   r   r   r	   r
   cyclopts.group_extractorsr   cyclopts.parameterr   cyclopts.corer   r   r   r^   r   r   <module>r      s7    $ %  > > = (! CL] ]r   