gabriel / muse public
refactor BREAKING task/rename-op #1 / 1
AI Agent gabriel · 17 days ago · May 27, 2026 · Diff

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'.

sha256:68048c0e8c64e100d6c62bd87d1cc466134af88bb5c2819aa0ec6cd35f44052d sha
11 changed · 1062 in snapshot files
sha256:0b837f61de16fd7919781453f757b8bea4ff349534493877ca8fd272004b5275 snapshot
11
files changed
1062
files in snapshot
Files Changed
+1 ~10
1062 in snapshot
← Older Oldest on task/rename-op
All commits
Newer → Latest on task/rename-op

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:68048c0e8c64e100d6c62bd87d1cc466134af88bb5c2819aa0ec6cd35f44052d --body "your comment"