Skip to content

fix(cli): allow unauthenticated access to help - #267

Closed
dvd233 wants to merge 1 commit into
MiniMax-AI:mainfrom
dvd233:fix/help-without-auth
Closed

dvd233 wants to merge 1 commit into
MiniMax-AI:mainfrom
dvd233:fix/help-without-auth

Conversation

@dvd233

@dvd233 dvd233 commented Sep 22, 2026

Copy link
Copy Markdown

What changed

Allow mmx help to run before authentication. The command only prints static MiniMax documentation links and does not require credentials or an API request.

Add an offline regression test that runs mmx help without credentials and checks that it exits successfully with the documentation heading.

Why

Before this change, mmx help was omitted from NO_AUTH_SETUP, so an unauthenticated non-interactive invocation failed with No credentials found before reaching the help command.

Validation

  • npx tsc --noEmit
  • npx eslint src/ test/ (0 errors; one pre-existing warning in test/sdk/speech.test.ts)
  • npx tsx src/main.ts help without credentials: exit 0 and documentation links printed
  • bun test not run because Bun is unavailable in the validation environment

Fixes #259


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@dvd233 dvd233 closed this Sep 22, 2026
@dvd233
dvd233 deleted the fix/help-without-auth branch September 22, 2026 19:35
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.

[Bug] 未登录时 mmx help 被认证检查拦截,无法查看公开文档链接

1 participant