gabriel / muse public
feat patch rename task/supercharge-rename #1 / 1
AI Agent gabriel · 54 days ago · Apr 19, 2026 · Diff

feat(rename): supercharge for agents — -j alias, exit_code, duration_ms, sanitized errors, expanded docstrings

- Add -j alias for --json in register() - Add exit_code: int and duration_ms: float to _RenameResult TypedDict - Add start_timer() + elapsed() wired into run(); inject into JSON output - Sanitize new_name in _validate_identifier error messages (null-byte safety) - Expand register() docstring to list all 8 arguments - Expand run() docstring to document JSON envelope, exit_code, duration_ms - 99 new tests: TestJsonAlias, TestJsonEnvelope, TestUnitValidateIdentifier, TestUnitParseAddress, TestUnitLine, TestUnitDedup, TestUnitApplyEdits, TestUnitFindDefinitionSite, TestUnitFindReferenceSites, TestCLIScopeCallsites, TestCLIScopeAll, TestCLIAliases, TestCLIAsyncDef, TestCLIAttributeRename, TestCLIMultipleOccurrences, TestCLIWarnings, TestCLINoSites, TestCLISecurity, TestDocstrings

sha256:5054e4739d4a05413c3a5c6a75f2b395c45f84f0f3e268211184daf468eeaa1f sha
sha256:e90f15b2845517ed76ca38719a686425a43aa6e9eab3f20ffab04fca6316cbad snapshot
← Older Oldest on task/supercharge-rename
All commits
Newer → Latest on task/supercharge-rename

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:5054e4739d4a05413c3a5c6a75f2b395c45f84f0f3e268211184daf468eeaa1f --body "your comment"