@minimax-ai/code 0.4.8 → 0.4.10

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 CHANGED
@@ -7,6 +7,33 @@ 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.10 · 2026-09-17
11
+
12
+ ### Improved
13
+
14
+ - The default status line shows the current context capacity, such as `Context 1M` or `Context 512K`.
15
+ Users with a custom status line can enable `context-window` in `/statusline`.
16
+
17
+ ### Fixed
18
+
19
+ - New sessions and default-model updates now preserve the selected context capacity.
20
+ - Messages submitted during context compaction now enter the waiting queue instead of failing to send.
21
+ - Completed Shell command results no longer reappear in subsequent conversation turns.
22
+
23
+ ## 0.4.9 · 2026-09-16
24
+
25
+ ### Added
26
+
27
+ - `mcode exec` and `mcode exec review` support `--effort` to choose reasoning effort for a single run.
28
+ Unsupported levels fail before execution, and the override does not change the session's saved effort.
29
+
30
+ ### Fixed
31
+
32
+ - Fixed saving and restoring the default reasoning effort, so new sessions and submitted requests use
33
+ the same level shown in the model picker and status line.
34
+ - Model selection now respects configured effort defaults and fixed levels while preserving the
35
+ Thinking Off setting.
36
+
10
37
  ## 0.4.8 · 2026-09-16
11
38
 
12
39
  ### Added
@@ -8,6 +8,29 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
8
8
 
9
9
  仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
10
10
 
11
+ ## 0.4.10 · 2026-09-17
12
+
13
+ ### 体验改进
14
+
15
+ - 默认状态栏显示当前上下文总容量,例如 `Context 1M` 或 `Context 512K`;已自定义状态栏的用户可在 `/statusline` 中启用 `context-window`。
16
+
17
+ ### 问题修复
18
+
19
+ - 新会话及默认模型更新会正确继承所选上下文容量。
20
+ - 压缩上下文期间提交的消息会进入等待队列,避免发送失败。
21
+ - 已完成的 Shell 命令结果不再在后续对话中重复显示。
22
+
23
+ ## 0.4.9 · 2026-09-16
24
+
25
+ ### 新增
26
+
27
+ - `mcode exec` 和 `mcode exec review` 支持通过 `--effort` 指定本次运行的思考强度;不支持的档位会在执行前报错,且不会改写会话已保存的强度。
28
+
29
+ ### 修复
30
+
31
+ - 修复默认思考强度的保存与恢复,使新会话和实际请求使用的强度与模型选择器、状态栏显示一致。
32
+ - 模型选择尊重已配置的默认强度和固定档位,并保留关闭思考的设置。
33
+
11
34
  ## 0.4.8 · 2026-09-16
12
35
 
13
36
  ### 新增
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`, `--output-format`, and
141
- `--output-last-message`. Findings exit with code `0`; invocation, Runtime, or invalid Review result
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
@@ -162,6 +162,8 @@ Agent Team 与 Runtime 后台任务会在 Composer 上方合并为一条按严
162
162
  `Shell · Enter run`。执行记录以独立的金色边框区块展示,分为命令、输出和状态三部分;失败状态显示红色,`!!`
163
163
  区块标记 `Local only`。按 Esc 或 Ctrl+C 中断命令;退出 TUI 会清理命令进程。
164
164
 
165
+ 已结束的 Shell 区块保留到下一轮对话开始,随后从界面清除,不会在后续回复结束或历史刷新后重复显示;`!` 与 `!!` 均遵循这一规则。
166
+
165
167
  Shell 模式按 Tab 请求补全。只有 `!`
166
168
  或光标位于命令名开头时,不显示候选;输入命令和空格后,按 Tab 列出当前目录的文件和文件夹,`! cat ` 与
167
169
  `!!cat ` 均支持;删除 `!` 退出 Shell 模式时立即关闭候选并取消补全请求;输入 `./`
@@ -194,15 +196,27 @@ mcode exec --cwd ./repo --file error.log "定位这次构建失败的原因。"
194
196
  # 输出机器可读 JSON
195
197
  mcode exec --output-format json "总结当前分支。"
196
198
 
199
+ # 只为本次 Run 提高思考强度
200
+ mcode exec --model custom_provider:work/deep-reasoner-1 --effort xhigh "规划这次迁移。"
201
+
197
202
  # 审查当前 workspace 的本地改动
198
203
  mcode exec review --cwd ./repo
199
204
  ```
