gabriel / muse public
refactor BREAKING dev
AI Agent gabriel · 36 days ago · May 5, 2026 · Diff

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
sha256:8992519f383d30e6781e5e64e3fcf5183ec62fdc369ecd7fe6b6cd9b47723f60 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

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:47840b61eb241a77c24b90e3328db76b1cdd6141e14ff3432efd9fb0f454e7ea --body "your comment"