mmx-cli 1.0.15 → 1.0.17

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 CHANGED
@@ -130,6 +130,8 @@ mmx search "MiniMax AI"
130
130
  mmx search query --q "latest news" --output json
131
131
  ```
132
132
 
133
+ > The `/v1/coding_plan/search` API returns at most 10 results per call and does not currently expose a pagination parameter (see #107). Refine your query if you need different results.
134
+
133
135
  ### `mmx auth`
134
136
 
135
137
  ```bash
@@ -144,10 +146,28 @@ mmx auth logout
144
146
  ```
145
147
 
146
148
  `mmx auth status` is the canonical way to verify active authentication.
147
- Both OAuth and API-key credentials live in `~/.mmx/config.json` (the two are
148
- mutually exclusive — logging in with one method clears the other). API keys
149
- can also be passed per command via `--api-key`. With an API key, the region
150
- is auto-detected by probing both Global and CN.
149
+
150
+ **OAuth** uses the [Device Authorization Grant (RFC 8628)](https://tools.ietf.org/html/rfc8628) with PKCE —
151
+ the CLI opens your browser, you enter a code, and `access_token` + `refresh_token`
152
+ are saved to `~/.mmx/config.json`. Tokens refresh automatically (5-min buffer);
153
+ manual refresh via `mmx auth refresh`.
154
+
155
+ **API key** auth auto-detects the correct region by probing both Global and CN.
156
+ Useful for CI/CD (`mmx auth login --api-key sk-xxxxx`), or pass per-command via `--api-key`.
157
+
158
+ OAuth and API key are mutually exclusive — logging in with one clears the other.
159
+ Credential priority: `--api-key` flag > OAuth (config) > `api_key` (config).
160
+
161
+ ### Environment variables
162
+
163
+ | Variable | Description |
164
+ |---|---|
165
+ | `MINIMAX_REGION` | `global` or `cn`. |
166
+ | `MINIMAX_BASE_URL` | Override the API base URL. |
167
+ | `MINIMAX_OUTPUT` | `text` or `json`. |
168
+ | `MINIMAX_TIMEOUT` | Request timeout in seconds. |
169
+ | `MINIMAX_VERBOSE` | `1` to enable verbose HTTP logging. |
170
+ | `MMX_CONFIG_DIR` | Directory containing the `config.json` file (default: `~/.mmx`). Set this when `mmx` runs from a subprocess, service, or CI job whose home directory differs from where you logged in. |
151
171
 
152
172
  ### `mmx config` · `mmx quota`
153
173
 
package/dist/index.d.ts CHANGED
@@ -159,10 +159,9 @@ export interface SpeechRequest {
159
159
  channel?: number;
160
160
  };
161
161
  language_boost?: string;
162
- pronunciation_dict?: Array<{
163
- tone: string;
164
- text: string;
165
- }>;
162
+ pronunciation_dict?: {
163
+ tone: string[];
164
+ };
166
165
  output_format?: "url" | "hex";
167
166
  stream?: boolean;
168
167
  subtitle_enable?: boolean;
@@ -248,6 +247,7 @@ export interface MusicRequest {
248
247
  lyrics_optimizer?: boolean;
249
248
  audio_url?: string;
250
249
  audio_base64?: string;
250
+ cover_feature_id?: string;
251
251
  seed?: number;
252
252
  audio_setting?: {
253
253
  format?: string;
@@ -283,11 +283,16 @@ export interface QuotaModelRemain {
283
283
  remains_time: number;
284
284
  current_interval_total_count: number;
285
285
  current_interval_usage_count: number;
286
+ current_interval_remaining_percent?: number;
286
287
  current_weekly_total_count: number;
287
288
  current_weekly_usage_count: number;
289
+ current_weekly_remaining_percent?: number;
290
+ current_interval_status?: number;
291
+ current_weekly_status?: number;
288
292
  weekly_start_time: number;
289
293
  weekly_end_time: number;
290
294
  weekly_remains_time: number;
295
+ weekly_boost_permille?: number;
291
296
  }
292
297
  export interface FileUploadResponse {
293
298
  base_resp: BaseResp;