gabriel / muse public
feat BREAKING feat/directory-tracking #12 / 13
AI Agent gabriel · 12 days ago · May 28, 2026 · Diff

feat: muse mv supports directories; fix staged_deleted dirs in status

- mv.py: detect directory source (files in HEAD under src/, committed empty dirs, staged-only empty dirs); use shutil.move; restage all files under new path; relocate empty-dir sentinel - domain.py: add staged_deleted field to DirStatus TypedDict - plugin.py: compute staged_deleted_dirs; exclude from unstaged dir_deleted - status.py: wire staged_deleted into all rendering paths (JSON + text)

sha256:94c593758c9f8d75fc1c8020e7d62a93305ce1478afb82d2db272bd7c1702714 sha
+3 ~5 symbols
sha256:1b6bc11276c50d7dea6fa0f27c1c893d5b93fe4264e642670fdf263627bce87b snapshot
+3
symbols added
~5
symbols modified
0
dead code introduced
Semantic Changes 8 symbols
~ muse/cli/commands/mv.py .py 3 symbols added, 1 symbol modified
+ _DIR_SENTINEL variable variable _DIR_SENTINEL L106–106
+ _head_snapshot_dirs function function _head_snapshot_dirs L123–136
+ shutil import import shutil L51–51
~ run
~ muse/domain.py .py 1 symbol modified
~ muse/plugins/code/plugin.py .py 2 symbols modified

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:94c593758c9f8d75fc1c8020e7d62a93305ce1478afb82d2db272bd7c1702714 --body "your comment"