feat
patch
clean
task/supercharge-clean
#1 / 1
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
+18
~7
symbols
sha256:7e06d30e7bf7b49bc15fc79ad6409dcc22ef552ed0a968dfe678221ce141067f
snapshot
+18
symbols added
~7
symbols modified
0
dead code introduced
Semantic Changes
25 symbols
~
_sha
+
test_dry_run_no_files_status_is_clean
method
method test_dry_run_no_files_status_is_clean L710–715
+
test_dry_run_with_files_status_is_would_remove
method
method test_dry_run_with_files_status_is_would_remove L700–708
+
test_dry_run_with_files_schema_complete
method
method test_dry_run_with_files_schema_complete L740–747
+
test_nothing_to_clean_schema_complete
method
method test_nothing_to_clean_schema_complete L732–738
~
_sha
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:66066aa50a6622711417985213c4661bd65b7a37b289fc49168b08a610f226be --body "your comment"
No comments yet. Be the first to start the discussion.