+
    jHàj@  ã                  óX   a € 0 t $ R t^ RIHt ^ RIt^ RIHtHt RR	/tR]	R&   R
R R llt
R# )u  Heal mixed ``sys.modules`` after an in-place checkout update.

Pre-reexec updaters (Hermes â‰¤ v2026.9.14) purged only package prefixes
(``hermes_cli``, ``gateway``, ``tools``, ``tui_gateway``, ``agent``) and left
root modules like ``utils`` cached in the updater process. The post-pull
gateway-restart phase then imports new ``hermes_cli.gateway`` /
``hermes_cli.config`` into that process; those need symbols the stale
``utils`` lacks (``file_signature``), and ``hermes update`` exits 1 with
``gateway auto-restart failed: cannot import name 'file_signature' from
'utils'``.

Post-swap hand-off (``hermes_cli.update_handoff``) makes this class dead for
updaters that already include it. This module is the bridge for the one
upgrade from a pre-handoff release onto a tree that needs new root symbols:
freshly imported ``hermes_cli`` code drops the incomplete cache before
importing ``utils``.
)ÚannotationsN)ÚMappingÚSequenceÚutilszdict[str, tuple[str, ...]]Ú_ROOT_MODULE_REQUIRED_ATTRSc               ó    € V ^8„  d   QhRRRR/# )é   Úrequiredz"Mapping[str, Sequence[str]] | NoneÚreturnz	list[str]© )Úformats   "Ú=/home/ubuntu/.hermes/hermes-agent/hermes_cli/stale_modules.pyÚ__annotate__r       s   € ÷ ñ Ø0ðàñó    c                ó†  a€ V f   \         MT p. pVP                  4        F�  w  r4\        P                  P	                  V4      oSf   K*  \
        ;QJ d    V3R lV 4       F  '       g   K   RM	  RM! V3R lV 4       4      '       g   Kl  \        P                  P                  VR4       VP                  V4       KŸ  	  V# )zGDrop cached root modules missing required attrs. Returns dropped names.Nc              3  óF   <"  € T F  p\        SV4      '       * x € K  	  R # 5i©N)Úhasattr)Ú.0ÚattrÚmods   & €r   Ú	<genexpr>Ú*drop_stale_root_modules.<locals>.<genexpr>*   s   øé € Ð8±%¨$”7˜3 Ó%×%Ñ%³%ùs   ƒ!TF)r   ÚitemsÚsysÚmodulesÚgetÚanyÚpopÚappend)r	   ÚchecksÚdroppedÚnameÚattrsr   s   &    @r   Údrop_stale_root_modulesr$       s‰   ø€ ð -5Ò,<Õ(À(€FØ€GØ—|‘|–~‰ˆÜ�k‰k�o‰o˜dÓ#ˆØŠ;Ùß‹3Ô8±%Ó8�3�3Š3Ô8±%Ó8×8Ô8Ü�K‰K�O‰O˜D $Ô'Ø�N‰N˜4Ö ñ &ð €Nr   )Úfile_signaturer   )Ú__conditional_annotations__Ú__doc__Ú
__future__r   r   Útypingr   r   r   Ú__annotations__r$   )r&   s   @r   Ú<module>r+      s8   øðôõ$ #ã 
ß $ð Ð ð;Ð Ð7ó ÷
ñ r   