refactor
BREAKING
store
task/store-phase4-snapshots
#1 / 1
refactor(store): extract snapshot layer into muse.core.snapshots
Move SnapshotRecord, SnapshotDict, write_snapshot, read_snapshot, read_snapshot_result, the typed result variants (SnapshotReadOk/NotFound/Corrupt), snapshot_read_is_ok/corrupt, snapshot_path, _verify_snapshot_id, get_commit_snapshot_manifest, and get_head_snapshot_manifest out of muse/core/store.py into a new muse/core/snapshots.py module.
All symbols remain importable from muse.core.store via re-exports so no callers need updating. _SNAPSHOT_SCHEMA_VERSION is also re-exported to preserve existing test imports.
sha256:ae1db9b73aaea38adb29f40dbdadd19c6dc9ec95def4b81d418ff5ff263aba32
sha
+52
−17
symbols
sha256:d963bc984b4b602896ee517ce2e2921655fbf5bad9300802d6f01252f9242231
snapshot
+52
symbols added
−17
symbols removed
0
dead code introduced
Semantic Changes
69 symbols
+
_SNAPSHOT_SCHEMA_VERSION
variable
variable _SNAPSHOT_SCHEMA_VERSION L48–48 ← moved from muse/core/store.py
+
read_snapshot_result
function
function read_snapshot_result L293–315 ← moved from muse/core/store.py
+
snapshot_read_is_corrupt
function
function snapshot_read_is_corrupt L286–290 ← moved from muse/core/store.py
+
snapshot_read_is_ok
function
function snapshot_read_is_ok L279–283 ← moved from muse/core/store.py
−
_SNAPSHOT_SCHEMA_VERSION
variable
variable _SNAPSHOT_SCHEMA_VERSION L289–289 → moved to muse/core/snapshots.py
−
read_snapshot_result
function
function read_snapshot_result L760–782 → moved to muse/core/snapshots.py
−
snapshot_read_is_corrupt
function
function snapshot_read_is_corrupt L754–758 → moved to muse/core/snapshots.py
−
snapshot_read_is_ok
function
function snapshot_read_is_ok L748–752 → moved to muse/core/snapshots.py
← Older
Oldest on task/store-phase4-snapshots
All commits
Newer →
Latest on task/store-phase4-snapshots
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:ae1db9b73aaea38adb29f40dbdadd19c6dc9ec95def4b81d418ff5ff263aba32 --body "your comment"
No comments yet. Be the first to start the discussion.