Skip to content

feat: add MiniMax brand true-color status bar#6

Merged
ryanlee666 merged 2 commits intoMiniMax-AI:mainfrom
victor0602:main
Mar 30, 2026
Merged

feat: add MiniMax brand true-color status bar#6
ryanlee666 merged 2 commits intoMiniMax-AI:mainfrom
victor0602:main

Conversation

@victor0602
Copy link
Copy Markdown
Contributor

@victor0602 victor0602 commented Mar 29, 2026

Changes

Brand Status Bar (v0.5.0)

Replaced the plain HTTP request debug output with a beautiful MiniMax-branded true-color status bar rendered in the terminal.

Terminal output preview:

MINIMAX Region: CN | Key: sk-c...nI7s | Model: MiniMax-M2.7

Implementation highlights

  1. 加粗品牌标识
    Used — the prefix renders as bold, eye-catching brand wordmark

  2. 真彩色 RGB 渲染
    Replaced all generic system colors with precise 24-bit ANSI true-color codes:

    • (#2B52FF) — MINIMAX wordmark (bold)
    • (#9333EA) — model name
    • (#06B8D4) — region
    • (#EC4899) — masked API key
  3. 关键状态透出

    • Region: auto-detected from (CN for , Global otherwise)
    • Key: masked to format (first 4 + last 4 chars)
  4. 模型信息注入
    Scans and appends to the status bar on every API call


Other improvements

  • Status bar respects --quiet flag (suppressed when quiet mode is on)
  • Only renders when stderr is a TTY — safe for log redirection
  • Removed duplicate [Model: ...] prints in src/commands/text/chat.ts to avoid double output

Files changed

  • src/client/http.ts — true-color status bar in HTTP request path
  • src/commands/text/chat.ts — removed duplicate model output
  • README.md — added ## Changelog section documenting v0.5.0

- Replace single-icon prefix with bold MINIMAX brand wordmark
- Use 24-bit true color (RGB) matching brand palette:
  - mmBlue (#2B52FF) for MINIMAX wordmark
  - mmPurple (#9333EA) for model name
  - mmCyan (#06B8D4) for region
  - mmPink (#EC4899) for masked API key
- Status bar shows: MINIMAX Region: CN | Key: sk-c...nI7s | Model: MiniMax-M2.7
- Only renders when stderr is a TTY (no effect on redirected logs)
- Replace single-icon prefix with bold MINIMAX wordmark
- Use 24-bit true color (RGB) matching brand palette:
  - mmBlue (#2B52FF) for MINIMAX wordmark
  - mmPurple (#9333EA) for model name
  - mmCyan (#06B8D4) for region
  - mmPink (#EC4899) for masked API key
- Status bar respects --quiet flag and only renders in TTY
- Remove duplicate [Model: ...] output from text/chat.ts
- Update README with changelog entry for v0.5.0
@ryanlee666 ryanlee666 merged commit 86e0bd1 into MiniMax-AI:main Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants