+
    jHàjú  ã                  ó‚   € R t ^ RIHt ^ RIt^ RIHt ^ RIHt ^ RIH	t	H
t
 ^ RIHt R R ltR	 R
 ltR R ltR R ltR# )u´   CLI handlers for ``hermes migrate ...``.

Currently exposes only ``hermes migrate xai`` â€” diagnoses and (with --apply) rewrites references to
xAI models retired on May 15, 2026.
)ÚannotationsN)ÚPath)ÚAny)ÚColorsÚcolor)Úload_configc               ó    € V ^8„  d   QhRRRR/# ©é   Úargsr   ÚreturnÚint© )Úformats   "Ú7/home/ubuntu/.hermes/hermes-agent/hermes_cli/migrate.pyÚ__annotate__r      s   € ÷ ñ �cð ˜cñ ó    c                óv   € \        V RR4      R8X  d   \        V 4      # \        R\        P                  R7       ^# )z,Dispatcher for ``hermes migrate <subtype>``.Úmigrate_typeNÚxaiz1usage: hermes migrate xai [--apply] [--no-backup]©Úfile)ÚgetattrÚcmd_migrate_xaiÚprintÚsysÚstderr)r   s   &r   Úcmd_migrater      s0   € äˆt�^ TÓ*¨eÔ3Ü˜tÓ$Ð$ä	Ð
=ÄCÇJÁJÕOÙr   c               ó    € V ^8„  d   QhRRRR/# )r
   ÚmessageÚstrr   r   r   )r   s   "r   r   r      s   € ÷ ñ �3ð ˜3ñ r   c                óx   € \        R \        R\        P                  4       RV  2\        P
                  R7       ^# )ú  u   âœ—Ú r   )r   r   r   ÚREDr   r   )r   s   &r   Ú_failr%      s,   € Ü	ˆBŒu�UœFŸJ™JÓ'Ð(¨¨'¨Ð
3¼#¿*¹*ÕEÙr   c               ó    € V ^8„  d   QhRRRR/# r	   r   )r   s   "r   r   r      s   € ÷ 6ñ 6˜#ð 6 #ñ 6r   c           	     ó$  € ^ RI HpHpHpHpHp \        \        V RR4      4      p\        \        V RR4      4      pV! \        4       4      p\        4        \        \        RV R2\        P                  \        P                  4      4       \        4        V'       g*   \        R\        R\        P                  4       R	24       ^ # \        R
\        V4       R24       \        4        V F2  p	\        R\        R\        P                   4       RV! V	4       24       K4  	  \        4        \        R\        R\        P                  4       RV 24       \        4        \#        4       p
V'       gM   \        \        R\        P$                  4      4       \        \        RV
 R2\        P$                  4      4       ^ # V
'       d   V
P'                  4       '       g   \)        RV
 R24      #  V! W¨V'       * R7      pTP,                  '       g*   \        R\        R\        P                   4       R24       ^ # TP.                  e4   \        R\        R\        P                  4       RTP.                   24       \        R\        R\        P                  4       R\        TP0                  4       RTP2                   24       \        4        \        \        R\        P$                  4      4       ^ #   \*         d   p\)        RT 24      u Rp?# Rp?ii ; i)z8Run xAI May-15 model migration in dry-run or apply mode.)ÚMIGRATION_GUIDE_URLÚRETIREMENT_DATEÚapply_migrationÚfind_retired_xai_refsÚformat_issueÚapplyFÚ	no_backupu$   â—† xAI Model Retirement Migration (Ú)r"   u   âœ“u8    No retired xAI models in config â€” nothing to migrate.z  Found z  retired xAI model reference(s):z    u   âš r#   u   â†’z Migration guide: u$   Dry-run mode â€” no changes written.z4Re-run with `hermes migrate xai --apply` to rewrite z) in-place (backup created automatically).z)Could not locate config.yaml (looked at: )Úconfig_pathÚissuesÚbackupzMigration failed: Nz No changes written.z	 Backup: z	 Updated z slot(s) in z<Run `hermes doctor` to confirm no retired xAI models remain.)Úhermes_cli.xai_retirementr(   r)   r*   r+   r,   Úboolr   r   r   r   r   ÚCYANÚBOLDÚGREENÚlenÚYELLOWÚ_resolve_config_pathÚDIMÚexistsr%   Ú	ExceptionÚconfig_changedÚbackup_pathÚissues_resolvedÚ	file_path)r   r(   r)   r*   r+   r,   r-   r.   r1   Úissuer0   ÚresultÚexcs   &            r   r   r      s„  € ÷dõ dô ”˜˜w¨Ó.Ó/€EÜ”W˜T ;°Ó6Ó7€IÙ"¤;£=Ó1€Fä	„GÜ	Œ%Ð6°Ð6GÀqÐIÌ6Ï;É;ÔX^×XcÑXcÓ
dÔeÜ	„GçÜ�”5˜¤§¡Ó-Ð.Ð.fÐgÔhÙä	ˆH”S˜“[�MÐ!AÐ
BÔCÜ	„GÛˆÜ�”U˜5¤&§-¡-Ó0Ð1°±<ÀÓ3FÐ2GÐHÖIñ ä	„GÜ	ˆD”�uœfŸk™kÓ*Ð+Ð+=Ð>QÐ=RÐ
SÔTÜ	„Gä&Ó(€KçÜŒeÐ:¼F¿J¹JÓGÔHÜŒeØBØˆmÐDðFä�J‰Jóô 	ñ ç˜k×0Ñ0×2Ò2ÜÐ@ÀÀÈQÐOÓPÐPð1Ù ¨[ÐT]ÔP]Ô^ˆð × × Ð Ü�”5˜¤§¡Ó.Ð/Ð/CÐDÔEÙà×ÑÒ%Ü�”5˜¤§¡Ó-Ð.¨i¸×8JÑ8JÐ7KÐLÔMÜ	Ø
ŒU�5œ&Ÿ,™,Ó'Ð(¨	´#°f×6LÑ6LÓ2MÐ1Nð OØ×&Ñ&Ð'ð	)ô*ô 
„GÜ	Œ%ÐNÔPV×PZÑPZÓ
[Ô\Ùøô ô 1ÜÐ)¨#¨Ð/Ó0Õ0ûð1ús   Ç)K, Ë,LË7L
ÌLÌ
Lc               ó   € V ^8„  d   QhRR/# )r
   r   r   r   )r   s   "r   r   r   W   s   € ÷ -ñ -˜dñ -r   c                 ó*   € ^ RI Hp  V ! 4       R,          # )z3Best-effort: locate the active config.yaml on disk.©Úget_hermes_homezconfig.yaml)Úhermes_cli.configrH   rG   s    r   r:   r:   W   s   € å1ÙÓ˜}Õ,Ð,r   )Ú__doc__Ú
__future__r   r   Úpathlibr   Útypingr   Úhermes_cli.colorsr   r   rI   r   r   r%   r   r:   r   r   r   Ú<module>rO      s3   ðñõ
 #ã 
Ý Ý ç +Ý )õõõ
6÷r-r   