@caishenai/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_6eg2dq9ywgrg",
31
+ "group": "grp_pzxnceygmqlp",
32
32
  "group_name": "",
33
33
  "hidden": false,
34
34
  "id": "claude-haiku-4-5-20251001",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  {
48
48
  "description": "100 万上下文 | 推理 | 编程 | 长上下文不加价",
49
- "group": "grp_pzxnceygmqlp",
49
+ "group": "grp_rld6af0zorqd",
50
50
  "group_name": "",
51
51
  "hidden": false,
52
52
  "id": "claude-opus-4-6",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  {
57
57
  "description": "100 万上下文 | 推理 | 编程 | 长上下文不加价",
58
- "group": "grp_pzxnceygmqlp",
58
+ "group": "grp_6co8aqwefsoh",
59
59
  "group_name": "",
60
60
  "hidden": false,
61
61
  "id": "claude-opus-4-7",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  {
66
66
  "description": "100 万上下文 | 推理 | 编程 | 长上下文不加价",
67
- "group": "grp_6lyxfgbs440g",
67
+ "group": "grp_6co8aqwefsoh",
68
68
  "group_name": "",
69
69
  "hidden": false,
70
70
  "id": "claude-opus-4-8",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  {
75
75
  "description": "100 万上下文 | 12.8 万输出 | 自适应思考五档 | Agent 编程",
76
- "group": "grp_6eg2dq9ywgrg",
76
+ "group": "grp_irydsgijuckh",
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_6co8aqwefsoh",
85
+ "group": "grp_6lyxfgbs440g",
86
86
  "group_name": "",
87
87
  "hidden": false,
88
88
  "id": "claude-opus-5-5",
@@ -91,7 +91,7 @@
91
91
  },
92
92
  {
93
93
  "description": "100 万上下文 | Agent 编程 | 长上下文不加价",
94
- "group": "grp_6eg2dq9ywgrg",
94
+ "group": "grp_rld6af0zorqd",
95
95
  "group_name": "",
96
96
  "hidden": false,
97
97
  "id": "claude-sonnet-4-6",
@@ -109,7 +109,7 @@
109
109
  },
110
110
  {
111
111
  "description": "100 万上下文 | 12.8 万输出 | Agent 编程 | 知识工作",
112
- "group": "grp_6lyxfgbs440g",
112
+ "group": "grp_6eg2dq9ywgrg",
113
113
  "group_name": "",
114
114
  "hidden": false,
115
115
  "id": "claude-sonnet-5-5",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "description": "105 万上下文 | 12.8 万输出 | 均衡生产档",
141
- "group": "grp_irydsgijuckh",
141
+ "group": "grp_squ2qzjnehps",
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_bsbtt432saoq",
150
+ "group": "grp_squ2qzjnehps",
151
151
  "group_name": "",
152
152
  "hidden": false,
153
153
  "id": "gpt-6-astra",
@@ -156,7 +156,7 @@
156
156
  },
157
157
  {
158
158
  "description": "转发至 gpt-6-sol | 实际由 gpt-6-sol 响应 | 105 万上下文 | 12.8 万输出",
159
- "group": "grp_irydsgijuckh",
159
+ "group": "grp_mb5v069lpnze",
160
160
  "group_name": "",
161
161
  "hidden": false,
162
162
  "id": "gpt-6-luna",
@@ -165,7 +165,7 @@
165
165
  },
166
166
  {
167
167
  "description": "105 万上下文 | 12.8 万输出 | 复杂编程与 Agent 工作流",
168
- "group": "grp_6co8aqwefsoh",
168
+ "group": "grp_irydsgijuckh",
169
169
  "group_name": "",
170
170
  "hidden": false,
171
171
  "id": "gpt-6-sol",
@@ -183,7 +183,7 @@
183
183
  },
184
184
  {
185
185
  "description": "105 万上下文 | 12.8 万输出 | 计算机操作与日常 Agent 任务 | 均衡档",
186
- "group": "grp_irydsgijuckh",
186
+ "group": "grp_squ2qzjnehps",
187
187
  "group_name": "",
188
188
  "hidden": false,
189
189
  "id": "gpt-6.1-terra",
@@ -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",
@@ -203,7 +203,7 @@
203
203
  },
204
204
  {
205
205
  "description": "约 100 万上下文 | 深度推理 | 长文档一致性",
206
- "group": "grp_3pi5kyqkp51b",
206
+ "group": "grp_z5khwusxuh2j",
207
207
  "group_name": "",
208
208
  "hidden": false,
209
209
  "id": "gemini-3-pro",
@@ -248,7 +248,7 @@
248
248
  },
249
249
  {
250
250
  "description": "约 208 token/秒 | 高吞吐 | 多语言 | 编码",
251
- "group": "grp_irydsgijuckh",
251
+ "group": "grp_6co8aqwefsoh",
252
252
  "group_name": "",
253
253
  "hidden": false,
254
254
  "id": "gemini-3.6-flash",
@@ -266,7 +266,7 @@
266
266
  },
267
267
  {
268
268
  "description": "推理与编码 | HLE-Verified 54.9% | 长文档工作流",
269
- "group": "grp_3pi5kyqkp51b",
269
+ "group": "grp_z5khwusxuh2j",
270
270
  "group_name": "",
271
271
  "hidden": false,
272
272
  "id": "gemini-3.8-flash",
@@ -313,7 +313,7 @@
313
313
  },
314
314
  {
315
315
  "description": "50 万上下文 | 长时 Agent | 编码与视觉项目",
316
- "group": "grp_irydsgijuckh",
316
+ "group": "grp_l34dwliv4yas",
317
317
  "group_name": "",
318
318
  "hidden": false,
319
319
  "id": "grok-4.7",
@@ -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_6eg2dq9ywgrg",
31
+ "group": "grp_pzxnceygmqlp",
32
32
  "group_name": "",
33
33
  "hidden": false,
34
34
  "id": "claude-haiku-4-5-20251001",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  {
48
48
  "description": "100 万上下文 | 推理 | 编程 | 长上下文不加价",
49
- "group": "grp_pzxnceygmqlp",
49
+ "group": "grp_rld6af0zorqd",
50
50
  "group_name": "",
51
51
  "hidden": false,
52
52
  "id": "claude-opus-4-6",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  {
57
57
  "description": "100 万上下文 | 推理 | 编程 | 长上下文不加价",
58
- "group": "grp_pzxnceygmqlp",
58
+ "group": "grp_6co8aqwefsoh",
59
59
  "group_name": "",
60
60
  "hidden": false,
61
61
  "id": "claude-opus-4-7",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  {
66
66
  "description": "100 万上下文 | 推理 | 编程 | 长上下文不加价",
67
- "group": "grp_6lyxfgbs440g",
67
+ "group": "grp_6co8aqwefsoh",
68
68
  "group_name": "",
69
69
  "hidden": false,
70
70
  "id": "claude-opus-4-8",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  {
75
75
  "description": "100 万上下文 | 12.8 万输出 | 自适应思考五档 | Agent 编程",
76
- "group": "grp_6eg2dq9ywgrg",
76
+ "group": "grp_irydsgijuckh",
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_6co8aqwefsoh",
85
+ "group": "grp_6lyxfgbs440g",
86
86
  "group_name": "",
87
87
  "hidden": false,
88
88
  "id": "claude-opus-5-5",
@@ -91,7 +91,7 @@
91
91
  },
92
92
  {
93
93
  "description": "100 万上下文 | Agent 编程 | 长上下文不加价",
94
- "group": "grp_6eg2dq9ywgrg",
94
+ "group": "grp_rld6af0zorqd",
95
95
  "group_name": "",
96
96
  "hidden": false,
97
97
  "id": "claude-sonnet-4-6",
@@ -109,7 +109,7 @@
109
109
  },
110
110
  {
111
111
  "description": "100 万上下文 | 12.8 万输出 | Agent 编程 | 知识工作",
112
- "group": "grp_6lyxfgbs440g",
112
+ "group": "grp_6eg2dq9ywgrg",
113
113
  "group_name": "",
114
114
  "hidden": false,
115
115
  "id": "claude-sonnet-5-5",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "description": "105 万上下文 | 12.8 万输出 | 均衡生产档",
141
- "group": "grp_irydsgijuckh",
141
+ "group": "grp_squ2qzjnehps",
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_bsbtt432saoq",
150
+ "group": "grp_squ2qzjnehps",
151
151
  "group_name": "",
152
152
  "hidden": false,
153
153
  "id": "gpt-6-astra",
@@ -156,7 +156,7 @@
156
156
  },
157
157
  {
158
158
  "description": "转发至 gpt-6-sol | 实际由 gpt-6-sol 响应 | 105 万上下文 | 12.8 万输出",
159
- "group": "grp_irydsgijuckh",
159
+ "group": "grp_mb5v069lpnze",
160
160
  "group_name": "",
161
161
  "hidden": false,
162
162
  "id": "gpt-6-luna",
@@ -165,7 +165,7 @@
165
165
  },
166
166
  {
167
167
  "description": "105 万上下文 | 12.8 万输出 | 复杂编程与 Agent 工作流",
168
- "group": "grp_6co8aqwefsoh",
168
+ "group": "grp_irydsgijuckh",
169
169
  "group_name": "",
170
170
  "hidden": false,
171
171
  "id": "gpt-6-sol",
@@ -183,7 +183,7 @@
183
183
  },
184
184
  {
185
185
  "description": "105 万上下文 | 12.8 万输出 | 计算机操作与日常 Agent 任务 | 均衡档",
186
- "group": "grp_irydsgijuckh",
186
+ "group": "grp_squ2qzjnehps",
187
187
  "group_name": "",
188
188
  "hidden": false,
189
189
  "id": "gpt-6.1-terra",
@@ -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",
@@ -203,7 +203,7 @@
203
203
  },
204
204
  {
205
205
  "description": "约 100 万上下文 | 深度推理 | 长文档一致性",
206
- "group": "grp_3pi5kyqkp51b",
206
+ "group": "grp_z5khwusxuh2j",
207
207
  "group_name": "",
208
208
  "hidden": false,
209
209
  "id": "gemini-3-pro",
@@ -248,7 +248,7 @@
248
248
  },
249
249
  {
250
250
  "description": "约 208 token/秒 | 高吞吐 | 多语言 | 编码",
251
- "group": "grp_irydsgijuckh",
251
+ "group": "grp_6co8aqwefsoh",
252
252
  "group_name": "",
253
253
  "hidden": false,
254
254
  "id": "gemini-3.6-flash",
@@ -266,7 +266,7 @@
266
266
  },
267
267
  {
268
268
  "description": "推理与编码 | HLE-Verified 54.9% | 长文档工作流",
269
- "group": "grp_3pi5kyqkp51b",
269
+ "group": "grp_z5khwusxuh2j",
270
270
  "group_name": "",
271
271
  "hidden": false,
272
272
  "id": "gemini-3.8-flash",
@@ -313,7 +313,7 @@
313
313
  },
314
314
  {
315
315
  "description": "50 万上下文 | 长时 Agent | 编码与视觉项目",
316
- "group": "grp_irydsgijuckh",
316
+ "group": "grp_l34dwliv4yas",
317
317
  "group_name": "",
318
318
  "hidden": false,
319
319
  "id": "grok-4.7",
@@ -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": "@caishenai/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 财神 AI with one command",
5
5
  "main": "dist/index.js",
6
6
  "bin": {