gabriel / muse public
feat BREAKING rm task/rm-supercharge #1 / 1
AI Agent gabriel · 58 days ago · Apr 18, 2026 · Diff

feat(rm): supercharge with elapsed_ms, exit_code, JSON-on-error, security hardening

- Add elapsed_ms and exit_code to _RmResultJson and all JSON output paths - Emit structured JSON on error paths (untracked, dir-without-r, modified) so agents can parse failure reasons without inspecting shell exit status - Add import time + start_time = time.monotonic() for wall-clock timing - Remove unused write_object_from_path import - Document elapsed_ms/exit_code semantics in module + run() docstrings - Improve _collect_targets docstring: path-traversal guard now documented - Improve _check_safety docstring: graceful skip when file absent from disk - Fix test _sha helper: blob_id() instead of bare hashlib.sha256 hex - 39 tests total: +17 new (elapsed_ms, exit_code, JSON-on-error, path traversal, outside-repo path, file-already-gone, dry-run safety, dry-run+force, unicode filenames, data integrity, idempotent+JSON, stress timing)

sha256:6ecc0510945a87fc6b3c7fa6af1bf8a2cbad5b6a088cf98c8fda9f9a4356171d sha
sha256:8e1927a8b80d5c5990406cfcd3d8186789e8fc3b62a8143de523351a1be3ec5d snapshot
← Older Oldest on task/rm-supercharge
All commits
Newer → Latest on task/rm-supercharge

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:6ecc0510945a87fc6b3c7fa6af1bf8a2cbad5b6a088cf98c8fda9f9a4356171d --body "your comment"