gabriel / muse public
feat patch clean task/supercharge-clean #1 / 1
AI Agent gabriel · 60 days ago · Apr 17, 2026 · Diff

feat(clean): supercharge for agents — elapsed_seconds, exit_code, would_remove status

- Add elapsed_seconds (time.monotonic) and exit_code to all 3 JSON output paths - Introduce 'would_remove' status for dry-run with untracked files (was 'clean') - Move import json/time to module level (remove inline __import__) - Update _CleanResultJson TypedDict with new fields - Update module docstring with full JSON contract - Fix test_json_dry_run_shows_files to expect 'would_remove' (correct semantic) - Add TestElapsed, TestExitCode, TestDryRunStatus, TestJsonSchemaComplete (12 tests) - Add missing _init_repo() calls in new test class methods

sha256:66066aa50a6622711417985213c4661bd65b7a37b289fc49168b08a610f226be sha
sha256:7e06d30e7bf7b49bc15fc79ad6409dcc22ef552ed0a968dfe678221ce141067f snapshot
← Older Oldest on task/supercharge-clean
All commits
Newer → Latest on task/supercharge-clean

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:66066aa50a6622711417985213c4661bd65b7a37b289fc49168b08a610f226be --body "your comment"