feat: supercharge muse status — elapsed_ms, exit_code, sparse_checkout, upstream fix, branch-only schema
New in JSON output (all paths): - elapsed_ms: float — agent timing / latency monitoring - exit_code: int — always 0; confirms command success vs OS crash - sparse_checkout: {enabled, mode, patterns} | null — one status call reveals both working-tree state and active sparse config
Bug fixes: - Code-domain (staged) path hardcoded upstream/ahead/behind=None — fixed by threading upstream_info through _render_staged_status - --branch-only JSON schema was unstable (total=False, merge keys absent when no merge in progress) — fixed to always emit all keys
Security: - merge_from, checkout_target, branch sanitized before JSON serialisation (no raw ANSI escape bytes can leak into JSON values)
Tests: 40 new in test_cmd_status_supercharge.py covering: U1-U5 elapsed_ms/exit_code/sparse_checkout unit assertions I1-I8 integration (upstream fix, branch-only, checkout_interrupted) S1-S4 security (ANSI in JSON values) D1-D5 data integrity (float types, total_changes, patterns) P1-P3 performance (5k files, rapid calls) C1 concurrent (4 threads, isolated repos)
0 comments
muse hub commit comment sha256:66f11d1367c3021e2c63090d6cdeb877acf0b9b71ebd59df16e0d92b78aff0be --body "your comment"
No comments yet. Be the first to start the discussion.