§
    ìXÊ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dS )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          ¦   «          dS )z(Print information about the environment.N)r   © ó    úKC:\Projects\Historical\venv\Lib\site-packages\huggingface_hub/cli/system.pyÚenvr      s   € åÑÔÐÐÐr   c                  ó<   — t          j        dt          ¬¦  «         dS )z'Print information about the hf version.z
hf version)ÚversionN)r   Úresultr   r   r   r   r   r   "   s   € å„Jˆ|¥[Ð1Ñ1Ô1Ð1Ð1Ð1r   c                  ób  — ddl m} m} t          j        dt
          › �¦  «         t          j        d¦  «         t          d¦  «        }|�*t
          |k    rt          j        dt
          › d�¦  «         dS t          j        d	k    rmt          ¦   «         d
k    r[t          j        t          j        dd
dddg¦  «        }t          j        d|› �¦  «         t          j                             d¬¦  «        ‚t#           |t$          j        t$          j        ¦  «        ¦  «        }t+          | ¬¦  «        }|dk    r t          j                             |¬¦  «        ‚|st          j        d¦  «         dS t          j        d| › d�¦  «         t          j        g t1          ¦   «         ¢d‘d‘| ‘d‘¦  «         dS )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!   '   sÚ  € àAÐAÐAÐAÐAÐAÐAÐAå„HÐ.¥Ð.Ð.Ñ/Ô/Ð/Ý„HÐ8Ñ9Ô9Ð9Ý/Ð0AÑBÔB€NØÐ!¥k°^Ò&CÐ&CÝŒÐ4¥kÐ4Ð4Ð4Ñ5Ô5Ð5Øˆõ „|�wÒÐÕ#6Ñ#8Ô#8¸EÒ#AÐ#AÝÔ)­3¬>¸4ÀÈ	ÐSWÐYjÐ*kÑlÔlˆÝŒ	ðDØ:AðDð Dñ	
ô 	
ð 	
õ Ô×#Ò#¨Ð#Ñ+Ô+Ð+õ
 ØÐ�yÔBÅIÔDgÑhÔhñô €Oõ ¨oÐ*=Ð>Ñ>Ô>€JØ�Q‚€ÝÔ×#Ò#¨Ð#Ñ4Ô4Ð4àð ÝŒÐZÑ[Ô[Ð[Øˆõ
 „HÐ:Ð.Ð:Ð:Ð:Ñ;Ô;Ð;Ý„OÐM•h‘j”jÐM (ÐM¨HÐMÐ6FÐMÈÐMÑNÔNÐNÐNÐ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ÚhfNr   zhuggingface_hub.cli.hf)r   ÚshutilÚwhichr$   r(   )Úhf_bins    r   r2   r2   T   s?   € åÑÔ Ò&Ð&å”˜dÑ#Ô#ˆØÐØ�8ˆOÝŒ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      sù   ðð PÐ Oà €€€Ø Ð Ð Ð Ø 
€
€
€
à €€€à 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2à >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ø >Ð >Ð >Ð >Ð >Ð >Ð >Ð >Ø Ð Ð Ð Ð Ð ðð ð ð ð
2ð 2ð 2ð 2ð
*Oð *Oð *Oð *OðZ<�$�s”)ð <ð <ð <ð <ð <ð <r   