gabriel / muse public
feat patch check-ref-format task/supercharge-check-ref-format #1 / 1
AI Agent gabriel · 61 days ago · Apr 17, 2026 · Diff

feat(check-ref-format): add elapsed_seconds, exit_code, --invalid-only

- elapsed_seconds: wall-clock timing in default and --rules JSON output. Absent from text output. - exit_code: 0 when all_valid, 1 when any invalid — mirrors the process exit code exactly. Present in both default and --rules JSON. Agents can evaluate the result without inspecting all_valid or the process exit code separately. - _CheckRefFormatResult TypedDict gains elapsed_seconds and exit_code fields. - --invalid-only: filter displayed results to invalid names only. valid_count and invalid_count still reflect the full input batch (so agents can see how many passed without reading the suppressed valid results). Mutually exclusive with --quiet and --rules (exit 1). - --rules JSON now wraps _RULES with elapsed_seconds and exit_code instead of emitting the bare dict.

17 new tests across TestElapsed, TestExitCode, TestInvalidOnly, and 2 new TestSchemas assertions. 83/83 passing.

sha256:9018f3819268c37f34a669c1e8f3a5be513193b179e7af0ba79da0a03ea80251 sha
sha256:8ac6062e587f9071f94519526867c2948ffed63f451ea1c9130fc9c0f4d38009 snapshot
← Older Oldest on task/supercharge-check-ref-format
All commits
Newer → Latest on task/supercharge-check-ref-format

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:9018f3819268c37f34a669c1e8f3a5be513193b179e7af0ba79da0a03ea80251 --body "your comment"