@minimax-ai/code 0.5.6 → 0.5.7

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,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.5.7 · 2026-09-28
11
+
12
+ ### Added
13
+
14
+ - Custom provider setup can import models from `/models` with the API key entered during setup.
15
+ Search and select a model, then save the imported models after a successful connection test;
16
+ retry discovery or enter a model ID manually when needed.
17
+ - Added M3.1-Flash-Preview to the built-in fallback model catalog.
18
+
19
+ ### Fixed
20
+
21
+ - Bash tool descriptions are displayed as plain text instead of receiving shell command syntax
22
+ highlighting; actual commands retain syntax highlighting.
23
+
10
24
  ## 0.5.6 · 2026-09-27
11
25
 
12
26
  ### Fixed
@@ -8,6 +8,17 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
8
8
 
9
9
  仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
10
10
 
11
+ ## 0.5.7 · 2026-09-28
12
+
13
+ ### 新增功能
14
+
15
+ - 新建自定义 Provider 时,可使用当前填写的 API Key 从 `/models` 导入模型;搜索并选中模型、连接测试成功后再保存。导入失败时可重试或手动填写模型 ID。
16
+ - 内置兜底模型列表补充 M3.1-Flash-Preview。
17
+
18
+ ### 问题修复
19
+
20
+ - Bash 工具的自然语言描述不再被当作 Shell 命令高亮;实际命令继续保留语法高亮。
21
+
11
22
  ## 0.5.6 · 2026-09-27
12
23
 
13
24
  ### 问题修复
package/README.zh-CN.md CHANGED
@@ -82,6 +82,13 @@ code 需要在 ChatGPT 安全设置或工作区权限中开启。浏览器无法
82
82
  | 适配工作流 | 使用交互式 TUI、结构化 Headless 输出或 ACP 集成 |
83
83
  | 灵活扩展 | 选择模型和 Provider,并通过 Plugin 增加新能力 |
84
84
 
85
+ ### 新建自定义 Provider 时导入模型
86
+
87
+ 在 `/model` 选择 **+ Add 3rd-party model → Custom provider**,依次填写名称、Base URL、协议和 API Key,
88
+ 再选择 **Import models from /models**。导入使用当前填写的 Key,不会立即保存配置;搜索并选中一个模型,
89
+ 连接测试成功后才保存全部导入模型并选用该模型。若导入失败或列表为空,可重试、按 **Esc** 修改 Key,
90
+ 或选择 **Enter a model ID manually** 手动填写模型 ID。
91
+
85
92
  ### 刷新第三方模型与编辑连接
86
93
 
87
94
  在 `/provider` 选中第三方连接,按 `r` 使用已保存的 API
@@ -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-A3JEH4SG.js";import"./chunk-G5SJVXKS.js";import{d as p}from"./chunk-AMSXOG5J.js";import"./chunk-2V3P6YKN.js";import"./chunk-KUDSBDBH.js";import"./chunk-Z4VKGZFA.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}
2
+ import{a as o,b as l,c as u}from"./chunk-ZOTCLOIA.js";import"./chunk-X3H6BQVR.js";import{d as p}from"./chunk-TNWAAYEI.js";import"./chunk-HOQXGGPN.js";import"./chunk-OCFW7RRF.js";import"./chunk-Z4VKGZFA.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.