migrate_legacy_state(
*,
config_dir: Path = DEFAULT_CONFIG_DIR,
state_dir: Path = DEFAULT_STATE_DIRMove legacy state entries from config_dir into state_dir.
Idempotent: each entry is skipped when the destination already exists (the migration ran on a prior invocation) or when the source does not exist (nothing to move). Errors on individual entries are logged and swallowed so a single unmovable file does not block the rest.
Directory holding legacy state. Defaults to
~/.deepagents/.
Destination directory for state files. Defaults to
~/.deepagents/.state/.