fix: resolve 8 CLI quality issues found during audit#8
Merged
MiniMax-AI-Dev merged 1 commit intomainfrom Mar 31, 2026
Merged
Conversation
- quota show: fix box misalignment in no-color mode ([] brackets were 2 cols wider than the W formula assumed; move barVisLen calc before W so the box is sized to fit the actual content) - quota show: ignore config-file output setting so the rich HUD is shown in TTY even when the user has `output: json` globally - http: fix User-Agent version hardcoded to 0.1.0; now reads CLI_VERSION env var with correct fallback - http: print the brand status bar only once per process instead of on every request - errors/handler: replace ad-hoc JSON detection with detectOutputFormat so error format is consistent with the rest of the CLI - text/chat: fix description — "Anthropic Messages API" → "MiniMax" - registry: fix group help alignment — printChildren now collects all leaf paths first and aligns description column to the longest path (fixes `video task get` being indented further than siblings) - auth/login, registry: remove dev-journal comments from production code - package.json, main.ts: sync version fallback to 0.3.1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
[███....]brackets (2 extra cols) not accounted for in the box width formula; fix movesbarVisLenbeforeWso the box is sized to the actual contentquota shownow readsflags.output(explicit--outputflag only) instead ofconfig.output, so the rich HUD shows in TTY even when the user hasoutput: jsonin config.yaml0.1.0— now readsCLI_VERSIONenv var with correct fallback (0.3.1)statusBarPrintedmodule-level flag; the brand bar now prints once per processhandleErrorJSON detection inconsistent — replaced ad-hoc!isTTYcheck withdetectOutputFormat(), consistent with the rest of the CLItext chatsaid "Anthropic Messages API"; corrected to "MiniMax Messages API"printChildrennow collects all leaf paths first and aligns the description column to the longest full path (fixesvideo task getindented further than siblings)// --- Phase 4 ---markers and❄️ 暂时雪藏emoji from registry/loginTest plan
minimax quota show --output text --no-color— all rows flush with the box bordersminimax quota showwithoutput: jsonin config.yaml — rich HUD still shows in TTYminimax quota show --output json— JSON output still worksminimax video --help—video generate,video task get,video downloaddescriptions are left-alignedminimax text chat --help— description reads "MiniMax Messages API"minimax unknowncmdin a TTY — human-readable error; withMINIMAX_OUTPUT=json— JSON error🤖 Generated with Claude Code