gabriel / muse public
refactor patch dev
AI Agent gabriel · 160 days ago · Apr 19, 2026 · Diff

refactor: [t] range_diff, read, read_commit, read_snapshot — EnvelopeJson TypedDicts

range_diff.py: add _RangeDiffJson(EnvelopeJson); fix 1 raw dict output. read.py: add _ReadJson/_ReadErrorJson(EnvelopeJson, total=False); fix _emit_error helper + 1 main JSON output (commit.to_dict() + make_envelope). read_commit.py: add _ReadCommitJson(EnvelopeJson, total=False); fix 1 output site (record.to_dict() + make_envelope). read_snapshot.py: _SnapshotOutput(TypedDict, total=False) → EnvelopeJson; drop duration_ms/exit_code fields; fix 1 output site.

sha256:bcedc62960c2e3aaf16d79b520d0a17b658e29d58dad5c3e1bdcff6269929149 sha
+15 ~9 symbols
sha256:a9e8763c738c1c43676ae0c0f42ca79b9cb414e1ad52a98d0c9829466cee2d18 snapshot
+15
symbols added
~9
symbols modified
0
dead code introduced
Semantic Changes 24 symbols
~ muse/cli/commands/range_diff.py .py 4 symbols added, 2 symbols modified
+ _RangeDiffJson class class _RangeDiffJson L115–124
+ EnvelopeJson import import EnvelopeJson L91–91
+ TypedDict import import TypedDict L89–89
+ make_envelope import import make_envelope L91–91
~ Any
~ run
~ muse/cli/commands/read.py .py 5 symbols added, 1 symbol modified
+ _ReadErrorJson class class _ReadErrorJson L116–120
+ _ReadJson class class _ReadJson L123–149
+ EnvelopeJson import import EnvelopeJson L86–86
+ TypedDict import import TypedDict L100–100
+ make_envelope import import make_envelope L86–86
~ run
~ muse/cli/commands/read_commit.py .py 4 symbols added, 1 symbol modified
+ _ReadCommitJson class class _ReadCommitJson L77–98
+ EnvelopeJson import import EnvelopeJson L53–53
+ TypedDict import import TypedDict L52–52
+ make_envelope import import make_envelope L53–53
~ run
~ muse/cli/commands/read_snapshot.py .py 2 symbols added, 2 symbols modified
+ EnvelopeJson import import EnvelopeJson L46–46
+ make_envelope import import make_envelope L46–46
~ run
← Older Oldest on dev
All commits
Newer → Latest on dev

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