refactor(bridge): comprehensive spec sweep — close all issue #14 gaps
Fixes all spec violations found in post-completion sweep:
bridge.py — 375 → 74 lines, zero re-exports, argparse-only - Move _register_git_import, _register_git_export, _register_git_status to their canonical submodules (importer, exporter, status) - bridge.py now delegates to _register_*_parser() helpers and imports nothing from the domain layer
muse/core/bridge/__init__.py — add full public API re-export - All symbols tests might import from the package now accessible via muse.core.bridge directly (per Phase 8 spec)
git_primitives.py — fix circular import violation - FileDiffTree = dict[str, str | None] defined here, not in state.py - state.py no longer carries a type that belongs to the git layer - Upholds 'git_primitives has no Muse domain knowledge' invariant
All test imports updated: zero imports from muse.cli.commands.bridge - Every test now imports from the canonical muse.core.bridge.* path - No backward-compat shims; the old path is the thin CLI shell only
277/277 tests pass.
Files Changed
+1065
1065 in snapshot
0 comments
muse hub commit comment sha256:51116ec824246acde6abf729e6ba854c223dc5173eff31a645520208023b0652 --body "your comment"
No comments yet. Be the first to start the discussion.