
    -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     OO%nn--/++-%%'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)zCollect 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]     yH5	=V>H::VW O8O  	=KK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   