Ë
    tPêjö  ã                   ój  — d dl mZ d dlZd dlmZ d dlmZ ddlm	Z	 ddl
mZmZmZmZmZmZ ddlmZ dd	lmZ dd
lmZmZmZ ddlmZ ddlmZ ddlmZ ddlm Z  ddl!m"Z" ddl#m$Z$ ddl%m&Z& ddl'm(Z(m)Z) ddl*m+Z+ ddl,m-Z- de.de.dz  fd„Z/ G d„ dej`                  «      Z1 ejd                  e1d¬«       ejf                  ddddd¬ «       ejf                  d!d"ddd#d$¬%«       ejf                  d&d'dd(¬)«      ejh                  d*ejj                  de6de.dz  de.dz  d+df
d,„«       «       «       «       «       Z7e7jq                  «       ejh                  d*ejj                  fd-„«       «       Ze7js                  e«       e7js                  e«       e7js                  e«       e7js                  ed.¬/«       e7js                  e$«       e7js                  e«       e7js                  e«       e7js                  e«       e7js                  e«       e7js                  e «       e7js                  e&«       e7js                  e+«        e	«       D ]  Z:e7js                  e:«       Œ e7js                  e)«       e7js                  e(«       e7js                  e"«       e7js                  ed0¬/«       e7js                  e«       e;d1k(  r e7«        yy)2é    )ÚFinalN)Úversion)ÚHealthManagementClienté   )Úagent_commands)Ú
auth_groupÚcontext_secret_vaultÚget_stored_api_keyÚloginÚlogoutÚwhoami)Úautoroute_group)Úchat)Úconfig_commandsÚget_config_valueÚhidden_command_names)Úcredentials)Ú
encryption)Úhttp)Úkeys)Úmodel_groups)Úmodels)Úteams)ÚdownÚup)Úusers)Úinteractive_shellÚbase_urlÚapi_keyc                 óh  — t        j                  dt        › �«       | rt        j                  d| › �«       	 t        | |¬«      }|j	                  «       }|rt        j                  d|› �«       yt        j                  d«       y# t
        $ r"}t        j                  d|› �«       Y d}~yd}~ww xY w)z"Print CLI and server version info.zLiteLLM Proxy CLI Version: zLiteLLM Proxy Server URL: )r   r   zLiteLLM Proxy Server Version: z+LiteLLM Proxy Server Version: (unavailable)z#Could not retrieve server version: N)ÚclickÚechoÚlitellm_versionr   Úget_server_versionÚ	Exception)r   r   Úhealth_clientÚserver_versionÚes        úb/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/proxy/client/cli/main.pyÚprint_versionr*      sš   € ä	‡J�JÐ,¬_Ð,=Ð>Ô?ÙÜ�
‰
Ð/°¨zÐ:Ô;ð>Ü5¸xÐQXÔYˆØ -× @Ñ @Ó BˆÙÜ�J‰JÐ7¸Ð7GÐHÕIä�J‰JÐDÕEøÜò >Ü�
‰
Ð8¸¸Ð<×=Ñ=ûð>ús   ¸7B Á0B Â	B1ÂB,Â,B1c                   óF   ‡ — e Zd ZdZdej
                  dee   fˆ fd„Zˆ xZ	S )ÚHideConfiguredCommandsGroupaI  Group that omits operator-hidden commands from listings, still running them.

    Deployments hand `lite` to users who should only see a curated subset of
    commands (`lite config set hidden_commands codex,opencode`). Filtering the
    listing rather than dropping the commands keeps anyone's existing scripts
    working.
    ÚctxÚreturnc                 óf   •— t        «       }t        ‰| �	  |«      D �cg c]	  }||vsŒ|‘Œ c}S c c}w )N)r   ÚsuperÚlist_commands)Úselfr-   ÚhiddenÚnameÚ	__class__s       €r)   r1   z)HideConfiguredCommandsGroup.list_commands7   s0   ø€ Ü,Ó.ˆÜ!&¡Ñ!6°sÓ!;ÖR˜¸tÈ6Ò?Q’ÒRÐRùÒRs   �	.§.)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r!   ÚContextÚlistÚstrr1   Ú__classcell__)r5   s   @r)   r,   r,   .   s,   ø„ ñðS §¡ð S°4¸±9÷ Sñ Só    r,   T)ÚclsÚinvoke_without_commandz	--versionz-vÚshow_versionz7Show the LiteLLM Proxy CLI and server version and exit.)Úis_flagÚhelpz
