+
    ÆÚju  ã                  ó‚   € R t ^ RIHt ^ RIt^ RIt^ RIHt ^RIHt ^RI	H
t
 RtRtR R	 ltR
 R ltR R ltR R ltR# )z/macOS-only helpers for local Chrome automation.)ÚannotationsN)ÚPath)Údaemon_browser_ready)Ú remote_debugging_toggle_profilesu  using terms from application "System Events"
    on clickAllow(nodeRef)
        try
            if (role of nodeRef as text) is "AXButton" and Â¬
                (description of nodeRef as text) is "Allow" then
                perform action "AXPress" of nodeRef
                return true
            end if
        end try
        try
            repeat with childRef in UI elements of nodeRef
                if my clickAllow(childRef) then return true
            end repeat
        end try
        return false
    end clickAllow
end using terms from

set resultText to "not-found"
tell application "System Events"
    if exists process "Google Chrome" then
        tell process "Google Chrome"
            repeat with w in windows
                try
                    repeat with s in sheets of w
                        if (name of s as text) is "Allow remote debugging?" then
                            if my clickAllow(s) then
                                set resultText to "ready"
                                exit repeat
                            end if
                        end if
                    end repeat
                end try
                if resultText is "ready" then exit repeat
            end repeat
        end tell
    end if
end tell
return resultText
z‡allow the app launching browser-harness (for example Terminal, iTerm, or Codex) in System Settings > Privacy & Security > Accessibilityc               ó   € V ^8„  d   QhRR/# )é   Úreturnr   © )Úformats   "ÚŒ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/browser_harness/macos.pyÚ__annotate__r   <   s   € ÷ Eñ E˜Tñ Eó    c                 ó:   € \         P                  ! 4       R ,          # )z)Library/Application Support/Google/Chrome)r   Úhomer	   r   r   Ú_google_chrome_rootr   <   s   € Ü�9Š9‹;ÐDÕDÐDr   c               ó   € V ^8„  d   QhRR/# )r   r   Úboolr	   )r
   s   "r   r   r   @   s   € ÷ Gñ G tñ Gr   c                 ó,   € \        4       \        4       9   # )zFOnly accept the toggle from the Google Chrome root used by the script.)r   r   r	   r   r   Ú_google_chrome_toggle_enabledr   @   s   € äÓ Ô$DÓ$FÑFÐFr   c               ó   € V ^8„  d   QhRR/# )r   r   ztuple[str, str | None]r	   )r
   s   "r   r   r   E   s   € ÷ 1Jñ 1JÐ"8ñ 1Jr   c            	     óà  € \         P                  ! 4       R8w  d   R# \        4       '       d   R# \        4       '       g   R#  \        P
                  ! R.\        RR^RR7      p T P                  ^ 8w  d[   T P                  P                  4       ;'       g    R
pRTP                  4       9   g   RTP                  4       9   d	   R\        3# R	T3# T P                   P                  4       pTR8X  d   R# TR8X  d   \        4       '       d   R# R# R	RT;'       g    R 23#   \        P                   d    R\        3u # \        \        P                  3 d   pR	\        T4      3u Rp?# Rp?ii ; i)zJClick Chrome's exact per-connection Allow sheet without activating Chrome.ÚDarwinÚreadyNÚ	osascriptTF)ÚinputÚtextÚcapture_outputÚtimeoutÚcheckzaccessibility-requiredÚerrorzosascript failedznot authorizedÚ	assistiveú	not-foundzunexpected osascript result: z<empty>)Úunsupportedz&mac-approve is only available on macOS)r   N)zsetup-requiredz“first enable "Allow remote debugging for this browser instance" at chrome://inspect/#remote-debugging, then run `browser-harness mac-approve` again)r!   zWretry the browser command and run `browser-harness mac-approve` when the prompt appears)ÚplatformÚsystemr   r   Ú
subprocessÚrunÚ_APPLESCRIPTÚTimeoutExpiredÚ_ACCESSIBILITY_DETAILÚOSErrorÚSubprocessErrorÚstrÚ
returncodeÚstderrÚstripÚlowerÚstdout)Ú	completedÚexcÚdetailÚstatuss       r   Úapprove_remote_debuggingr6   E   sk  € ä‡‚Ó˜HÔ$ØFÐFä×ÒØÐä(×*Ò*ð
ð 	
ð!Ü—N’NØˆMÜØØØØô
ˆ	ð ×Ñ˜qÔ Ø×!Ñ!×'Ñ'Ó)×?Ð?Ð-?ˆØ˜vŸ|™|›~Ô-°ÀÇÁÃÔ1Nà(Ü%ðð ð ˜ˆÐà×Ñ×#Ñ#Ó%€FØ�ÔØÐØ�Ôä×!Ò!Ø Ð ð
ð 	
ð Ð3°F×4GÐ4G¸iÐ3HÐIÐIÐIøô3 ×$Ñ$ô ?Ø'Ô)>Ð>Ò>Ü”Z×/Ñ/Ð0ô !Øœ˜C›Ð Õ ûð!ús*   Á!D ÄE-Ä<E-ÅE-ÅE(Å"E-Å(E-c               ó    € V ^8„  d   QhRRRR/# )r   Úargsz	list[str]r   Úintr	   )r
   s   "r   r   r   y   s   € ÷ 
)ñ 
)�)ð 
) ñ 
)r   c                ó®   € V '       d   \        R RR7       ^# \        4       w  rV'       d   \        V RV 2RR7       M\        VRR7       VR8X  d   ^ # ^# )z"usage: browser-harness mac-approveT)Úflushz: r   )Úprintr6   )r8   r5   r4   s   &  r   Úrun_clir=   y   sQ   € ßÜÐ2¸$Õ?Ùä-Ó/�N€FßÜ��˜˜6˜(Ð#¨4Ö0äˆf˜DÕ!Ø˜'Ô!ˆ1Ð( qÐ(r   )Ú__doc__Ú
__future__r   r#   r%   Úpathlibr   Úadminr   Údaemonr   r'   r)   r   r   r6   r=   r	   r   r   Ú<module>rC      sD   ðÙ 5å "ã Û Ý å 'Ý 4ð'€ðV>ð õEõGõ
1J÷h
)r   