(bucket_path: Path)
| 149 | |
| 150 | |
| 151 | def _count_pending(bucket_path: Path) -> int: |
| 152 | pending_dir = bucket_path / "suggestions" / "pending" |
| 153 | if not pending_dir.is_dir(): |
| 154 | return 0 |
| 155 | return sum(1 for item in pending_dir.iterdir() if item.is_file() and item.suffix == ".json") |
| 156 | |
| 157 | |
| 158 | def plan_migration(home: Path | None = None) -> MigrationPlan: |