codetether-agent 4.5.7

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
�

ې�iM��D�ddlmZddlZddlmZdd�Zdd�Zdd�Zd	d�Zy)
�)�annotationsN)�Pathc�V�tt�j�jdS)N�)r�__file__�resolve�parents���F/home/riley/A2A-Server-MCP/codetether-agent/script/browserctl/paths.py�project_rootr
s ����>�!�!�#�+�+�A�.�.rc���tjjd�}|rt|�j	�nt�dzdz}|j
dd��|S)N�BROWSERCTL_DATA_DIRz.codetether-agent�
browserctlT�r	�exist_ok)�os�environ�getr�
expanduserr
�mkdir��env_path�paths  r�data_dirrsN���z�z�~�~�3�4�H�*2�4��>�$�$�&���I\�8\�_k�8k�D��J�J�t�d�J�+��Krc��tjjd�}|rt|�j	�nt�dz}|j
dd��|S)N�BROWSERCTL_PROFILE_DIR�profileTr)rrrrrrrrs  r�profile_dirrsG���z�z�~�~�6�7�H�*2�4��>�$�$�&��
�Y�8N�D��J�J�t�d�J�+��Krc���tjjd�}|r|Stj�dztj�dztd�td�g}td�|D�d�S)N�BROWSERCTL_EXECUTABLEz8.cache/ms-playwright/chromium-1208/chrome-linux64/chromez8.cache/ms-playwright/chromium-1200/chrome-linux64/chromez/snap/bin/chromiumz/usr/bin/chromium-browserc3�TK�|] }|j�s�t|����"y�w)N)�exists�str)�.0rs  r�	<genexpr>z'default_browser_path.<locals>.<genexpr>#s����C�t�T�[�[�]��T��C�s�(�()rrrr�home�next)r�
candidatess  r�default_browser_pathr*si���z�z�~�~�5�6�H�����	�	��P�P��	�	��P�P��
!�"��
(�)�	�J��C�z�C�T�J�Jr)�returnr)r+z
str | None)	�
__future__rr�pathlibrr
rrr*r
rr�<module>r.s#��"�	��/���
Kr