Commit Graph

10 Commits

Author SHA1 Message Date
blacksmith-sh[bot] ed7be04790 Migrate workflows to Blacksmith 2026-07-16 13:49:51 +00:00
NianJiuZst 1635a84767 fix: isolate PR checks from review secrets 2026-07-14 18:34:52 +08:00
yuanhe 329dae9bd2 feat: add AI PR review workflow for automated PR testing
Run typecheck, tests, and lint on pull requests via Claude Code,
with optional live mmx API smoke tests when MINIMAX_API_KEY is set.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 20:09:40 +08:00
yuanhe cfa1d6fd92 ci: add automated release workflow for v* tags
Made-with: Cursor
2026-04-08 12:50:12 -07:00
yuanhe bf9bee5e53 refactor: rename CLI command from minimax to mmx
Follow industry convention (gh, az, hf) where platform API CLIs use
abbreviated company names, distinguishing from AI agent CLIs that use
full product names (claude, gemini, copilot).

Changes:
- npm package: minimax-cli → mmx-cli
- binary/command: minimax → mmx
- config directory: ~/.minimax → ~/.mmx
- User-Agent: mmx-cli/<version>
- All help text, usage strings, examples, and docs updated
- ASCII banner updated to MMX
- Build output: dist/mmx.mjs
- OAuth client ID: mmx-cli

Unchanged (company/API references):
- API URLs (api.minimax.io, api.minimaxi.com)
- Environment variables (MINIMAX_API_KEY, MINIMAX_REGION, etc.)
- GitHub repo path (MiniMax-AI-Dev/minimax-cli)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 07:41:28 -07:00
yuanhe 27e16066b0 refactor: npm-only distribution
Install: npm install -g minimax-cli (requires Node.js 18+)

- package.json: remove private, add bin/files/engines/prepublishOnly
- build.ts: only builds minimax.mjs, no platform binaries
- install.sh: deleted (replaced by npm install)
- release.yml: tests only, no binary release artifacts
- update command: print "npm update -g minimax-cli" instead of self-update
- main.ts: update notification shows npm command
- README/README_CN: npm install -g minimax-cli

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 19:36:07 +08:00
yuanhe 1b4524584c ci: fix release upload globs
Upload minimax-* (platform binaries) + minimax.mjs + manifest.json.
Old globs (*.tar.gz, *.zip) no longer match after build.ts refactor.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 19:19:56 +08:00
yuanhe f725899d08 build: compress release binaries with tar.gz/zip, add --minify
Made-with: Cursor
2026-03-28 00:41:26 +08:00
yuanhe 8c79e208f4 Refactor distribution: remove zod, centralize config I/O, add self-update
- Remove zod dependency (-200KB bundle); replace with 20-line manual validation
- Centralize config read/write into readConfigFile/writeConfigFile, eliminating
  yaml parse/stringify duplication across 5 files
- Add src/update/checker.ts: background update check, 24h throttle, fire-and-forget
- Add src/update/self-update.ts: SHA256-verified atomic binary replacement
- Add `minimax update [stable|latest|VERSION]` command
- Startup update notification (prints to stderr after command, respects --quiet)
- Rewrite install.sh: SHA256 verification, Rosetta2 detection, musl detection,
  curl/wget fallback, channel param, defaults to ~/.local/bin (no sudo)
- build.ts: proper bun musl targets, Windows target, generates manifest.json with
  per-platform SHA256 checksums
- release.yml: test job gates release job; uploads manifest.json alongside binaries

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 23:02:26 +08:00
tars90percent b540ee49f4 Initial commit: minimax-cli
CLI for the MiniMax API Platform (Token Plan). Supports 16 commands
across 10 resource groups: text chat, speech synthesis, image generation,
video generation, music generation, web search, image understanding,
quota management, auth, and config.

Features:
- Resource-verb grammar (minimax <resource> <command>)
- Auto-detects API region (global/cn) on first run
- Structured output (text, json, yaml)
- SSE streaming for chat
- Async polling for video generation
- Cross-compiles to standalone binaries via Bun
- Works with Node 18+ via npm install
2026-03-26 17:37:11 +08:00