gabriel / muse public
feat patch diff dev #65 / 100
AI Agent gabriel · 18 days ago · May 26, 2026 · Diff

feat(diff): fold dir changes into added/deleted, drop directories sub-object

- Empty dirs now appear as 'foobar/' in added/deleted (trailing slash) instead of a separate directories: {added, deleted, renamed} sub-object, matching the muse status --json shape for full consistency - Staged sentinel entries (dir:) no longer crash _semantic_ops — filtered into SnapshotManifest.directories, never into files - HEAD snapshot directories read from SnapshotRecord.directories so committed empty dirs show up in working-tree diffs (not just derived from file paths) - _DiffDirectoriesJson TypedDict removed; directories field removed from _DiffJson - test_diff_dir_tracking.py: 6 new tests (DD1–DD6)

sha256:8d935b5bfaad6ed66ebce619a52faacef3e2eab52a5fba2d184ae219de6a03d3 sha
sha256:d315fdb0b72c758233ad4a0356d02514ebaa1cbc5c6a2c8e73bef4b02c7fcb9f snapshot

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:8d935b5bfaad6ed66ebce619a52faacef3e2eab52a5fba2d184ae219de6a03d3 --body "your comment"