gabriel / muse public
refactor BREAKING dev
AI Agent gabriel · 148 days ago · Apr 25, 2026 · Diff

refactor: pristine config.toml — no [user], use config_toml_path utility

- Delete UserConfig TypedDict and user field from MuseConfig - Delete set_user_field (dead code — user identity is not in config.toml) - Delete user block from config_as_dict (never emitted) - Remove legacy comment from _load_config; [user] is simply not in the schema - Remove [user] from _dump_toml docstring and inline comment - Import config_toml_path from muse.core.paths; delegate _config_path to it - Replace all inline / '.muse' / 'config.toml' in tests with config_toml_path() - Update test_cmd_log: _commit_with_config_author → _commit_with_identity_author (seeds identity.toml instead of the removed set_user_field path)

sha256:d92f2126f4ae7ca9231ae339c00a7d7e1521fa502b2a17a0b72c63ac31c1180e sha
+7 ~47 −8 symbols
sha256:d7a191c128de031e2e4d4dc17d279b355967048d830456af5ebc3724dd5fdf54 snapshot
+7
symbols added
~47
symbols modified
−8
symbols removed
0
dead code introduced
Semantic Changes 62 symbols
~ muse/cli/config.py .py 1 symbol added, 4 symbols removed, 8 symbols modified
UserConfig class class UserConfig L78–84
_CONFIG_FILENAME variable variable _CONFIG_FILENAME L69–69
_MUSE_DIR variable variable _MUSE_DIR L70–70
set_user_field function function set_user_field L596–628
+ _config_toml_path import import _config_toml_path L50–50
~ tests/test_cmd_log.py .py 2 symbols added, 2 symbols removed, 1 symbol modified
test_commit_reads_user_name_from_config method method test_commit_reads_user_name_from_config L612–618
_commit_with_config_author function function _commit_with_config_author L586–598
+ test_commit_reads_user_name_from_identity method method test_commit_reads_user_name_from_identity L622–628
+ _commit_with_identity_author function function _commit_with_identity_author L586–608
~ tests/test_user_identity_migration.py .py 3 symbols added, 2 symbols removed, 3 symbols modified
TestStaleUserSectionIgnored class class TestStaleUserSectionIgnored L263–279
test_load_config_drops_user_section method method test_load_config_drops_user_section L264–279
+ TestUserSectionNotLoaded class class TestUserSectionNotLoaded L252–268
+ test_load_config_ignores_user_section method method test_load_config_ignores_user_section L253–268
+ config_toml_path import import config_toml_path L29–29
← 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:d92f2126f4ae7ca9231ae339c00a7d7e1521fa502b2a17a0b72c63ac31c1180e --body "your comment"