+
    5mj  c                     ^ RI Ht ^ RIt^ RIHu Ht ^ RIt^ RI	t	^ RI
t
^ RIt^ RIt^ RIHt ^ RIt]P                   P#                  ^ ]! ]! ]4      P)                  4       P*                  ^,          4      4       ^ RItRtR R lt]P2                  P5                  R]4      R R l4       tR	 R
 lt]P2                  P5                  RR4      R R l4       tR# )    )annotationsN)Pathc          
     ,    V ^8  d   QhRRRRRRRRRR/# )	   homer   rules_filenamestrhealth_filenamedefault_slugreturnNone )formats   "^/home/user/overdeck-private-tests/workstation-ai-broad/modules/systray/tests/test_cli_smoke.py__annotate__r   #   s<      
  	
  
    c                  V R ,          pVP                  RRR7       WA,          P                  \        P                  ! R/ RVR. RRR^d/4      R	R
7       WB,          P                  RR	R
7       V R,          R,          R,          pVP                  P                  RRR7       VP                  RR	R
7       VP                  R4       R# )z%.local/state/overdeck/systray/runtimeT)parentsexist_okprojectsdefaultfallback_chainfallback_triggerbroken_or_quota_exhaustedquota_exhausted_threshold_pctutf-8encodingz{}z.claudebinzlocal-dispatch-guardz#!/usr/bin/bash
exit 0
i  N)mkdir
write_textjsondumpsparentchmod)r   r   r	   r
   tray_dirguards   &$$$  r   _write_empty_account_setupr'   #   s     ==HNN4$N/**

B< ""$?/	
  +  ++D7+C9u$'==E	LLtd3	07C	KKr   zAscript_name,rules_filename,health_filename,tool_name,default_slugc               4    V ^8  d   QhRRRRRRRRRRRRR	R
/# )r   tmp_pathr   script_namer   r   r	   	tool_namer
   r   r   r   )r   s   "r   r   r   C   sN     1 111 1 	1
 1 1 
1r   c                   \        \        4      P                  4       P                  ^,          pV R,          p\        P                  ! VV R,          V R,          R7       Wq,          pVP
                  q! 4       q'       g   RRR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR	\        P                  ! V	4      R
\        P                  ! V
4      /,          p\        \        P                  ! V4      4      hR;rVP                  q! 4       qV,          qV8H  q'       Egc   \        P                  ! R"V3R#W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR	\        P                  ! V	4      R
\        P                  ! V
4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRRR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR/,          pRRV/,          p\        \        P                  ! V4      4      hR;p	;p
;rV R,          p\        VVVVR7       \        P                   P#                  4       p\%        V4      VR&   VP'                  R4      '       g   \%        V4      M0\        P(                  P+                  \%        V4      VR,          34      VR&   \,        P.                  ! \%        V4      R.VVRRRR7      pVP0                  p	^pV	V8H  q'       g   \        P                  ! R"V
3R$V	V34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR	\        P                  ! V	4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p	;p
pVP2                  p	RpV	V8H  q'       g   \        P                  ! R"V
3R%V	V34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR	\        P                  ! V	4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p	;p
pVP4                  qP6                  q! 4       qP8                  pV RV R2pV! V4      pV'       g   RRR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR	\        P                  ! V	4      R
\        P                  ! V
4      R\        P                  ! V4      R \        P                  ! V4      R\        P                  ! V4      R!\        P                  ! V4      /,          p\        \        P                  ! V4      4      hR;p	;p
;p;p;ppR# )&   r   applicationsicons)dest_bin	dest_apps
dest_icons zEassert %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.is_symlink
}()
}py0
entrypointpy2py4Npy6	repo_rootpy7r*   zassert %(py10)spy10r   )r   r	   r
   HOME
