@minimax-ai/code 0.5.7 → 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.
- package/CHANGELOG.md +39 -0
- package/CHANGELOG.zh-CN.md +28 -0
- package/README.zh-CN.md +9 -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-H6PMSAEU.js → chunk-6ETTLULN.js} +718 -705
- package/chunks/{chunk-I2LCYMGW.js → chunk-7AA5OH3H.js} +1 -1
- package/chunks/{chunk-TNWAAYEI.js → chunk-BDJJOCZ6.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-JVKXU2EF.js +9 -0
- package/chunks/{chunk-X3H6BQVR.js → chunk-N55ACUNK.js} +1 -1
- package/chunks/chunk-QEPCDCRA.js +6806 -0
- package/chunks/{data-dir-LAVNS5CI.js → data-dir-ONMHHF2I.js} +1 -1
- package/chunks/dist-SQAQEOG4.js +2 -0
- package/chunks/{launcher-ZFRO5N7B.js → launcher-UFK2VC2A.js} +146 -146
- package/chunks/{lifecycle-KKL4N2ZX.js → lifecycle-A7N2MOIV.js} +1 -1
- package/chunks/{main-6ZNVM4CH.js → main-BEWP2E4J.js} +2 -2
- package/chunks/{plugin-command-U5CBRSLA.js → plugin-command-NZDDLHHT.js} +1 -1
- package/chunks/{provider-command-TAABOR2G.js → provider-command-VA6AI6FF.js} +1 -1
- package/chunks/{run-acp-command-HOW4TLUX.js → run-acp-command-SBE5PYAH.js} +2 -2
- package/chunks/{run-exec-command-I4PI5FOJ.js → run-exec-command-P3L2BJ4M.js} +1 -1
- package/cli.js +2 -2
- package/package.json +1 -1
- package/chunks/chunk-U3QRH3KH.js +0 -6793
- package/chunks/chunk-VMPSG3GF.js +0 -9
- package/chunks/dist-2NNKON6X.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,45 @@ 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
|
+
|
|
33
|
+
## 0.5.8 · 2026-09-28
|
|
34
|
+
|
|
35
|
+
### Improved
|
|
36
|
+
|
|
37
|
+
- Plugin Hook messages appear in the active conversation and restored history, making Hook results
|
|
38
|
+
visible without adding them to model context.
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- Stopping a session also stops its background tasks and prevents their completion notifications
|
|
43
|
+
from restarting the conversation. Switching sessions and `/clear` continue to preserve background tasks.
|
|
44
|
+
- Restoring a session clears terminal scrollback left by the previous process before replaying
|
|
45
|
+
history, avoiding duplicate content. Normal startup preserves shell history.
|
|
46
|
+
- Improved output queuing on slow terminals and waits for pending output before exiting, suspending,
|
|
47
|
+
or opening an external editor.
|
|
48
|
+
|
|
10
49
|
## 0.5.7 · 2026-09-28
|
|
11
50
|
|
|
12
51
|
### Added
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -8,6 +8,34 @@ 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
|
+
|
|
27
|
+
## 0.5.8 · 2026-09-28
|
|
28
|
+
|
|
29
|
+
### 体验改进
|
|
30
|
+
|
|
31
|
+
- Plugin Hook 的提示会显示在当前会话和恢复后的历史中,便于了解 Hook 执行结果;这些提示不会加入模型上下文。
|
|
32
|
+
|
|
33
|
+
### 问题修复
|
|
34
|
+
|
|
35
|
+
- 停止会话时一并终止该会话的后台任务,避免已停止的任务继续运行或通过完成通知重新唤起对话;切换会话和 `/clear` 仍保留后台任务。
|
|
36
|
+
- 恢复会话时清理旧进程遗留的终端滚动历史,避免重复显示历史内容;普通启动保留 Shell 历史。
|
|
37
|
+
- 改进慢终端的输出排队与退出处理,减少输出积压,并在退出、挂起或打开外部编辑器前等待终端输出完成。
|
|
38
|
+
|
|
11
39
|
## 0.5.7 · 2026-09-28
|
|
12
40
|
|
|
13
41
|
### 新增功能
|
package/README.zh-CN.md
CHANGED
|
@@ -554,3 +554,12 @@ MIT
|
|
|
554
554
|
|
|
555
555
|
Runtime 自动加载会话主工作目录的
|
|
556
556
|
`.mcp.json`,与 Desktop、exec、ACP 共用配置规则;详见[项目级 MCP 配置](../local-runtime-v2/docs/project-mcp.md)。
|
|
557
|
+
|
|
558
|
+
### Hook 提示与终端恢复
|
|
559
|
+
|
|
560
|
+
Plugin Hook 返回的 `systemMessage` 会在当前会话及恢复历史中显示为 `Hook`
|
|
561
|
+
提示。它只用于展示,不加入模型上下文;不同 Hook 调用可重复显示相同提示,诊断和终端控制通知仍按原规则去重。
|
|
562
|
+
|
|
563
|
+
使用 `--session`、`--resume` 或 `--continue`
|
|
564
|
+
恢复会话时,常规模式会清除旧进程留下的终端滚动历史,再重放当前会话;普通启动保留 shell 历史。POSIX
|
|
565
|
+
TTY 的慢速输出通过异步队列发送,避免阻塞输入;退出、暂停或打开外部编辑器前会等待有序输出完成。
|
|
@@ -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.
|