+
    j                    `   a  0 t $ ^ RIHt ^ RIt^ RIHt ]! R4      tR]R&   R
R R lltRR	.t	R# )    )annotationsN)Pathz/procr   	PROC_ROOTc               $    V ^8  d   QhRRRRRR/# )   account_homer   	proc_rootzPath | Nonereturnbool )formats   "Q/home/user/overdeck-private-tests/subrouter-s5-systray/claude_account_activity.py__annotate__r   	   s"     ! !4 !K !SW !    c                   Vf   \         MTp \        \        P                  P	                  V 4      4      p \        P                  ! T4      pT F  pTP                  4       '       g   K   Y%,          R,          P                  4       pTP                  R4       F  pTP                  R4      '       g   K  TP                  R^4      ^,          P                  RRR7      pT'       g   KP   \        \        P                  P	                  T4      4      T8X  d     R# K  	  K  	  R	#   \
         d     R# i ; i  \
         d     R# i ; i  \
         d     EK	  i ; i  \
         d       R# i ; i)
a$  Whether any running process was launched against this account's config dir.

A live Claude CLI session holds the account's refresh grant in memory and rotates
it itself; rotating the on-disk grant underneath it revokes the whole chain.
Fail-closed: an unreadable process table counts as live.Tenviron    s   CLAUDE_CONFIG_DIR=   =zutf-8surrogateescape)errorsF)r   r   ospathrealpathOSErrorlistdirisdigit
read_bytessplit
startswithdecode)	r   r	   roottargetentriesentryr   itemvalues	   &&       r   account_has_live_sessionr'   	   sD    ")9yDbgg&&|45**T" }}	|i/;;=G MM'*D??#899JJtQ'*11'BS1TE((/0F: ; + $ 1      		  sF   (D% D7 +E	*-E%D43D47EE	EEE-,E-r'   )N)
__conditional_annotations__
__future__r   r   pathlibr   r   __annotations__r'   __all__)r(   s   @r   <module>r-      s3    " " 	 w-	4 !H 2
3r   