From e6ff61986018fe478812e55c04ce8263cc97a28b Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 26 Feb 2026 19:11:50 +0000 Subject: [PATCH] Refactor Vault.load_index into smaller private methods. Split the `load_index` method in `src/seedpass/core/vault.py` into `_handle_legacy_file_migration`, `_restore_legacy_backup`, `_load_and_handle_decryption`, `_check_schema_version`, and `_apply_schema_migrations`. This improves readability and maintainability by separating the concerns of legacy file handling, decryption, and schema migration. Verified with existing tests in `src/tests/test_legacy_migration.py` and `src/tests/test_migrations.py`. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com>