gabriel / muse public
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__

G Gabriel Cardona <gabriel@tellurstori.com> · 3d ago Mar 21, 2026 · 8aa515d5 · parent e9145b5f
40
files changed
343
files in snapshot

0 comments

No comments yet. Be the first to start the discussion.