gabriel / muse public
refactor BREAKING bridge task/bridge-phase8-thin-shell #1 / 1
AI Agent gabriel · 114 days ago · May 22, 2026 · Diff

refactor(bridge): Phase 8 — thin CLI shell, strip unused re-exports

Removes stdlib imports no longer needed in bridge.py after all logic was extracted to muse.core.bridge.* submodules (issue #14).

Re-export set trimmed to only symbols actually imported by tests: - Removed: GitCommitInfo, GitTagInfo, all _ANSI/BRANCH/GIT constants, _batch_diff_tree, _is_lfs_pointer, _list_git_*, _parse_sem_ver_bump, _strip_ansi, _ensure_git_branch, _import_tags, DriftInfo, FileDiffTree, SnapshotManifest, _Last*State, _SidecarData, _dict_to_toml, ExitCode, path helpers, find_repo_root, type utilities, _compute_drift, _count_muse_commits_since, _print_bridge_status_text - Kept: all symbols verified imported by test files

bridge.py: 3138 → 375 lines. 277/277 tests pass.

sha256:702e85ec851c9d2efd9cfcc2ea50ec816a362275e4ba8e8ef0bd89a39fea5bb8 sha
~17 −49 symbols
sha256:886e2dfa55c427f12dc362876b0abb2add07f9c90935f19e9b4457335593e5a7 snapshot
~17
symbols modified
−49
symbols removed
0
dead code introduced
Semantic Changes 66 symbols
~ muse/cli/commands/bridge.py .py 49 symbols removed, 17 symbols modified
_Env variable variable _Env L127–127
Any import import Any L49–49
DriftInfo import import DriftInfo L105–105
ExitCode import import ExitCode L117–117
FileDiffTree import import FileDiffTree L105–105
GitCommitInfo import import GitCommitInfo L75–75
GitTagInfo import import GitTagInfo L75–75
SnapshotManifest import import SnapshotManifest L105–105
TypedDict import import TypedDict L49–49
_ANSI_ESCAPE_RE import import _ANSI_ESCAPE_RE L75–75
_BRANCH_SAFE_RE import import _BRANCH_SAFE_RE L75–75
_BRANCH_UNSAFE_CHARS_RE import import _BRANCH_UNSAFE_CHARS_RE L75–75
_DEFAULT_EXCLUDE_PREFIXES import import _DEFAULT_EXCLUDE_PREFIXES L75–75
_DEFAULT_EXCLUDE_SUFFIXES import import _DEFAULT_EXCLUDE_SUFFIXES L75–75
_GIT_SHA_RE import import _GIT_SHA_RE L75–75
_LastExportState import import _LastExportState L105–105
_LastImportState import import _LastImportState L105–105
_SidecarData import import _SidecarData L105–105
_batch_diff_tree import import _batch_diff_tree L75–75
_compute_drift import import _compute_drift L57–57
_count_muse_commits_since import import _count_muse_commits_since L57–57
_dict_to_toml import import _dict_to_toml L105–105
_ensure_git_branch import import _ensure_git_branch L51–51
_import_tags import import _import_tags L69–69
_is_lfs_pointer import import _is_lfs_pointer L75–75
_list_git_branches import import _list_git_branches L75–75
_list_git_tags import import _list_git_tags L75–75
_parse_sem_ver_bump import import _parse_sem_ver_bump L75–75
_print_bridge_status_text import import _print_bridge_status_text L57–57
_strip_ansi import import _strip_ansi L75–75
dataclass class import dataclass L48–48
datetime import import datetime L40–40
field import import field L48–48
find_repo_root import import find_repo_root L119–119
git_bridge_sidecar_path import import git_bridge_sidecar_path L118–118
git_bridge_state_path import import git_bridge_state_path L118–118
hashlib import import hashlib L41–41
head_path import import head_path L118–118
json import import json L42–42
load_json_file import import load_json_file L120–120
muse_dir import import muse_dir L118–118
now_utc_iso import import now_utc_iso L120–120
pathlib import import pathlib L43–43
re import import re L44–44
ref_path import import ref_path L118–118
split_id import import split_id L120–120
subprocess import import subprocess L45–45
sys import import sys L46–46
threading import import threading L47–47
~ _git
← Older Oldest on task/bridge-phase8-thin-shell
All commits
Newer → Latest on task/bridge-phase8-thin-shell

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:702e85ec851c9d2efd9cfcc2ea50ec816a362275e4ba8e8ef0bd89a39fea5bb8 --body "your comment"