+
    gj<                        ^ RI Ht  ^ RIt^ RIt^ RIt^ RIt^ RItR R ltR R ltR
R R llt	]
R	8X  d   ]! ]	! 4       4      hR# )    )annotationsNc                    V ^8  d   QhRRRR/# )   
stdin_textstrreturnNone )formats   "C/Users/jameslopez/projects/CodexBar-ESP32/companion/codex_notify.py__annotate__r      s      c d     c                    V P                  4       '       d   \        P                  ! V 4      M/ p\        V\        4      '       g   / pTP                  RR4       TP                  R\        P                  ! 4       4       \        P                  ! \        P                  ! RT4      \        P                  P                  R\        P                  4      P                  4       ;'       g    \        P                  4       R#   \        P
                   d.    T P                  4       '       d   R T P                  4       /M/ p Li ; i)messageeventNotificationcwdCodexCODEXBAR_ATTENTION_URLN)stripjsonloads
isinstancedictJSONDecodeError
setdefaultosgetcwdattention_hookpost_attentionbuild_attention_payloadenvirongetDEFAULT_URL)r   payloads   & r   _post_codex_attentionr&      s    P,6,<,<,>,>$**Z(B'4((G w/ubiik*!!..w@


/1K1KLRRT 	& 	&%%  P5?5E5E5G5G9j..01RPs   C? 0C? ?*E*E Ec               $    V ^8  d   QhRRRRRR/# )r   argsz	list[str]r   r   r   intr
   )r   s   "r   r   r   $   s!      )   r   c                    V '       g   ^ #  \         P                  ! WR^
RR7      pVP                  #   \         d*   p\	        RT 2\
        P                  R7        Rp?^ # Rp?ii ; i)r   TF)inputtexttimeoutcheckz%[CodexBar notify] downstream failed: fileN)
subprocessrun
returncode	Exceptionprintsysstderr)r(   r   	completedexcs   &&  r   _run_downstreamr:   $   sW    NN4bX]^	### 5cU;#**Ms   %2 A&A!!A&c                    V ^8  d   QhRRRR/# )r   argvzlist[str] | Noner   r)   r
   )r   s   "r   r   r   /   s     - - -3 -r   c                b   \        V f   \        P                  R,          MT 4      pV'       d   V^ ,          R8X  d
   VR,          p\        P                  P	                  4       p \        V4       \        W4      #   \         d)   p\        RT 2\        P                  R7        R p?L9R p?ii ; i)N:   NNz--z)[CodexBar notify] attention post failed: r/   )
listr6   r<   stdinreadr&   r4   r5   r7   r:   )r<   r(   r   r9   s   &   r   mainrB   /   s    $7DQ4Bx!JRj) 4,,  R9#?cjjQQRs   %A; ;B.B))B.__main__)N)
__future__r   r   r   r1   r6   r   r&   r:   rB   __name__
SystemExitr
   r   r   <module>rG      sI    "  	  
 "- z
TV
 r   