Skip to content

refactor: JSON-only config, remove yaml dependency#20

Merged
RyanLee-Dev merged 1 commit intomainfrom
refactor/json-only
Apr 1, 2026
Merged

refactor: JSON-only config, remove yaml dependency#20
RyanLee-Dev merged 1 commit intomainfrom
refactor/json-only

Conversation

@RyanLee-Dev
Copy link
Copy Markdown
Collaborator

Summary

  • ~/.minimax/config.yaml~/.minimax/config.json
  • yaml 包完全移除(bundle 从 126 模块降到 54 模块)
  • --output yaml 选项移除,只保留 text / json
  • 无兼容处理,直接切换

Changed files

File Change
config/paths.ts config.json
config/loader.ts JSON.parse / JSON.stringify
output/formatter.ts 去掉 yaml case 和 import
config/schema.ts OutputFormat = 'text' | 'json'
package.json 移除 yaml 依赖
tests 同步更新

🤖 Generated with Claude Code

- config/paths.ts: config.yaml → config.json
- config/loader.ts: JSON.parse/stringify, no yaml import
- output/formatter.ts: drop yaml case, OutputFormat = 'text' | 'json'
- config/schema.ts: remove 'yaml' from output types
- config/set.ts, command.ts, registry.ts: update output format docs
- auth/resolver.ts, auth/login.ts, auth/logout.ts: config.yaml → config.json
- package.json, bun.lock: remove yaml dependency
- tests: remove yaml test case, update config.yaml refs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@RyanLee-Dev RyanLee-Dev merged commit 078847a into main Apr 1, 2026
2 checks passed
@MiniMax-AI-Dev MiniMax-AI-Dev deleted the refactor/json-only branch April 2, 2026 21:08
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.

1 participant