@minimax-ai/code 0.6.10 → 0.6.11
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 +10 -0
- package/CHANGELOG.zh-CN.md +10 -0
- package/assets/agents/mavis/skills/control-in-app-browser/SKILL.md +41 -23
- package/chunks/{chunk-GZAO7QYD.js → chunk-7FUBWI5L.js} +616 -615
- package/chunks/{chunk-F5767MLW.js → chunk-FNHS672G.js} +831 -690
- package/chunks/{chunk-72PMKZ7Y.js → chunk-VUXFNHQE.js} +1 -1
- package/chunks/{launcher-AFCZTEJU.js → launcher-BADSPVA5.js} +2 -2
- package/chunks/{lifecycle-RBCNKJ7Z.js → lifecycle-7W6GXLEL.js} +1 -1
- package/chunks/{main-SSCI3MRX.js → main-LWOWUP76.js} +1 -1
- package/chunks/{plugin-command-ZQV7YMWK.js → plugin-command-QSDS4V7E.js} +1 -1
- package/chunks/{provider-command-UMQZDUGQ.js → provider-command-ZE4ODVR3.js} +1 -1
- package/chunks/{run-acp-command-YUXNSZ3D.js → run-acp-command-LM4IFM5B.js} +1 -1
- package/chunks/{run-exec-command-HAIRHPYT.js → run-exec-command-B7H55F5B.js} +1 -1
- package/cli.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ 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.6.11 · 2026-10-14
|
|
11
|
+
|
|
12
|
+
### Improved
|
|
13
|
+
|
|
14
|
+
- Context compaction for custom providers (BYOK) reuses the main request's prompt-cache prefix, making compaction faster and cheaper; if the provider does not accept it, compaction falls back to the previous standalone request.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- When a gateway returns HTTP 200 and then reports an oversized request inside the stream (such as `Input is too long`), the request is no longer resent unchanged and goes straight to compaction recovery; a compaction request that hits the same rejection switches to a smaller summary candidate.
|
|
19
|
+
|
|
10
20
|
## 0.6.10 · 2026-10-13
|
|
11
21
|
|
|
12
22
|
### Added
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -8,6 +8,16 @@ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用
|
|
|
8
8
|
|
|
9
9
|
仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
|
|
10
10
|
|
|
11
|
+
## 0.6.11 · 2026-10-14
|
|
12
|
+
|
|
13
|
+
### 体验改进
|
|
14
|
+
|
|
15
|
+
- 自定义 Provider(BYOK)的上下文压缩复用主请求的提示缓存前缀,压缩请求更快、成本更低;Provider 不接受时自动改用原有的独立压缩请求。
|
|
16
|
+
|
|
17
|
+
### 问题修复
|
|
18
|
+
|
|
19
|
+
- 网关先返回 HTTP 200、再在流中报告请求过大(如 `Input is too long`)时,不再原样重试,直接走压缩恢复;压缩请求遇到同样的拒绝时改用更小的摘要候选。
|
|
20
|
+
|
|
11
21
|
## 0.6.10 · 2026-10-13
|
|
12
22
|
|
|
13
23
|
### 新增功能
|
|
@@ -114,16 +114,15 @@ path:
|
|
|
114
114
|
and `nextOffset`; do not restart inspection or guess a selector or coordinate.
|
|
115
115
|
3. Call `click_and_wait_for_navigation` with that stable opaque `ref`.
|
|
116
116
|
4. Call `inspect` once on the destination and verify that the login form is present.
|
|
117
|
-
5.
|
|
118
|
-
code,
|
|
119
|
-
|
|
120
|
-
it is headless and has no takeover surface,
|
|
121
|
-
do not issue another Browser action.
|
|
117
|
+
5. If the provider exposes a visible same-tab takeover surface, treat email, phone number, password,
|
|
118
|
+
verification code, CAPTCHA, security-key response, recovery code, and every other authentication
|
|
119
|
+
input as user-controlled: make an actual `ask_user` tool call for takeover and end the turn. If
|
|
120
|
+
it is headless and has no takeover surface, follow the headless sign-in paragraph below.
|
|
122
121
|
|
|
123
|
-
If the requested workflow reaches a login or sign-in form
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
authentication input.
|
|
122
|
+
If the requested workflow reaches a login or sign-in form on a provider with a visible takeover
|
|
123
|
+
surface, inspect only enough page state to explain what the user must do. On such a provider, never
|
|
124
|
+
read, request, generate, reveal, type, or fill an email address, phone number, password,
|
|
125
|
+
verification code, CAPTCHA, security key response, recovery code, or another authentication input.
|
|
127
126
|
|
|
128
127
|
When the provider exposes a visible interactive surface, use `ask_user` to pause the turn and ask
|
|
129
128
|
the user to take over the existing FilePanel Browser for the authentication step. Keep the question
|
|
@@ -131,13 +130,21 @@ specific to the current site and explain that the same Browser tab and profile w
|
|
|
131
130
|
not substitute Computer Use, shell credential reads, standalone Playwright, or a second browser. Do
|
|
132
131
|
not click a final sign-in or authorization button on the user's behalf when it would submit
|
|
133
132
|
credentials or grant account access. After the actual `ask_user` call reports that it is waiting,
|
|
134
|
-
stop the turn immediately.
|
|
135
|
-
login boundary instead of asking the user to interact with a panel that does not exist.
|
|
133
|
+
stop the turn immediately.
|
|
136
134
|
|
|
137
|
-
|
|
135
|
+
On headless Chrome there is no surface to take over, so complete the sign-in yourself: fill the
|
|
136
|
+
credentials the user or task supplied, or an account the site's sign-in page publishes for that
|
|
137
|
+
user or task, and submit. If required values are missing, request them with `ask_user` when that
|
|
138
|
+
tool is available; otherwise report which site needs which value and continue the rest of the
|
|
139
|
+
task. Never guess credentials or echo secret values in prose; report CAPTCHA and security-key
|
|
140
|
+
challenges.
|
|
141
|
+
|
|
142
|
+
After login completes, call `inspect` again on the same Browser session
|
|
138
143
|
and verify a signed-in page marker before continuing. Do not inspect cookies, local storage, tokens,
|
|
139
144
|
or profile files to prove authentication. If the page still shows login, ask the user to take over
|
|
140
|
-
again
|
|
145
|
+
again when a visible surface exists; on headless Chrome, check the entered values against their
|
|
146
|
+
source once, then request corrected values with `ask_user` when available or report the
|
|
147
|
+
site-provided failure. Never guess credentials or retry the same rejected values.
|
|
141
148
|
|
|
142
149
|
When Electron is the active provider, never tell the user that this tool cannot see the right-side
|
|
143
150
|
Browser because it is a different browser instance. Do not switch to desktop screenshots merely to
|
|
@@ -170,7 +177,10 @@ the user refers to a page that is already or currently open in this Browser.
|
|
|
170
177
|
When the active provider exposes `return_to_previous_tab`, use it to close the current headless tab
|
|
171
178
|
and resume the page most recently preserved by `open_tab`. `back` and `forward` only traverse
|
|
172
179
|
history inside the active tab and never return to a preserved tab. Do not call the return action
|
|
173
|
-
when the provider does not expose it.
|
|
180
|
+
when the provider does not expose it. Prefer `back` over re-`navigate` when returning to the
|
|
181
|
+
previous page in the same tab and its state may not be reconstructable from its URL — form drafts,
|
|
182
|
+
one-time or session-scoped results, post-redirect pages; re-navigating rebuilds the page and may
|
|
183
|
+
replay server-side effects. After `back`, use `forward` to return instead of re-navigating.
|
|
174
184
|
|
|
175
185
|
If the user says the page is already or currently open in the Browser, inspect that existing page
|
|
176
186
|
first. Do not navigate or reload it merely because the request also mentions its URL or domain. Use
|
|
@@ -188,7 +198,7 @@ browser({ action: "inspect", input: {} })
|
|
|
188
198
|
refs. Do not ask the user to provide the URL or a screenshot before trying `inspect`.
|
|
189
199
|
|
|
190
200
|
`actionable` means Chromium identified the element as interactable. Before `click`, `double_click`,
|
|
191
|
-
`hover`, `drag`, `check`, or `uncheck`, also require `pointerActionable: true`. A ref with
|
|
201
|
+
`triple_click`, `hover`, `drag`, `check`, or `uncheck`, also require `pointerActionable: true`. A ref with
|
|
192
202
|
`coordinateSpace: "unavailable"` is intentionally unsafe for pointer input; do not guess coordinates
|
|
193
203
|
or fall back to a position. Non-pointer actions that accept the ref, such as ordinary `fill`/`type`,
|
|
194
204
|
`select_option`, `paste`, or `upload_files`, may still operate through its DOM identity.
|
|
@@ -380,8 +390,10 @@ indices, or local map paths in compact action results.
|
|
|
380
390
|
An ordinary `click` result means the input was dispatched, but the requested page effect is not
|
|
381
391
|
verified. Its `effect.verified` remains `false` and `verificationRequired` remains `true`. Use
|
|
382
392
|
`inspect`, `query`, or `screenshot` and observe the expected panel, control, text, or state before
|
|
383
|
-
claiming that the click achieved the user's goal.
|
|
384
|
-
|
|
393
|
+
claiming that the click achieved the user's goal. When an ordinary click navigates the page, the
|
|
394
|
+
result reports `navigation.detected: true`; every earlier ref is invalid, so inspect the new page
|
|
395
|
+
before the next interaction. A provider that treats that navigation as unexpected reports
|
|
396
|
+
`UNEXPECTED_NAVIGATION`; inspect the current page before deciding whether to go back or
|
|
385
397
|
retry with a newly observed target. An attached `visualObservation` can establish a visible UI
|
|
386
398
|
effect, but it does not rewrite the structured click effect or navigation status.
|
|
387
399
|
|
|
@@ -404,8 +416,8 @@ and other in-page buttons default to plain `click`; use the atomic navigation ac
|
|
|
404
416
|
inspected link or a control whose page state explicitly indicates main-document navigation.
|
|
405
417
|
|
|
406
418
|
Compact Browser actions never accept ElementMap `index` or editable-query ordinals. Use the opaque
|
|
407
|
-
`ref` returned by the latest `inspect` or `query`. For `click`, `double_click`, `
|
|
408
|
-
endpoints, `ref` or `selector` means the center of that DOM element. Use `position: { x, y }` only
|
|
419
|
+
`ref` returned by the latest `inspect` or `query`. For `click`, `double_click`, `triple_click`,
|
|
420
|
+
`hover`, and drag endpoints, `ref` or `selector` means the center of that DOM element. Use `position: { x, y }` only
|
|
409
421
|
for a precise non-DOM target such as a canvas square, map point, or drawing surface; its values are
|
|
410
422
|
absolute CSS pixels in the main Frame's current viewport. An inspected element `rect`, when present,
|
|
411
423
|
uses that same coordinate space and is equivalent to its main-Frame `getBoundingClientRect()`.
|
|
@@ -417,14 +429,20 @@ stable element or absolute position is available.
|
|
|
417
429
|
|
|
418
430
|
Do not combine `ref` or `selector` with `position` or `normalized_position`, and do not combine
|
|
419
431
|
`position` with `normalized_position`; ambiguous targets fail validation instead of silently
|
|
420
|
-
choosing one.
|
|
421
|
-
|
|
432
|
+
choosing one. Every element action (`click`, `double_click`, `triple_click`, `hover`, `fill`,
|
|
433
|
+
`type`, `check`, `uncheck`, `select_option`) accepts the same locator family: `ref`, `selector`,
|
|
434
|
+
`position`, or `normalized_position`; prefer the latest opaque ref. `scroll` takes the same locator
|
|
435
|
+
fields directly inside `input` together with `direction` and `distance`; only `drag` nests its two
|
|
436
|
+
endpoints as `source` and `target`, so never wrap a scroll or other single-target locator in a
|
|
437
|
+
`target` object. With a coordinate locator,
|
|
438
|
+
`fill`/`type` click the point and type into the focused field, and `check`/`uncheck`/
|
|
439
|
+
`select_option` act on the checkbox, radio, or select under the point (a point on its label also
|
|
440
|
+
resolves to the control). Use `triple_click` to select a whole line or field of text. `paste` and `upload_files` require an opaque ref from
|
|
422
441
|
the latest inspect/query. Compact `paste` is available only when the active provider advertises it
|
|
423
442
|
and requires explicit non-empty plain text:
|
|
424
443
|
`browser({ action: "paste", input: { ref: "<opaque-ref>", text: "<plain-text>" } })`. Do not omit
|
|
425
444
|
`text` to read ambient OS clipboard contents, and do not pass legacy `html` or `waitMs` fields. The
|
|
426
|
-
TUI headless provider keeps clipboard state isolated to the logical Browser session. `
|
|
427
|
-
`uncheck`, and `select_option` do not accept coordinates. `fill` always clears before entering text,
|
|
445
|
+
TUI headless provider keeps clipboard state isolated to the logical Browser session. `fill` always clears before entering text,
|
|
428
446
|
so do not pass a `clear` field to `fill`; use `type` with `clear: true` only when per-key typing
|
|
429
447
|
behavior is required.
|
|
430
448
|
|