@marsapi/cli 0.0.145 → 0.0.146

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.
@@ -10,7 +10,7 @@
10
10
  "claude": [
11
11
  {
12
12
  "description": "100 万上下文 | 高强度推理 | 长时 Agent | SWE-bench Verified 95%",
13
- "group": "grp_rld6af0zorqd",
13
+ "group": "grp_6eg2dq9ywgrg",
14
14
  "group_name": "",
15
15
  "hidden": false,
16
16
  "id": "claude-fable-5",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  {
30
30
  "description": "轻量档 | 低延迟 | 高频短任务",
31
- "group": "grp_irydsgijuckh",
31
+ "group": "grp_6eg2dq9ywgrg",
32
32
  "group_name": "",
33
33
  "hidden": false,
34
34
  "id": "claude-haiku-4-5-20251001",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  {
39
39
  "description": "100 万上下文 | 12.8 万输出 | 低延迟 | 高频轻量任务",
40
- "group": "grp_rld6af0zorqd",
40
+ "group": "grp_pzxnceygmqlp",
41
41
  "group_name": "",
42
42
  "hidden": false,
43
43
  "id": "claude-haiku-5-5",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  {
75
75
  "description": "100 万上下文 | 12.8 万输出 | 自适应思考五档 | Agent 编程",
76
- "group": "grp_irydsgijuckh",
76
+ "group": "grp_6co8aqwefsoh",
77
77
  "group_name": "",
78
78
  "hidden": false,
79
79
  "id": "claude-opus-5",
@@ -82,7 +82,7 @@
82
82
  },
83
83
  {
84
84
  "description": "100 万上下文 | 长时 Agent 编程 | 知识工作",
85
- "group": "grp_rld6af0zorqd",
85
+ "group": "grp_irydsgijuckh",
86
86
  "group_name": "",
87
87
  "hidden": false,
88
88
  "id": "claude-opus-5-5",
@@ -100,7 +100,7 @@
100
100
  },
101
101
  {
102
102
  "description": "100 万上下文 | Agent 编程 | 工具调用 | 知识工作",
103
- "group": "grp_6eg2dq9ywgrg",
103
+ "group": "grp_6co8aqwefsoh",
104
104
  "group_name": "",
105
105
  "hidden": false,
106
106
  "id": "claude-sonnet-5",
@@ -109,7 +109,7 @@
109
109
  },
110
110
  {
111
111
  "description": "100 万上下文 | 12.8 万输出 | Agent 编程 | 知识工作",
112
- "group": "grp_6co8aqwefsoh",
112
+ "group": "grp_6eg2dq9ywgrg",
113
113
  "group_name": "",
114
114
  "hidden": false,
115
115
  "id": "claude-sonnet-5-5",
@@ -129,7 +129,7 @@
129
129
  },
130
130
  {
131
131
  "description": "105 万上下文 | 12.8 万输出 | 前沿档",
132
- "group": "grp_bsbtt432saoq",
132
+ "group": "grp_irydsgijuckh",
133
133
  "group_name": "",
134
134
  "hidden": false,
135
135
  "id": "gpt-5.6-sol",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "description": "105 万上下文 | 12.8 万输出 | 均衡生产档",
141
- "group": "grp_6co8aqwefsoh",
141
+ "group": "grp_irydsgijuckh",
142
142
  "group_name": "",
143
143
  "hidden": false,
144
144
  "id": "gpt-5.6-terra",
@@ -147,7 +147,7 @@
147
147
  },
148
148
  {
149
149
  "description": "105 万上下文 | 12.8 万输出 | 思考强度至 max | 计算机操作 / 编码 / 科学基准接近饱和",
150
- "group": "grp_6co8aqwefsoh",
150
+ "group": "grp_irydsgijuckh",
151
151
  "group_name": "",
152
152
  "hidden": false,
153
153
  "id": "gpt-6-astra",
@@ -165,7 +165,7 @@
165
165
  },
166
166
  {
167
167
  "description": "105 万上下文 | 12.8 万输出 | 复杂编程与 Agent 工作流",
168
- "group": "grp_irydsgijuckh",
168
+ "group": "grp_bsbtt432saoq",
169
169
  "group_name": "",
170
170
  "hidden": false,
171
171
  "id": "gpt-6-sol",
@@ -194,7 +194,7 @@
194
194
  "gemini": [
195
195
  {
196
196
  "description": "高吞吐 | 低延迟 | 大批量",
197
- "group": "grp_3pi5kyqkp51b",
197
+ "group": "grp_z5khwusxuh2j",
198
198
  "group_name": "",
199
199
  "hidden": false,
200
200
  "id": "gemini-3-flash",
@@ -248,7 +248,7 @@
248
248
  },
249
249
  {
250
250
  "description": "约 208 token/秒 | 高吞吐 | 多语言 | 编码",
251
- "group": "grp_3pi5kyqkp51b",
251
+ "group": "grp_irydsgijuckh",
252
252
  "group_name": "",
253
253
  "hidden": false,
254
254
  "id": "gemini-3.6-flash",
@@ -304,7 +304,7 @@
304
304
  },
305
305
  {
306
306
  "description": "50 万上下文 | 思考强度四档 | 编码与 Agent",
307
- "group": "grp_l34dwliv4yas",
307
+ "group": "grp_irydsgijuckh",
308
308
  "group_name": "",
309
309
  "hidden": false,
310
310
  "id": "grok-4.6",
@@ -10,7 +10,7 @@
10
10
  "claude": [
11
11
  {
12
12
  "description": "100 万上下文 | 高强度推理 | 长时 Agent | SWE-bench Verified 95%",
13
- "group": "grp_rld6af0zorqd",
13
+ "group": "grp_6eg2dq9ywgrg",
14
14
  "group_name": "",
15
15
  "hidden": false,
16
16
  "id": "claude-fable-5",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  {
30
30
  "description": "轻量档 | 低延迟 | 高频短任务",
31
- "group": "grp_irydsgijuckh",
31
+ "group": "grp_6eg2dq9ywgrg",
32
32
  "group_name": "",
33
33
  "hidden": false,
34
34
  "id": "claude-haiku-4-5-20251001",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  {
39
39
  "description": "100 万上下文 | 12.8 万输出 | 低延迟 | 高频轻量任务",
40
- "group": "grp_rld6af0zorqd",
40
+ "group": "grp_pzxnceygmqlp",
41
41
  "group_name": "",
42
42
  "hidden": false,
43
43
  "id": "claude-haiku-5-5",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  {
75
75
  "description": "100 万上下文 | 12.8 万输出 | 自适应思考五档 | Agent 编程",
76
- "group": "grp_irydsgijuckh",
76
+ "group": "grp_6co8aqwefsoh",
77
77
  "group_name": "",
78
78
  "hidden": false,
79
79
  "id": "claude-opus-5",
@@ -82,7 +82,7 @@
82
82
  },
83
83
  {
84
84
  "description": "100 万上下文 | 长时 Agent 编程 | 知识工作",
85
- "group": "grp_rld6af0zorqd",
85
+ "group": "grp_irydsgijuckh",
86
86
  "group_name": "",
87
87
  "hidden": false,
88
88
  "id": "claude-opus-5-5",
@@ -100,7 +100,7 @@
100
100
  },
101
101
  {
102
102
  "description": "100 万上下文 | Agent 编程 | 工具调用 | 知识工作",
103
- "group": "grp_6eg2dq9ywgrg",
103
+ "group": "grp_6co8aqwefsoh",
104
104
  "group_name": "",
105
105
  "hidden": false,
106
106
  "id": "claude-sonnet-5",
@@ -109,7 +109,7 @@
109
109
  },
110
110
  {
111
111
  "description": "100 万上下文 | 12.8 万输出 | Agent 编程 | 知识工作",
112
- "group": "grp_6co8aqwefsoh",
112
+ "group": "grp_6eg2dq9ywgrg",
113
113
  "group_name": "",
114
114
  "hidden": false,
115
115
  "id": "claude-sonnet-5-5",
@@ -129,7 +129,7 @@
129
129
  },
130
130
  {
131
131
  "description": "105 万上下文 | 12.8 万输出 | 前沿档",
132
- "group": "grp_bsbtt432saoq",
132
+ "group": "grp_irydsgijuckh",
133
133
  "group_name": "",
134
134
  "hidden": false,
135
135
  "id": "gpt-5.6-sol",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "description": "105 万上下文 | 12.8 万输出 | 均衡生产档",
141
- "group": "grp_6co8aqwefsoh",
141
+ "group": "grp_irydsgijuckh",
142
142
  "group_name": "",
143
143
  "hidden": false,
144
144
  "id": "gpt-5.6-terra",
@@ -147,7 +147,7 @@
147
147
  },
148
148
  {
149
149
  "description": "105 万上下文 | 12.8 万输出 | 思考强度至 max | 计算机操作 / 编码 / 科学基准接近饱和",
150
- "group": "grp_6co8aqwefsoh",
150
+ "group": "grp_irydsgijuckh",
151
151
  "group_name": "",
152
152
  "hidden": false,
153
153
  "id": "gpt-6-astra",
@@ -165,7 +165,7 @@
165
165
  },
166
166
  {
167
167
  "description": "105 万上下文 | 12.8 万输出 | 复杂编程与 Agent 工作流",
168
- "group": "grp_irydsgijuckh",
168
+ "group": "grp_bsbtt432saoq",
169
169
  "group_name": "",
170
170
  "hidden": false,
171
171
  "id": "gpt-6-sol",
@@ -194,7 +194,7 @@
194
194
  "gemini": [
195
195
  {
196
196
  "description": "高吞吐 | 低延迟 | 大批量",
197
- "group": "grp_3pi5kyqkp51b",
197
+ "group": "grp_z5khwusxuh2j",
198
198
  "group_name": "",
199
199
  "hidden": false,
200
200
  "id": "gemini-3-flash",
@@ -248,7 +248,7 @@
248
248
  },
249
249
  {
250
250
  "description": "约 208 token/秒 | 高吞吐 | 多语言 | 编码",
251
- "group": "grp_3pi5kyqkp51b",
251
+ "group": "grp_irydsgijuckh",
252
252
  "group_name": "",
253
253
  "hidden": false,
254
254
  "id": "gemini-3.6-flash",
@@ -304,7 +304,7 @@
304
304
  },
305
305
  {
306
306
  "description": "50 万上下文 | 思考强度四档 | 编码与 Agent",
307
- "group": "grp_l34dwliv4yas",
307
+ "group": "grp_irydsgijuckh",
308
308
  "group_name": "",
309
309
  "hidden": false,
310
310
  "id": "grok-4.6",
@@ -1 +1 @@
1
- import o from"chalk";import t from"inquirer";import{i18n as n}from"./i18n.js";import{canPrompt as e,hasExplicitYes as i,shouldAutoConfirm as r}from"./runtime-options.js";import{toolManager as s}from"./tool-manager.js";import{getAdapter as l}from"./tools/registry.js";import{upgradeTool as a}from"./tool-upgrade.js";import{logger as p}from"../utils/logger.js";async function f(o){const{ok:n}=await t.prompt([{type:"confirm",name:"ok",message:o,default:!0}]);return n}export async function runPendingElevations(t){const i=e();for(const e of t){const t=l(e)?.pendingElevation?.();if(!t)continue;if(!(r()||i&&await f(t.prompt)))continue;const s=l(e)?.displayName??e;console.log(o.gray(" "+n.t("setup.elevation_running"))),console.log(t.run()?o.green(" √ "+n.t("setup.elevation_done",{tool:s})):o.yellow(" ! "+n.t("setup.elevation_failed",{tool:s})))}}export async function postApplyPrompts(t){for(const n of t){const t=await(l(n)?.prepareRuntime?.())??[];for(const n of t)console.log("action"===n.kind?o.yellow(" ! "+n.text):o.green(" √ "+n.text))}await runPendingElevations(t);const r=e();for(const n of t){let t;try{t=await(l(n)?.followUp?.())}catch(o){p.logError(`postApplyPrompts.followUp(${n})`,o);continue}if(t)if("run"in t&&(i()||r))if(i()||await f(t.prompt))for(const n of await t.run())console.log("action"===n.kind?o.yellow(" ! "+n.text):o.green(" √ "+n.text));else t.decline();else console.log(o.yellow(" ! "+t.hint))}const c=i();if(!r&&!c)return;const u=t.filter(o=>l(o)?.installSpec&&s.outdatedVersion(o));if(u.length>0){const o=u.map(o=>l(o)?.displayName??o).join("、");if(c||await f(n.t("setup.offer_upgrade",{tools:o})))for(const o of u)await a(o)}for(const e of t){const t=l(e);if(!t?.runningApp?.isRunning())continue;if(!c&&!await f(n.t("setup.offer_restart",{tool:t.displayName})))continue;const i=t.runningApp.restart();console.log(i?o.green(" √ "+n.t("setup.restarted",{tool:t.displayName})):o.yellow(" ! "+n.t("setup.restart_failed",{tool:t.displayName})))}}
1
+ import o from"chalk";import t from"inquirer";import{i18n as n}from"./i18n.js";import{canPrompt as e,hasExplicitYes as i,shouldAutoConfirm as r}from"./runtime-options.js";import{toolManager as l}from"./tool-manager.js";import{getAdapter as s}from"./tools/registry.js";import{upgradeTool as a}from"./tool-upgrade.js";import{logger as p}from"../utils/logger.js";async function f(o){const{ok:n}=await t.prompt([{type:"confirm",name:"ok",message:o,default:!0}]);return n}export async function runPendingElevations(t){const i=e();for(const e of t){const t=s(e)?.pendingElevation?.();if(!t)continue;if(!(r()||i&&await f(t.prompt)))continue;const l=s(e)?.displayName??e;console.log(o.gray(" "+n.t("setup.elevation_running"))),console.log(t.run()?o.green(" √ "+n.t("setup.elevation_done",{tool:l})):o.yellow(" ! "+n.t("setup.elevation_failed",{tool:l})))}}export async function postApplyPrompts(t){for(const n of t){const t=await(s(n)?.prepareRuntime?.())??[];for(const n of t)console.log("action"===n.kind?o.yellow(" ! "+n.text):o.green(" √ "+n.text))}await runPendingElevations(t);const r=e();for(const n of t){let t;try{t=await(s(n)?.followUp?.())}catch(o){p.logError(`postApplyPrompts.followUp(${n})`,o);continue}if(t)if("run"in t&&(i()||r))if(i()||await f(t.prompt))for(const n of await t.run())console.log("action"===n.kind?o.yellow(" ! "+n.text):o.green(" √ "+n.text));else t.decline();else console.log(o.yellow(" ! "+t.hint))}const c=i(),u=r||c?t.filter(o=>s(o)?.installSpec&&l.outdatedVersion(o)):[];if(u.length>0){const o=u.map(o=>s(o)?.displayName??o).join("、");if(c||await f(n.t("setup.offer_upgrade",{tools:o})))for(const o of u)await a(o)}for(const e of t){const t=s(e);if(!t?.runningApp?.isRunning())continue;if(c||!r){console.log(o.yellow(" ! "+n.t("setup.reopen_hint",{tool:t.displayName})));continue}if(!await f(n.t("setup.offer_restart",{tool:t.displayName})))continue;const i=t.runningApp.restart();console.log(i?o.green(" √ "+n.t("setup.restarted",{tool:t.displayName})):o.yellow(" ! "+n.t("setup.restart_failed",{tool:t.displayName})))}}
@@ -345,6 +345,7 @@
345
345
  "failed_summary": "{{count}} tool(s) not configured; see above",
346
346
  "offer_upgrade": "Upgrade {{tools}}? The installed version is too old.",
347
347
  "offer_restart": "Restart {{tool}} so the new config takes effect? It is running and its windows will close.",
348
+ "reopen_hint": "Reopen {{tool}} for the new config to take effect (it is running and was not restarted)",
348
349
  "restarted": "{{tool}} restarted",
349
350
  "restart_failed": "Could not restart {{tool}}; quit it completely and open it again",
350
351
  "elevation_running": "Click Yes in the Windows prompt…",
@@ -345,6 +345,7 @@
345
345
  "failed_summary": "{{count}} 个工具未完成配置,原因见上方",
346
346
  "offer_upgrade": "升级 {{tools}}?当前版本过旧。",
347
347
  "offer_restart": "重启 {{tool}} 让新配置生效?它正在运行,当前窗口会被关闭。",
348
+ "reopen_hint": "重新打开 {{tool}} 后生效(它正在运行,没有自动重启)",
348
349
  "restarted": "已重启 {{tool}}",
349
350
  "restart_failed": "无法自动重启 {{tool}},请完全退出后手动打开",
350
351
  "elevation_running": "请在弹出的系统窗口里点击「是」…",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marsapi/cli",
3
- "version": "0.0.145",
3
+ "version": "0.0.146",
4
4
  "description": "Configure Claude Code, Codex, Grok Build and other coding tools for Mars AI with one command",
5
5
  "main": "dist/index.js",
6
6
  "bin": {