Ë
    tPêj¡  ã                   óÎ   — U d dl mZmZ erd dlmZ d dlmZmZ ddlm	Z	 d dlm
Z
 ddlm	Z	 dZeedz     ed<   d	ed
dfd„Zdd„Ze
j                   j"                  eiZeed<   g d¢Zy)é    )ÚTYPE_CHECKINGÚFinal)ÚCustomPromptManagement)ÚPromptLiteLLMParamsÚ
PromptSpecé   )ÚBitBucketPromptManager)ÚSupportedPromptIntegrationsNÚglobal_bitbucket_configÚconfigÚreturnc                 ó   — ddl }| |_        y)ar  
    Set the global BitBucket configuration for prompt management.

    Args:
        config: Dictionary containing BitBucket configuration
                - workspace: BitBucket workspace name
                - repository: Repository name
                - access_token: BitBucket access token
                - branch: Branch to fetch prompts from (default: main)
    r   N)Úlitellmr   )r   r   s     úl/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/integrations/bitbucket/__init__.pyÚset_global_bitbucket_configr      s   € ó à&,€GÕ#ó    c                 ó–   — t        | dd«      }t        | dd«      }|st        d«      ‚	 t        ||¬«      }|S # t        $ r}|‚d}~ww xY w)z:
    Initialize a prompt from a BitBucket repository.
    Úbitbucket_configNÚ	prompt_idz=bitbucket_config is required for BitBucket prompt integration)r   r   )ÚgetattrÚ
ValueErrorr	   Ú	Exception)Úlitellm_paramsÚprompt_specr   r   Úbitbucket_prompt_managerÚes         r   Úprompt_initializerr   !   sd   € ô & nÐ6HÈ$ÓOÐÜ˜~¨{¸DÓA€IáÜÐXÓYÐYðÜ*@Ø-Øô+
Ð ð
 (Ð'øÜò Øˆûðús   ©8 ¸	AÁAÁAÚprompt_initializer_registry)r	   r   r   )r   r   r   r   r   r   )Útypingr   r   Ú-litellm.integrations.custom_prompt_managementr   Ú"litellm.types.prompts.init_promptsr   r   r   r	   r
   r   ÚdictÚ__annotations__r   r   Ú	BITBUCKETÚvaluer   Ú__all__© r   r   ú<module>r(      su   ðß 'Ð 'áÝTßRå@å Jå <ð /3Ð ˜˜t d™{Ñ+Ó 2ð-¨ð -°ó -ó ð,  ×)Ñ)×/Ñ/Ð1Cð&Ð ˜Uó ò
�r   