gabriel / muse public
refactor BREAKING task/paths-audit-bridge-init-domain #1 / 1
AI Agent gabriel · 136 days ago · May 5, 2026 · Diff

refactor: replace inline .muse/ path constructions with muse.core.paths helpers

bridge.py: delete _BRIDGE_STATE_FILENAME constant and _bridge_state_path() wrapper; import git_bridge_sidecar_path, git_bridge_state_path, head_path, muse_dir, ref_path at module level; rename local variables head_path→_head_file and ref_path→_branch_ref to avoid shadowing imported functions.

init.py: add user_identity_toml_path to paths import; replace Path.home() / '.muse' / 'identity.toml' with user_identity_toml_path().

domain_cmd.py, path_cmd.py: add user_domain_registry_path to paths import; replace Path.home() / '.muse' / 'domain-registry.json' with user_domain_registry_path().

sha256:28ba229472ad1b58af532ca6c5be9633f4f922ac62e19e576014e4f30894944b sha
+8 ~16 −2 symbols
sha256:0587449b354ff6c87d0e2b1a9ff5048ed1f64ecc1756ab35e19f5c55a21219b3 snapshot
+8
symbols added
~16
symbols modified
−2
symbols removed
0
dead code introduced
Semantic Changes 26 symbols
~ muse/cli/commands/bridge.py .py 5 symbols added, 2 symbols removed, 10 symbols modified
_BRIDGE_STATE_FILENAME variable variable _BRIDGE_STATE_FILENAME L158–158
_bridge_state_path function function _bridge_state_path L161–167
+ git_bridge_sidecar_path import import git_bridge_sidecar_path L52–52
+ git_bridge_state_path import import git_bridge_state_path L52–52
+ head_path import import head_path L52–52
+ muse_dir import import muse_dir L52–52
+ ref_path import import ref_path L52–52
~ muse/cli/commands/domain_cmd.py .py 1 symbol added, 1 symbol modified
+ user_domain_registry_path import import user_domain_registry_path L70–70
~ muse/cli/commands/init.py .py 1 symbol added, 4 symbols modified
+ user_identity_toml_path import import user_identity_toml_path L66–66
~ muse/cli/commands/path_cmd.py .py 1 symbol added, 1 symbol modified
+ user_domain_registry_path import import user_domain_registry_path L45–45
← Older Oldest on task/paths-audit-bridge-init-domain
All commits
Newer → Latest on task/paths-audit-bridge-init-domain

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