Runs versioned configuration migrations in strict ascending order, preserving original semantics and handling file‑based persistence.
# Source: https://github.com/mperkins0155/hermes-agent | License: MIT | Copyright 2025 Nous Research # Provided via justclaw.it.com; keep this notice with the code. """Table-driven config migration registry. This module holds the per-version migration steps that used to live as a 768-line ladder of ``if current_ver < N:`` blocks inside ``hermes_cli.config.migrate_config``. Each step is a function ``_migrate_to_N(results, quiet)`` whose body is copied verbatim from the original block; only the shared skeleton (the version gate and the strict ascending ordering) lives in the :func:`run_migrations` driver. Semantics preserved exactly from the original ladder: * ``current_ver`` is computed ONCE by the caller (``check_config_version``) and never advances while the ladder runs — every step ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key