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)
0 comments
muse hub commit comment sha256:6ecc0510945a87fc6b3c7fa6af1bf8a2cbad5b6a088cf98c8fda9f9a4356171d --body "your comment"
No comments yet. Be the first to start the discussion.