+
    Q(iA                     X   ^ RI t ^ RIt^ RIHtHt ^ RIHt ^ RIHt ^ RI	H
t
HtHtHtHtHt ^ RIHtHt ^ RIt^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHtHt ]
'       d   ^ RIH t  ^ RI!H"t"H#t# ^ RI$H%t% . R0Ot&R t' ! R R](4      t) ! R R](4      t*] ! R  R](4      4       t+]! R!R"7       ! R# R]+4      4       t,]! R!R"7       ! R$ R]+4      4       t-]! R!R"7       ! R% R]+4      4       t.]! R!R"7       ! R& R]+4      4       t/ ! R' R]+4      t0]! R!R"7       ! R( R]+4      4       t1]! R!R"7       ! R) R]+4      4       t2]! R!R"7       ! R* R]24      4       t3]! R!R"7       ! R+ R]+4      4       t4]! R!R"7       ! R, R]+4      4       t5]! R!R"7       ! R- R.]+4      4       t6]! R!R"7       ! R/ R]+4      4       t7R# )1    N)CallableSequence)Enum)chain)TYPE_CHECKINGAnyLiteralOptionalget_args
get_origin)definefield)get_hint_name)CommandSpec)GroupToken)is_option_likejson_decode_error_verbosifier)Console)ArgumentArgumentCollection)AppCoercionErrorCommandCollisionErrorCycloptsErrorDocstringErrorUnknownCommandErrorMissingArgumentErrorConsumeMultipleErrorMixedArgumentErrorRepeatArgumentErrorRequiresEqualsErrorUnknownOptionErrorUnusedCliTokensErrorValidationErrorCombinedShortOptionErrorc                 h    \         P                  ! V 4      \         P                  ! V 4      ^,          3# )   )inspectgetsourcefilegetsourcelines)funcs   &Y/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/cyclopts/exceptions.py_get_function_infor/   *   s(      &(>(>t(DQ(GGG    c                       ] tR t^.tRtRtR# )r   zDA command with the same name has already been registered to the app. N__name__
__module____qualname____firstlineno____doc____static_attributes__r2   r0   r.   r   r   .   s    Nr0   c                       ] tR t^5tRtRtR# )r   zVThe docstring either has a syntax error, or inconsistency with the function signature.r2   Nr3   r2   r0   r.   r   r   5   s    `r0   c                   |   a  ] tR t^9t o RtRt Rt Rt Rt Rt	 Rt
 Rt Rt ]! RRR7      t R tV 3R ltRtV tR# )r   zzRoot exception for runtime errors.

