refactor: replace DirectoryRenameOp with unified RenameOp
- domain.py: RenameOp(op='rename', address, from_address) replaces DirectoryRenameOp. No file_count — that was validation metadata, not semantic. DomainOp union updated. - PatchOp.from_address removed; rename and modify are now orthogonal ops. A moved+edited file emits RenameOp then PatchOp. - plugins/code/plugin.py: emits op='rename' for directory renames. - plugins/code/symbol_diff.py: emits RenameOp+PatchOp pair for move+edit; delta_summary unifies file and directory rename counts under 'all_renamed'. - cli/commands/diff.py: _print_structured_delta renders op='rename' as R old → new; JSON path maps op='rename' into the renamed dict (was silently dropped). - cli/commands/status.py: op='rename' populates renamed map. - core/semver_classifier.py: dispatches op='rename' to _classify_directory_rename. - plugins/code/_query.py: flat_directory_ops and touched_directories use op='rename'. - tests/test_rename_op.py: 25 TDD tests covering all aspects of the change. - tests/test_directories_feature.py, test_directory_dimension.py, test_sem_ver.py: updated to use RenameOp and op='rename'.
Files Changed
+1
~10
1062 in snapshot
0 comments
muse hub commit comment sha256:68048c0e8c64e100d6c62bd87d1cc466134af88bb5c2819aa0ec6cd35f44052d --body "your comment"
No comments yet. Be the first to start the discussion.