ó
    ¯-Ejš  ã                  ód   • S r SSKJr  SSKJr  SSKJrJr  SSKJ	r	  \	" S5      r
S
S jrSSS jjrg	)u»   Quick discovery: a small, fast, read-only snapshot.

Runs during install/registration so the panel has baseline facts immediately.
Intentionally cheap â€” no subprocess-heavy scans here.
é    )Úannotations)ÚAny)ÚsystemÚservices)Ú
get_loggerzdiscovery.quickc                 óÀ  • [         R                  " 5       [         R                  " 5       [         R                  " 5       [         R                  " 5       [         R
                  " 5       [         R                  " 5       [         R                  " 5       [         R                  " 5       [         R                  " 5       [         R                  " 5       [        R                  " 5       S.$ )z)Return the minimal baseline server facts.)ÚhostnameÚosÚkernelÚarchitectureÚ	cpu_countÚmemory_totalÚ
disk_totalÚ	public_ipÚprivate_ipsÚuptimeÚcertbot_available)r   r	   Úos_infor   r   r   Úmemory_total_bytesÚdisk_total_bytesr   r   Úuptime_secondsr   r   © ó    Ú9D:\Programs\laragon\www\wolf\agent\src\discovery\quick.pyÚcollectr      s‹   € ô —O’OÓ%Ü�nŠnÓÜ—-’-“/Ü×+Ò+Ó-Ü×%Ò%Ó'Ü×1Ò1Ó3Ü×-Ò-Ó/Ü×%Ò%Ó'Ü×)Ò)Ó+Ü×'Ò'Ó)Ü%×7Ò7Ó9ñð r   c                ó°   • [        5       nU(       a  SSKJn   U" XSSU/05        U$ U$ ! [         a!  n[        R                  SU5         SnAU$ SnAff = f)zâCollect baseline facts and upload them as an instant server_facts scan.

The quick scan gives the panel non-empty server_facts immediately after the
first connection, ahead of the slower full inventory. Upload is best-effort.
r   )Úupload_inventoryÚquickÚserver_factszquick scan upload failed: %sN)r   Údiscovery.uploadr   Ú	ExceptionÚlogÚwarning)ÚconfigÚ
api_clientÚuploadÚsnapshotr   Úexcs         r   Úrunr)   "   s]   € ô ‹y€HÞÝ5ð	=Ù˜V°¸>ÈHÈ:Ð:VÔWð €Oˆ8€Oøô ó 	=Ü�K‰KÐ6¸×<Ð<Ø€Oûð	=ús   ™* ª
A´AÁAN)Úreturnúdict[str, Any])T)r&   Úboolr*   r+   )Ú__doc__Ú
__future__r   Útypingr   Ú	discoveryr   r   Úloggerr   r"   r   r)   r   r   r   Ú<module>r2      s-   ðñõ #å ç &Ý áÐ"Ó#€ô÷"r   