@minimax-ai/code 0.6.3 → 0.6.5
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/CHANGELOG.md +58 -2
- package/CHANGELOG.zh-CN.md +30 -1
- package/README.md +59 -0
- package/README.zh-CN.md +41 -0
- package/assets/agents/mavis/skills/minimax-code-product/SKILL.md +7 -6
- package/assets/agents/mavis/skills/minimax-code-product/references/account-models.md +13 -4
- package/assets/agents/mavis/skills/minimax-code-product/references/agents.md +1 -1
- package/assets/agents/mavis/skills/minimax-code-product/references/extensions.md +1 -1
- package/assets/agents/mavis/skills/minimax-code-product/references/workflows.md +1 -1
- package/chunks/{anthropic-HVUDB2UQ.js → anthropic-3PPUMUI5.js} +1 -1
- package/chunks/{application-JOJGAMXA.js → application-ZJ5NM3DF.js} +1 -1
- package/chunks/{auth-command-CO6IUQQ5.js → auth-command-OLQL7FZY.js} +1 -1
- package/chunks/{azure-openai-responses-2XUN7HBR.js → azure-openai-responses-TINWNAR2.js} +1 -1
- package/chunks/{chunk-EL5XOH23.js → chunk-2XPMNZVR.js} +541 -536
- package/chunks/{chunk-VN3EYAMT.js → chunk-37SOT72H.js} +1 -1
- package/chunks/{chunk-Z4VKGZFA.js → chunk-3FETZOUF.js} +30 -30
- package/chunks/{chunk-WJZDMLYV.js → chunk-3MHUE4DM.js} +1 -1
- package/chunks/{chunk-UJCQHSQD.js → chunk-76MC32T2.js} +1 -1
- package/chunks/{chunk-U7ACBEGU.js → chunk-JIWEZSQY.js} +676 -675
- package/chunks/{chunk-7CKVJIAL.js → chunk-JL7ZXU6T.js} +1 -1
- package/chunks/{chunk-YC47AWPX.js → chunk-LM3FMMAB.js} +1 -1
- package/chunks/{chunk-GPPNWE6W.js → chunk-LQIEYG3O.js} +8 -3
- package/chunks/{chunk-T6KXDH7B.js → chunk-NFVRVRCL.js} +1 -1
- package/chunks/{chunk-YPNDEPC5.js → chunk-NXXFMBAV.js} +1 -1
- package/chunks/{chunk-HVP63X6W.js → chunk-ONRKFD6S.js} +1 -1
- package/chunks/{chunk-T4F6MBL2.js → chunk-OSA3A5UV.js} +1 -1
- package/chunks/chunk-RDUENEEQ.js +2 -0
- package/chunks/{chunk-XYED4XTT.js → chunk-TWO6GIVD.js} +99 -99
- package/chunks/{chunk-5GISCO53.js → chunk-U5SHMJ7Y.js} +1 -1
- package/chunks/{chunk-G64EFDMH.js → chunk-UOE7W4PK.js} +1 -1
- package/chunks/{data-dir-4GSZVAMG.js → data-dir-KFZIXVT7.js} +1 -1
- package/chunks/{dist-DQKO47DC.js → dist-PBZ5PIWM.js} +1 -1
- package/chunks/{google-R5XVVF36.js → google-W4KKPJIU.js} +1 -1
- package/chunks/{google-vertex-IQCRUNEW.js → google-vertex-K2VBU5YX.js} +1 -1
- package/chunks/{install-source-KWOIXLTZ.js → install-source-REWTEDE3.js} +1 -1
- package/chunks/{launcher-ST7GNBTY.js → launcher-BK5UP7KA.js} +159 -156
- package/chunks/{lifecycle-MEDWAANQ.js → lifecycle-RMTLVDXY.js} +1 -1
- package/chunks/main-ANJ6TEDF.js +9 -0
- package/chunks/{mistral-YGQW5B3K.js → mistral-5IVMGNIC.js} +1 -1
- package/chunks/{openai-codex-responses-2JCAFRE3.js → openai-codex-responses-HMN5LXLI.js} +1 -1
- package/chunks/{openai-completions-HCLBIIWV.js → openai-completions-A22BIUQL.js} +1 -1
- package/chunks/openai-responses-7MFUVUZA.js +2 -0
- package/chunks/{plugin-command-EZNOWONW.js → plugin-command-AXB4A2DP.js} +1 -1
- package/chunks/{provider-command-OJLRQ76A.js → provider-command-2MVBCAF6.js} +1 -1
- package/chunks/{run-acp-command-Z5CVNHZZ.js → run-acp-command-4JFNMYRS.js} +2 -2
- package/chunks/{run-exec-command-MT4Y6VPF.js → run-exec-command-SAUHM46S.js} +8 -8
- package/chunks/{update-XSUZQSPB.js → update-HOQ5YQFF.js} +1 -1
- package/cli.js +2 -2
- package/package.json +1 -1
- package/chunks/chunk-22LFXEGJ.js +0 -2
- package/chunks/main-7X6VQMDB.js +0 -9
- package/chunks/openai-responses-65UFQVVM.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,62 @@ This changelog covers important changes that directly affect MCode TUI users. It
|
|
|
7
7
|
|
|
8
8
|
Internal refactors, test-only changes, and changes limited to other product surfaces are excluded.
|
|
9
9
|
|
|
10
|
+
## 0.6.5 · 2026-10-08
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- The TUI and embedded CLI now honor the per-Session subagent concurrency limit from
|
|
15
|
+
`config.yaml`, the same setting Desktop already used. The default stays `4`, and only a positive
|
|
16
|
+
safe integer takes effect. New `task` and activating `task_append` calls are admitted immediately:
|
|
17
|
+
when the limit is reached they return `SUBAGENT_CONCURRENCY_LIMIT` instead of queueing and
|
|
18
|
+
reporting Started first. Changing the value takes effect after restarting the Runtime. When a TUI
|
|
19
|
+
and Desktop share one data directory, both count occupancy from the same parent-child records, so
|
|
20
|
+
each process sees the same usage.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- The output-speed readout no longer spikes at the start of a turn. Output buffered upstream and
|
|
25
|
+
released in one burst is now excluded, so a burst arriving within the first tenth of the request
|
|
26
|
+
no longer reports a rate far above what the model actually produced.
|
|
27
|
+
|
|
28
|
+
## 0.6.4 · 2026-10-08
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Start a new Session in lightweight conversation mode with `--mode lightweight`. It sends a small
|
|
33
|
+
conversational system prompt and no tool schemas, and omits workspace instructions, Skills, memory
|
|
34
|
+
blocks, and MCP schemas, so it cannot inspect or change local files. The mode is fixed when a root
|
|
35
|
+
Session is created and cannot be combined with `--session` or `--continue`; child Agents,
|
|
36
|
+
`/compact`, ACP, and Desktop Sessions stay on the standard context. Reopening a lightweight
|
|
37
|
+
Session keeps its mode and shows `Lightweight` in the status line.
|
|
38
|
+
- Each model request attempt now has a first-response bound and a stream idle bound, both 300
|
|
39
|
+
seconds by default. A request that passes a bound is aborted and reported as a retryable timeout,
|
|
40
|
+
so the normal model-request retry runs instead of waiting out the 20-minute overall request
|
|
41
|
+
limit; once visible output has started, the turn fails instead of retrying. Override the bounds
|
|
42
|
+
with `MCODE_LLM_FIRST_EVENT_TIMEOUT_MS` and `MCODE_LLM_STREAM_IDLE_TIMEOUT_MS`, where `0` disables
|
|
43
|
+
a bound.
|
|
44
|
+
|
|
45
|
+
### Improved
|
|
46
|
+
|
|
47
|
+
- A single model request carries at most 20 images by default. Older images in the request are
|
|
48
|
+
replaced with a text note while the stored history keeps every image, and a provider that allows
|
|
49
|
+
fewer images per request can set `max_images_per_request` on the model. `/compact` falls back to
|
|
50
|
+
a candidate without attachments when the provider rejects an image limit.
|
|
51
|
+
- Deterministic provider rejections, such as an image limit or an HTTP 400 `invalid_request_error`,
|
|
52
|
+
are now reported immediately instead of being retried.
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
|
|
56
|
+
- Scrolling back through a long conversation no longer snaps the viewport back to the top of the
|
|
57
|
+
session when output changes already-scrolled text or collapses a region while you have not typed
|
|
58
|
+
anything. The rebuild is deferred to your next keystroke, so the screen holds your position;
|
|
59
|
+
readers following the tail still stay at the bottom.
|
|
60
|
+
- Clearing or pausing a Goal while a response is still running now says that the current response
|
|
61
|
+
keeps running and to press Esc to interrupt it, instead of implying the turn already stopped.
|
|
62
|
+
- `/retry` is only offered when the Session is idle. A response that is still running has not failed
|
|
63
|
+
yet, so the command points at stopping it instead of reporting that there is nothing to retry.
|
|
64
|
+
- `cron once --after` accepts `w` (weeks) alongside the existing duration units.
|
|
65
|
+
|
|
10
66
|
## 0.6.3 · 2026-10-05
|
|
11
67
|
|
|
12
68
|
### Added
|
|
@@ -46,8 +102,8 @@ Internal refactors, test-only changes, and changes limited to other product surf
|
|
|
46
102
|
- The official default model is now `MiniMax-M3.1-Flash-Preview` when no model has been selected.
|
|
47
103
|
- When a Goal is marked complete, the agent now ends with one final reply that summarizes what was
|
|
48
104
|
done and where the deliverables are, instead of stopping right after the status update.
|
|
49
|
-
- Safety refusals from
|
|
50
|
-
is shown and identified as a refusal from the model provider.
|
|
105
|
+
- Safety refusals from the model provider are no longer retried, including on BYOK. The original
|
|
106
|
+
error is shown and identified as a refusal from the model provider.
|
|
51
107
|
- TLS record verification errors during a model request now trigger the automatic retry like
|
|
52
108
|
other transient network failures.
|
|
53
109
|
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -8,6 +8,35 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
8
8
|
|
|
9
9
|
仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
|
|
10
10
|
|
|
11
|
+
## 0.6.5 · 2026-10-08
|
|
12
|
+
|
|
13
|
+
### 新增功能
|
|
14
|
+
|
|
15
|
+
- TUI 和内嵌 CLI 现在也会遵守 `config.yaml` 中按 Session 配置的子代理并发上限,与 Desktop 早已生效的设置一致。默认值仍为 `4`,只有正安全整数才生效。新的 `task` 和激活型 `task_append` 采用立即准入:达到上限时直接返回 `SUBAGENT_CONCURRENCY_LIMIT`,不再先排队再报告已启动。修改该值需要重启对应 Runtime。TUI 与 Desktop 共用同一 dataDir 时,双方按同一份父子关系统计占用,两个进程看到的占用一致。
|
|
16
|
+
|
|
17
|
+
### 问题修复
|
|
18
|
+
|
|
19
|
+
- 修复一轮开头输出速度虚高的问题。上游缓冲后一次性吐出的输出现在会被排除,突发输出落在请求前 10% 区间时不再报出远高于模型真实速度的数值。
|
|
20
|
+
|
|
21
|
+
## 0.6.4 · 2026-10-08
|
|
22
|
+
|
|
23
|
+
### 新增功能
|
|
24
|
+
|
|
25
|
+
- 可用 `--mode lightweight` 以轻量对话模式创建新会话:只发送精简的对话系统提示词,不发送工具 schema,并省略工作区指令、Skills、memory 块和 MCP schema,因此不能检查或修改本地文件。模式在根会话创建时固定,不能与 `--session` 或 `--continue` 同时使用;子 Agent、`/compact`、ACP 与 Desktop 会话仍使用标准上下文。重新打开轻量会话时保留该模式,并在状态栏显示 `Lightweight`。
|
|
26
|
+
- 每次模型请求新增首个响应时限与流空闲时限,默认各 300 秒。超过时限的请求会中止并按可重试超时处理,走常规模型请求重试,而不是等满 20 分钟的整体请求上限;已经开始输出可见内容时,本轮直接失败、不再重试。可用 `MCODE_LLM_FIRST_EVENT_TIMEOUT_MS` 和 `MCODE_LLM_STREAM_IDLE_TIMEOUT_MS` 以毫秒覆盖,设为 `0` 表示关闭。
|
|
27
|
+
|
|
28
|
+
### 改进
|
|
29
|
+
|
|
30
|
+
- 单次模型请求默认最多携带 20 张图片,请求中较早的图片会替换为文字说明,已保存的历史仍保留全部图片;Provider 允许的单次图片数更少时,可在模型上设置 `max_images_per_request`。`/compact` 遇到图片超限拒绝时改用去附件的候选生成 checkpoint。
|
|
31
|
+
- 图片数量超限、HTTP 400 `invalid_request_error` 等确定性拒绝会直接报错,不再重试。
|
|
32
|
+
|
|
33
|
+
### 问题修复
|
|
34
|
+
|
|
35
|
+
- 长对话中上滚阅读时,正文输出改变已滚出的历史文本或收起某块区域、且尚未输入,不会再把视口拉回会话开头。重建会延后到下一次按键,屏幕保持原位;跟随尾部的读者仍停在底部。
|
|
36
|
+
- 运行中响应时清除或暂停 Goal,提示会说明当前响应仍在运行、需按 Esc 中断,不再让人以为本轮已经停止。
|
|
37
|
+
- `/retry` 只在会话空闲时可用。仍在运行的响应尚未失败,此时改为提示先停止本轮,而不是报告没有可重试的内容。
|
|
38
|
+
- `cron once --after` 支持 `w`(周)单位,与已有时长单位一起使用。
|
|
39
|
+
|
|
11
40
|
## 0.6.3 · 2026-10-05
|
|
12
41
|
|
|
13
42
|
### 新增功能
|
|
@@ -39,7 +68,7 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
39
68
|
|
|
40
69
|
- 未选择模型时,官方默认模型改为 `MiniMax-M3.1-Flash-Preview`。
|
|
41
70
|
- Goal 标记完成后,Agent 会再写一条最终回复,说明完成了什么、交付物在哪里,不再在状态更新后直接结束。
|
|
42
|
-
-
|
|
71
|
+
- 模型提供方的安全拒答不再重试(BYOK 同样适用),直接展示原始错误,并标识为模型提供方拒答。
|
|
43
72
|
- 模型请求中出现 TLS 记录校验错误时,会和其他临时网络故障一样自动重试。
|
|
44
73
|
|
|
45
74
|
### 问题修复
|
package/README.md
CHANGED
|
@@ -112,6 +112,28 @@ summary visible. `Ctrl+T` continues to open the Todo plan. Background task detai
|
|
|
112
112
|
and wrap the full Bash command while preserving source line breaks. Use PgUp/PgDn to scroll and
|
|
113
113
|
Esc to return. Older tasks without stored command source show only their existing Description.
|
|
114
114
|
|
|
115
|
+
### Lightweight conversations
|
|
116
|
+
|
|
117
|
+
For simple conversation or general knowledge questions, start a new Session with
|
|
118
|
+
`--mode lightweight`:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
mcode --mode lightweight "Explain how DNS caching works."
|
|
122
|
+
mcode exec --mode lightweight "Summarize the CAP theorem."
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Lightweight mode sends a small conversational system prompt and no tool schemas. It omits workspace
|
|
126
|
+
instructions, Skills, memory blocks, MCP schemas, and the full environment block from provider
|
|
127
|
+
context, so it cannot inspect or change local files. Start a new standard Session for coding or
|
|
128
|
+
tool use with `mcode --mode standard` or `mcode exec --mode standard`; omitting `--mode` is
|
|
129
|
+
identical to standard mode.
|
|
130
|
+
|
|
131
|
+
The mode is fixed when a root Session is created. `--mode lightweight` therefore cannot be combined
|
|
132
|
+
with `--session` or `--continue`. Child/sub-agent Sessions do not inherit it, `/compact` continues to
|
|
133
|
+
use the standard compaction context, and ACP and Desktop Sessions remain standard. Reopening a
|
|
134
|
+
lightweight Session keeps its mode and shows `Lightweight` in the TUI status line; opening a standard
|
|
135
|
+
Session from a lightweight launch remains standard and shows no indicator.
|
|
136
|
+
|
|
115
137
|
### Headless and CI
|
|
116
138
|
|
|
117
139
|
`mcode exec` runs a task without opening the TUI:
|
|
@@ -191,6 +213,34 @@ child Agents.
|
|
|
191
213
|
|
|
192
214
|
Run `mcode exec --help` for the complete set of headless options.
|
|
193
215
|
|
|
216
|
+
### Model request timeouts and image limits
|
|
217
|
+
|
|
218
|
+
Each model request attempt has a first-response bound: if the provider accepts the request but
|
|
219
|
+
sends no response within 300 seconds, the attempt is aborted and reported as a retryable timeout,
|
|
220
|
+
so the normal model-request retry runs instead of waiting for the 20-minute overall request limit.
|
|
221
|
+
After the first response event, a stream that stays silent for 300 seconds fails the same way; once
|
|
222
|
+
visible output has started, the turn fails rather than retrying. Override the bounds in
|
|
223
|
+
milliseconds with `MCODE_LLM_FIRST_EVENT_TIMEOUT_MS` and `MCODE_LLM_STREAM_IDLE_TIMEOUT_MS`; `0`
|
|
224
|
+
disables a bound. The timeout error names the setting that fired, and the 20-minute overall request
|
|
225
|
+
limit still applies.
|
|
226
|
+
|
|
227
|
+
Each model request carries at most 20 images by default; older images in the request are replaced
|
|
228
|
+
with a text note while the stored history keeps every image. If a provider allows fewer images per
|
|
229
|
+
request, set `max_images_per_request` on the model (Mistral's API is limited to 8 automatically):
|
|
230
|
+
|
|
231
|
+
```yaml
|
|
232
|
+
custom_provider:
|
|
233
|
+
my-vision-provider:
|
|
234
|
+
models:
|
|
235
|
+
my-vision-model:
|
|
236
|
+
capabilities:
|
|
237
|
+
support_image: true
|
|
238
|
+
max_images_per_request: 8
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Deterministic provider rejections, such as an image limit or an HTTP 400 `invalid_request_error`,
|
|
242
|
+
are reported immediately instead of being retried.
|
|
243
|
+
|
|
194
244
|
### Browser operations
|
|
195
245
|
|
|
196
246
|
The interactive TUI, `mcode exec`, and ACP share the same in-process Runtime lifecycle. The native
|
|
@@ -476,3 +526,12 @@ Runtime 自动加载会话主工作目录的 `.mcp.json`,与 Desktop、exec、
|
|
|
476
526
|
- Windows PowerShell 5.1 的 Bash 包装器传播原生命令退出码,避免将失败命令显示为成功;显式退出和 PowerShell 错误语义保持不变。
|
|
477
527
|
- 内部 Runtime 复用经过验证的不可变历史与参数化查询,并通过 Pi 子路径导入减少无关模块加载。查询仍读取实时数据库内容,外部可变历史继续隔离。
|
|
478
528
|
- Windows 源码 checkout 建议放在本地 NTFS 卷,避免 FAT32/exFAT、网络共享及云同步目录造成 pnpm workspace junction 创建失败。公开仓库新增的 GitHub Windows CI 与 standalone 安装检查未覆盖内部构建链路。
|
|
529
|
+
|
|
530
|
+
### 2026-10-08 公开修复回流
|
|
531
|
+
|
|
532
|
+
- 模型请求增加首个响应与流空闲时限(默认各 300 秒),超时按可重试错误进入常规重试;已有可见输出时不重试。Desktop 共用 agent-core 请求路径,同样生效。
|
|
533
|
+
- 单次请求默认最多携带 20 张图片,可用模型 `max_images_per_request` 调低;图片超限和 HTTP 400 `invalid_request_error` 不再重试。`/compact` 遇到图片超限拒绝时改用去附件候选生成 checkpoint。
|
|
534
|
+
- 新增 `--mode lightweight` 轻量对话模式,仅作用于 TUI / exec 创建的根会话;Desktop、ACP、子会话和压缩保持标准上下文。Session purpose 读取失败时回落标准模式。
|
|
535
|
+
- 正文输出导致布局收缩或已滚出行变化且无用户输入时,延后重建完整投影,避免输入期间抖动(TUI Engine 本地改动 L048)。
|
|
536
|
+
- `cron once --after` 支持 `w`(周)单位,时长按线性累加解析。
|
|
537
|
+
- 运行中的 Goal 提示可感知 live run,`/retry` 只在空闲时可用。
|
package/README.zh-CN.md
CHANGED
|
@@ -52,6 +52,7 @@ API Key 从 `MCODE_PROVIDER_API_KEY` 或 `--api-key-env` 指定的环境变量
|
|
|
52
52
|
|
|
53
53
|
第三方 relay 的自定义 header 配置位于 `custom_provider.<id>.options.headers`,例如
|
|
54
54
|
`headers: { HTTP-Referer: "https://example.com", X-Title: "My CLI" }`;请保留已有 provider 和模型配置。不要把 header 中的凭据放进命令行参数或问题反馈。
|
|
55
|
+
第三方 Provider 的模型请求默认携带 `User-Agent: MiniMaxCode`;在上述 headers 中配置 `User-Agent` 可替换为 relay 要求的值。
|
|
55
56
|
|
|
56
57
|
Fullscreen Transcript 提供可点击、拖动的滚动条。`/statusline` 可选择默认关闭的 `context-meter`
|
|
57
58
|
显示剩余上下文刻度,详情见 [状态栏配置](docs/status-line-config.md)。
|
|
@@ -195,6 +196,25 @@ Agent Team 与 Runtime 后台任务会在 Composer 上方合并为一条按严
|
|
|
195
196
|
可打开统一详情视图,查看当前完整列表和状态;按 Enter 可打开 Agent 子 Session 的 Transcript;近期已完成的 Runtime 任务在结果交付后仍会保留,但不会让 Composer 摘要持续显示。任务状态仍由 Runtime 持有,`Ctrl+T`
|
|
196
197
|
仍用于打开 Todo 计划。后台任务详情优先展示失败错误,并按终端宽度换行显示完整 Bash 命令(保留原始换行);可用 PgUp/PgDn 滚动、Esc 返回列表。旧任务若没有保存完整命令,只展示已有 Description 摘要。
|
|
197
198
|
|
|
199
|
+
### 轻量对话
|
|
200
|
+
|
|
201
|
+
对于简单对话或通用知识问答,可用 `--mode lightweight` 创建新会话:
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
mcode --mode lightweight "解释 DNS 缓存的工作原理。"
|
|
205
|
+
mcode exec --mode lightweight "概述 CAP 定理。"
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
轻量模式只发送精简的对话系统提示词,不发送工具 schema,并从提供方上下文中省略工作区指令、Skills、memory
|
|
209
|
+
块、MCP schema 和完整环境块,因此不能检查或修改本地文件。需要编程或工具能力时,请使用
|
|
210
|
+
`mcode --mode standard` 或 `mcode exec --mode standard` 创建新的标准会话;省略 `--mode`
|
|
211
|
+
与标准模式完全一致。
|
|
212
|
+
|
|
213
|
+
模式在根会话创建时固定,因此 `--mode lightweight` 不能与 `--session` 或 `--continue`
|
|
214
|
+
同时使用。子代理/子会话不会继承轻量模式,`/compact` 仍使用标准压缩上下文,ACP 与 Desktop
|
|
215
|
+
会话也始终使用标准模式。重新打开轻量会话时会保留该模式,并在 TUI 状态栏显示
|
|
216
|
+
`Lightweight`;从轻量模式启动的 TUI 打开标准会话时仍保持标准模式,且不显示该标记。
|
|
217
|
+
|
|
198
218
|
### 直接执行终端命令
|
|
199
219
|
|
|
200
220
|
在 TUI 输入 `!pwd` 或 `!git status`
|
|
@@ -336,6 +356,27 @@ CI 默认安装
|
|
|
336
356
|
`@minimax-ai/code@latest`。上述开关默认关闭,需确认实际安装版本包含新参数与停止凭据后启用;启动时会检查 CLI 参数能力,不支持时直接失败。诊断可能含业务代码,须限制 GitLab
|
|
337
357
|
artifacts 访问权限与保留时间。
|
|
338
358
|
|
|
359
|
+
### 模型请求超时与图片上限
|
|
360
|
+
|
|
361
|
+
每次模型请求都有首个响应时限:Provider 接受请求后 300 秒内没有任何响应时,本次尝试会中止并按可重试超时处理,走常规模型请求重试,而不是等满 20 分钟的整体请求上限。收到首个响应事件后,流连续 300 秒无输出也按同样方式失败;已经开始输出可见内容时,本轮直接失败,不再重试。可用
|
|
362
|
+
`MCODE_LLM_FIRST_EVENT_TIMEOUT_MS` 和 `MCODE_LLM_STREAM_IDLE_TIMEOUT_MS`
|
|
363
|
+
以毫秒覆盖这两个时限,设为 `0` 表示关闭。超时错误会写明触发的是哪项设置,20 分钟整体上限仍然有效。
|
|
364
|
+
|
|
365
|
+
单次模型请求默认最多携带 20 张图片,请求中较早的图片会替换为文字说明,已保存的历史仍保留全部图片。Provider
|
|
366
|
+
允许的单次图片数更少时,可在模型上设置 `max_images_per_request`(Mistral API 自动限制为 8):
|
|
367
|
+
|
|
368
|
+
```yaml
|
|
369
|
+
custom_provider:
|
|
370
|
+
my-vision-provider:
|
|
371
|
+
models:
|
|
372
|
+
my-vision-model:
|
|
373
|
+
capabilities:
|
|
374
|
+
support_image: true
|
|
375
|
+
max_images_per_request: 8
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
图片数量超限、HTTP 400 `invalid_request_error` 等确定性拒绝会直接报错,不再重试。
|
|
379
|
+
|
|
339
380
|
### Browser 操作
|
|
340
381
|
|
|
341
382
|
MCode 的交互式 TUI、`mcode exec` 和 ACP 共用同一个进程内 Runtime 生命周期。原生无头 Browser
|
|
@@ -69,16 +69,16 @@ These are the four authoritative discovery roots:
|
|
|
69
69
|
|
|
70
70
|
| Runtime region | MiniMax Code product/workflow/Agent/extension docs | Open Platform account/model/API/billing docs |
|
|
71
71
|
| -------------- | -------------------------------------------------- | --------------------------------------------- |
|
|
72
|
-
| `cn` | `https://agent.minimax.cn/docs/llms.txt` | `https://platform.
|
|
72
|
+
| `cn` | `https://agent.minimax.cn/docs/llms.txt` | `https://platform.minimax.cn/docs/llms.txt` |
|
|
73
73
|
| `en` | `https://agent.minimax.io/docs/llms.txt` | `https://platform.minimax.io/docs/llms.txt` |
|
|
74
74
|
|
|
75
75
|
Select the column by the question domain:
|
|
76
76
|
|
|
77
77
|
- Product identity, Desktop/Web/CLI/TUI, workflows, Agents, Skills, Plugins, and MCP →
|
|
78
78
|
current-region MiniMax Code index.
|
|
79
|
-
- Token Plan, credits, pricing, API keys, model catalog, model API, and media API →
|
|
80
|
-
Open Platform index; use the current-region MiniMax Code index too when the question
|
|
81
|
-
product-surface behavior or in-app entitlement.
|
|
79
|
+
- M Plan, legacy Token Plan, credits, pricing, API keys, model catalog, model API, and media API →
|
|
80
|
+
current-region Open Platform index; use the current-region MiniMax Code index too when the question
|
|
81
|
+
concerns Code product-surface behavior or in-app entitlement.
|
|
82
82
|
- Current Desktop version and download links → current-region changelog:
|
|
83
83
|
- `region: cn` → `https://agent.minimax.cn/docs/changelog.md`
|
|
84
84
|
- `region: en` → `https://agent.minimax.io/docs/changelog.md`
|
|
@@ -95,8 +95,9 @@ metadata for this product question.
|
|
|
95
95
|
page when available. For a Desktop latest-version or download question, read the newest Desktop
|
|
96
96
|
entry in the current-region changelog first and use its version/date/download links.
|
|
97
97
|
3. If the exact concept is absent, continue searching the same current-region index by domain and
|
|
98
|
-
read the closest authoritative page. For
|
|
99
|
-
|
|
98
|
+
read the closest authoritative page. For current subscriptions and pricing, prefer M Plan, usage,
|
|
99
|
+
or FAQ. Use Token Plan for legacy plans, renewals, and migration questions; the presence of legacy
|
|
100
|
+
pages in the index does not make their rules applicable to M Plan.
|
|
100
101
|
4. If the selected current-region index or page is unavailable, first look for a linked or clearly
|
|
101
102
|
identified official source on another official domain, and verify its product and region. Do not
|
|
102
103
|
silently treat another region's plans or entitlements as current-region facts.
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
# MiniMax account, models, and media reference
|
|
2
2
|
|
|
3
|
-
Use this reference for MiniMax Code or MiniMax Open Platform accounts, Token Plan, subscription keys, credits/points/Credit, plans, usage, quotas, API keys, BYOK, providers, model catalogs and access, context windows, image/audio/music/video or multimodal entitlements, and why a model or media task is unavailable.
|
|
3
|
+
Use this reference for MiniMax Code or MiniMax Open Platform accounts, M Plan, legacy Token Plan, subscription keys, credits/points/Credit, plans, usage, quotas, API keys, BYOK, providers, model catalogs and access, context windows, image/audio/music/video or multimodal entitlements, and why a model or media task is unavailable.
|
|
4
4
|
|
|
5
5
|
## Stable boundaries
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- An M Plan (or legacy Token Plan) subscription resource and pay-as-you-go API balance/API key are different resource paths; never assume their keys, quotas, or model access are interchangeable.
|
|
8
8
|
- Model availability depends on product surface, key/provider type, account, region, plan, version, and current service rollout—not the model name alone.
|
|
9
9
|
- Media support and credit eligibility are separate questions: a model may exist in the catalog without being enabled for the user's product, plan, or requested operation.
|
|
10
10
|
- The Agent cannot change balance, entitlement, quota, permissions, or server-side validation.
|
|
11
11
|
|
|
12
|
+
## M Plan and legacy Token Plan
|
|
13
|
+
|
|
14
|
+
- Use M Plan by default for current subscription questions, and discover its overview, usage, and FAQ
|
|
15
|
+
through the current-region official index. If the user asks about Token Plan or their account still
|
|
16
|
+
shows a legacy plan, read the corresponding legacy-subscriber and migration guidance.
|
|
17
|
+
- Do not treat M Plan as a pure rename of Token Plan or assume existing subscribers migrated
|
|
18
|
+
automatically. Verify renewal, upgrade, quota, multimodal support, and historical entitlements
|
|
19
|
+
separately against the latest official guidance for the current region.
|
|
20
|
+
|
|
12
21
|
## BYOK 环境变量凭据
|
|
13
22
|
|
|
14
23
|
用户希望通过环境变量提供 API Key 时,定位当前客户端或运行时使用的
|
|
@@ -38,14 +47,14 @@ minimax_api:
|
|
|
38
47
|
|
|
39
48
|
Use only the current region's sources:
|
|
40
49
|
|
|
41
|
-
- `region: cn` → MiniMax Code `https://agent.
|
|
50
|
+
- `region: cn` → MiniMax Code `https://agent.minimax.cn/docs/llms.txt`; Open Platform `https://platform.minimax.cn/docs/llms.txt`
|
|
42
51
|
- `region: en` → MiniMax Code `https://agent.minimax.io/docs/llms.txt`; Open Platform `https://platform.minimax.io/docs/llms.txt`
|
|
43
52
|
|
|
44
53
|
MiniMax Code docs are authoritative for product-surface behavior. Open Platform docs are authoritative for API models and underlying billing rules. Prefer `.md` pages discovered from the matching index. Never query both regional indexes for an ordinary current-region question.
|
|
45
54
|
|
|
46
55
|
## Verification workflow
|
|
47
56
|
|
|
48
|
-
1. Identify resource: subscription
|
|
57
|
+
1. Identify resource: M Plan subscription, legacy Token Plan subscription, purchased credits, pay-as-you-go balance, or BYOK provider; do not infer the plan type from "subscription" alone.
|
|
49
58
|
2. Identify surface, region, model, media type, and requested operation.
|
|
50
59
|
3. Read the current regional official pages and specific model/API documentation; do not rely on historical model names, prices, quotas, or UI paths.
|
|
51
60
|
4. For account-specific state, tell the user where to inspect the console and mark balance/entitlement as unverified unless runtime/account evidence exists.
|
|
@@ -13,7 +13,7 @@ Use this reference for Agent, Session, Memory, Goal, Plan, Worker, subagent, Age
|
|
|
13
13
|
|
|
14
14
|
Use only the current region's MiniMax Code index:
|
|
15
15
|
|
|
16
|
-
- `region: cn` → `https://agent.
|
|
16
|
+
- `region: cn` → `https://agent.minimax.cn/docs/llms.txt`
|
|
17
17
|
- `region: en` → `https://agent.minimax.io/docs/llms.txt`
|
|
18
18
|
|
|
19
19
|
Read the current `.md` pages for `/docs/code/agents/team`, `/docs/code/agents/custom-agents`, `/docs/code/agents/memory`, and `/docs/code/desktop/goal`.
|
|
@@ -32,7 +32,7 @@ computer_* tools are unavailable, give a brief entry hint in the user's language
|
|
|
32
32
|
|
|
33
33
|
Use only the current region's MiniMax Code index:
|
|
34
34
|
|
|
35
|
-
- `region: cn` → `https://agent.
|
|
35
|
+
- `region: cn` → `https://agent.minimax.cn/docs/llms.txt`
|
|
36
36
|
- `region: en` → `https://agent.minimax.io/docs/llms.txt`
|
|
37
37
|
|
|
38
38
|
Read the current `.md` pages for `/docs/code/agents/mcp`, `/docs/code/agents/plugins`, and the regional CLI pages `/docs/cli/quick-start`, `/docs/cli/features`, `/docs/cli/faq`.
|
|
@@ -10,7 +10,7 @@ Treat a workflow as the combination of product surface, workspace/project contex
|
|
|
10
10
|
|
|
11
11
|
Use only the current region's MiniMax Code index:
|
|
12
12
|
|
|
13
|
-
- `region: cn` → `https://agent.
|
|
13
|
+
- `region: cn` → `https://agent.minimax.cn/docs/llms.txt`
|
|
14
14
|
- `region: en` → `https://agent.minimax.io/docs/llms.txt`
|
|
15
15
|
|
|
16
16
|
Open the matching `.md` page. Relevant page families include `/docs/code/workflows/modes`, `/workspace`, `/tasks`, `/conversation-collaboration`, `/code-review`, `/permissions`, `/docs/code/desktop/browser`, `/panels`, `/shortcuts`, `/updates-feedback`, `/goal`, and `/docs/code/automation/schedules`, `/remote-control`, `/im`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __mavis_cR } from "module"; import { basename as __mavis_basename, dirname as __mavis_dirname, join as __mavis_join } from "path"; import { fileURLToPath as __mavis_fileURLToPath, pathToFileURL as __mavis_pathToFileURL } from "url"; const __mavis_tuiCurrentModuleDir = __mavis_dirname(__mavis_fileURLToPath(import.meta.url)); const __mavis_tuiPackageRoot = __mavis_basename(__mavis_tuiCurrentModuleDir) === "chunks" ? __mavis_dirname(__mavis_tuiCurrentModuleDir) : __mavis_tuiCurrentModuleDir; const __mavis_tuiPackageEntryUrl = __mavis_pathToFileURL(__mavis_join(__mavis_tuiPackageRoot, "cli.js")).href; const require = __mavis_cR(__mavis_tuiPackageEntryUrl); const __dirname = __mavis_tuiPackageRoot;
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-U5SHMJ7Y.js";import"./chunk-LOQ4VVEN.js";import"./chunk-II4JKPH5.js";import"./chunk-UOE7W4PK.js";import"./chunk-6UEFDGWN.js";import"./chunk-WFWSBUYD.js";import"./chunk-D76SO2ME.js";export{a as DEFAULT_THINKING_MODEL_IDS,b as isDefaultThinkingModelId,c as streamAnthropic,d as streamSimpleAnthropic};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __mavis_cR } from "module"; import { basename as __mavis_basename, dirname as __mavis_dirname, join as __mavis_join } from "path"; import { fileURLToPath as __mavis_fileURLToPath, pathToFileURL as __mavis_pathToFileURL } from "url"; const __mavis_tuiCurrentModuleDir = __mavis_dirname(__mavis_fileURLToPath(import.meta.url)); const __mavis_tuiPackageRoot = __mavis_basename(__mavis_tuiCurrentModuleDir) === "chunks" ? __mavis_dirname(__mavis_tuiCurrentModuleDir) : __mavis_tuiCurrentModuleDir; const __mavis_tuiPackageEntryUrl = __mavis_pathToFileURL(__mavis_join(__mavis_tuiPackageRoot, "cli.js")).href; const require = __mavis_cR(__mavis_tuiPackageEntryUrl); const __dirname = __mavis_tuiPackageRoot;
|
|
2
|
-
import{c as a}from"./chunk-
|
|
2
|
+
import{c as a}from"./chunk-LQIEYG3O.js";import"./chunk-NICEDCLM.js";import"./chunk-FKQFVOLR.js";import"./chunk-3MHUE4DM.js";import"./chunk-RDUENEEQ.js";import"./chunk-HQ2U4QVQ.js";import"./chunk-3FETZOUF.js";import"./chunk-CWWDVX6C.js";import"./chunk-D76SO2ME.js";export{a as McodeUpdateApplication};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __mavis_cR } from "module"; import { basename as __mavis_basename, dirname as __mavis_dirname, join as __mavis_join } from "path"; import { fileURLToPath as __mavis_fileURLToPath, pathToFileURL as __mavis_pathToFileURL } from "url"; const __mavis_tuiCurrentModuleDir = __mavis_dirname(__mavis_fileURLToPath(import.meta.url)); const __mavis_tuiPackageRoot = __mavis_basename(__mavis_tuiCurrentModuleDir) === "chunks" ? __mavis_dirname(__mavis_tuiCurrentModuleDir) : __mavis_tuiCurrentModuleDir; const __mavis_tuiPackageEntryUrl = __mavis_pathToFileURL(__mavis_join(__mavis_tuiPackageRoot, "cli.js")).href; const require = __mavis_cR(__mavis_tuiPackageEntryUrl); const __dirname = __mavis_tuiPackageRoot;
|
|
2
|
-
import{a as o,b as l,c as u}from"./chunk-
|
|
2
|
+
import{a as o,b as l,c as u}from"./chunk-LM3FMMAB.js";import"./chunk-NFVRVRCL.js";import{d as p}from"./chunk-OSA3A5UV.js";import"./chunk-JL7ZXU6T.js";import"./chunk-TWO6GIVD.js";import"./chunk-3FETZOUF.js";import"./chunk-CWWDVX6C.js";import"./chunk-ZITT4GJK.js";import"./chunk-D76SO2ME.js";async function A(r={}){let a=r.createApplication?r.createApplication(r.region):await c(r.region,r.prepareDataDir),t=r.writeError??(e=>process.stderr.write(e));return(await a.login(e=>{let n=l(e.verificationUriComplete??e.verificationUri);if(t(`Open: ${n}
|
|
3
3
|
Code: ${e.userCode}
|
|
4
4
|
Waiting for authorization\u2026
|
|
5
5
|
`),r.openBrowser===!1)return;(r.openExternalTarget??o(process.cwd()))(n).catch(()=>{t(`Couldn't open the default browser. Open the authorization URL above manually.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __mavis_cR } from "module"; import { basename as __mavis_basename, dirname as __mavis_dirname, join as __mavis_join } from "path"; import { fileURLToPath as __mavis_fileURLToPath, pathToFileURL as __mavis_pathToFileURL } from "url"; const __mavis_tuiCurrentModuleDir = __mavis_dirname(__mavis_fileURLToPath(import.meta.url)); const __mavis_tuiPackageRoot = __mavis_basename(__mavis_tuiCurrentModuleDir) === "chunks" ? __mavis_dirname(__mavis_tuiCurrentModuleDir) : __mavis_tuiCurrentModuleDir; const __mavis_tuiPackageEntryUrl = __mavis_pathToFileURL(__mavis_join(__mavis_tuiPackageRoot, "cli.js")).href; const require = __mavis_cR(__mavis_tuiPackageEntryUrl); const __dirname = __mavis_tuiPackageRoot;
|
|
2
|
-
import{a as R,b as g,c as h}from"./chunk-
|
|
2
|
+
import{a as R,b as g,c as h}from"./chunk-76MC32T2.js";import"./chunk-PWQHCWDV.js";import{a as y}from"./chunk-SHXPTUWI.js";import{b as f}from"./chunk-IIHJNKC3.js";import"./chunk-II4JKPH5.js";import{e as d,f as l,h as A,j as E}from"./chunk-UOE7W4PK.js";import{a as m}from"./chunk-6UEFDGWN.js";import"./chunk-WFWSBUYD.js";import"./chunk-D76SO2ME.js";var w="v1",U=new Set(["openai","openai-codex","opencode","azure-openai-responses"]);function O(r){let t=new Map;if(!r)return t;for(let e of r.split(",")){let s=e.trim();if(!s)continue;let[a,n]=s.split("=",2);!a||!n||t.set(a.trim(),n.trim())}return t}function I(r,t){return t?.azureDeploymentName?t.azureDeploymentName:O(process.env.AZURE_OPENAI_DEPLOYMENT_NAME_MAP).get(r.id)||r.id}function z(r){if(r instanceof Error){let t=r.status,e=typeof t=="number"?t:void 0;return e!==void 0?`Azure OpenAI API error (${e}): ${r.message}`:r.message}try{return JSON.stringify(r)}catch{return String(r)}}var N=(r,t,e)=>{let s=new l;return(async()=>{let a=I(r,e),n={role:"assistant",content:[],api:"azure-openai-responses",provider:r.provider,model:r.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"stop",timestamp:Date.now()};try{let o=e?.apiKey;if(!o)throw new Error(`No API key for provider: ${r.provider}`);let i=L(r,o,e),u=M(r,t,e,a),c=await e?.onPayload?.(u,r);c!==void 0&&(u=c);let _={...e?.signal?{signal:e.signal}:{},...e?.timeoutMs!==void 0?{timeout:e.timeoutMs}:{},maxRetries:e?.maxRetries??0},{data:v,response:p}=await i.responses.create(u,_).withResponse();if(await e?.onResponse?.({status:p.status,headers:m(p.headers)},r),s.push({type:"start",partial:n}),await h(v,n,s,r),e?.signal?.aborted)throw new Error("Request was aborted");if(n.stopReason==="aborted"||n.stopReason==="error")throw new Error("An unknown error occurred");s.push({type:"done",reason:n.stopReason,message:n}),s.end()}catch(o){A(e?.onProviderError,o,r);for(let i of n.content)delete i.index,delete i.partialJson;n.stopReason=e?.signal?.aborted?"aborted":"error",n.errorMessage=z(o),s.push({type:"error",reason:n.stopReason,error:n}),s.end()}})(),s},V=(r,t,e)=>{let s=e?.apiKey;if(!s)throw new Error(`No API key for provider: ${r.provider}`);let a=E(r,e,s),n=e?.reasoning?d(r,e.reasoning):void 0;return N(r,t,{...a,reasoningEffort:n==="off"?void 0:n})};function P(r){let t=r.trim().replace(/\/+$/,""),e;try{e=new URL(t)}catch{throw new Error(`Invalid Azure OpenAI base URL: ${r}`)}let s=e.hostname.endsWith(".openai.azure.com")||e.hostname.endsWith(".cognitiveservices.azure.com"),a=e.pathname.replace(/\/+$/,"");return s&&(a===""||a==="/"||a==="/openai")&&(e.pathname="/openai/v1",e.search=""),e.toString().replace(/\/+$/,"")}function b(r){return`https://${r}.openai.azure.com/openai/v1`}function S(r,t){let e=t?.azureApiVersion||process.env.AZURE_OPENAI_API_VERSION||w,s=t?.azureBaseUrl?.trim()||process.env.AZURE_OPENAI_BASE_URL?.trim()||void 0,a=t?.azureResourceName||process.env.AZURE_OPENAI_RESOURCE_NAME,n=s;if(!n&&a&&(n=b(a)),!n&&r.baseUrl&&(n=r.baseUrl),!n)throw new Error("Azure OpenAI base URL is required. Set AZURE_OPENAI_BASE_URL or AZURE_OPENAI_RESOURCE_NAME, or pass azureBaseUrl, azureResourceName, or model.baseUrl.");return{baseUrl:P(n),apiVersion:e}}function L(r,t,e){let s={...r.headers};e?.headers&&Object.assign(s,e.headers);let{baseUrl:a,apiVersion:n}=S(r,e);return new f({apiKey:t,apiVersion:n,dangerouslyAllowBrowser:!0,defaultHeaders:s,baseURL:a})}function M(r,t,e,s){let a=R(r,t,U),n={model:s,input:a,stream:!0,prompt_cache_key:y(e?.sessionId),store:!1};if(e?.maxTokens&&(n.max_output_tokens=e?.maxTokens),e?.temperature!==void 0&&(n.temperature=e?.temperature),t.tools&&t.tools.length>0&&(n.tools=g(t.tools)),r.reasoning)if(e?.reasoningEffort||e?.reasoningSummary){let o=e?.reasoningEffort?r.thinkingLevelMap?.[e.reasoningEffort]??e.reasoningEffort:"medium";n.reasoning={effort:o,summary:e?.reasoningSummary||"auto"},n.include=["reasoning.encrypted_content"]}else r.thinkingLevelMap?.off!==null&&(n.reasoning={effort:r.thinkingLevelMap?.off??"none"});return n}export{N as streamAzureOpenAIResponses,V as streamSimpleAzureOpenAIResponses};
|