mmx-cli 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/dist/index.d.ts +1 -1
- package/dist/mmx.mjs +316 -311
- package/dist/sdk.mjs +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,9 +70,11 @@ derives the npm package version from that tag. See [the release guide](docs/rele
|
|
|
70
70
|
|
|
71
71
|
### `mmx text`
|
|
72
72
|
|
|
73
|
+
`text chat` and `text repl` default to `MiniMax-M3.1-Flash-Preview`. An explicit `--model` or saved `default-text-model` takes precedence. This preview currently requires M Plan or MiniMax Code; with a pay-as-you-go key, select `MiniMax-M3` explicitly. See the [model guide](https://platform.minimax.io/docs/guides/text-generation#agent).
|
|
74
|
+
|
|
73
75
|
```bash
|
|
74
76
|
mmx text chat --message "Write a poem"
|
|
75
|
-
mmx text chat --model MiniMax-M3 --message "Hello" --stream
|
|
77
|
+
mmx text chat --model MiniMax-M3.1-Flash-Preview --message "Hello" --stream
|
|
76
78
|
mmx text chat --system "You are a coding assistant" --message "Fizzbuzz in Go"
|
|
77
79
|
mmx text chat --message "user:Hi" --message "assistant:Hey!" --message "How are you?"
|
|
78
80
|
cat messages.json | mmx text chat --messages-file - --output json
|
|
@@ -196,22 +198,28 @@ Credential priority: `--api-key` flag > OAuth (config) > `api_key` (config).
|
|
|
196
198
|
mmx quota
|
|
197
199
|
mmx config show
|
|
198
200
|
mmx config set --key region --value cn
|
|
199
|
-
mmx config set --key default-text-model --value MiniMax-M3
|
|
201
|
+
mmx config set --key default-text-model --value MiniMax-M3.1-Flash-Preview
|
|
200
202
|
mmx config export-schema | jq .
|
|
201
203
|
```
|
|
202
204
|
|
|
203
205
|
### `mmx agent setup`
|
|
204
206
|
|
|
205
|
-
Configure MiniMax for Claude Code, Codex, Grok Build, OpenCode, Hermes, or Pi while preserving unrelated settings. Run without options for the interactive wizard; supplying options makes the command non-interactive and suitable for scripts.
|
|
207
|
+
Configure MiniMax for Claude Code, Codex, Grok Build, OpenCode, Hermes, Pi, or [Oh my Pi](https://github.com/can1357/oh-my-pi) while preserving unrelated settings. Run without options for the interactive wizard; supplying options makes the command non-interactive and suitable for scripts.
|
|
206
208
|
|
|
207
209
|
```bash
|
|
208
210
|
mmx agent setup
|
|
209
211
|
mmx agent setup --agent codex --agent claude-code --api-key "$MINIMAX_API_KEY" --region global
|
|
210
212
|
mmx agent setup --all --api-key "$MINIMAX_API_KEY" --region cn --output json
|
|
213
|
+
mmx agent setup --agent oh-my-pi --api-key "$MINIMAX_API_KEY" --region global
|
|
214
|
+
# --agent omp is an alias for --agent oh-my-pi
|
|
211
215
|
```
|
|
212
216
|
|
|
217
|
+
`agent setup` defaults to `MiniMax-M3.1-Flash-Preview` for subscription keys and to `MiniMax-M3` for pay-as-you-go keys (`sk-api-...`). In non-interactive mode, `--model` overrides this selection.
|
|
218
|
+
|
|
213
219
|
The command verifies the key and selected region before writing. Existing files are backed up when changed; use `--dry-run` to preview without a live request. In the interactive wizard, compatible agents that are missing from `PATH` can be installed from a second multi-select list using their official packages or installer scripts. The Hermes install uses its official core CLI stages and skips optional system packages, Node workspace, browser, computer-use, setup, and gateway stages. After installation, mmx applies the MiniMax configuration while preserving installer settings. Agents that fail a platform or prerequisite check are explained and left configuration-only. Non-interactive invocations remain configuration-only, and the command never launches an agent.
|
|
214
220
|
|
|
221
|
+
Oh my Pi uses its native `~/.omp/agent/models.yml` and `config.yml` (existing `.yaml` files are updated in place). Configuration honors `OMP_PROFILE` / `PI_PROFILE`, `PI_CONFIG_DIR`, and the default-profile `PI_CODING_AGENT_DIR` override. Run `omp` once to migrate legacy JSON-only configuration before using setup. Interactive installation uses the official prebuilt-binary installer, so it does not require Bun or npm.
|
|
222
|
+
|
|
215
223
|
### `mmx update`
|
|
216
224
|
|
|
217
225
|
```bash
|