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