200
205
 
206
+ `--effort` 只对本次 Run 生效,与 `--model` 相互独立;单独使用时作用于当前 Session 的模型。启动前会用
207
+ 模型声明的可选强度校验该取值,因此不支持的强度或不支持强度选择的模型会以非零退出码明确失败,而不会
208
+ 退回到别的强度继续执行。该覆盖不会写回 Session,用 `--session` 或 `--continue` 恢复时仍是 Session
209
+ 自身的强度。
210
+
211
+ 思考强度不是模型变体。`--model provider/model#xhigh` 的行为保持不变,仍然可以正常运行,但 Runtime 会把
212
+ 该后缀当成模型身份的一部分并按自身默认强度执行,请求的强度会被静默丢弃。需要强度确实生效时请使用
213
+ `--effort xhigh`。
214
+
201
215
  自动化场景还可以使用 `--output-schema` 约束最终回答、使用 `--output-last-message` 写入文件,或通过
202
216
  `--output-format stream-json` 流式读取进度。
203
217
 
204
218
  `mcode exec review` 固定审查 staged、unstaged 和 untracked 的本地改动,支持 `--cwd`、`--model`、
205
- `--config`、`--permission`、`--timeout`、`--max-steps`、`--output-format` 和
219
+ `--effort`、`--config`、`--permission`、`--timeout`、`--max-steps`、`--output-format` 和
206
220
  `--output-last-message`。发现问题仍返回退出码
207
221
  `0`;只有调用、Runtime 或审查结果协议失败才返回非零退出码。
208
222
 
@@ -332,7 +346,11 @@ TUI 启动不再批量迁移历史会话的模型。指向官方网关的 `custo
332
346
 
333
347
  在 TUI 中使用 `/model` 选择模型和推理强度。支持多个上下文档位的模型(如 M3 的 512K / 1M)可用 Tab /
334
348
  Shift+Tab 切换上下文,左右键仍调整 Thinking /
335
- effort。Enter 同时应用到当前会话并保存为默认值,Esc 放弃本次调整;再次打开会恢复已保存的上下文。1M 等较高用量档位会显示提示。选择
349
+ effort。Enter 同时应用到当前会话并保存模型、上下文和 effort 为默认值,Esc 放弃本次调整;重新启动后会恢复已保存的选择,新会话从首次发送开始继承默认上下文窗口和 effort,已有会话保留自己的选择。
350
+ 普通默认状态栏持续显示上下文总容量(如 `Context 1M` / `Context 512K`);已自定义状态栏可通过 `/statusline` 启用 `context-window`。
351
+ 默认 effort 保存在当前 profile 配置的 `defaultModelThinking.effort`,与桌面端首页使用同一份配置;桌面端已有会话内的调整仍只作用于该会话。
352
+ 未保存选择时优先采用模型目录的 `defaultEffort`,再回退到可选档位的中间值;固定默认 effort 只读显示,不提供档位切换。关闭 Thinking 时不应用 effort。
353
+ 1M 等较高用量档位会显示提示。选择
336
354
  `Add 3rd-party provider…` 可从 models.dev 搜索已知 Provider 和模型,或配置 Custom Provider。API
337
355
  Key 在表单中保持掩码,Runtime 会先测试连通性,成功后才保存并应用所选模型。使用 Provider 命令查看或配置模型来源:
338
356