@minimax-ai/code 0.5.8 → 0.5.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/CHANGELOG.zh-CN.md +16 -0
  3. package/assets/agents/_default/prompt-base-all.md +1 -1
  4. package/assets/agents/_default/prompt-base-all.md.hbs +1 -28
  5. package/assets/agents/_v2/AGENT_CONTEXT.md.hbs +1 -1
  6. package/assets/agents/_v2/coding/SYSTEM.md.hbs +1 -1
  7. package/assets/agents/_v2/tui/SYSTEM.md.hbs +1 -1
  8. package/assets/agents/_v2/work/SYSTEM.md.hbs +1 -1
  9. package/assets/agents/mavis/features/cron.md.hbs +0 -24
  10. package/assets/agents/mavis/features/memory.md.hbs +1 -1
  11. package/assets/agents/mavis/modes/coding/online/SYSTEM.md.hbs +0 -1
  12. package/assets/agents/mavis/modes/work/online/SYSTEM.md.hbs +0 -1
  13. package/assets/skills/.seed-fingerprints.json +1 -1
  14. package/assets/skills/mcode-tools-master/SKILL.md +13 -9
  15. package/chunks/{auth-command-RALSSOBM.js → auth-command-NX42NZF7.js} +1 -1
  16. package/chunks/{chunk-LG37JEC6.js → chunk-6ETTLULN.js} +718 -705
  17. package/chunks/{chunk-ITKWU4ZJ.js → chunk-7AA5OH3H.js} +1 -1
  18. package/chunks/{chunk-TNWAAYEI.js → chunk-BDJJOCZ6.js} +1 -1
  19. package/chunks/{chunk-HOQXGGPN.js → chunk-EM6SRMJ6.js} +1 -1
  20. package/chunks/{chunk-OCFW7RRF.js → chunk-GN5KQHOZ.js} +84 -84
  21. package/chunks/{chunk-ZOTCLOIA.js → chunk-H4IKJTNO.js} +1 -1
  22. package/chunks/{chunk-X3H6BQVR.js → chunk-N55ACUNK.js} +1 -1
  23. package/chunks/chunk-QEPCDCRA.js +6806 -0
  24. package/chunks/{data-dir-LAVNS5CI.js → data-dir-ONMHHF2I.js} +1 -1
  25. package/chunks/dist-SQAQEOG4.js +2 -0
  26. package/chunks/{launcher-3OVH3OJ7.js → launcher-UFK2VC2A.js} +113 -113
  27. package/chunks/{lifecycle-74ZN3X75.js → lifecycle-A7N2MOIV.js} +1 -1
  28. package/chunks/{main-EALSBC4N.js → main-BEWP2E4J.js} +2 -2
  29. package/chunks/{plugin-command-6BTNVHCU.js → plugin-command-NZDDLHHT.js} +1 -1
  30. package/chunks/{provider-command-4SDHPXLP.js → provider-command-VA6AI6FF.js} +1 -1
  31. package/chunks/{run-acp-command-K3NOFRPR.js → run-acp-command-SBE5PYAH.js} +2 -2
  32. package/chunks/{run-exec-command-Z27JZUWY.js → run-exec-command-P3L2BJ4M.js} +1 -1
  33. package/cli.js +2 -2
  34. package/package.json +1 -1
  35. package/chunks/chunk-PF5H4F6R.js +0 -6793
  36. package/chunks/dist-2NNKON6X.js +0 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,29 @@ 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.9 · 2026-09-29
11
+
12
+ ### Added
13
+
14
+ - The build-mode status line now reports `background=N`, the number of active background tasks in
15
+ the current root session. Bash still owned by its foreground tool call is not counted, and the
16
+ count holds at `1` after a turn settles until a fresh task list arrives, so a command that has
17
+ just moved to the background is not reported as `0`.
18
+
19
+ ### Improved
20
+
21
+ - BYOK requests now apply byte limits to large media and accumulated history context, reducing
22
+ failures caused by oversized requests.
23
+ - Long conversations load their file list and history navigation with less data, making browsing
24
+ them faster.
25
+
26
+ ### Fixed
27
+
28
+ - Editing and rewinding a message now works after an interrupt that left only a background
29
+ reminder behind.
30
+ - Terminal errors from a failed run are cleared when the next run starts, so a successful retry no
31
+ longer shows the earlier error again.
32
+
10
33
  ## 0.5.8 · 2026-09-28
11
34
 
12
35
  ### Improved
@@ -8,6 +8,22 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
8
8
 
9
9
  仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
10
10
 
11
+ ## 0.5.9 · 2026-09-29
12
+
13
+ ### 新增功能
14
+
15
+ - 构建模式状态栏新增 `background=N`,表示当前根会话活跃的后台任务数。仍由前台工具调用持有的 Bash 不计入;根 turn 结算后,在新的任务列表返回之前该计数至少为 `1`,避免刚转入后台的命令被显示为 `0`。
16
+
17
+ ### 体验改进
18
+
19
+ - BYOK 请求对大体积媒体和累积的历史上下文增加字节上限,减少请求体过大导致的问题。
20
+ - 长对话的文件列表和历史导航读取更少数据,浏览更快。
21
+
22
+ ### 问题修复
23
+
24
+ - 中断后仅残留后台提醒时,现在可以正常编辑和撤回消息。
25
+ - 新一轮运行开始时会清除上一轮失败留下的终端错误,重试成功后不再重复显示旧错误。
26
+
11
27
  ## 0.5.8 · 2026-09-28
12
28
 
13
29
  ### 体验改进
@@ -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
- edit the memory file directly with Edit/Write — `append` doesn't dedupe.
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
- edit the memory file directly with Edit/Write — `append` doesn't dedupe.
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
- edit the memory file directly with Edit/Write — `append` doesn't dedupe.
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
- edit the memory file directly with Edit/Write — `append` doesn't dedupe.
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
- edit the memory file directly with Edit/Write — `append` doesn't dedupe.
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
- edit the memory file directly with Edit/Write — `append` doesn't dedupe.
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
- edit the memory file directly with Edit/Write — `append` doesn't dedupe.
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": "d70b5a9b18a642d526adea6d0e89cd848beebf551c300fd7f8339c115bdc0565"
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. It is the entry point for discovering, inspecting, and calling all
6
- App/Connector tools (App = Connector), including ordinary connected App requests, scripts, batch
7
- automation, and multimedia. App tools are not injected into the model tool list. Ordinary MCP and
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
- '调用任何 mcode-tools Bash 命令前必须先加载本 skill。通过 Bash 中的 mcode-tools
15
- 发现、查看和调用所有 App/Connector 工具(App = Connector,指同一种已连接的应用集成),包括普通
16
- App 请求、批处理和多模态任务。 App 工具不直接注入模型工具列表;普通 MCP 和 Plugin 自带 MCP
17
- 仍使用各自的直接工具。用户点名使用某个 App/服务,或需要专业外部数据、账户内数据时,应先加载
18
- 本 skill 发现合适的 App 工具,再考虑通用网页搜索。'
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-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}
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.