+
    jHàjp
  ã                  óF   € R t ^ RIHt ^ RIt^ RIt^ RItR R ltR R ltR# )uÈ  ``hermes codex-runtime`` â€” noninteractive counterpart of the ``/codex-runtime`` slash command.

``hermes codex-runtime migrate [--dry-run] [--json]`` runs the same ``~/.codex/config.toml``
migration the slash command triggers when the codex app-server runtime is enabled, on the
selected profile home (``hermes -p NAME codex-runtime migrate``), so automation no longer has to
import ``hermes_cli.codex_runtime_plugin_migration`` directly (issue #79023).
)ÚannotationsNc               ó    € V ^8„  d   QhRRRR/# )é   Úargszargparse.NamespaceÚreturnÚint© )Úformats   "ÚI/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/codex_runtime.pyÚ__annotate__r      s   € ÷ %ñ %Ð$6ð %¸3ñ %ó    c                óp  € ^ RI Hp ^ RIHp V! V! 4       V P                  R7      pV P
                  '       dR   \        P                  ! V4      p\        VP                  4      VR&   \        \
        P                  ! V^RR7      4       M\        VP                  4       4       VP                  '       d   ^# ^ # )zWProject Hermes MCP servers (+ codex plugins) into ~/.codex/config.toml; 1 on any error.)Úmigrate)Úload_config)Údry_runÚtarget_pathT)ÚindentÚ	sort_keys)Ú)hermes_cli.codex_runtime_plugin_migrationr   Úhermes_cli.configr   r   ÚjsonÚdataclassesÚasdictÚstrr   ÚprintÚdumpsÚsummaryÚerrors)r   r   r   ÚreportÚpayloads   &    r
   Úcmd_codex_runtime_migrater       s   € åAÝ-á‘[“]¨D¯L©LÔ9€FØ‡y‡y€yÜ×$Ò$ VÓ,ˆÜ!$ V×%7Ñ%7Ó!8ˆ�ÑÜŒd�jŠj˜¨°dÔ;Õ<äˆf�n‰nÓÔØ——�ˆ1Ð$ 1Ð$r   c               ó   € V ^8„  d   QhRR/# )r   r   ÚNoner   )r	   s   "r
   r   r      s   € ÷ *ñ *¨dñ *r   c                ó(  a€ V P                  RRRR7      oSP                  RR7      pVP                  RRR	R7      pVP                  R
RRR7       VP                  RRRR7       VP                  \        R7       V3R lpSP                  VR7       R# )zOAttach the ``codex-runtime`` subcommand (``migrate`` action) to ``subparsers``.zcodex-runtimezAManage the optional codex app-server runtime (migrate MCP config)a  Noninteractive counterpart of the /codex-runtime slash command. Toggling the runtime itself stays in the chat command (`/codex-runtime on|off`); `migrate` re-projects Hermes' mcp_servers + installed codex plugins into the managed block of ~/.codex/config.toml for the selected profile.)ÚhelpÚdescriptionÚcodex_runtime_action)Údestr   z:Regenerate the hermes-managed block in codex's config.tomlzÆIdempotent: replaces the managed block, keeps user text verbatim, skips Hermes servers whose name the user already declares outside the block, validates the result as TOML before writing atomically.z	--dry-runÚ
store_truez9Report what would be written without touching config.toml)Úactionr$   z--jsonz3Print the migration report as JSON (for automation))Úfuncc                ó(   <€ SP                  4        ^ # )é    )Ú
print_help)r   Úparsers   &€r
   Ú_print_helpÚ/build_codex_runtime_parser.<locals>._print_help3   s   ø€ Ø×ÑÔÙr   N)Ú
add_parserÚadd_subparsersÚadd_argumentÚset_defaultsr    )Ú
subparsersÚactionsÚmigrate_parserr/   r.   s   &   @r
   Úbuild_codex_runtime_parserr8      s½   ø€ à×"Ñ"ØÐað=ð #ó >€Fð ×#Ñ#Ð)?Ð#Ó@€GØ×'Ñ'ØÐTð1ð (ó 2€Nð
 ×ÑØ˜LÐ/jð  ô là×ÑØ˜Ð,að  ô cà×ÑÔ%>ÐÔ?õð ×Ñ˜[ÐÖ)r   )Ú__doc__Ú
__future__r   Úargparser   r   r    r8   r   r   r
   Ú<module>r<      s"   ðñõ #ã Û Û õ%÷*r   