As CycloptsErrors bubble up the Cyclopts call-stack, more information is added to it.
NT)defaultkw_onlyc                X   V P                   e   V P                   # . pV P                  '       d   VP                  \        V 4      P                  4       V P
                  '       dx   \        V P
                  4      w  r#VP                  RV RV R24       VP                  RV P
                  P                   \        P                  ! V P
                  4       24       V P                  e   VP                  RV P                   24       M V'       d   RP                  V4      R,           # R# )NzFunction defined in file "z", line :z    zRoot Input Tokens: 
 )msgverboseappendtyper4   targetr/   r*   	signatureroot_input_tokensjoin)selfstringsfilelinenos   &   r.   __str__CycloptsError.__str__l   s    8888O<<<NN4:../{{{1$++>!;D6&QRSTdkk&:&:%;G<M<Mdkk<Z;[\]%%1!4T5K5K4LMN99W%,,r0   c                &  < V ^8  d   Qh/ S[ R,          ;R&   S[;R&   S[S[ ,          R,          ;R&   S[S[ ,          R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[S[ ,          R,          ;R	&   S[R
,          ;R&   S[R,          ;R&   # )   NrB   rC   rH   unused_tokensrF   r   argumentcommand_chainr   appr   console)strboollistr   r
   r   )format__classdict__s   "r.   __annotate__CycloptsError.__annotate__9   s      
t   $ Cy4'.% . 9t#*/ 8 tO"9 B z")C L C=4'.M V 
%W ` i Da r0   r2   )r4   r5   r6   r7   r8   rB   rC   rH   rR   rF   rS   rT   rU   r   rV   rN   __annotate_func__r9   __classdictcell__r[   s   @r.   r   r   9   s     
 C G
 +/ '+M #F &*H +/M  C $)t#DGCg  r0   T)r=   c                       ] tR t^tRtRtR# )r'   z?Cannot combine short, token-consuming options with short flags.r2   Nr3   r2   r0   r.   r'   r'      s    Ir0   c                   |   a a ] tR t^t oRtRt Rt ]P                  P                  t
 V 3R ltV3R ltRtVtV ;t# )r&   z'Validator function raised an exception.rA   Nc                  < R pV P                   '       d   V P                  \        P                  P                  J d   V P                   P                  MV P                  p V P                   P
                  ^ ,          pVP                  '       d   VP                  R8X  d   R MRVP                   R2pVP                  '       d   VP                  M2V P                   P                  P                  R4      P                  4       pRV RV RV R2pMzV P                  '       d8   V P                  P                  '       d   RV P                  P                   R	2pM1V P                  '       d   R
V P                  R,          : R2pM\        h\        SV `A  4        V 2pV P"                  '       d&   V'       d   V RV P"                   2# V P"                  # V#   \         d     LXi ; i)rA   cliz provided by ""-zInvalid value "z" for ".zInvalid values for group "".zInvalid values for command  )rS   valuecycloptsutilsUNSETtokenssourcekeywordnamelstripupper
IndexErrorgrouprT   NotImplementedErrorsuperrN   exception_message)rJ   messagerk   tokenprovided_byrr   cyclopts_message	__class__s   &      r.   rN   ValidationError.__str__   s   ===+/::9M9M+MDMM''SWS]S]EP,,Q/ ).8MbUcdidpdpcqqrSs(-u}}4==;M;M;T;TUX;Y;_;_;a+E7'$qQOZZZzz6tzz6GrJ3D4F4Fr4J3MQOG%%#go/0	:!!!*+1T-C-C,DEE---##+  s   !G G$#G$c                L   < V ^8  d   Qh/ S[ ;R&   S[R,          ;R&   S[;R&   # )rQ   ry   Nrv   rk   )rW   r   r   )rZ   r[   s   "r.   r\   ValidationError.__annotate__   s0      	  4<  % r0   r2   )r4   r5   r6   r7   r8   ry   rv   rl   rm   rn   rk   rN   r^   r9   r_   __classcell__r~   r[   s   @@r.   r&   r&      s7     17E4%%E1$  r0   c                   F   a a ] tR t^t oRt  V 3R ltV3R ltRtVtV ;t	# )r$   zjUnknown/unregistered option provided by the cli.

A nearest-neighbor parameter suggestion may be printed.
c                T  < V P                   P                  ;'       g    V P                   P                  pV P                   P                  R 8X  d   RV R2pMRV RV P                   P                   R2pV P                   P                  ;'       g    V P                   P                  ;p'       de   ^ RIp\        \        P                  ! R V P                   4       4      4      pVP                  W5^RR7      pV'       d   VRV^ ,           R	2,          p\        SV `-  4       V,           # )
rd   zUnknown option: "rh   z" from "Nc              3   `   "   T F$  qP                   '       g   K  VP                  x  K&  	  R # 5iN)parsenames.0xs   & r.   	<genexpr>-UnknownOptionError.__str__.<locals>.<genexpr>   s     1gC[a_f_f'!''C[   ..333333?ncutoff Did you mean ""?)r{   rq   rk   rp   difflibrY   r   from_iterableargument_collectionget_close_matchesrx   rN   )rJ   rk   responserq   r   
candidatesclose_matchesr~   s   &      r.   rN   UnknownOptionError.__str__   s    

""66djj&6&6::%*5'4H*5'$**:K:K9LBOHjj((<<DJJ,<,<<7<e111g4C[C[1gghJ#55gQWZ5[MomA.>-?rBBw 8++r0   c                0   < V ^8  d   Qh/ S[ ;R&   R;R&   # )rQ   r{   r   r   r   )rZ   r[   s   "r.   r\   UnknownOptionError.__annotate__   s      L  .- r0   r2   
r4   r5   r6   r7   r8   rN   r^   r9   r_   r   r   s   @@r.   r$   r$      s       . 4,  r0   c                   N   a a ] tR t^t oRtRt Rt V 3R ltV3R ltRt	Vt
V ;t# )r   z6There was an error performing automatic type coercion.Nc           
     @  <a V P                   e]   V P                  '       d   V P                  P                  f   V P                   # RV P                  P                   RV P                    2# \        V P                  \
        P                  4      '       d^   \        V P                  4      pV P                  '       d   V P                  P                  f   V# RV P                  P                   RV 2# V P                  f   Q hV P                  f   Q h\        SV `-  4       p\        V P                  4      \        J d@   RRP                  R \        V P                  4       4       4      ,           R,           pRV 2pM\        V P                  \         4      '       d   \#        V P                  \$        4      '       dd   V P                  P&                  P(                  oRRP                  V3R lV P                  P*                   4       4      ,           R,           pRV 2pM\-        V P                  4      pV P                  '       g'   VR	V P                  P.                   R
V R2,          pV# V P                  P                  f   V P                  P.                  P1                  R4      P3                  4       pV P                  P4                  R8X  g   V P                  P4                  R8X  d*   VR	V RV P                  P6                   RV R2,          pV# VR	V RV P                  P4                   RV P                  P6                   RV R2	,          p V# V P                  P4                  R8X  g   V P                  P4                  R8X  d>   VR	V P                  P                   RV P                  P6                   RV R2,          pV# VR	V P                  P                   RV P                  P4                   RV P                  P6                   RV R2	,          pV# )NzInvalid value for z: {, c              3   8   "   T F  p\        V4      x  K  	  R # 5ir   reprr   s   & r.   r   (CoercionError.__str__.<locals>.<genexpr>   s     %R7Q!d1gg7Qs   }zone of c              3   F   <"   T F  p\        S! V4      4      x  K  	  R # 5ir   r   )r   r   nts   & r.   r   r      s     %X;Wad2a5kk;Ws   !zInvalid value for "z": unable to convert value to rg   rf   rA   rd   z": unable to convert "z" into z" from z: unable to convert ")rB   r{   rq   
isinstance	__cause__jsonJSONDecodeErrorr   rS   target_typerx   rN   r   r	   rI   r   rE   
issubclassr   	parametername_transform__members__r   rr   rs   rt   rp   rk   )rJ   rB   choicestarget_type_namepositional_namer   r~   s   &    @r.   rN   CoercionError.__str__   s   88:::!3!3!;xx+DJJ,>,>+?r$((LL $..$*>*>??3DNNCzzzTZZ%7%7%?J/

0B0B/C2cUKK}}(((+++god&&'72DII%Rx@P@P7Q%RRRUXXG!(	2(($//Jt?O?OQU4V4V((77BDII%X4;K;K;W;W%XXX[^^G!(	2,T-=-=>zzz(););(<<Z[kZllmnnC 
 ZZ'"mm0077<BBDOzz  B&$***;*;u*D,_,==STXT^T^TdTdSeelm}l~~  A  A 
 ,_,=WTZZEVEVDWWlmqmwmwm}m}l~  F  GW  FX  XY  Z  Z 
 zz  B&$***;*;u*D,TZZ-?-?,@@VW[WaWaWgWgVhho  qA  pB  BC  D  D 
 ,TZZ-?-?,@

HYHYGZZoptpzpz  qA  qA  pB  BI  JZ  I[  [\  ]  ]
r0   c                N   < V ^8  d   Qh/ S[ R,          ;R&   S[R,          ;R&   # )rQ   r   r{   Nr   )r
   rE   )rZ   r[   s   "r.   r\   CoercionError.__annotate__   s(      G#	  # r0   r2   )r4   r5   r6   r7   r8   r{   r   rN   r^   r9   r_   r   r   s   @@r.   r   r      s*     @#E  $K,  r0   c                   6   a a ] tR tRt oRtV 3R ltRtVtV ;t# )r   i  z4CLI token combination did not yield a valid command.c                "  < V P                   '       g   Q hV P                   ^ ,          pRV R2pV P                  '       Ed   V P                  P                  '       Ed   ^ RIp. pV P                  P                  P	                  4        F  w  rVWPP                  P
                  9   g   WPP                  P                  9   d   K;  \        V\        4      '       d   VP                  V P                  4      MTp\        V\        V P                  4      4      '       g   K  VP                  '       g   K  VP                  V4       K  	  VP                  VV^RR7      pV'       d   VRV^ ,           R2,          p^p	V Uu. uF  qUP                  R4      '       d   K  VNK  	  p
pV
'       dM   \        V
4      V	8  d!   VR	R
P!                  V
RV	 4       R2,          pMVR	R
P!                  V
4       R2,          p\"        SV `I  4       V,           # u upi )r   zUnknown command "rh   Nr   r   r   r   rf   z Available commands: r   z, ...rg   )rR   rU   	_commandsr   items_help_flags_version_flagsr   r   resolverE   showrD   r   
startswithlenrI   rx   rN   )rJ   r{   r   r   visible_commandsrr   app_or_specsubappr   max_commandsavailable_commandsr~   s   &          r.   rN   UnknownCommandError.__str__  s   !!!!!""1%&ugR0888***  "%)XX%7%7%=%=%?!88///488;R;R3R ;E[R]:^:^,,TXX6do!&$txx.99;;;$++D1 &@ $55 	 6 M omA.>-?rBB L3C!`3C4??[^K_$$3C!`!)*\9"7		BTUbVbBc8d7eej kkH"7		BT8U7VVW XXHw 8++ "as   >HHr2   	r4   r5   r6   r7   r8   rN   r9   r_   r   r   s   @@r.   r   r     s     >*, *,r0   c                   6   a a ] tR tRt oRtV 3R ltRtVtV ;t# )r%   i?  z)Not all CLI tokens were used as expected.c                j   < V P                   f   Q h\        SV `	  4       RV P                    R2,           # )NzUnused Tokens: rg   )rR   rx   rN   rJ   r~   s   &r.   rN   UnusedCliTokensError.__str__C  s7    !!---w _T5G5G4H#JJJr0   r2   r   r   s   @@r.   r%   r%   ?  s     3K Kr0   c                   \   a a ] tR tRt oRt]! ]R7      t Rt V 3R lt	V3R lt
RtVtV ;t# )r   iH  z%A required argument was not provided.)factoryNc           
       < V P                   f   Q h. pV P                   P                  4       w  r#V^ 8X  d   RpRpM>V^8X  d   RpRpM2RV R2p\        V P                  4      V,          pV'       d   RV R2MRpRpV P                  '       d   V P                   P
                  P                  '       d   ^ R IpV P                   U	u. uF  p	\        V	4      '       g   K  V	NK  	  p
p	VP                  V P                   P                  V
^RR	7      pV'       dG   V^ ,          V P                   P                  9  d%   R
V P                   P                   RV^ ,           R2pV P                   P                  pV P                  e   V P                  pM^V P                   P                  '       dC   \        V P                   P                  4       F  pVP                  f   K  VP                  p M	  V P                  '       d8   VP!                  RRP#                  V P                  4       RV RV RV 24       MVP!                  RV RV RV 24       V'       d   VP!                  V4       V P$                  '       d    VP!                  RV P                   R24       \&        SV `Q  4       RP#                  V4      ,           # u up	i )Nzflag requiredrA   zrequires an argumentz	requires z positional argumentsz
 Only got rg   r   r   zDid you mean "z" instead of "r   	Command "ri   " parameter "" Parameter "z	 Parsed: )rS   token_countr   tokens_so_farrR   
field_info
is_keywordr   r   r   rr   r   rq   ro   reversedrT   rD   rI   rC   rx   rN   )rJ   rK   count_required_stringonly_got_stringreceived_countclose_match_stringr   r   r   r   
param_namer{   r~   s   &             r.   rN   MissingArgumentError.__str__R  sb   }}(((==,,.A:-O OaZ4O O )%0EFO !3!34u<N@N
>*:!<TVO$--":":"E"E"E%)%7%7M%7>!;L!!%7JM#55dmm6H6H*XYbe5fMq!19L9L!L'5dmm6H6H5IXefgXhWiik%l"]]''
<<#J]]!!!!$--"6"67==,!&J 8
 NNCHHT%7%789zlRTUdTeefgvfwx NN[B6GqHYZ[NN-.<<<NNYt'9'9&:!<=w 388G#4449 Ns   J=J=c                P   < V ^8  d   Qh/ S[ S[,          ;R&   S[R,          ;R&   # )rQ   r   Nrq   )rY   rW   )rZ   r[   s   "r.   r\   !MissingArgumentError.__annotate__H  s'      92	  4Z r0   r2   )r4   r5   r6   r7   r8   r   rY   r   rq   rN   r^   r9   r_   r   r   s   @@r.   r   r   H  s)     /$T2MfGa/5  r0   c                   B   a  ] tR tRt o Rt^ tRt^ tR tV 3R lt	Rt
V tR# )r    i  zHThe number of values provided doesn't meet consume_multiple constraints.Nc           	        V P                   f   Q hV P                  ;'       g    V P                   P                  pV P                  V P                  8  d   RV P                   2pMRV P
                   2pV P                  '       d4   RRP                  V P                  4       RV RV RV P                   R2	pMR	V RV RV P                   R2p\        P                  V 4      V,           # )
Nzrequires at least zaccepts at most r   ri   r   r   z elements. Got rg   r   )
rS   rq   rr   actual_countmin_requiredmax_allowedrT   rI   r   rN   )rJ   r   
constraintbases   &   r.   rN   ConsumeMultipleError.__str__  s    }}(((\\77T]]%7%7
t000-d.?.?-@AJ+D,<,<+=>Jsxx(:(:;<M*UWXbWccrsw  tE  tE  sF  FG  HD Bzl/$J[J[I\\]^D$$T*T11r0   c                L   < V ^8  d   Qh/ S[ ;R&   S[ R,          ;R&   S[ ;R&   # )rQ   r   Nr   r   )int)rZ   r[   s   "r.   r\   !ConsumeMultipleError.__annotate__  s0      	 
 t"   r0   r2   )r4   r5   r6   r7   r8   r   r   r   rN   r^   r9   r_   r`   s   @r.   r    r      s#     RL"KL2  r0   c                   H   a a ] tR tRt oRtRt V 3R ltV3R ltRtVt	V ;t
# )r#   i  zJA long option requires ``=`` to assign a value (e.g., ``--option=value``).Nc                   < V P                   f   Q hV P                  ;'       g    V P                   P                  p\        SV `  4       RV RV R2,           # )Nr   z+" requires a value assigned with "=". Use "z=VALUE".)rS   rq   rr   rx   rN   )rJ   r   r~   s   & r.   rN   RequiresEqualsError.__str__  sY    }}(((\\77T]]%7%7
GOJ<'RS]R^^fgh	
r0   c                4   < V ^8  d   Qh/ S[ R,          ;R&   # )rQ   Nrq   )rW   )rZ   r[   s   "r.   r\    RequiresEqualsError.__annotate__  s      4Z	 r0   r2   )r4   r5   r6   r7   r8   rq   rN   r^   r9   r_   r   r   s   @@r.   r#   r#     s     TG5
  r0   c                   D   a a ] tR tRt oRt V 3R ltV3R ltRtVtV ;t	# )r"   i  zAThe same parameter has erroneously been specified multiple times.c                ^   < \         SV `  4       R V P                  P                   R2,           # )z
Parameter z specified multiple times.)rx   rN   r{   rq   r   s   &r.   rN   RepeatArgumentError.__str__  s*    w Z

0B0B/CC]#^^^r0   c                $   < V ^8  d   Qh/ R;R&   # )rQ   r   r{   r2   )rZ   r[   s   "r.   r\    RepeatArgumentError.__annotate__  s      N	 r0   r2   r   r   s   @@r.   r"   r"     s     K _  r0   c                   B   a a ] tR tRt oRtV 3R ltV3R ltRtVtV ;t	# )ArgumentOrderErrori  z|Cannot supply a POSITIONAL_OR_KEYWORD argument with a keyword, and then a later POSITIONAL_OR_KEYWORD argument positionally.c                T  < V P                   f   Q h\        V P                  4      ^8  p\        R V P                   P                   4       V P                   P
                  4      P                  R4      pV P                   Uu. uF  q3P                  ^ ,          P                  NK!  	  pp\        V4      ^8X  d
   V^ ,          p\        SV `%  4       RV P                  : RV: RV'       d   RMR RV: R	V: R
V P                  : RV P                   P
                  : R2,           # u upi )Nc              3   `   "   T F$  qP                   '       g   K  VP                   x  K&  	  R # 5ir   rq   r   s   & r.   r   -ArgumentOrderError.__str__.<locals>.<genexpr>       R0D1		YQYY0Dr   rf   zCannot specify token z positionally for parameter z$ due to previously specified keywordsrA   ri   z. z( must either be passed positionally, or z  must be passed as a keyword to rg   )rS   r   9prior_positional_or_keyword_supplied_as_keyword_argumentsnextro   rr   rs   rq   rx   rN   r{   )rJ   pluraldisplay_namer   prior_display_namesr~   s   &    r.   rN   ArgumentOrderError.__str__  s   }}(((TSSTWXXR0D0DRTXTaTaTfTfgnnors)-)g)g
)gAHHQK)g 	 
 "#q("5a"8 GO%djj^3OP\O_  `D  LR  EH  XZ  D[  [\  ]p  \s  su  vI  uL  Lt  uy  u  u  tB  Bb  cg  cp  cp  cu  cu  bx  xy  zz	

s   %D%c                @   < V ^8  d   Qh/ S[ ;R&   S[R,          ;R&   # )rQ   r{   r   r  )rW   rY   )rZ   r[   s   "r.   r\   ArgumentOrderError.__annotate__  s%      J	 
 @DJ?OO r0   r2   r   r   s   @@r.   r   r     s      G

  r0   r   c                   6   a a ] tR tRt oRtV 3R ltRtVtV ;t# )r!   i  z=Cannot supply keywords and non-keywords to the same argument.c                   < V P                   f   Q h\        R V P                   P                   4       V P                   P                  4      p\        SV `  4       RV R2,           # )Nc              3   `   "   T F$  qP                   '       g   K  VP                   x  K&  	  R # 5ir   r   r   s   & r.   r   -MixedArgumentError.__str__.<locals>.<genexpr>  r  r   z2Cannot supply keyword & non-keyword arguments to "rh   )rS   r  ro   rr   rx   rN   )rJ   r  r~   s   & r.   rN   MixedArgumentError.__str__  s[    }}(((R0D0DRTXTaTaTfTfgw %WXdWeeg#hhhr0   r2   r   r   s   @@r.   r!   r!     s     Gi ir0   )r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   )8r*   r   collections.abcr   r   enumr   	itertoolsr   typingr   r   r	   r
   r   r   attrsr   r   cyclopts.utilsrl   cyclopts.annotationsr   cyclopts.command_specr   cyclopts.groupr   cyclopts.tokenr   r   r   rich.consoler   cyclopts.argumentr   r   cyclopts.corer   __all__r/   	Exceptionr   r   r   r'   r&   r$   r   r   r%   r   r    r#   r"   r   r!   r2   r0   r.   <module>r     s      .   N N   . -     H$>!$HOI OaY a EI E EP J} J J '$m '$ '$T , , ,> 9M 9 9x-,- -,` K= K K 85= 85 85v 2/ 2 20 
- 
 
 _- _ _ 
 
 
, i i ir0   