--base-urlÚLITELLM_PROXY_URLz7base_url from `lite config`, else http://localhost:4000z$Base URL of the LiteLLM proxy server)ÚenvvarÚshow_envvarÚdefaultÚshow_defaultrC   z	--api-keyÚLITELLM_PROXY_API_KEYzAPI key for authentication)rE   rF   rC   r-   r.   c                 ó¸  — | j                  t        «       t        d«      }|du}|€|xs dn|j                  d«      }|du }|rt	        |t        | «      ¬«      n|}|| j                  d<   || j                  d<   || j                  d<   |xs t        |«      | j                  d<   |rt        ||«       | j                  «        | j                  €t        | «       yy)	z4LiteLLM Proxy CLI - Manage your LiteLLM proxy serverr   Nzhttp://localhost:4000ú/)Úexpected_base_urlÚvaultr   Úapi_key_from_token_fileÚbase_url_explicit)Úensure_objectÚdictr   Úrstripr
   r	   ÚobjÚboolr*   ÚexitÚinvoked_subcommandr   )r-   rA   r   r   Ústored_base_urlÚbase_url_providedrN   Úresolved_api_keys           r)   ÚclirZ   <   sð   € ð2 ×Ñ”dÔä-¨jÓ9€OØ'¨tÐ3Ðð AIÐ@P�Ò;Ñ$;ÐV^×fÑfÐgjÓk€Hð &-° _Ðñ #ô 	¨XÔ=QÐRUÓ=VÕWàð ð #€C‡G�GˆJÑØ)€C‡G�GˆIÑØ)@€C‡G�GÐ%Ñ&ð $5Ò#M¼¸_Ó8M€C‡G�GÐÑ áÜ�hÐ 0Ô1Ø�‰Œ
ð ×ÑÐ%Ü˜#Õð &r>   c                 ó€   — t        | j                  j                  d«      | j                  j                  d«      «       y)z.Show the LiteLLM Proxy CLI and server version.r   r   N)r*   rS   Úget)r-   s    r)   r   r   {   s(   € ô �#—'‘'—+‘+˜jÓ)¨3¯7©7¯;©;°yÓ+AÕBr>   Úauth)r4   Ú	autorouteÚ__main__)<Útypingr   r!   Úlitellm._versionr   r#   Úlitellm.proxy.client.healthr   Úcommands.agentsr   Úcommands.authr   r	   r
   r   r   r   Úcommands.autoroute.commandsr   Úcommands.chatr   Úcommands.configr   r   r   Úcommands.credentialsr   Úcommands.encryptionr   Úcommands.httpr   Úcommands.keysr   Úcommands.model_groupsr   Úcommands.modelsr   Úcommands.teamsr   Úcommands.upr   r   Úcommands.usersr   Ú	interfacer   r<   r*   ÚGroupr,   ÚgroupÚoptionÚpass_contextr:   rT   rZ   ÚcommandÚadd_commandÚagent_commandr6   © r>   r)   ú<module>rz      s€  ðõ ã å 7Ý >å +ß f× fÝ 8Ý ß TÑ TÝ -Ý +Ý Ý Ý /õ $Ý !ß !Ý !Ý (ð>˜Cð >¨#°©*ó >ô S %§+¡+ô Sð €‡�Ð,ÀTÔJØ€‡�ØØØØØ	Bôð €‡�ØØØØØJØ	/ôð €‡�ØØ"ØØ	%ô	ð ×Ñð%ˆU�]‰]ð %¨$ð %¸#À¹*ð %ÈsÐUYÉzð %Ð^bò %ó óóóó Kð.%ðP ‡�ƒØ×ÑðC�—‘ò Có ó ðCð ‡��Ô Ø ‡��Ô Ø ‡��Ô à ‡��
 €Ô (à ‡��Ô à ‡��Ô à ‡��
Ô à ‡��Ô à ‡��Ô à ‡��Ô à ‡��Ô à ‡��Ô á#Ó%ò #€MØ‡O�O�MÕ"ð#ð ‡��Ô Ø ‡��Ô à ‡��Ô à ‡�� k€Ô 2Ø ‡��Ô  ð ˆzÒÙ…Eð r>   