refactor
BREAKING
task/bridge-decomp-phase1
#1 / 1
refactor: extract bridge state layer to muse.core.bridge.state (issue #14 Phase 1)
Move BridgeState TypedDicts, read_bridge_state, write_bridge_state, and _dict_to_toml out of the 3138-line bridge.py god object and into a focused muse.core.bridge.state module. bridge.py now imports from there.
Also create muse/core/bridge/__init__.py and muse/core/bridge/state.py. All 152 bridge-related tests remain green.
sha256:0107e539d3a3e7de5a68a0e94fe4e8bcdfba52c733555b30371df331843f1d1b
sha
+27
−11
symbols
sha256:7fd37ba0f6293493dcb8f3e2b73a481303583929d40e6b1343e3e7a79b9180b6
snapshot
+27
symbols added
−11
symbols removed
0
dead code introduced
Semantic Changes
38 symbols
+
_BRIDGE_STATE_LOCK
variable
variable _BRIDGE_STATE_LOCK L115–115 ← moved from muse/cli/commands/bridge.py
+
read_bridge_state
function
function read_bridge_state L122–155 ← moved from muse/cli/commands/bridge.py
+
write_bridge_state
function
function write_bridge_state L158–201 ← moved from muse/cli/commands/bridge.py
−
_BRIDGE_STATE_LOCK
variable
variable _BRIDGE_STATE_LOCK L274–274 → moved to muse/core/bridge/state.py
−
read_bridge_state
function
function read_bridge_state L280–313 → moved to muse/core/bridge/state.py
−
write_bridge_state
function
function write_bridge_state L315–365 → moved to muse/core/bridge/state.py
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:0107e539d3a3e7de5a68a0e94fe4e8bcdfba52c733555b30371df331843f1d1b --body "your comment"
No comments yet. Be the first to start the discussion.