@minimax-ai/code 0.4.1 → 0.4.3
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 +94 -51
- package/CHANGELOG.zh-CN.md +47 -12
- package/README.md +4 -0
- package/README.zh-CN.md +35 -1
- package/chunks/{azure-openai-responses-OAPIGHCQ.js → azure-openai-responses-HOJR5DNA.js} +1 -1
- package/chunks/{chunk-WSVP72I3.js → chunk-HEAI577S.js} +1 -1
- package/chunks/chunk-JCDDI4WJ.js +2 -0
- package/chunks/{chunk-ORVAHBJL.js → chunk-OJA2IAQ6.js} +2 -2
- package/chunks/{chunk-BFVBLLWG.js → chunk-R7KEYFVA.js} +1 -1
- package/chunks/chunk-SD6SJL3L.js +11 -0
- package/chunks/{chunk-GOLYEPEW.js → chunk-SHGKCFRW.js} +521 -521
- package/chunks/{chunk-OFHDMZSQ.js → chunk-WOISMRTU.js} +431 -431
- package/chunks/{dist-UYNXCH7Y.js → dist-QF3JV3LN.js} +1 -1
- package/chunks/{launcher-U2WCORIY.js → launcher-5SGSEXFR.js} +146 -146
- package/chunks/{lifecycle-RBOOMUY3.js → lifecycle-VTGFUKDL.js} +1 -1
- package/chunks/{main-WOL6V5OD.js → main-B73N2OKU.js} +1 -1
- package/chunks/{openai-codex-responses-OKBVUABU.js → openai-codex-responses-5BJTY4II.js} +1 -1
- package/chunks/{openai-responses-4ZH3D54Q.js → openai-responses-FRXGNXAR.js} +1 -1
- package/chunks/{plugin-command-UFTRCOD6.js → plugin-command-CSAM36VJ.js} +1 -1
- package/chunks/{provider-command-35G2ZJ5D.js → provider-command-OW7E4CRV.js} +1 -1
- package/chunks/{run-acp-command-TES33Q37.js → run-acp-command-YFXXEQNO.js} +3 -3
- package/chunks/{run-exec-command-52NJI7ZP.js → run-exec-command-VRZLDGHE.js} +1 -1
- package/cli.js +1 -1
- package/package.json +1 -1
- package/chunks/chunk-IHFSGO5Y.js +0 -2
- package/chunks/chunk-ZA4WKJYS.js +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -7,18 +7,58 @@ 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.3 · 2026-09-13
|
|
11
|
+
|
|
12
|
+
### Improved
|
|
13
|
+
|
|
14
|
+
- Configure model-level `compat` in `config.yaml` for custom providers to declare upstream message
|
|
15
|
+
roles, token parameters, and thinking formats when using a gateway. Explicit configuration is
|
|
16
|
+
required for these overrides to take effect.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Removed the duplicate, truncated original title from the session rename panel. The input retains
|
|
21
|
+
the complete title and scrolls as you move the cursor to edit it.
|
|
22
|
+
|
|
23
|
+
## 0.4.2 · 2026-09-11
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- Automatically load project MCP servers from `.mcp.json` in the session's main working directory,
|
|
28
|
+
with configuration sources and connection status visible in `/mcp`.
|
|
29
|
+
- Switch supported model context sizes, including M3 512K / 1M, with Tab / Shift+Tab in `/model`;
|
|
30
|
+
save the selection for the current session and future use.
|
|
31
|
+
- Where OpenAI Codex login is available, choose browser or device code login, with cancellation and
|
|
32
|
+
retry for expired codes.
|
|
33
|
+
|
|
34
|
+
### Improved
|
|
35
|
+
|
|
36
|
+
- Refresh a third-party connection's model list in `/provider` with `r`, and edit its API Key, Base
|
|
37
|
+
URL, models, or alias with `e`.
|
|
38
|
+
- Reuse an existing provider connection when adding models without entering the API Key again; add
|
|
39
|
+
another account explicitly when needed.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- Fixed mismatched tool arguments when multiple OpenAI Responses tool calls stream concurrently.
|
|
44
|
+
- The side-conversation shortcut now clearly warns when no side conversation exists and directs you
|
|
45
|
+
to run `/btw` first.
|
|
46
|
+
|
|
10
47
|
## 0.4.1 · 2026-09-11
|
|
11
48
|
|
|
12
49
|
### Improved
|
|
13
50
|
|
|
14
|
-
- Switching models in an existing conversation warns that prompt cache reuse may be lost and
|
|
51
|
+
- Switching models in an existing conversation warns that prompt cache reuse may be lost and
|
|
52
|
+
additional costs may apply.
|
|
15
53
|
- Goal displays its current wait reason, including result verification.
|
|
16
54
|
- Goal pauses after three consecutive rounds without tool calls to prevent continued idle execution.
|
|
17
55
|
|
|
18
56
|
### Fixed
|
|
19
57
|
|
|
20
|
-
- Restored the terminal-specific system prompt, with capability instructions following the enabled
|
|
21
|
-
|
|
58
|
+
- Restored the terminal-specific system prompt, with capability instructions following the enabled
|
|
59
|
+
features.
|
|
60
|
+
- Fixed Goal continuation after user intervention and late usage settlement, and allowed queued user
|
|
61
|
+
messages to proceed while a Goal waits on dependencies.
|
|
22
62
|
- Shortcut hints follow custom keybindings, including aliases and disabled bindings.
|
|
23
63
|
- Background task details show the full command and error, wrapping long and multiline content.
|
|
24
64
|
|
|
@@ -26,18 +66,23 @@ Internal refactors, test-only changes, and changes limited to other product surf
|
|
|
26
66
|
|
|
27
67
|
### Added
|
|
28
68
|
|
|
29
|
-
- Review local changes with `/review` or `mcode exec review`, with findings linked to file
|
|
30
|
-
|
|
31
|
-
-
|
|
69
|
+
- Review local changes with `/review` or `mcode exec review`, with findings linked to file
|
|
70
|
+
locations.
|
|
71
|
+
- Run Shell commands with `!`, keep results local with `!!`, and use Tab to complete commands and
|
|
72
|
+
paths.
|
|
73
|
+
- Customize the status line interactively with `/statusline`, apply changes immediately, and display
|
|
74
|
+
output from a custom command.
|
|
32
75
|
|
|
33
76
|
### Improved
|
|
34
77
|
|
|
35
|
-
- Slash commands support argument hints and continued completion; command panels use consistent
|
|
78
|
+
- Slash commands support argument hints and continued completion; command panels use consistent
|
|
79
|
+
titles, borders, and action bars.
|
|
36
80
|
- Headless tasks provide structured output validation and clearer progress and failure diagnostics.
|
|
37
81
|
|
|
38
82
|
### Fixed
|
|
39
83
|
|
|
40
|
-
- Improved recovery when context compaction encounters oversized input, and preserved history
|
|
84
|
+
- Improved recovery when context compaction encounters oversized input, and preserved history
|
|
85
|
+
consistency when forking conversations.
|
|
41
86
|
- Diagnostic reports retain available files when part of the collection fails.
|
|
42
87
|
|
|
43
88
|
## 0.3.11 · 2026-09-09
|
|
@@ -58,7 +103,8 @@ Internal refactors, test-only changes, and changes limited to other product surf
|
|
|
58
103
|
### Fixed
|
|
59
104
|
|
|
60
105
|
- `/btw` and `/side` sessions now follow the parent session permission mode without an extra
|
|
61
|
-
confirmation step. Full access needs no additional approval; other modes retain their normal
|
|
106
|
+
confirmation step. Full access needs no additional approval; other modes retain their normal
|
|
107
|
+
checks.
|
|
62
108
|
- Draft recovery cleanup skips missing files, preventing repeated no-op deletions from exhausting
|
|
63
109
|
the safety budget and disrupting later operations.
|
|
64
110
|
|
|
@@ -66,8 +112,8 @@ Internal refactors, test-only changes, and changes limited to other product surf
|
|
|
66
112
|
|
|
67
113
|
### Improved
|
|
68
114
|
|
|
69
|
-
- `/status` now shows the running version, account and plan, instruction file sources,
|
|
70
|
-
|
|
115
|
+
- `/status` now shows the running version, account and plan, instruction file sources, Default/Plan
|
|
116
|
+
mode transitions, and remaining 5-hour and weekly quotas with reset countdowns.
|
|
71
117
|
- The compact status panel wraps long paths and keeps local configuration visible while account
|
|
72
118
|
details load or when the account request fails.
|
|
73
119
|
- `/logout` and `mcode logout` print a complete browser sign-out link and open the page for the
|
|
@@ -86,8 +132,8 @@ Internal refactors, test-only changes, and changes limited to other product surf
|
|
|
86
132
|
fewer history replays during terminal resizing, and clearer tool retry summaries.
|
|
87
133
|
- The default status line warns when remaining context reaches 25% or less. Explicitly configuring
|
|
88
134
|
`context-remaining` keeps valid usage visible; narrow terminals prioritize essential status.
|
|
89
|
-
- Terminal notifications support focus-aware policies and configurable delivery methods, with
|
|
90
|
-
compatibility for cmux. Composer keyboard hints follow the current platform.
|
|
135
|
+
- Terminal notifications support focus-aware policies and configurable delivery methods, with
|
|
136
|
+
improved compatibility for cmux. Composer keyboard hints follow the current platform.
|
|
91
137
|
|
|
92
138
|
### Fixed
|
|
93
139
|
|
|
@@ -101,19 +147,19 @@ Internal refactors, test-only changes, and changes limited to other product surf
|
|
|
101
147
|
### Fixed
|
|
102
148
|
|
|
103
149
|
- When MCode shares its data directory with MiniMax Desktop, official model endpoints are now
|
|
104
|
-
resolved in memory for the current environment: reading configuration or first-run
|
|
105
|
-
|
|
106
|
-
|
|
150
|
+
resolved in memory for the current environment: reading configuration or first-run initialization
|
|
151
|
+
no longer writes new official endpoints into the shared config file, so older Desktop versions
|
|
152
|
+
keep working alongside the TUI. Custom (BYOK) endpoints behave as before.
|
|
107
153
|
- Legacy model recovery now also covers numbered model aliases and retired default models, and
|
|
108
|
-
applies consistently to the model list, Goal model checks, and login checks: selections
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
- Installing or updating with npm 12 no longer breaks the native SQLite module: install and
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
154
|
+
applies consistently to the model list, Goal model checks, and login checks: selections pointing
|
|
155
|
+
at the legacy official gateway resolve to the same-name official model, then the configured
|
|
156
|
+
default model, then the current official default. Shared default models, session model references,
|
|
157
|
+
and migration records are preserved; only explicit user selections are written back to
|
|
158
|
+
configuration.
|
|
159
|
+
- Installing or updating with npm 12 no longer breaks the native SQLite module: install and update
|
|
160
|
+
authorize the MCode and `better-sqlite3` lifecycle scripts and keep optional native dependencies.
|
|
161
|
+
When native SQLite fails to load, startup prints a repair command matching the install registry,
|
|
162
|
+
and early startup errors are reported instead of failing silently.
|
|
117
163
|
|
|
118
164
|
## 0.3.5 · 2026-09-07
|
|
119
165
|
|
|
@@ -121,58 +167,55 @@ Internal refactors, test-only changes, and changes limited to other product surf
|
|
|
121
167
|
|
|
122
168
|
- Legacy model repair now also covers resuming sessions and queued messages, not just startup:
|
|
123
169
|
selections from the legacy custom provider switch to the same model on the official MiniMax
|
|
124
|
-
provider, or to the official default model when the same model is unavailable, and the repair
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
cancelling keeps your draft. Reopening the session shows the paused queue and waits for you to
|
|
132
|
-
continue.
|
|
170
|
+
provider, or to the official default model when the same model is unavailable, and the repair is
|
|
171
|
+
saved to the session or default configuration. The model list no longer shows legacy entries.
|
|
172
|
+
- After a response fails or is stopped, queued messages that have not run yet are kept and shown as
|
|
173
|
+
paused. Run `/queue` and press `c` to continue from the front of the queue; pending messages can
|
|
174
|
+
also be edited, restored, or deleted. Sending a new message while paused offers to send it first
|
|
175
|
+
and then continue the original queue, or to clear pending messages first; cancelling keeps your
|
|
176
|
+
draft. Reopening the session shows the paused queue and waits for you to continue.
|
|
133
177
|
- In-TUI updates now run npm with MCode's own Node runtime and validate the new version's native
|
|
134
178
|
modules with that exact runtime before activation, fixing startup failures after updating on
|
|
135
179
|
machines whose system Node version differs. If validation fails, the previous version stays
|
|
136
180
|
active.
|
|
137
|
-
- The macOS/Linux installer resolves the selected Node to its real path for install, launcher,
|
|
138
|
-
|
|
181
|
+
- The macOS/Linux installer resolves the selected Node to its real path for install, launcher, and
|
|
182
|
+
receipt, and re-checks native modules with that runtime on reruns. Broken same-version
|
|
139
183
|
installations now enter a repair install automatically instead of being reported as healthy.
|
|
140
184
|
|
|
141
185
|
## 0.3.4 · 2026-09-06
|
|
142
186
|
|
|
143
187
|
### Improved
|
|
144
188
|
|
|
145
|
-
- On startup, when the selected model comes from the legacy custom provider, the TUI
|
|
146
|
-
|
|
189
|
+
- On startup, when the selected model comes from the legacy custom provider, the TUI automatically
|
|
190
|
+
switches to the same model on the official MiniMax provider.
|
|
147
191
|
|
|
148
192
|
### Fixed
|
|
149
193
|
|
|
150
|
-
- `/login` and `/logout` are always available. `/login` refreshes credentials with the server
|
|
151
|
-
|
|
152
|
-
|
|
194
|
+
- `/login` and `/logout` are always available. `/login` refreshes credentials with the server even
|
|
195
|
+
when already signed in and keeps you signed in if a transient refresh fails; `/logout` safely does
|
|
196
|
+
nothing when already signed out.
|
|
153
197
|
- When the server permanently rejects saved credentials, the TUI clears them and falls back to
|
|
154
|
-
device authorization instead of looping on `/login` errors. Temporary or configuration errors
|
|
155
|
-
|
|
156
|
-
- Service or resource failures now report the actual failure instead of asking you to sign in
|
|
157
|
-
|
|
198
|
+
device authorization instead of looping on `/login` errors. Temporary or configuration errors no
|
|
199
|
+
longer discard valid credentials.
|
|
200
|
+
- Service or resource failures now report the actual failure instead of asking you to sign in again;
|
|
201
|
+
sign-in prompts appear only when signing in is really required.
|
|
158
202
|
- Domestic accounts sign in through the updated authentication endpoint.
|
|
159
203
|
- Draft recovery failures no longer interfere with typing or other user actions.
|
|
160
|
-
- Duplicate session history manifests are recovered automatically so session history keeps
|
|
161
|
-
loading.
|
|
204
|
+
- Duplicate session history manifests are recovered automatically so session history keeps loading.
|
|
162
205
|
|
|
163
206
|
## 0.3.3 · 2026-09-05
|
|
164
207
|
|
|
165
208
|
### Improved
|
|
166
209
|
|
|
167
|
-
- Side conversation footers now name the view that the switch shortcut opens. Terminal.app on
|
|
168
|
-
|
|
210
|
+
- Side conversation footers now name the view that the switch shortcut opens. Terminal.app on macOS
|
|
211
|
+
displays the supported `Ctrl+-` shortcut for switching between main and side views.
|
|
169
212
|
|
|
170
213
|
### Fixed
|
|
171
214
|
|
|
172
215
|
- Signing in and out now synchronizes the running session's credentials immediately, including
|
|
173
216
|
repeated sign-out requests, instead of waiting for background credential notifications.
|
|
174
|
-
- Content review can recover from an expired credential and retry once with a new credential.
|
|
175
|
-
|
|
217
|
+
- Content review can recover from an expired credential and retry once with a new credential. If
|
|
218
|
+
recovery fails, the request remains blocked and prompts you to sign in again.
|
|
176
219
|
|
|
177
220
|
## 0.3.2 · 2026-09-04
|
|
178
221
|
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -8,6 +8,37 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
8
8
|
|
|
9
9
|
仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
|
|
10
10
|
|
|
11
|
+
## 0.4.3 · 2026-09-13
|
|
12
|
+
|
|
13
|
+
### 改进
|
|
14
|
+
|
|
15
|
+
- 支持在 `config.yaml` 为自定义 Provider 的模型声明
|
|
16
|
+
`compat`,指定上游支持的消息角色、Token 参数和思考格式,改善网关转发场景的协议兼容性;需要显式配置后生效。
|
|
17
|
+
|
|
18
|
+
### 修复
|
|
19
|
+
|
|
20
|
+
- 修复会话重命名面板重复显示原标题、长标题被截断的问题;输入框保留完整标题,可移动光标滚动编辑。
|
|
21
|
+
|
|
22
|
+
## 0.4.2 · 2026-09-11
|
|
23
|
+
|
|
24
|
+
### 新增
|
|
25
|
+
|
|
26
|
+
- 自动加载会话主工作目录 `.mcp.json` 中的项目 MCP 服务,可在 `/mcp` 查看配置来源与连接状态。
|
|
27
|
+
- 在 `/model` 中通过 Tab / Shift+Tab 切换模型支持的上下文档位,包括 M3 的 512K /
|
|
28
|
+
1M,并应用到当前会话、保存为默认值。
|
|
29
|
+
- 已提供 OpenAI
|
|
30
|
+
Codex 登录入口的版本支持选择浏览器登录或设备码登录,可取消授权,并在验证码过期后重试。
|
|
31
|
+
|
|
32
|
+
### 改进
|
|
33
|
+
|
|
34
|
+
- 在 `/provider` 按 `r` 刷新第三方连接的模型列表,按 `e` 编辑 API Key、Base URL、模型或别名。
|
|
35
|
+
- 添加模型时可复用已有 Provider 连接,无需重新输入 API Key;需要多个账号时可明确添加另一连接。
|
|
36
|
+
|
|
37
|
+
### 修复
|
|
38
|
+
|
|
39
|
+
- 修复 OpenAI Responses 多个工具调用交错流式返回时,工具参数错配的问题。
|
|
40
|
+
- 尚未创建侧会话时,切换快捷键会明确提示先运行 `/btw`,避免误以为快捷键会创建侧会话。
|
|
41
|
+
|
|
11
42
|
## 0.4.1 · 2026-09-11
|
|
12
43
|
|
|
13
44
|
### 改进
|
|
@@ -58,16 +89,19 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
58
89
|
|
|
59
90
|
### 问题修复
|
|
60
91
|
|
|
61
|
-
- `/btw` 和 `/side` 侧会话沿用主会话的当前权限模式,不再追加独立确认;Full
|
|
92
|
+
- `/btw` 和 `/side` 侧会话沿用主会话的当前权限模式,不再追加独立确认;Full
|
|
93
|
+
access 下无需额外确认,其他模式仍按正常权限规则处理。
|
|
62
94
|
- 草稿恢复清理会跳过不存在的文件,避免反复无效删除耗尽安全预算、干扰后续操作。
|
|
63
95
|
|
|
64
96
|
## 0.3.8 · 2026-09-07
|
|
65
97
|
|
|
66
98
|
### 体验改进
|
|
67
99
|
|
|
68
|
-
- `/status`
|
|
100
|
+
- `/status`
|
|
101
|
+
补齐运行版本、账号与套餐、指令文件来源、Default/Plan 切换状态,以及 5 小时和每周额度的剩余比例与重置倒计时。
|
|
69
102
|
- 状态面板采用紧凑布局,长路径自动换行;账号信息加载中或查询失败时,仍可查看本地配置。
|
|
70
|
-
- `/logout` 和 `mcode logout`
|
|
103
|
+
- `/logout` 和 `mcode logout`
|
|
104
|
+
会打印完整的浏览器登出链接,并打开当前地区和环境对应的登出页。开发机或无图形界面环境可复制链接手动打开,命令完成无需等待浏览器或页面结果。
|
|
71
105
|
|
|
72
106
|
### 问题修复
|
|
73
107
|
|
|
@@ -78,23 +112,24 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
78
112
|
### 改进
|
|
79
113
|
|
|
80
114
|
- 长会话搜索和渲染更流畅:缓存搜索索引和稳定的 Markdown 内容,减少调整终端尺寸时的历史重绘,并更清晰地展示工具重试摘要。
|
|
81
|
-
- 默认状态栏在剩余上下文不超过 25% 时提示;显式配置 `context-remaining`
|
|
115
|
+
- 默认状态栏在剩余上下文不超过 25% 时提示;显式配置 `context-remaining`
|
|
116
|
+
可持续显示有效用量,窄屏优先保留关键状态。
|
|
82
117
|
- 终端通知支持按焦点状态和发送方式配置,改善 cmux 兼容性;输入框快捷键提示适配当前平台。
|
|
83
118
|
|
|
84
119
|
### 修复
|
|
85
120
|
|
|
86
121
|
- 改善切换账号、取消登录和离线启动时的共享登录恢复,处理并发凭据续期与延迟登出同步。
|
|
87
|
-
- 安装和修复指引保留选定的包名、版本和 registry,并说明 npm
|
|
122
|
+
- 安装和修复指引保留选定的包名、版本和 registry,并说明 npm
|
|
123
|
+
12 阻止安装脚本时如何恢复原生 SQLite 依赖。
|
|
88
124
|
|
|
89
125
|
## 0.3.6 · 2026-09-07
|
|
90
126
|
|
|
91
127
|
### 问题修复
|
|
92
128
|
|
|
93
129
|
- 与 MiniMax 桌面端共用数据目录时,官方模型地址改为在 TUI 内按当前环境解析:读取配置和首次初始化不再向共享配置文件写入新的官方地址,避免影响旧版桌面端;自定义(BYOK)服务地址行为不变。
|
|
94
|
-
- 遗留模型自动恢复扩展到编号模型别名和已下线的默认模型,并统一覆盖模型列表、Goal
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
`better-sqlite3` 的安装脚本并保留可选原生依赖;原生模块加载失败时,启动会按安装来源给出对应的修复命令,启动早期错误也会如实报告而不是静默失败。
|
|
130
|
+
- 遗留模型自动恢复扩展到编号模型别名和已下线的默认模型,并统一覆盖模型列表、Goal模型校验和登录检查:指向旧官方网关的模型选择依次解析为官方同名模型、配置默认模型和当前官方默认模型;共享默认模型、会话模型引用和迁移记录保持不变,仅用户主动选择模型才会写回配置。
|
|
131
|
+
- 修复 npm 12 下安装或更新导致 SQLite 原生模块损坏的问题:安装和更新会授权 MCode 与 `better-sqlite3`
|
|
132
|
+
的安装脚本并保留可选原生依赖;原生模块加载失败时,启动会按安装来源给出对应的修复命令,启动早期错误也会如实报告而不是静默失败。
|
|
98
133
|
|
|
99
134
|
## 0.3.5 · 2026-09-07
|
|
100
135
|
|
|
@@ -103,8 +138,7 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
103
138
|
- 旧版自定义渠道模型的自动修复从启动时扩展到恢复会话和排队消息:遗留模型选择会切换为官方渠道同名模型,同名模型不可用时使用官方默认模型,并保存到对应会话或默认配置;模型列表不再显示遗留渠道入口。
|
|
104
139
|
- 响应失败或被停止后,尚未执行的排队消息会保留并显示暂停状态。运行 `/queue` 后按 `c`
|
|
105
140
|
可从队首继续,也可以编辑、恢复或删除待发送消息;暂停期间发送新消息时,可选择先发送新消息再继续原队列,或先清空待发送消息,取消则保留草稿。重新打开会话会显示暂停队列,等待主动继续。
|
|
106
|
-
- TUI 内更新改用 MCode 自带的 Node 运行 npm,并在激活前用同一运行时校验新版本的原生模块,修复系统
|
|
107
|
-
Node 版本不同导致更新后无法启动的问题;校验失败时保持旧版本可用。
|
|
141
|
+
- TUI 内更新改用 MCode 自带的 Node 运行 npm,并在激活前用同一运行时校验新版本的原生模块,修复系统 Node 版本不同导致更新后无法启动的问题;校验失败时保持旧版本可用。
|
|
108
142
|
- macOS/Linux 安装器将所选 Node 解析为真实路径,统一用于安装、启动器和安装回执,重跑时按该运行时检查原生模块;同版本安装损坏时自动进入修复安装,无需手动清理安装目录。
|
|
109
143
|
|
|
110
144
|
## 0.3.4 · 2026-09-06
|
|
@@ -115,7 +149,8 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
115
149
|
|
|
116
150
|
### 问题修复
|
|
117
151
|
|
|
118
|
-
- `/login` 和 `/logout` 命令始终可用:`/login`
|
|
152
|
+
- `/login` 和 `/logout` 命令始终可用:`/login`
|
|
153
|
+
在已登录时也会向服务端换取新凭据,瞬时刷新失败则保持已登录状态;`/logout` 在已登出时安全跳过。
|
|
119
154
|
- 登录凭据被服务端永久拒绝时,自动清除失效凭据并回退到设备授权流程重新登录,修复 `/login`
|
|
120
155
|
反复报错的死循环;临时错误或配置错误不再误清除有效凭据。
|
|
121
156
|
- 服务或资源故障时如实报告失败原因,仅在确实需要登录时才提示重新登录。
|
package/README.md
CHANGED
package/README.zh-CN.md
CHANGED
|
@@ -27,6 +27,18 @@ mcode
|
|
|
27
27
|
|
|
28
28
|
MiniMax Code 会检查代码库、完成修改、运行能够执行的验证,并汇总已经确认的结果。
|
|
29
29
|
|
|
30
|
+
## 内部包的 Codex 登录
|
|
31
|
+
|
|
32
|
+
在 `/provider` 选择 OpenAI Codex,或在 `/model` 选择 Connect OpenAI Codex,再选择登录方式:
|
|
33
|
+
|
|
34
|
+
- **Browser login**:在当前电脑的浏览器完成登录。
|
|
35
|
+
- **Device code
|
|
36
|
+
login**:适用于 SSH、远程开发机。终端显示授权地址和一次性验证码,在自己电脑的浏览器打开地址并输入验证码。开发机会自动完成登录并刷新模型列表。
|
|
37
|
+
|
|
38
|
+
Device
|
|
39
|
+
code 需要在 ChatGPT 安全设置或工作区权限中开启。浏览器无法自动打开时,可手动访问终端里的地址。按
|
|
40
|
+
`Esc` 取消本次授权;验证码过期后可按 `Enter` 重试。
|
|
41
|
+
|
|
30
42
|
## 为什么选择 MiniMax Code
|
|
31
43
|
|
|
32
44
|
| 能力 | 你可以获得什么 |
|
|
@@ -38,6 +50,19 @@ MiniMax Code 会检查代码库、完成修改、运行能够执行的验证,
|
|
|
38
50
|
| 适配工作流 | 使用交互式 TUI、结构化 Headless 输出或 ACP 集成 |
|
|
39
51
|
| 灵活扩展 | 选择模型和 Provider,并通过 Plugin 增加新能力 |
|
|
40
52
|
|
|
53
|
+
### 刷新第三方模型与编辑连接
|
|
54
|
+
|
|
55
|
+
在 `/provider` 选中第三方连接,按 `r` 使用已保存的 API Key 从该连接的模型列表接口获取最新模型。
|
|
56
|
+
刷新只补充新模型,保留 provider ID、Key、已有模型的开关与自定义参数,也不会切换当前模型。
|
|
57
|
+
完成后在 `/model` 选择新模型。查询失败时原配置不变;如果连接在刷新期间被其他窗口修改,请重新打开
|
|
58
|
+
`/provider` 后再刷新。
|
|
59
|
+
|
|
60
|
+
按 `e` 可以修改第三方连接的 API Key、Base URL、模型 ID 列表或别名。修改先通过连接测试再保存,
|
|
61
|
+
测试或保存失败时继续使用原配置;更换 Key 成功后,该连接下所有模型使用新 Key。
|
|
62
|
+
|
|
63
|
+
在 `/model` 的“添加第三方”选择已配置的服务商时,默认提供“使用已有连接”,无需重新输入 Key,
|
|
64
|
+
可选择或补充模型。只有明确选择“添加另一个账号”才创建新连接,并要求填写用于区分账号的别名。
|
|
65
|
+
|
|
41
66
|
## 按你的方式使用
|
|
42
67
|
|
|
43
68
|
### 交互式 TUI
|
|
@@ -94,6 +119,9 @@ TUI 启动层通过内部 `reviewPromptDir` 参数提供唯一资源目录;npm
|
|
|
94
119
|
`Ctrl+C` 会关闭并丢弃侧会话。回到主视图后再次执行 `/btw`,会丢弃旧侧会话并从当前边界重新
|
|
95
120
|
fork。侧会话是临时的:不会出现在 `/sessions` 或 `/resume` 中,切换到其他 Session 时会被自动清理。
|
|
96
121
|
|
|
122
|
+
切换快捷键只切换已创建的侧会话,不会创建侧会话。尚未执行 `/btw` 时按切换快捷键,
|
|
123
|
+
Composer 会用黄色警告提示先运行 `/btw`。
|
|
124
|
+
|
|
97
125
|
无参数的 TUI
|
|
98
126
|
slash 命令只在命令名后没有正文时执行(允许尾随空白);如果继续输入正文,整句会作为普通提示词发送。接受参数的命令仍按命令处理。
|
|
99
127
|
|
|
@@ -254,7 +282,9 @@ TUI 启动不再批量迁移历史会话的模型。指向官方网关的 `custo
|
|
|
254
282
|
已有对话中成功切换 Provider 或模型后,Transcript 会显示一次黄色提示,提醒可能无法复用之前的缓存、
|
|
255
283
|
并产生额外花费,不展示具体金额。初次选择、重复选择同一模型和仅调整推理强度不显示该提示。
|
|
256
284
|
|
|
257
|
-
在 TUI 中使用 `/model`
|
|
285
|
+
在 TUI 中使用 `/model` 选择模型和推理强度。支持多个上下文档位的模型(如 M3 的 512K / 1M)
|
|
286
|
+
可用 Tab / Shift+Tab 切换上下文,左右键仍调整 Thinking / effort。Enter 同时应用到当前会话
|
|
287
|
+
并保存为默认值,Esc 放弃本次调整;再次打开会恢复已保存的上下文。1M 等较高用量档位会显示提示。选择 `Add 3rd-party provider…`
|
|
258
288
|
可从 models.dev 搜索已知 Provider 和模型,或配置 Custom Provider。API
|
|
259
289
|
Key 在表单中保持掩码,Runtime 会先测试连通性,成功后才保存并应用所选模型。使用 Provider 命令查看或配置模型来源:
|
|
260
290
|
|
|
@@ -396,3 +426,7 @@ npm uninstall -g @minimax-ai/code
|
|
|
396
426
|
## License
|
|
397
427
|
|
|
398
428
|
MIT
|
|
429
|
+
|
|
430
|
+
## 项目级 MCP
|
|
431
|
+
|
|
432
|
+
Runtime 自动加载会话主工作目录的 `.mcp.json`,与 Desktop、exec、ACP 共用配置规则;详见[项目级 MCP 配置](../local-runtime-v2/docs/project-mcp.md)。
|
|
@@ -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-SD6SJL3L.js";import"./chunk-PWQHCWDV.js";import{a as y}from"./chunk-SHXPTUWI.js";import{b as f}from"./chunk-IIHJNKC3.js";import"./chunk-2UWBSJDH.js";import{f as d,i as l,k as A,m as E}from"./chunk-GUFBGYOC.js";import{a as m}from"./chunk-CK62QLTS.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};
|
|
@@ -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
|
-
function n(e){return{schemaVersion:1,type:"exec.result",sessionId:e.sessionId,turnId:e.turnId,status:e.status==="awaiting-user-continuation"?"blocked":e.status,answer:e.answer??null,...e.model?{model:{...e.model}}:{},...e.error?{error:{...e.error}}:{},durationMs:e.durationMs}}function o(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;let t=e,r=t.model===void 0||typeof t.model=="object"&&t.model!==null&&typeof t.model.providerId=="string"&&typeof t.model.modelId=="string"&&(t.model.variant===void 0||typeof t.model.variant=="string");return t.schemaVersion===1&&t.type==="exec.result"&&typeof t.sessionId=="string"&&typeof t.turnId=="string"&&typeof t.durationMs=="number"&&r&&(t.status==="succeeded"||t.status==="failed"||t.status==="blocked"||t.status==="timeout"||t.status==="cancelled"||t.status==="limit_exceeded")}function u(e){return e.coordinator.execute(e.request,t=>{e.isActive()&&e.onSessionEvent(t)},e.onRunAccepted,e.onResult?t=>e.onResult?.(n(t)):void 0)}var c={help:{name:"help",description:"Show available commands"},new:{name:"new",description:"Start a fresh session in the current workspace"},model:{name:"model",description:"Choose a model"},status:{name:"status",description:"Show account and model status"},doctor:{name:"doctor",description:"Check the local config file"},context:{name:"context",description:"Show the Runtime-owned context snapshot"},skills:{name:"skills",description:"List built-in and user Skills"},mcp:{name:"mcp",description:"Inspect
|
|
2
|
+
function n(e){return{schemaVersion:1,type:"exec.result",sessionId:e.sessionId,turnId:e.turnId,status:e.status==="awaiting-user-continuation"?"blocked":e.status,answer:e.answer??null,...e.model?{model:{...e.model}}:{},...e.error?{error:{...e.error}}:{},durationMs:e.durationMs}}function o(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;let t=e,r=t.model===void 0||typeof t.model=="object"&&t.model!==null&&typeof t.model.providerId=="string"&&typeof t.model.modelId=="string"&&(t.model.variant===void 0||typeof t.model.variant=="string");return t.schemaVersion===1&&t.type==="exec.result"&&typeof t.sessionId=="string"&&typeof t.turnId=="string"&&typeof t.durationMs=="number"&&r&&(t.status==="succeeded"||t.status==="failed"||t.status==="blocked"||t.status==="timeout"||t.status==="cancelled"||t.status==="limit_exceeded")}function u(e){return e.coordinator.execute(e.request,t=>{e.isActive()&&e.onSessionEvent(t)},e.onRunAccepted,e.onResult?t=>e.onResult?.(n(t)):void 0)}var c={help:{name:"help",description:"Show available commands"},new:{name:"new",description:"Start a fresh session in the current workspace"},model:{name:"model",description:"Choose a model"},status:{name:"status",description:"Show account and model status"},doctor:{name:"doctor",description:"Check the local config file"},context:{name:"context",description:"Show the Runtime-owned context snapshot"},skills:{name:"skills",description:"List built-in and user Skills"},mcp:{name:"mcp",description:"Inspect MCP capabilities and project configuration"},usage:{name:"usage",description:"Show session usage"},compact:{name:"compact",description:"Shorten the active conversation"},export:{name:"export",description:"Export the current Session as Markdown"}};export{c as a,o as b,u as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
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{b as u}from"./chunk-I3GV76MP.js";var l=class{constructor(e){this.port=e}async snapshot(e={}){let[o,s,r,a]=await Promise.all([this.port.listUserModelProviders(),this.port.getMiniMaxApiKeyStatus(),this.port.getMiniMaxModelSource(),e.includeCodexOAuth?this.port.getCodexOAuthStatus():void 0]);return{minimaxModelSource:r,providers:[...!a||a.state==="hidden"?[]:[m(a)],{providerId:"minimax_oauth",name:"MiniMax OAuth",kind:"minimax-oauth",active:r==="token_plan",enabled:!0,readOnly:!0,hasApiKey:!1,models:[]},{providerId:"minimax_api",name:"MiniMax API Key",kind:"minimax-api-key",active:r==="minimax_api_key",enabled:!0,readOnly:!1,hasApiKey:s.hasApiKey,...s.maskedApiKey?{maskedApiKey:s.maskedApiKey}:{},...s.cachedStatus?{status:s.cachedStatus}:{},models:[]},...o.map(M)]}}setMiniMaxSource(e){return this.port.setMiniMaxModelSource(e)}connectCodexOAuth(e){return this.port.startCodexOAuthLogin(e)}getCodexOAuthStatus(){return this.port.getCodexOAuthStatus()}cancelCodexOAuthLogin(e){return this.port.cancelCodexOAuthLogin(e)}async setMiniMaxApiKey(e,o=!0){await this.port.upsertMiniMaxApiKey({apiKey:e,saveAndUse:o})}async create(e){await this.port.createUserModelProvider(e)}saveCandidate(e){return this.port.saveUserModelProviderCandidate(e)}async refreshModels(e){if(e.kind!=="custom"||e.readOnly||!e.baseUrl||!e.configRevision)throw new Error("Reopen /provider and select an editable connection.");let o={providerId:e.providerId,expectedRevision:e.configRevision,baseUrl:e.baseUrl},s=await this.port.discoverUserModelsCandidate(o),r=new Set(e.models.map(({modelId:i})=>i)),a=s.map(({modelId:i,displayName:c})=>({modelId:i.trim(),...c?{displayName:c}:{}})).filter(({modelId:i})=>!i||r.has(i)?!1:(r.add(i),!0)),d=a[0];if(!d)return 0;let n=await this.port.saveUserModelProviderCandidate({...o,models:[...e.models.map(({modelId:i})=>({modelId:i})),...a.map(i=>({...i,configurationSource:"discovered"}))],modelId:d.modelId,skipConnectionTest:!0,saveAndUse:!1});if(!n.success)throw new Error(n.status?.lastErrorMessage??"Could not save refreshed models.");return a.length}async update(e){await this.port.updateUserModelProvider(e)}async remove(e){await this.port.deleteUserModelProvider(e)}test(e,o){return o?this.port.testUserModel(e,o):this.port.testUserModelProvider(e)}};function m(t){return{providerId:t.providerId,name:"OpenAI Codex",kind:"codex-oauth",active:!1,enabled:!0,readOnly:!0,hasApiKey:!1,models:[],status:{state:t.state,...t.error?{lastErrorMessage:t.error}:{}}}}function M(t){let e=u(t.apiFormat)?t.apiFormat:void 0;return{providerId:t.providerId,name:t.name?.trim()||t.providerId,kind:"custom",active:!!(t.enabled!==!1&&t.models?.some(o=>"selected"in o&&o.selected)),enabled:t.enabled!==!1,readOnly:t.kind==="oauth",...t.configRevision?{configRevision:t.configRevision}:{},...e?{apiFormat:e}:{},...t.baseUrl?{baseUrl:t.baseUrl}:{},hasApiKey:!!t.hasApiKey,...t.maskedApiKey?{maskedApiKey:t.maskedApiKey}:{},models:(t.models??[]).map(o=>({modelId:o.modelId,...o.displayName?{displayName:o.displayName}:{},...o.selected!==void 0?{selected:o.selected}:{},...o.status?{status:o.status}:{}})),...t.status?{status:t.status}:{}}}export{l as a};
|