PYTHONPATHstatusTF)cwdenvcapture_outputtextcheckresultpy5zassert %(py7)sz : no healthy account available: z=unknown-accountzassert %(py12)s
{%(py12)s = %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.stderr
}.strip
}()
}.startswith
}(%(py10)s)
}py8py12==)zR%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.resolve
}()
} == (%(py6)s / %(py7)s))z2%(py2)s
{%(py2)s = %(py0)s.returncode
} == %(py5)s)z.%(py2)s
{%(py2)s = %(py0)s.stdout
} == %(py5)s)r   __file__resolver   install
is_symlink@py_builtinslocals
@pytest_ar_should_repr_global_name	_safereprAssertionError_format_explanation_call_reprcomparer'   osenvironcopyr   getpathsepjoin
subprocessrun
returncodestdoutstderrstrip
startswith)r)   r*   r   r	   r+   r
   r9   r0   r5   @py_assert1@py_assert3@py_format5@py_assert8@py_assert5@py_format9@py_format11r   r@   rD   @py_assert4@py_format6@py_format8@py_assert7@py_assert9@py_assert11@py_format13s   &&&&&&                    r   5test_installed_wrapper_exits_cleanly_without_accountsrq   ?   sX    X&&(003I%HOO^+g% 'J  " """"""""":"""":""" """"""""""::{#::#::::::::::::::::::::::::::::::9::::9:::::::{::::{::::::::fD%'!	 **//
Cd)CK ww|$$ 	IZZ__c)nc,.?@A  ^^	Z(#F !!!!!!!!!!!!!6!!!!6!!!!!!!!!!!!!!==B=B=B66=B==    ++ +5l^CST+T      6   6   =          +   T          r   c                    V ^8  d   QhRRRR/# )r   sourcer   r   zlist[ast.stmt]r   )r   s   "r   r   r   w   s      S ^ r   c                    \         P                  ! V 4      P                   FX  p\        V\         P                  4      '       g   K%  \         P
                  ! VP                  4      R 8X  g   KL  VP                  u # 	  . # )z__name__ == '__main__')astparsebody
isinstanceIfunparsetest)rs   nodes   & r   _main_guard_bodyr}   w   sR    		&!&&dCFF##DII(>BZ(Z99 ' Ir   r*   c                    V ^8  d   QhRRRR/# )r   r*   r   r   r   r   )r   s   "r   r   r      s     K K# K$ Kr   c                J   \        \        4      P                  4       P                  ^,          V ,          P	                  RR7      p\
        P                  ! \
        P                  ! \        V4      . R7      4       Uu. uFX  p\        V\
        P                  4      '       g   K%  R\
        P                  ! V4      9   g   KB  \
        P                  ! V4      NKZ  	  ppR.qCV8H  qU'       g   \        P                  ! RV3RW434      RR\        P                  ! 4       9   g   \        P                   ! V4      '       d   \        P"                  ! V4      MRR\        P"                  ! V4      /,          pR	R
V/,          p\%        \        P&                  ! V4      4      hR;rTR# u upi )u   stall-guard notifications are opt-in; only a CLI a developer launched may opt in.

Any other importer of stall_supervisor — test suites, gates, worktrees — stays silent.
r   r   )rw   type_ignoresSTALL_GUARD_NOTIFYz0os.environ.setdefault('STALL_GUARD_NOTIFY', '1')r4   opt_inspy3zassert %(py5)srE   NrH   )z%(py0)s == %(py3)s)r   rJ   rK   r   	read_textru   walkModuler}   rx   Callrz   rP   rU   rN   rO   rQ   rR   rS   rT   )r*   rs   r|   r   @py_assert2rc   @py_format4rk   s   &       r   0test_entry_point_opts_into_desktop_notificationsr   ~   s    8n$$&..q1K?JJT[J\F HHSZZ-=f-ETVWXXDdCHH% 	*>#++dBS*S 	DX  
 JJJJJJJJJ7JJJJJJ7JJJJ7JJJJJJJJJJJJs   ="F $F F ))cdx.pyzrouting_rules.jsonzhealth_cache.jsoncdxrafa)cld.pyzclaude_routing_rules.jsonzclaude_health_cache.jsoncldavi)r   r   z
claudex.py)
__future__r   builtinsrN   _pytest.assertion.rewrite	assertionrewriterP   ru   r!   rV   r\   syspathlibr   pytestpathinsertr   rJ   rK   r   rL   WRAPPER_CASESr'   markparametrizerq   r}   r   r   r   r   <module>r      s    "   
  	  
   3tH~--/77:; < $8 G1	1h (JKK LKr   