gabriel / musehub public
chore BREAKING task/legacy-sweep #1 / 1
AI Agent gabriel · 168 days ago · Apr 12, 2026 · Diff

chore: remove all legacy cruft from musehub

- Delete empty api/repos.py shim and its main.py registration - Delete deploy/migrate_objects.py (one-time migration already ran) - Remove legacy MIDI upload fallbacks (Strategy 2) from ui_blob, ui_tree, and musehub_repository.list_tree - Remove musehub_repository.get_object_by_path entirely - Update objects.py get_blob_meta and mcp/resources._repo_blob to use get_file_at_ref + storage backend - Remove legacy symbol:/commit: label convention fallback from ui_issues - Remove legacy plaintext webhook secret fallback from musehub_webhook_crypto - Remove deprecated execute_create_agent_token MCP function, dispatcher case, tool definition - Update all MCP prompts, resources, tools, and templates to use muse auth keygen/register instead - Remove /view/ URL aliases from ui_view (canonical path is /insights/) - Delete test for removed deprecated function and legacy fallbacks - Update blob meta tests to use full wire push with snapshot manifest - Fix api/__init__.py to remove deleted repos module import - Clean up stale comments referencing legacy patterns - All 178 + 54 tests pass

sha256:150d33bab1abb843ef7e8320935ae12effcc5587c72c8d0a2c8f5d709531073c sha
+2 ~40 −27 symbols
sha256:3265222f34aa0315d625bbfd42ec145cbc916a665a46e402dbe1bd1953f673c7 snapshot
+2
symbols added
~40
symbols modified
−27
symbols removed
0
dead code introduced
Semantic Changes 69 symbols
~ deploy/migrate_objects.py .py 8 symbols removed
− Path import import Path L24–24
− annotations import import annotations L18–18
− argparse import import argparse L20–20
− shutil import import shutil L21–21
− stat import import stat L22–22
− sys import import sys L23–23
− main function function main L67–87
− migrate function function migrate L27–64
~ musehub/api/routes/api/repos.py .py 5 symbols removed
− APIRouter import import APIRouter L14–14
− annotations import import annotations L10–10
− logging import import logging L12–12
− logger variable variable logger L16–16
− router variable variable router L18–18
~ musehub/api/routes/api/__init__.py .py 1 symbol removed, 3 symbols modified
− repos import import repos L9–9
~ search
~ musehub/api/routes/musehub/objects.py .py 2 symbols added, 3 symbols removed, 5 symbols modified
− BranchParam import import BranchParam L26–26
− asyncio import import asyncio L17–17
− require_valid_token import import require_valid_token L27–27
+ StrDict import import StrDict L26–26
+ _get_storage_backend import import _get_storage_backend L28–28
~ musehub/api/routes/musehub/ui_blob.py .py 2 symbols removed, 1 symbol modified
− asyncio import import asyncio L11–11
− settings import import settings L24–24
~ musehub/main.py .py 1 symbol removed, 1 symbol modified
− api_repos_router import import api_repos_router L59–59
~ app
~ musehub/mcp/dispatcher.py .py 1 symbol modified
~ musehub/services/musehub_mcp_executor.py .py 1 symbol removed, 2 symbols modified
− execute_create_agent_token function async_function execute_create_agent_token L1530–1548
~ musehub/services/musehub_repository.py .py 1 symbol removed, 1 symbol modified
− get_object_by_path function async_function get_object_by_path L561–589
~ tests/test_mcp_smoke.py .py 1 symbol removed
− test_mcp_create_agent_token_deprecated function async_function test_mcp_create_agent_token_deprecated L469–478
~ tests/test_musehub_webhooks.py .py 1 symbol removed
− test_decrypt_plaintext_secret_returns_value_when_key_set function function test_decrypt_plaintext_secret_returns_value_when_key_set L751–773
~ tests/test_object_store.py .py 3 symbols removed, 3 symbols modified
− TestServiceGetObjectByPath class class TestServiceGetObjectByPath L335–362
− test_returns_most_recent_for_path method async_method test_returns_most_recent_for_path L337–355
− test_returns_none_for_missing_path method async_method test_returns_none_for_missing_path L358–362
← Older Oldest on task/legacy-sweep
All commits
Newer → Latest on task/legacy-sweep

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:150d33bab1abb843ef7e8320935ae12effcc5587c72c8d0a2c8f5d709531073c --body "your comment"