Files
Conal Mullan c76f87cc8a FIX: _migrate_common — drop a dead duplicate find_repo_root, BOM and missing future import
Review fixes on top of the #58 extraction, all introduced by the move rather
than present in either source file:

- find_repo_root was defined twice. The second won and matched what both
  migrate_to_codex.py and migrate_to_kiro.py already did; the first was neither
  script's implementation — it walked cwd for CLAUDE.md instead of __file__ for
  _internal/toolkit-registry.json, and raised RuntimeError instead of SystemExit.
  Dead as written, but silently wrong the moment anything reorders the file.
- Stripped a UTF-8 BOM. Neither sibling script has one.
- Added `from __future__ import annotations`, which both source files carry and
  every other script in scripts/ does.

Behaviour is unchanged: `--dry-run` output for both scripts is byte-identical to
main (32 and 31 lines), and --help and --reset --dry-run both still work.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-30 19:30:24 +01:00
..