gabriel / muse public
refactor BREAKING task/bridge-decomp-phase5 #1 / 1
AI Agent gabriel · 116 days ago · May 22, 2026 · Diff

refactor: extract harmony/shelf bridge to muse.core.bridge.harmony_shelf (issue #14 Phase 5)

Move import_rerere_to_harmony, export_harmony_to_rerere, import_stashes_to_shelf, and export_shelves_to_stash out of bridge.py into a focused harmony_shelf module. Update importer.py lazy imports to point to the new location. 2355→1301 lines.

sha256:54ec693969fdeee4549ecd88cad4059f8315ff6dc4cfb5d8108cc94e9779fbf6 sha
+18 ~1 −4 symbols
sha256:b3485bed16aafc754325deb81edd50ba17ad8dd2187163719156b35e912b0ad8 snapshot
+18
symbols added
~1
symbol modified
−4
symbols removed
0
dead code introduced
Semantic Changes 23 symbols
~ muse/core/bridge/harmony_shelf.py .py 14 symbols added
+ export_harmony_to_rerere function function export_harmony_to_rerere L148–206 ← moved from muse/cli/commands/bridge.py
+ export_shelves_to_stash function function export_shelves_to_stash L336–442 ← moved from muse/cli/commands/bridge.py
+ _SidecarData import import _SidecarData L15–15
+ annotations import import annotations L8–8
+ git_bridge_sidecar_path import import git_bridge_sidecar_path L16–16
+ hashlib import import hashlib L10–10
+ json import import json L11–11
+ load_json_file import import load_json_file L17–17
+ now_utc_iso import import now_utc_iso L17–17
+ pathlib import import pathlib L12–12
+ split_id import import split_id L17–17
+ subprocess import import subprocess L13–13
+ import_rerere_to_harmony function function import_rerere_to_harmony L20–145 ← moved from muse/cli/commands/bridge.py
+ import_stashes_to_shelf function function import_stashes_to_shelf L209–333
~ muse/cli/commands/bridge.py .py 4 symbols added, 4 symbols removed
export_harmony_to_rerere function function export_harmony_to_rerere L252–314 → moved to muse/core/bridge/harmony_shelf.py
export_shelves_to_stash function function export_shelves_to_stash L456–567 → moved to muse/core/bridge/harmony_shelf.py
import_rerere_to_harmony function function import_rerere_to_harmony L115–250 → moved to muse/core/bridge/harmony_shelf.py
import_stashes_to_shelf function function import_stashes_to_shelf L320–454
+ export_harmony_to_rerere import import export_harmony_to_rerere L51–51
+ export_shelves_to_stash import import export_shelves_to_stash L51–51
+ import_rerere_to_harmony import import import_rerere_to_harmony L51–51
+ import_stashes_to_shelf import import import_stashes_to_shelf L51–51
~ muse/core/bridge/importer.py .py 1 symbol modified
← Older Oldest on task/bridge-decomp-phase5
All commits
Newer → Latest on task/bridge-decomp-phase5

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:54ec693969fdeee4549ecd88cad4059f8315ff6dc4cfb5d8108cc94e9779fbf6 --body "your comment"