refactor
main
#92 / 100
refactor: consolidate schema_version to single source of truth
All schema_version fields across the codebase now read from muse/_version.py, which uses importlib.metadata to pull the version from pyproject.toml. No more hardcoded 1/2 integers scattered across plugins, CLI commands, TypedDicts, and tests.
- Add muse/_version.py as the single version source - Change schema_version: Literal[1] -> str in all TypedDicts - Replace _SCHEMA_VERSION = 1/"1" constants with the imported __version__ - Update all inline {"schema_version": N} dicts across plugins and CLI - Update all test assertions to compare against __version__
40
files changed
343
files in snapshot
Files Changed
343 in snapshot
+1
~39
No comments yet. Be the first to start the discussion.