refactor: route all types.py idioms through canonical helpers
Replace raw idioms with the functions defined in muse.core.types: - '0' * 64 (bare hex null) → NULL_COMMIT_ID - long_id('0' * 64) (prefixed null) → NULL_LONG_ID - base64.urlsafe_b64encode(raw).rstrip(b'=').decode() → b64url_encode(raw) - base64.urlsafe_b64decode(s + '==') → b64url_decode(s) - x.removeprefix('sha256:') → long_id(x, strip=True)
Also fix three test files where a previous script inserted a paths.py import line inside a multi-line parenthesized import block, causing SyntaxError. Moved the injected import to the correct location and replaced the nonexistent _REBASE_STATE_FILE_fn with rebase_state_path.
sha256:47840b61eb241a77c24b90e3328db76b1cdd6141e14ff3432efd9fb0f454e7ea
sha
+104
~1037
−15
symbols
sha256:8992519f383d30e6781e5e64e3fcf5183ec62fdc369ecd7fe6b6cd9b47723f60
snapshot
+104
symbols added
~1037
symbols modified
−15
symbols removed
0
dead code introduced
Semantic Changes
1156 symbols
~
blob_id
~
blob_id
~
long_id
~
long_id
~
repo
~
repo
~
fake_id
~
long_id
~
blob_id
~
_NULL_ID
~
blob_id
~
_repo
~
_commit
~
_ref
~
tests/test_security_agent_impersonation.py
.py
1 symbol added, 1 symbol removed, 10 symbols modified
~
_ref
~
Manifest
~
_run
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:47840b61eb241a77c24b90e3328db76b1cdd6141e14ff3432efd9fb0f454e7ea --body "your comment"
No comments yet. Be the first to start the discussion.