gabriel / muse public
feat patch read dev #98 / 100
AI Agent gabriel · 102 days ago · May 26, 2026 · Diff

feat(read): add dirs_added/dirs_removed to muse read --json

- SnapshotRecord.directories diff between current and parent snapshot produces dirs_added/dirs_removed lists with trailing slashes - total_changes now counts directory additions and removals - dirs_added/dirs_removed present whenever --stat is active (default) - test_commit_dir_changes.py: 7 new tests (DC1–DC7) covering all cases - test_cmd_show.py: REQUIRED_KEYS updated to include dirs_added/dirs_removed

sha256:ed432ca3895725b46c67f8253a5b745153554f343b4716c2c6db3892de94d5f4 sha
+21 ~3 symbols
sha256:7cd0526a077463f691879b056e0ce07c7a81e583c183ccef3809f01e57b4b223 snapshot
+21
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes 24 symbols
~ tests/test_commit_dir_changes.py .py 21 symbols added
+ TestCommitDirChanges class class TestCommitDirChanges L87–184
+ test_DC1_dirs_added_in_read_json method method test_DC1_dirs_added_in_read_json L88–100
+ test_DC2_dirs_removed_in_read_json method method test_DC2_dirs_removed_in_read_json L102–116
+ test_DC3_total_changes_includes_dirs method method test_DC3_total_changes_includes_dirs L118–129
+ test_DC4_commit_summary_mentions_dir_added method method test_DC4_commit_summary_mentions_dir_ L131–145
+ test_DC5_commit_summary_mentions_dir_removed method method test_DC5_commit_summary_mentions_dir_ L147–161
+ test_DC6_no_dir_changes_gives_empty_lists method method test_DC6_no_dir_changes_gives_empty_lists L163–175
+ test_DC7_dirs_keys_always_present method method test_DC7_dirs_keys_always_present L177–184
+ _env function function _env L38–39
+ _read function function _read L48–49
+ _run function function _run L42–45
+ base_repo function function base_repo L58–65
+ cli variable variable cli L29–29
+ CliRunner import import CliRunner L27–27
+ Mapping import import Mapping L23–23
+ annotations import import annotations L19–19
+ json import import json L21–21
+ pathlib import import pathlib L22–22
+ pytest import import pytest L25–25
+ repo_with_committed_dir function function repo_with_committed_dir L69–79
+ runner variable variable runner L30–30
~ muse/cli/commands/read.py .py 2 symbols modified
~ tests/test_cmd_show.py .py 1 symbol 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:ed432ca3895725b46c67f8253a5b745153554f343b4716c2c6db3892de94d5f4 --body "your comment"