gabriel / muse public
fix BREAKING json dev
gabriel · 164 days ago · Apr 16, 2026 · Diff

fix(json): emit JSON errors to stdout on all early-exit paths in fetch/pull/clone/remote/workspace

fetch: remote_not_configured, remote_unreachable, branch_not_found, fetch_failed, no_remotes pull: remote_not_configured, remote_unreachable, branch_not_found, ff_only_refused clone: remote_unreachable, empty_repository, fetch_failed remote: all subcommands (add/remove/rename/get-url/set-url/status) — invalid_name, not_found, already_exists, url_too_long, invalid_url workspace: add/update/remove/status — add_failed, no_flags, not_found, update_failed, remove_failed, no_workspace

All errors emit JSON to stdout before the human-readable stderr message so agents piping --json never receive empty stdout on failure.

sha256:88b1bd2f4ceb3b7c9af089f40a9370a07534cb51b009f54ec91fae7f58612f6c sha
+7 ~22 −4 symbols
sha256:d804dc81df4b0a8a374b2d7dee3e4076e7d258c1660a7ea51b5fef60456d0879 snapshot
+7
symbols added
~22
symbols modified
−4
symbols removed
0
dead code introduced
Semantic Changes 33 symbols
~ muse/cli/commands/clone.py .py 2 symbols added, 1 symbol removed, 3 symbols modified
− has_object import import has_object L66–66
+ ObjectPayload import import ObjectPayload L69–69
+ time import import time L63–63
~ run
~ muse/cli/commands/fetch.py .py 3 symbols added, 3 symbols modified
+ ObjectPayload import import ObjectPayload L81–81
+ time import import time L69–69
+ write_object import import write_object L80–80
~ run
~ muse/cli/commands/pull.py .py 2 symbols added, 3 symbols removed, 6 symbols modified
− HttpTransport import import HttpTransport L70–70
− LocalFileTransport import import LocalFileTransport L70–70
− has_object import import has_object L52–52
+ ObjectPayload import import ObjectPayload L55–55
+ time import import time L47–47
~ run
← 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:88b1bd2f4ceb3b7c9af089f40a9370a07534cb51b009f54ec91fae7f58612f6c --body "your comment"