feat(init): result-oriented default output - #228
Merged
Conversation
Replace the verbose [1/4]…[4/4] default format with a concise result summary (≤6 lines for a clean run). Internal command names (interpret-trailers, notes refspec, index --rebuild) are absent from the default output. Every failure and warning is still named — never folded into a cheerful success message (#63, #67 contract preserved). The verbose format is preserved as an exported function for T-1013 (--verbose flag, separate ticket). Limit: --verbose flag not wired yet (T-1013) Blast: local Certainty: firm Undo: easy Record-Id: r-initresult204
CommitLore — record lintTrailers: clean — 1 commit in Active constraints for the paths this PR touchesLimits (37)
Ruled out (80)
Warnings (39)
Trailer violations fail this check. Active constraints are informational — they are what the repository already decided, not a verdict on this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #204 (T-1012)
Summary
Replace the default
initoutput with a concise result summary:--jsonunchangedChanges
src/commands/init.ts: rewriteformatInitReportto result-oriented format; export verbose format constants for T-1013test/init-output.test.ts: new focused test for the output contracttest/init.test.ts: update 2 assertions from old[1/4]format to new result-oriented formatdist/: rebuiltVerification
expected 9 to be less than or equal to 6(current output is 9 lines)runInit, exit codes,--json, orInitReportinterfaceNot in scope
--verboseflag (T-1013)src/commands/doctor.ts(T-1030)src/commands/guard.ts,src/core/,src/mcp/, README, bench, .github