Ë
    rPêj
  ã                   óŽ   — d Z ddlZddlZddlZddlZddlmZmZ ddlm	Z	m
Z
 ddlmZmZ ddlmZ dd
„Zdd„Zdd„Zd	ee   fd„Zy)zIContains commands to print information about the environment and version.é    N)Ú__version__Ú	constantsé   )Údump_environment_infoÚinstallation_methodé   )Ú_fetch_latest_pypi_versionÚ
run_update)ÚoutÚreturnc                  ó   — t        «        y)z(Print information about the environment.N)r   © ó    ú_/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/huggingface_hub/cli/system.pyÚenvr      s   € äÕr   c                  ó:   — t        j                  dt        ¬«       y)z'Print information about the hf version.z
hf version)ÚversionN)r   Úresultr   r   r   r   r   r   "   s   € ä‡J�Jˆ|¤[Ö1r   c                  óP  — ddl m} m} t        j                  dt
        › �«       t        j                  d«       t        d«      }|�'t
        |k(  rt        j                  dt
        › d�«       yt        j                  d	k(  rnt        «       d
k(  rat        j                  t        j                  dd
dddg«      }t        j                  d|› �«       t        j                  j!                  d¬«      ‚t#         |t$        j&                  t$        j(                  «      «      }t+        | ¬«      }|dk7  r t        j                  j!                  |¬«      ‚|st        j,                  d«       yt        j                  d| › d�«       t        j.                  g t1        «       ¢d‘d‘| ‘d‘«       y)z*Update the `hf` CLI to the latest version.r   )ÚDEFAULT_SKILL_IDÚ_installed_hf_cli_dirszCurrent version: z)Checking for updates to latest version...Úhuggingface_hubNzhf is up to date (ú)Úwin32Úpipú-mÚinstallz-Uz‘On Windows, a pip-installed `hf` cannot update itself: pip is not allowed to replace `hf.exe` while it is running. Run this command instead:
    )Úcode)Úexclude_skillr   zGRun `hf skills add -g` to teach your AI agents how to use the `hf` CLI.zUpdating the `z
` skill...ÚskillsÚupdatez-g)Ú_skillsr   r   r   Útextr   r	   ÚsysÚplatformr   Ú
subprocessÚlist2cmdlineÚ
executableÚerrorÚclickÚ
exceptionsÚExitÚboolr   ÚAGENTS_SKILLS_GLOBAL_PATHÚCLAUDE_SKILLS_GLOBAL_PATHr
   ÚhintÚcallÚ_hf_argv)r   r   Úlatest_versionÚcommandÚskill_installedÚ
returncodes         r   r!   r!   '   sr  € çAä‡H�HÐ ¤ Ð.Ô/Ü‡H�HÐ8Ô9Ü/Ð0AÓB€NØÐ!¤k°^Ò&CÜ�‰Ð%¤k ]°!Ð4Ô5Øô ‡|�|�wÒÔ#6Ó#8¸EÒ#AÜ×)Ñ)¬3¯>©>¸4ÀÈ	ÐSWÐYjÐ*kÓlˆÜ�	‰	ð:Ø:A¸ðDô	
ô ×Ñ×#Ñ#¨Ð#Ó+Ð+ô
 Ùœy×BÑBÄI×DgÑDgÓhó€Oô ¨oÐ*=Ô>€JØ�Q‚Ü×Ñ×#Ñ#¨Ð#Ó4Ð4áÜ�‰ÐZÔ[Øô
 ‡H�Hˆ~Ð.Ð/¨zÐ:Ô;Ü‡O�OÐM”h“jÐM (ÐM¨HÐMÐ6FÐMÈÐMÕNr   c                  óv   — t        «       dk(  rt        j                  d«      } | �| gS t        j                  ddgS )z3argv prefix to invoke the freshly updated `hf` CLI.ÚbrewÚhfr   zhuggingface_hub.cli.hf)r   ÚshutilÚwhichr$   r(   )Úhf_bins    r   r2   r2   T   s:   € äÓ Ò&ä—‘˜dÓ#ˆØÐØ�8ˆOÜ�N‰N˜DÐ":Ð;Ð;r   )r   N)Ú__doc__r:   r&   r$   r*   r   r   r   Úutilsr   r   Ú
_cli_utilsr	   r
   Ú_outputr   r   r   r!   ÚlistÚstrr2   r   r   r   ú<module>rC      sD   ðñ Pã Û Û 
ã ç 2ç >ß >Ý óó
2ó
*OðZ<�$�s‘)ô <r   