gabriel / muse public
feat patch init dev
AI Agent gabriel · 151 days ago · Apr 26, 2026 · Diff

feat(init): write muse_version and bare to repo.json; fix init JSON schema test

repo.json now always includes: muse_version — the Muse version that initialised the repo (e.g. "0.2.0rc4") bare — always present as a bool (false for normal repos, true for bare)

Previously bare was omitted for non-bare repos (absence = false convention), and muse_version was absent entirely. Explicit fields make repo.json fully self-describing without needing external context.

Fix test_non_bare_repo_json_has_no_bare_flag → test_non_bare_repo_json_has_bare_false. Add test_muse_version_written_to_repo_json and test_bare_always_written_to_repo_json. Fix test_no_extra_unknown_keys: add remotes to REQUIRED_KEYS (field was added to init JSON output but the schema test was never updated).

sha256:9322f4d7d2e42752e7ae25db20d9a114ff7271bbe6fa1888b25c0027fb069420 sha
+4 ~4 −1 symbols
sha256:1f60552e63d8c83b28ad205795edd501b7fb9f46d143c382a5c23d704dd9780d snapshot
+4
symbols added
~4
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes 9 symbols
~ muse/cli/commands/init.py .py 1 symbol added, 1 symbol modified
+ _MUSE_VERSION import import _MUSE_VERSION L66–66
~ run
~ tests/test_cmd_init.py .py 3 symbols added, 1 symbol removed, 2 symbols modified
− test_non_bare_repo_json_has_no_bare_flag method method test_non_bare_repo_json_has_no_bare_flag L274–277
+ test_non_bare_repo_json_has_bare_false method method test_non_bare_repo_json_has_bare_false L274–277
+ test_bare_always_written_to_repo_json method method test_bare_always_written_to_repo_json L558–563
+ test_muse_version_written_to_repo_json method method test_muse_version_written_to_repo_json L550–556
← 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:9322f4d7d2e42752e7ae25db20d9a114ff7271bbe6fa1888b25c0027fb069420 --body "your comment"