+
    Q(i                         ^ RI HtHt ^ RIHt ^ RIHt ^ RIHt ]'       d   ^ RI	H
t
 ] ! R R4      4       tR R	 ltRR
 R lltRR R lltR# )    )TYPE_CHECKINGAny)CommandSpec)Group)frozen)Appc                   0   a  ] tR t^t o RtV 3R ltRtV tR# )RegisteredCommandzA command with the names it was registered under.

Parameters
----------
names : tuple[str, ...]
    All names (including aliases) this command is registered under.
app : App | CommandSpec
    The command's App or unresolved CommandSpec instance.
c                D   < V ^8  d   Qh/ S[ S[R3,          ;R&   R;R&   # )   .nameszApp | CommandSpecapp)tuplestr)format__classdict__s   "_/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/cyclopts/group_extractors.py__annotate__RegisteredCommand.__annotate__   s'      c?  
      N)__name__
__module____qualname____firstlineno____doc____annotate_func____static_attributes____classdictcell__)r   s   @r   r
   r
      s       r   r
   c                    V ^8  d   QhR\         \        \        \         \        ,          3,          ,          R\        \        ,          R\        /# )r   group_mappinggroupelement)listr   r   r   r   )r   s   "r   r   r      s=     1 1eT#Y./01;1 1r   c                 6   \        V\        4      '       d   \        V4      pM\        V\        4      '       d   M\        hV  F@  pV^ ,          P                  VP                  8X  g   K'  V^,          P                  V4        R# 	  V P                  W.34       R# )r   N)
isinstancer   r   	TypeErrornameappend)r!   r"   r#   mappings   &&& r   _create_or_appendr+      sw     %e	E5	!	! 1:??ejj(AJg& !
 	eY/0r   c          
          V ^8  d   QhRRR\         R\        \        \        \        \        ,          3,          ,          /# )r   r   r   resolve_lazyreturn)boolr$   r   r   r
   )r   s   "r   r   r   0   s<     s s sd stE%QUVgQhJhDi?j sr   c                   \        V P                  \        4      '       d   Q hV P                  ;'       g    \        P                  ! 4       p/ p/ p/ p/ pV  F  pV P                  VRR7      p\        V\        4      '       dg   VP                  '       gU   V'       gM   VP                  '       g   KZ  \        V4      p	VP                  V	. 4      P                  V4       W9  d   WV	&   K  W,          p
\        V
4      pVP                  V. 4      P                  V4       W9  g   K  WV&   K  	  V. 3.pVP                  4        F  p
\        V
P                  \        4      '       g   Q hV
P                   F  p\        V\        4      '       g   K  V FN  pV^ ,          VJ d    K0  V^ ,          P                  VP                  8X  g   K7  \!        RVP                   R24      h	  VP                  V. 34       K  	  K  	  VP#                  4        F  w  r\        W;,          4      p\%        W4      pV
P                  '       dD   \        V
P                  \        4      '       g   Q hV
P                   F  p\'        WV4       K  	  Kv  \'        WV4       K  	  VP                  4        F  pVP                  f   K  \        VP                  \        4      '       d   VP                  MVP                  3pV F  p\        V\        4      '       g   K  V FN  pV^ ,          VJ d    K0  V^ ,          P                  VP                  8X  g   K7  \!        RVP                   R24      h	  VP                  V. 34       K  	  K  	  VP#                  4        F  w  r\        WY,          4      p\%        W4      pVP                  eQ   \        VP                  \        4      '       d   VP                  MVP                  3pV F  p\'        WV4       K  	  K  \'        WV4       K  	  V Uu. uF  pV^,          '       g   K  VNK  	  ppVP)                  R R7       V# u upi )a  Extract Group/App association from all commands of ``app``.

Parameters
----------
app : App
    The application to extract groups from.
resolve_lazy : bool
    If ``True``, resolve lazy commands (import their modules) to include them
    in the output. If ``False`` (default), skip unresolved lazy commands.
    Set to ``True`` when generating static artifacts that need all commands,
    such as shell completion scripts.

Returns
-------
list
    List of items where each item is a tuple containing:

    * :class:`.Group` - The group

    * ``list[RegisteredCommand]`` - List of RegisteredCommand tuples containing
      the registered names and app instance for each command.
T)recurse_metazCommand Group "z" already exists.c                 (    V ^ ,          P                   # )r   )r(   )xs   &r   <lambda>!groups_from_app.<locals>.<lambda>   s    QqTYYr   )key)r&   group_commandsr   r   create_default_commands	_get_itemr   is_resolvedshowid
setdefaultr)   valuesr"   r   r(   
ValueErroritemsr
   r+   sort)r   r-   r7   	app_namesunique_apps
lazy_namesunique_lazyr(   cmdcmd_idsubappapp_idr!   r"   r*   r   registered_commandgroupsr3   s   &&                 r   groups_from_apprL   0   s   . #,,c2222''JJ5+H+H+JN ')I"$K')J*,KmmDtm4c;'' xxxC%%fb188>,*-'FVR(//5$"(# ( 
BM
 $$&&,,....\\E%'',GqzU* EJJ6(?5::,FW)XYY	  - "((%5 " ' &++-i'(.u=<<<fllE2222!-8JK & m=OP . !!#99 ",SYY">">SYYSYYLFeU++#0"1:.!$QZ__

:",uzzlJ[-\"]]	 $1 &,,eR[9   $ #((*j().u:99 ",SYY">">SYYSYYLF!-8JK   m=OP + !.611QQM6 ./ 7s   Q3Qc          
      z    V ^8  d   QhRRR\         R\        \        R\        \        ,          3,          ,          /# )r   	input_appr   r-   r.   )r/   r$   r   r   )r   s   "r   r   r      s9      u D TRWX]_cdi_jXjRkMl r   c                 r   . p. p\        WR 7       Fb  w  rEV FW  pVP                  p\        V\        4      '       d   K'   VP	                  V4      pW(,          ^,          P                  V4       KY  	  Kd  	  V#   \
         d3    \        T4      pTP                  T. 34       TP                  T4        Ldi ; i))r-   )rL   r   r&   r   indexr?   lenr)   )	rN   r-   out	seen_appsr"   registered_commandsrJ   r   rP   s	   &&       r   inverse_groups_from_apprU      s    
CI&5i&[""5$((C#{++&!,
 JqM  ' #6 '\ J  &C

C9%  %&s    A99:B65B6N)F)typingr   r   cyclopts.command_specr   cyclopts.groupr   cyclopts.utilsr   cyclopts.corer   r
   r+   rL   rU   r   r   r   <module>r[      sF    % -   !!   1*sl r   