@minimax-ai/code 0.4.8 → 0.4.9
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 +14 -0
- package/CHANGELOG.zh-CN.md +11 -0
- package/README.md +16 -3
- package/README.zh-CN.md +17 -2
- package/chunks/{chunk-E6MMSL54.js → chunk-AULSFRR7.js} +469 -469
- package/chunks/{chunk-SLRPB56L.js → chunk-HJ6CAPCI.js} +1 -1
- package/chunks/{chunk-LOASZMQB.js → chunk-PMTJEVJF.js} +407 -407
- package/chunks/{chunk-DIMUZAUA.js → chunk-VOK3LP4U.js} +1 -1
- package/chunks/{launcher-NIEXEZF5.js → launcher-BM4HRRYX.js} +112 -112
- package/chunks/{lifecycle-EEX754QU.js → lifecycle-4CWHNXF2.js} +1 -1
- package/chunks/{main-ANDH2IE5.js → main-CU2PB45W.js} +10 -10
- package/chunks/{plugin-command-STBEQNGX.js → plugin-command-OU7V7644.js} +1 -1
- package/chunks/{provider-command-MKVRALX5.js → provider-command-GGEFE5SP.js} +1 -1
- package/chunks/{run-acp-command-2AEYGDBH.js → run-acp-command-4J3QAQRK.js} +2 -2
- package/chunks/run-exec-command-KD5OCRTX.js +17 -0
- package/cli.js +1 -1
- package/package.json +1 -1
- package/chunks/run-exec-command-LVG3YSVK.js +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,20 @@ 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.4.9 · 2026-09-16
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `mcode exec` and `mcode exec review` support `--effort` to choose reasoning effort for a single run.
|
|
15
|
+
Unsupported levels fail before execution, and the override does not change the session's saved effort.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fixed saving and restoring the default reasoning effort, so new sessions and submitted requests use
|
|
20
|
+
the same level shown in the model picker and status line.
|
|
21
|
+
- Model selection now respects configured effort defaults and fixed levels while preserving the
|
|
22
|
+
Thinking Off setting.
|
|
23
|
+
|
|
10
24
|
## 0.4.8 · 2026-09-16
|
|
11
25
|
|
|
12
26
|
### Added
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -8,6 +8,17 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
8
8
|
|
|
9
9
|
仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
|
|
10
10
|
|
|
11
|
+
## 0.4.9 · 2026-09-16
|
|
12
|
+
|
|
13
|
+
### 新增
|
|
14
|
+
|
|
15
|
+
- `mcode exec` 和 `mcode exec review` 支持通过 `--effort` 指定本次运行的思考强度;不支持的档位会在执行前报错,且不会改写会话已保存的强度。
|
|
16
|
+
|
|
17
|
+
### 修复
|
|
18
|
+
|
|
19
|
+
- 修复默认思考强度的保存与恢复,使新会话和实际请求使用的强度与模型选择器、状态栏显示一致。
|
|
20
|
+
- 模型选择尊重已配置的默认强度和固定档位,并保留关闭思考的设置。
|
|
21
|
+
|
|
11
22
|
## 0.4.8 · 2026-09-16
|
|
12
23
|
|
|
13
24
|
### 新增
|
package/README.md
CHANGED
|
@@ -125,10 +125,23 @@ mcode exec --cwd ./repo --file error.log "Find the cause of this build failure."
|
|
|
125
125
|
# Produce machine-readable output
|
|
126
126
|
mcode exec --output-format json "Summarize the current branch."
|
|
127
127
|
|
|
128
|
+
# Raise the reasoning effort for this Run only
|
|
129
|
+
mcode exec --model custom_provider:work/deep-reasoner-1 --effort xhigh "Plan this migration."
|
|
130
|
+
|
|
128
131
|
# Review local changes in a workspace
|
|
129
132
|
mcode exec review --cwd ./repo
|
|
130
133
|
```
|
|
131
134
|
|
|
135
|
+
`--effort` sets the reasoning effort for this Run only and is independent of `--model`. Used alone it
|
|
136
|
+
applies to the Session's current model. The level is validated against the model's advertised effort
|
|
137
|
+
levels before the Turn starts, so an unsupported level or a model without effort support fails with a
|
|
138
|
+
non-zero exit code instead of running at some other strength. The override is never written back to
|
|
139
|
+
the Session, so resuming with `--session` or `--continue` restores the Session's own level.
|
|
140
|
+
|
|
141
|
+
An effort level is not a model variant. `--model provider/model#xhigh` still runs, unchanged, but
|
|
142
|
+
Runtime reads the suffix as part of the model identity and applies its own default strength, so the
|
|
143
|
+
requested level is silently dropped. Use `--effort xhigh` whenever the level has to take effect.
|
|
144
|
+
|
|
132
145
|
For automation, `--output-schema` accepts an inline JSON object or file path and constrains the
|
|
133
146
|
model's final answer for Anthropic Messages, OpenAI Responses, and Chat Completions. The outer
|
|
134
147
|
`--output-format json` value remains a stable `ExecResult`; models without strict Structured Output
|
|
@@ -137,9 +150,9 @@ final answer passes validation and Runtime completes its bounded shutdown. Use
|
|
|
137
150
|
`--output-format stream-json` to stream progress.
|
|
138
151
|
|
|
139
152
|
`mcode exec review` always reviews staged, unstaged, and untracked local changes. It supports
|
|
140
|
-
`--cwd`, `--model`, `--config`, `--permission`, `--timeout`, `--max-steps`,
|
|
141
|
-
`--output-last-message`. Findings exit with code `0`; invocation, Runtime, or
|
|
142
|
-
failures use a non-zero exit code.
|
|
153
|
+
`--cwd`, `--model`, `--effort`, `--config`, `--permission`, `--timeout`, `--max-steps`,
|
|
154
|
+
`--output-format`, and `--output-last-message`. Findings exit with code `0`; invocation, Runtime, or
|
|
155
|
+
invalid Review result failures use a non-zero exit code.
|
|
143
156
|
|
|
144
157
|
Use `--prompt-mode` to select `tui` (default), `coding`, or `work` for a benchmark:
|
|
145
158
|
|
package/README.zh-CN.md
CHANGED
|
@@ -194,15 +194,27 @@ mcode exec --cwd ./repo --file error.log "定位这次构建失败的原因。"
|
|
|
194
194
|
# 输出机器可读 JSON
|
|
195
195
|
mcode exec --output-format json "总结当前分支。"
|
|
196
196
|
|
|
197
|
+
# 只为本次 Run 提高思考强度
|
|
198
|
+
mcode exec --model custom_provider:work/deep-reasoner-1 --effort xhigh "规划这次迁移。"
|
|
199
|
+
|
|
197
200
|
# 审查当前 workspace 的本地改动
|
|
198
201
|
mcode exec review --cwd ./repo
|
|
199
202
|
```
|
|
200
203
|
|
|
204
|
+
`--effort` 只对本次 Run 生效,与 `--model` 相互独立;单独使用时作用于当前 Session 的模型。启动前会用
|
|
205
|
+
模型声明的可选强度校验该取值,因此不支持的强度或不支持强度选择的模型会以非零退出码明确失败,而不会
|
|
206
|
+
退回到别的强度继续执行。该覆盖不会写回 Session,用 `--session` 或 `--continue` 恢复时仍是 Session
|
|
207
|
+
自身的强度。
|
|
208
|
+
|
|
209
|
+
思考强度不是模型变体。`--model provider/model#xhigh` 的行为保持不变,仍然可以正常运行,但 Runtime 会把
|
|
210
|
+
该后缀当成模型身份的一部分并按自身默认强度执行,请求的强度会被静默丢弃。需要强度确实生效时请使用
|
|
211
|
+
`--effort xhigh`。
|
|
212
|
+
|
|
201
213
|
自动化场景还可以使用 `--output-schema` 约束最终回答、使用 `--output-last-message` 写入文件,或通过
|
|
202
214
|
`--output-format stream-json` 流式读取进度。
|
|
203
215
|
|
|
204
216
|
`mcode exec review` 固定审查 staged、unstaged 和 untracked 的本地改动,支持 `--cwd`、`--model`、
|
|
205
|
-
`--config`、`--permission`、`--timeout`、`--max-steps`、`--output-format` 和
|
|
217
|
+
`--effort`、`--config`、`--permission`、`--timeout`、`--max-steps`、`--output-format` 和
|
|
206
218
|
`--output-last-message`。发现问题仍返回退出码
|
|
207
219
|
`0`;只有调用、Runtime 或审查结果协议失败才返回非零退出码。
|
|
208
220
|
|
|
@@ -332,7 +344,10 @@ TUI 启动不再批量迁移历史会话的模型。指向官方网关的 `custo
|
|
|
332
344
|
|
|
333
345
|
在 TUI 中使用 `/model` 选择模型和推理强度。支持多个上下文档位的模型(如 M3 的 512K / 1M)可用 Tab /
|
|
334
346
|
Shift+Tab 切换上下文,左右键仍调整 Thinking /
|
|
335
|
-
effort。Enter
|
|
347
|
+
effort。Enter 同时应用到当前会话并保存模型、上下文和 effort 为默认值,Esc 放弃本次调整;重新启动后会恢复已保存的选择,新会话继承默认 effort,已有会话保留自己的选择。
|
|
348
|
+
默认 effort 保存在当前 profile 配置的 `defaultModelThinking.effort`,与桌面端首页使用同一份配置;桌面端已有会话内的调整仍只作用于该会话。
|
|
349
|
+
未保存选择时优先采用模型目录的 `defaultEffort`,再回退到可选档位的中间值;固定默认 effort 只读显示,不提供档位切换。关闭 Thinking 时不应用 effort。
|
|
350
|
+
1M 等较高用量档位会显示提示。选择
|
|
336
351
|
`Add 3rd-party provider…` 可从 models.dev 搜索已知 Provider 和模型,或配置 Custom Provider。API
|
|
337
352
|
Key 在表单中保持掩码,Runtime 会先测试连通性,成功后才保存并应用所选模型。使用 Provider 命令查看或配置模型来源:
|
|
338
353
|
|