@minimax-ai/code 0.5.8 → 0.5.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 +34 -0
- package/CHANGELOG.zh-CN.md +23 -0
- package/assets/agents/_default/prompt-base-all.md +1 -1
- package/assets/agents/_default/prompt-base-all.md.hbs +1 -28
- package/assets/agents/_v2/AGENT_CONTEXT.md.hbs +1 -1
- package/assets/agents/_v2/coding/SYSTEM.md.hbs +1 -1
- package/assets/agents/_v2/tui/SYSTEM.md.hbs +1 -1
- package/assets/agents/_v2/work/SYSTEM.md.hbs +1 -1
- package/assets/agents/mavis/features/cron.md.hbs +0 -24
- package/assets/agents/mavis/features/memory.md.hbs +1 -1
- package/assets/agents/mavis/modes/coding/online/SYSTEM.md.hbs +0 -1
- package/assets/agents/mavis/modes/work/online/SYSTEM.md.hbs +0 -1
- package/assets/skills/.seed-fingerprints.json +1 -1
- package/assets/skills/mcode-tools-master/SKILL.md +13 -9
- package/chunks/{auth-command-RALSSOBM.js → auth-command-NX42NZF7.js} +1 -1
- package/chunks/chunk-5HBEVUHF.js +6806 -0
- package/chunks/{chunk-TNWAAYEI.js → chunk-BDJJOCZ6.js} +1 -1
- package/chunks/{chunk-ITKWU4ZJ.js → chunk-CKRK5YDX.js} +1 -1
- package/chunks/{chunk-HOQXGGPN.js → chunk-EM6SRMJ6.js} +1 -1
- package/chunks/{chunk-OCFW7RRF.js → chunk-GN5KQHOZ.js} +84 -84
- package/chunks/{chunk-ZOTCLOIA.js → chunk-H4IKJTNO.js} +1 -1
- package/chunks/{chunk-X3H6BQVR.js → chunk-N55ACUNK.js} +1 -1
- package/chunks/{chunk-LG37JEC6.js → chunk-OIBREUNQ.js} +718 -705
- package/chunks/{data-dir-LAVNS5CI.js → data-dir-ONMHHF2I.js} +1 -1
- package/chunks/dist-SQAQEOG4.js +2 -0
- package/chunks/{launcher-3OVH3OJ7.js → launcher-AESTX6PI.js} +148 -148
- package/chunks/{lifecycle-74ZN3X75.js → lifecycle-MQKRXZ6A.js} +1 -1
- package/chunks/{main-EALSBC4N.js → main-IXKNUIJL.js} +2 -2
- package/chunks/{plugin-command-6BTNVHCU.js → plugin-command-Y2YJHBWP.js} +1 -1
- package/chunks/{provider-command-4SDHPXLP.js → provider-command-PQYDIYJU.js} +1 -1
- package/chunks/{run-acp-command-K3NOFRPR.js → run-acp-command-NQ4NZCZC.js} +2 -2
- package/chunks/{run-exec-command-Z27JZUWY.js → run-exec-command-XYPPAS4V.js} +1 -1
- package/cli.js +2 -2
- package/package.json +1 -1
- package/chunks/chunk-PF5H4F6R.js +0 -6793
- package/chunks/dist-2NNKON6X.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,40 @@ 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.10 · 2026-09-30
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Your own messages now appear exactly as typed in the conversation, pending instructions, and the
|
|
15
|
+
transcript viewer. Text such as `__pycache__`, `*`, and a leading `>` is no longer reformatted as
|
|
16
|
+
Markdown, and trailing blank lines no longer add empty rows.
|
|
17
|
+
- The TUI no longer stays stuck showing a run as in progress after Runtime has already finished it.
|
|
18
|
+
Enter now sends a new message instead of steering the finished run, and queued messages are no
|
|
19
|
+
longer held back.
|
|
20
|
+
|
|
21
|
+
## 0.5.9 · 2026-09-29
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- The build-mode status line now reports `background=N`, the number of active background tasks in
|
|
26
|
+
the current root session. Bash still owned by its foreground tool call is not counted, and the
|
|
27
|
+
count holds at `1` after a turn settles until a fresh task list arrives, so a command that has
|
|
28
|
+
just moved to the background is not reported as `0`.
|
|
29
|
+
|
|
30
|
+
### Improved
|
|
31
|
+
|
|
32
|
+
- BYOK requests now apply byte limits to large media and accumulated history context, reducing
|
|
33
|
+
failures caused by oversized requests.
|
|
34
|
+
- Long conversations load their file list and history navigation with less data, making browsing
|
|
35
|
+
them faster.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- Editing and rewinding a message now works after an interrupt that left only a background
|
|
40
|
+
reminder behind.
|
|
41
|
+
- Terminal errors from a failed run are cleared when the next run starts, so a successful retry no
|
|
42
|
+
longer shows the earlier error again.
|
|
43
|
+
|
|
10
44
|
## 0.5.8 · 2026-09-28
|
|
11
45
|
|
|
12
46
|
### Improved
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -8,6 +8,29 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
8
8
|
|
|
9
9
|
仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
|
|
10
10
|
|
|
11
|
+
## 0.5.10 · 2026-09-30
|
|
12
|
+
|
|
13
|
+
### 问题修复
|
|
14
|
+
|
|
15
|
+
- 你发送的消息在对话、待执行指令和会话记录查看器中都会按原文显示;`__pycache__`、`*`、行首 `>` 等内容不再被当作 Markdown 改写,末尾的空行也不再显示为多余的空白行。
|
|
16
|
+
- 修复 Runtime 已结束运行后 TUI 仍显示运行中的问题;此时按 Enter 会正常发送新消息,不再误当作对已结束运行的 steer,排队消息也不再被卡住。
|
|
17
|
+
|
|
18
|
+
## 0.5.9 · 2026-09-29
|
|
19
|
+
|
|
20
|
+
### 新增功能
|
|
21
|
+
|
|
22
|
+
- 构建模式状态栏新增 `background=N`,表示当前根会话活跃的后台任务数。仍由前台工具调用持有的 Bash 不计入;根 turn 结算后,在新的任务列表返回之前该计数至少为 `1`,避免刚转入后台的命令被显示为 `0`。
|
|
23
|
+
|
|
24
|
+
### 体验改进
|
|
25
|
+
|
|
26
|
+
- BYOK 请求对大体积媒体和累积的历史上下文增加字节上限,减少请求体过大导致的问题。
|
|
27
|
+
- 长对话的文件列表和历史导航读取更少数据,浏览更快。
|
|
28
|
+
|
|
29
|
+
### 问题修复
|
|
30
|
+
|
|
31
|
+
- 中断后仅残留后台提醒时,现在可以正常编辑和撤回消息。
|
|
32
|
+
- 新一轮运行开始时会清除上一轮失败留下的终端错误,重试成功后不再重复显示旧错误。
|
|
33
|
+
|
|
11
34
|
## 0.5.8 · 2026-09-28
|
|
12
35
|
|
|
13
36
|
### 体验改进
|
|
@@ -77,7 +77,7 @@ not generalize beyond the evidence. Compress an accepted entry as **rule → evi
|
|
|
77
77
|
when**; do not preserve an incident timeline or full retrospective.
|
|
78
78
|
|
|
79
79
|
Use `append` only to add **new** entries. To **modify, correct, or remove** an existing entry,
|
|
80
|
-
|
|
80
|
+
use the `memory` tool's `edit` operation — `append` doesn't dedupe.
|
|
81
81
|
|
|
82
82
|
**Language: write memory entries in the user's language** (Chinese / English / etc.). Mixing
|
|
83
83
|
languages across entries makes the file harder to scan and grep. Code identifiers, paths, and
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
- Text you output outside of tool use is displayed to the user as Github-flavored markdown in a terminal.
|
|
4
4
|
{{/if}}
|
|
5
5
|
- Tools run behind a user-selected permission mode; a denied call means the user declined it — adjust, don't retry verbatim.
|
|
6
|
-
- `<system-reminder>` tags in messages and tool results are injected by the harness, not the user.
|
|
7
6
|
- Prefer dedicated tools over `bash` whenever one fits. Use `grep` for file-content search, `glob` for file-name/path search, `read` for reading files, `edit` for targeted changes, and `write` for new files or complete rewrites. Reserve `bash` for shell-only operations or after verifying that no available dedicated tool can complete the task.
|
|
8
7
|
- Independent tool calls can run in parallel in one response.
|
|
9
8
|
|
|
@@ -86,32 +85,6 @@ Search misses do not prove non-existence; fetch an authoritative page or say the
|
|
|
86
85
|
verified.
|
|
87
86
|
{{/if}}
|
|
88
87
|
|
|
89
|
-
{{#if surface.interactive}}
|
|
90
|
-
{{#if features.mavis}}
|
|
91
|
-
## Scheduled Work and Async Follow-up
|
|
92
|
-
|
|
93
|
-
Use Cron only to schedule a future Agent turn.
|
|
94
|
-
|
|
95
|
-
- If the current tool says it will resume this conversation when it finishes, rely on that result
|
|
96
|
-
and do not create Cron.
|
|
97
|
-
- Waiting for a user reply alone does not create Cron.
|
|
98
|
-
- Use `cron once` for one future turn.
|
|
99
|
-
- Use `cron create` for recurrence requested by the user. It remains active until disabled or
|
|
100
|
-
deleted.
|
|
101
|
-
- Use `cron self` only to periodically re-check external state that has no completion signal. State
|
|
102
|
-
when to report and delete it.
|
|
103
|
-
|
|
104
|
-
For `cron create` and `cron once`, default to a fresh conversation by passing
|
|
105
|
-
`agent_name: "me"` and `session: { mode: "new" }`. Use an existing conversation only when the user
|
|
106
|
-
explicitly requests it. If the user does not select a model, omit `model`; the runtime will persist
|
|
107
|
-
the current turn model instead of following a future global default.
|
|
108
|
-
|
|
109
|
-
Never invent the task content, execution time, frequency, or another material choice. If the
|
|
110
|
-
request does not make the task and timing clear (including vague requests such as “anything is
|
|
111
|
-
fine”), call `ask_user` with one concise questionnaire before creating Cron.
|
|
112
|
-
{{/if}}
|
|
113
|
-
{{/if}}
|
|
114
|
-
|
|
115
88
|
{{#if surface.interactive}}
|
|
116
89
|
{{#if memory.enabled}}
|
|
117
90
|
## Memory
|
|
@@ -162,7 +135,7 @@ not generalize beyond the evidence. Compress an accepted entry as **rule → evi
|
|
|
162
135
|
when**; do not preserve an incident timeline or full retrospective.
|
|
163
136
|
|
|
164
137
|
Use `append` only to add **new** entries. To **modify, correct, or remove** an existing entry,
|
|
165
|
-
|
|
138
|
+
use the `memory` tool's `edit` operation — `append` doesn't dedupe.
|
|
166
139
|
|
|
167
140
|
**Language: write memory entries in the user's language** (Chinese / English / etc.). Mixing
|
|
168
141
|
languages across entries makes the file harder to scan and grep. Code identifiers, paths, and
|
|
@@ -98,7 +98,7 @@ not generalize beyond the evidence. Compress an accepted entry as **rule → evi
|
|
|
98
98
|
when**; do not preserve an incident timeline or full retrospective.
|
|
99
99
|
|
|
100
100
|
Use `append` only to add **new** entries. To **modify, correct, or remove** an existing entry,
|
|
101
|
-
|
|
101
|
+
use the `memory` tool's `edit` operation — `append` doesn't dedupe.
|
|
102
102
|
|
|
103
103
|
**Language: write memory entries in the user's language** (Chinese / English / etc.). Mixing
|
|
104
104
|
languages across entries makes the file harder to scan and grep. Code identifiers, paths, and
|
|
@@ -83,7 +83,7 @@ not generalize beyond the evidence. Compress an accepted entry as **rule → evi
|
|
|
83
83
|
when**; do not preserve an incident timeline or full retrospective.
|
|
84
84
|
|
|
85
85
|
Use `append` only to add **new** entries. To **modify, correct, or remove** an existing entry,
|
|
86
|
-
|
|
86
|
+
use the `memory` tool's `edit` operation — `append` doesn't dedupe.
|
|
87
87
|
|
|
88
88
|
**Language: write memory entries in the user's language** (Chinese / English / etc.). Mixing
|
|
89
89
|
languages across entries makes the file harder to scan and grep. Code identifiers, paths, and
|
|
@@ -90,7 +90,7 @@ not generalize beyond the evidence. Compress an accepted entry as **rule → evi
|
|
|
90
90
|
when**; do not preserve an incident timeline or full retrospective.
|
|
91
91
|
|
|
92
92
|
Use `append` only to add **new** entries. To **modify, correct, or remove** an existing entry,
|
|
93
|
-
|
|
93
|
+
use the `memory` tool's `edit` operation — `append` doesn't dedupe.
|
|
94
94
|
|
|
95
95
|
**Language: write memory entries in the user's language** (Chinese / English / etc.). Mixing
|
|
96
96
|
languages across entries makes the file harder to scan and grep. Code identifiers, paths, and
|
|
@@ -84,7 +84,7 @@ not generalize beyond the evidence. Compress an accepted entry as **rule → evi
|
|
|
84
84
|
when**; do not preserve an incident timeline or full retrospective.
|
|
85
85
|
|
|
86
86
|
Use `append` only to add **new** entries. To **modify, correct, or remove** an existing entry,
|
|
87
|
-
|
|
87
|
+
use the `memory` tool's `edit` operation — `append` doesn't dedupe.
|
|
88
88
|
|
|
89
89
|
**Language: write memory entries in the user's language** (Chinese / English / etc.). Mixing
|
|
90
90
|
languages across entries makes the file harder to scan and grep. Code identifiers, paths, and
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{{#if features.mavis}}
|
|
2
|
-
## Scheduled Work and Async Follow-up
|
|
3
|
-
|
|
4
|
-
Use Cron only to schedule a future Agent turn.
|
|
5
|
-
|
|
6
|
-
- If the current tool says it will resume this conversation when it finishes, rely on that result
|
|
7
|
-
and do not create Cron.
|
|
8
|
-
- Waiting for a user reply alone does not create Cron.
|
|
9
|
-
- Use `cron once` for one future turn.
|
|
10
|
-
- Use `cron create` for recurrence requested by the user. It remains active until disabled or
|
|
11
|
-
deleted.
|
|
12
|
-
- Use `cron self` only to periodically re-check external state that has no completion signal. State
|
|
13
|
-
when to report and delete it.
|
|
14
|
-
|
|
15
|
-
For a reminder requested in the current conversation, keep delivery in this conversation: pass
|
|
16
|
-
`session: { mode: "sessionId", session_id: "me" }` to `cron create` or `cron once`. These commands
|
|
17
|
-
require an explicit session target. Use `session: { mode: "new" }` only when the user asks for an
|
|
18
|
-
independent task or a fresh conversation. If the user does not select a model, omit `model`; the
|
|
19
|
-
runtime will persist the current turn model instead of following a future global default.
|
|
20
|
-
|
|
21
|
-
Never invent the task content, execution time, frequency, or another material choice. If the
|
|
22
|
-
request does not make the task and timing clear (including vague requests such as “anything is
|
|
23
|
-
fine”), call `ask_user` with one concise questionnaire before creating Cron.
|
|
24
|
-
{{/if}}
|
|
@@ -47,7 +47,7 @@ not generalize beyond the evidence. Compress an accepted entry as **rule → evi
|
|
|
47
47
|
when**; do not preserve an incident timeline or full retrospective.
|
|
48
48
|
|
|
49
49
|
Use `append` only to add **new** entries. To **modify, correct, or remove** an existing entry,
|
|
50
|
-
|
|
50
|
+
use the `memory` tool's `edit` operation — `append` doesn't dedupe.
|
|
51
51
|
|
|
52
52
|
**Language: write memory entries in the user's language** (Chinese / English / etc.). Mixing
|
|
53
53
|
languages across entries makes the file harder to scan and grep. Code identifiers, paths, and
|
|
@@ -30,7 +30,6 @@ When making changes to code:
|
|
|
30
30
|
## Harness
|
|
31
31
|
- Text you output outside of tool use is displayed to the user as Github-flavored markdown in a terminal.
|
|
32
32
|
- Tools run behind a user-selected permission mode; a denied call means the user declined it — adjust, don't retry verbatim.
|
|
33
|
-
- `<system-reminder>` tags in messages and tool results are injected by the harness, not the user.
|
|
34
33
|
- Prefer dedicated tools over `bash` whenever one fits. Use `grep` for file-content search, `glob` for file-name/path search, `read` for reading files, `edit` for targeted changes, and `write` for new files or complete rewrites. Reserve `bash` for shell-only operations or after verifying that no available dedicated tool can complete the task.
|
|
35
34
|
- Independent tool calls can run in parallel in one response.
|
|
36
35
|
|
|
@@ -32,7 +32,6 @@ When the requested deliverable is a document, presentation, spreadsheet, diagram
|
|
|
32
32
|
|
|
33
33
|
- Text you output outside of tool use is displayed to the user as GitHub-flavored Markdown in a terminal.
|
|
34
34
|
- Tools run behind a user-selected permission mode; a denied call means the user declined it — adjust, don't retry verbatim.
|
|
35
|
-
- `<system-reminder>` tags in messages and tool results are injected by the harness, not the user.
|
|
36
35
|
- Prefer dedicated tools over `bash` or `web_search` whenever one fits. Use `grep` for file-content search, `glob` for file-name or path search, `read` for reading files, `edit` for targeted changes, and `write` for new files or complete rewrites. When specialized tools overlap in responsibility, prefer the one backed by the most authoritative data source. For example, for professional financial data, prefer dedicated databases such as Wind or iFinD over `web_search`.
|
|
37
36
|
- Independent tool calls can run in parallel in one response.
|
|
38
37
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"aggregate": "210c44985497bdb48a91f5fe6961cf2e729d21ec3ed4514123a34c142ad70916"
|
|
27
27
|
},
|
|
28
28
|
"mcode-tools-master": {
|
|
29
|
-
"aggregate": "
|
|
29
|
+
"aggregate": "2274f8b7b021bae485d41e70f031606d431657d6f355201d635e2e7d89330637"
|
|
30
30
|
},
|
|
31
31
|
"pdf": {
|
|
32
32
|
"aggregate": "db88eb92a28bfaaf956ca2a5e312da9034ae459471bcb14d98798c53a3470a31"
|
|
@@ -2,20 +2,24 @@
|
|
|
2
2
|
name: mcode-tools-master
|
|
3
3
|
description: >-
|
|
4
4
|
You must load this skill before running any `mcode-tools` Bash command. The `mcode-tools` CLI is
|
|
5
|
-
available on PATH
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
available on PATH and serves two purposes: (1) multimodal generation and understanding, including
|
|
6
|
+
images/photos, video, audio, music, and documents; (2) discovering, inspecting, and calling all
|
|
7
|
+
App/Connector tools (App = Connector), including ordinary connected App requests, scripts, and
|
|
8
|
+
batch automation. For multimodal generation or understanding requests, load this skill and use
|
|
9
|
+
mcode-tools through Bash. App tools are not injected into the model tool list. Ordinary MCP and
|
|
8
10
|
Plugin-owned MCP tools already in the model tool list can still be called directly.
|
|
9
11
|
Load this skill when the user asks to use a named App/service, or specialized external or
|
|
10
12
|
connected-account data may require App discovery before general web search.
|
|
11
13
|
requiresBeta: mcodeTools
|
|
12
14
|
descriptions:
|
|
13
|
-
zh-Hans:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
App
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
zh-Hans: >-
|
|
16
|
+
调用任何 mcode-tools Bash 命令前必须先加载本 skill。mcode-tools CLI 已在 PATH 中,通过 Bash 调用,
|
|
17
|
+
有两种用途:1)图片/照片、视频、音频、音乐和文档等多模态生成与理解;2)发现、查看和调用所有
|
|
18
|
+
App/Connector 工具(App = Connector,指同一种已连接的应用集成),包括普通 App 请求、脚本和批处理。
|
|
19
|
+
遇到多模态生成或理解请求,应先加载本 skill,再通过 Bash 使用 mcode-tools。
|
|
20
|
+
App 工具不直接注入模型工具列表;普通 MCP 和 Plugin 自带 MCP 仍使用各自的直接工具。
|
|
21
|
+
用户点名使用某个 App/服务,或需要专业外部数据、账户内数据时,应先加载本 skill 发现合适的 App 工具,
|
|
22
|
+
再考虑通用网页搜索。
|
|
19
23
|
displayNames:
|
|
20
24
|
zh-Hans: 'mcode-tools Connector'
|
|
21
25
|
---
|
|
@@ -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-H4IKJTNO.js";import"./chunk-N55ACUNK.js";import{d as p}from"./chunk-BDJJOCZ6.js";import"./chunk-EM6SRMJ6.js";import"./chunk-GN5KQHOZ.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.
|