- index/tsconfig: JSONC sanitize (comments, trailing commas), baseUrl +
star/exact path keys, first candidate only, longest-prefix wins; invalid
or missing tsconfig silently means no aliases
- resolution pass: '.'-prefixed specifiers resolve relatively as before,
bare ones go through the alias table and join the importer graph
- planner: remap keeps the alias shape while the moved file stays inside
the mapped tree (morphological, since destinations do not exist yet),
exact keys keep meaning only while still resolving to the target;
otherwise the previous relative rewrite applies unchanged
- resolve_base extracted from resolve_module (shared extension/index
guessing); MODULE_EXTS is the exact inverse for remapping
- e2e: @utils/str.ts -> @utils/text.ts inside alias, -> ./core/text.ts
when leaving it, @cfg falls back to ./settings; check passes on aliases
- MovePlan gains moves[] (file move = 1 relocation), left_behind[] for
unindexable files that deliberately stay, prune_dirs[] applied after the
batch (remove_dir only succeeds when empty, leftovers keep their home)
- plan::dir: nesting/target-exists guards, merged per-file rewrites
- apply: atomic N-rename batch (per-file git mv), rollback restores every
move, rewrite and created dir newest-first
- mv_reject accepts dirs; --json adds moved_files/would_move_files only for
real dir moves (single-file contract byte-identical); summary shows
(N files) and left-behind count
- engine rollback/prune tests moved to tests/apply.rs (public API; a
mid-batch failure cannot be forced through the CLI), java-rule e2e split
into its own binary to keep every file under the 250-line budget