fix: muse log --json always populates file lists without --stat
Agents querying muse log --json were receiving empty files_added, files_modified, files_removed arrays unless they also passed --stat. This was a bad agent experience: nothing in the JSON output hinted that --stat was needed, and agents reasonably expected file lists to be present.
The JSON output path in run() now always calls _commit_to_json with stat=True, so every --json response includes full file change lists. The --stat flag still exists for human-readable output but is no longer required for machine output.
Updated: _commit_to_json docstring, run() docstring, test_cmd_log.py (renamed test_no_stat_json_file_lists_empty to assert lists ARE populated), AGENTS.md, and docs/agent-guide.md schema examples.
sha256:06a562ff66975c6d345340af27944245eacde37470296a5df77a0bb09e15deec
sha
sha256:f97f99ae40669179d365605d045d959e211877f7f4c00e49186331b22c4fa0c6
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:06a562ff66975c6d345340af27944245eacde37470296a5df77a0bb09e15deec --body "your comment"
No comments yet. Be the first to start the discussion.