ccjk 11.1.2 → 12.0.0
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/dist/chunks/agent-teams.mjs +1 -1
- package/dist/chunks/agent.mjs +1 -1
- package/dist/chunks/api-cli.mjs +118 -0
- package/dist/chunks/api-providers.mjs +1 -1
- package/dist/chunks/api.mjs +8 -759
- package/dist/chunks/auto-bootstrap.mjs +1 -1
- package/dist/chunks/auto-init.mjs +1 -1
- package/dist/chunks/auto-updater.mjs +1 -1
- package/dist/chunks/banner.mjs +1 -1
- package/dist/chunks/boost.mjs +1 -1
- package/dist/chunks/ccjk-agents.mjs +1 -1
- package/dist/chunks/ccjk-all.mjs +1 -1
- package/dist/chunks/ccjk-config.mjs +1 -1
- package/dist/chunks/ccjk-hooks.mjs +1 -1
- package/dist/chunks/ccjk-mcp.mjs +1 -1
- package/dist/chunks/ccjk-setup.mjs +1 -1
- package/dist/chunks/ccjk-skills.mjs +1 -1
- package/dist/chunks/ccr.mjs +6 -6
- package/dist/chunks/ccu.mjs +1 -1
- package/dist/chunks/check-updates.mjs +2 -2
- package/dist/chunks/claude-code-config-manager.mjs +2 -2
- package/dist/chunks/claude-code-incremental-manager.mjs +2 -2
- package/dist/chunks/claude-config.mjs +1 -1
- package/dist/chunks/claude-wrapper.mjs +1 -1
- package/dist/chunks/codex-config-switch.mjs +1 -1
- package/dist/chunks/codex-provider-manager.mjs +1 -1
- package/dist/chunks/codex-uninstaller.mjs +1 -1
- package/dist/chunks/codex.mjs +1 -1
- package/dist/chunks/commands.mjs +1 -1
- package/dist/chunks/completion.mjs +1 -1
- package/dist/chunks/config-consolidator.mjs +1 -1
- package/dist/chunks/config-switch.mjs +2 -2
- package/dist/chunks/config.mjs +1 -1
- package/dist/chunks/config2.mjs +1 -1
- package/dist/chunks/config3.mjs +1 -1
- package/dist/chunks/constants.mjs +1 -1
- package/dist/chunks/dashboard.mjs +1 -1
- package/dist/chunks/doctor.mjs +31 -7
- package/dist/chunks/evolution.mjs +1 -1
- package/dist/chunks/features.mjs +5 -5
- package/dist/chunks/index.mjs +7 -7
- package/dist/chunks/index2.mjs +10 -177
- package/dist/chunks/index3.mjs +168 -1162
- package/dist/chunks/index4.mjs +1076 -910
- package/dist/chunks/index5.mjs +947 -137
- package/dist/chunks/index6.mjs +167 -635
- package/dist/chunks/index7.mjs +663 -0
- package/dist/chunks/init.mjs +17 -17
- package/dist/chunks/installer.mjs +1 -1
- package/dist/chunks/interview.mjs +2 -2
- package/dist/chunks/marketplace.mjs +1 -1
- package/dist/chunks/mcp-cli.mjs +191 -0
- package/dist/chunks/mcp.mjs +2 -2
- package/dist/chunks/menu.mjs +3 -3
- package/dist/chunks/migrator.mjs +1 -1
- package/dist/chunks/monitor.mjs +1 -1
- package/dist/chunks/notification.mjs +1 -1
- package/dist/chunks/onboarding.mjs +1 -1
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/permission-manager.mjs +1 -1
- package/dist/chunks/permissions.mjs +1 -1
- package/dist/chunks/persistence-manager.mjs +1 -1
- package/dist/chunks/plugin.mjs +1 -1
- package/dist/chunks/prompts.mjs +1 -1
- package/dist/chunks/providers.mjs +1 -1
- package/dist/chunks/quick-actions.mjs +1 -1
- package/dist/chunks/quick-setup.mjs +5 -5
- package/dist/chunks/remote.mjs +2 -2
- package/dist/chunks/silent-updater.mjs +1 -1
- package/dist/chunks/simple-config.mjs +1 -1
- package/dist/chunks/skill.mjs +1 -1
- package/dist/chunks/skills-sync.mjs +1 -1
- package/dist/chunks/skills.mjs +1 -1
- package/dist/chunks/slash-commands.mjs +2 -2
- package/dist/chunks/startup.mjs +1 -1
- package/dist/chunks/stats.mjs +1 -1
- package/dist/chunks/status.mjs +1 -1
- package/dist/chunks/team.mjs +1 -1
- package/dist/chunks/thinking.mjs +2 -2
- package/dist/chunks/uninstall.mjs +3 -3
- package/dist/chunks/update.mjs +4 -4
- package/dist/chunks/upgrade-manager.mjs +1 -1
- package/dist/chunks/version-checker.mjs +1 -1
- package/dist/chunks/vim.mjs +1 -1
- package/dist/chunks/zero-config.mjs +1 -1
- package/dist/cli.mjs +76 -16
- package/dist/index.d.mts +37 -10
- package/dist/index.d.ts +37 -10
- package/dist/index.mjs +2 -2
- package/dist/shared/{ccjk.DB2UYcq0.mjs → ccjk.BOIUTf5z.mjs} +2 -2
- package/dist/shared/ccjk.CL4Yat0G.mjs +303 -0
- package/dist/shared/{ccjk.CxtuJxaS.mjs → ccjk.CN0edl87.mjs} +1 -1
- package/dist/shared/{ccjk.BKoi8-Hy.mjs → ccjk.CrB6OYHv.mjs} +1 -1
- package/dist/shared/{ccjk.DVBW2wxp.mjs → ccjk.Dk1HDseQ.mjs} +1 -1
- package/dist/shared/ccjk.bhFAMRyc.mjs +460 -0
- package/dist/shared/ccjk.cChAaGgT.mjs +88 -0
- package/dist/shared/{ccjk.DrMygfCF.mjs → ccjk.j4uut26D.mjs} +1 -1
- package/package.json +2 -3
- package/dist/shared/ccjk.Cu_R2MbQ.mjs +0 -75
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
const PROVIDER_PRESETS = [
|
|
2
|
+
// === Official Anthropic ===
|
|
3
|
+
{
|
|
4
|
+
id: "anthropic",
|
|
5
|
+
name: "Anthropic (Official)",
|
|
6
|
+
nameZh: "Anthropic (\u5B98\u65B9)",
|
|
7
|
+
description: "Official Anthropic API - Best quality and reliability",
|
|
8
|
+
descriptionZh: "\u5B98\u65B9 Anthropic API - \u6700\u4F73\u8D28\u91CF\u548C\u7A33\u5B9A\u6027",
|
|
9
|
+
category: "official",
|
|
10
|
+
website: "https://console.anthropic.com",
|
|
11
|
+
requiresApiKey: true,
|
|
12
|
+
baseUrl: "https://api.anthropic.com",
|
|
13
|
+
models: [
|
|
14
|
+
"claude-sonnet-4-20250514",
|
|
15
|
+
"claude-opus-4-20250514",
|
|
16
|
+
"claude-3-5-sonnet-20241022",
|
|
17
|
+
"claude-3-5-haiku-20241022"
|
|
18
|
+
],
|
|
19
|
+
defaultModel: "claude-sonnet-4-20250514",
|
|
20
|
+
features: ["chat", "vision", "tools", "streaming", "thinking", "code"],
|
|
21
|
+
instructions: {
|
|
22
|
+
en: "Get your API key from https://console.anthropic.com/settings/keys",
|
|
23
|
+
zh: "\u4ECE https://console.anthropic.com/settings/keys \u83B7\u53D6 API \u5BC6\u94A5"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
// === OpenAI-Compatible Providers ===
|
|
27
|
+
{
|
|
28
|
+
id: "302ai",
|
|
29
|
+
name: "302.AI",
|
|
30
|
+
nameZh: "302.AI",
|
|
31
|
+
description: "Multi-model API platform with Claude support",
|
|
32
|
+
descriptionZh: "\u591A\u6A21\u578B API \u5E73\u53F0\uFF0C\u652F\u6301 Claude",
|
|
33
|
+
category: "openai-compatible",
|
|
34
|
+
website: "https://302.ai",
|
|
35
|
+
requiresApiKey: true,
|
|
36
|
+
baseUrl: "https://api.302.ai/v1",
|
|
37
|
+
models: [
|
|
38
|
+
"claude-sonnet-4-20250514",
|
|
39
|
+
"claude-3-5-sonnet-20241022",
|
|
40
|
+
"gpt-4o",
|
|
41
|
+
"gpt-4-turbo"
|
|
42
|
+
],
|
|
43
|
+
defaultModel: "claude-sonnet-4-20250514",
|
|
44
|
+
features: ["chat", "vision", "tools", "streaming", "code"],
|
|
45
|
+
instructions: {
|
|
46
|
+
en: "Register at 302.ai and get your API key from dashboard",
|
|
47
|
+
zh: "\u5728 302.ai \u6CE8\u518C\u5E76\u4ECE\u63A7\u5236\u53F0\u83B7\u53D6 API \u5BC6\u94A5"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "openrouter",
|
|
52
|
+
name: "OpenRouter",
|
|
53
|
+
nameZh: "OpenRouter",
|
|
54
|
+
description: "Unified API for multiple AI models",
|
|
55
|
+
descriptionZh: "\u7EDF\u4E00\u591A\u6A21\u578B API \u63A5\u53E3",
|
|
56
|
+
category: "openai-compatible",
|
|
57
|
+
website: "https://openrouter.ai",
|
|
58
|
+
requiresApiKey: true,
|
|
59
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
60
|
+
models: [
|
|
61
|
+
"anthropic/claude-sonnet-4",
|
|
62
|
+
"anthropic/claude-3.5-sonnet",
|
|
63
|
+
"anthropic/claude-3.7-sonnet:thinking",
|
|
64
|
+
"google/gemini-2.5-pro-preview"
|
|
65
|
+
],
|
|
66
|
+
defaultModel: "anthropic/claude-sonnet-4",
|
|
67
|
+
features: ["chat", "vision", "tools", "streaming", "thinking", "code"],
|
|
68
|
+
transformer: {
|
|
69
|
+
use: ["openrouter"]
|
|
70
|
+
},
|
|
71
|
+
instructions: {
|
|
72
|
+
en: "Get your API key from https://openrouter.ai/keys",
|
|
73
|
+
zh: "\u4ECE https://openrouter.ai/keys \u83B7\u53D6 API \u5BC6\u94A5"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
// === Chinese Providers ===
|
|
77
|
+
{
|
|
78
|
+
id: "deepseek",
|
|
79
|
+
name: "DeepSeek",
|
|
80
|
+
nameZh: "DeepSeek \u6DF1\u5EA6\u6C42\u7D22",
|
|
81
|
+
description: "High-performance Chinese AI with reasoning capabilities",
|
|
82
|
+
descriptionZh: "\u9AD8\u6027\u80FD\u56FD\u4EA7 AI\uFF0C\u652F\u6301\u6DF1\u5EA6\u63A8\u7406",
|
|
83
|
+
category: "chinese",
|
|
84
|
+
website: "https://platform.deepseek.com",
|
|
85
|
+
requiresApiKey: true,
|
|
86
|
+
baseUrl: "https://api.deepseek.com",
|
|
87
|
+
models: ["deepseek-chat", "deepseek-reasoner"],
|
|
88
|
+
defaultModel: "deepseek-chat",
|
|
89
|
+
features: ["chat", "tools", "streaming", "thinking", "code"],
|
|
90
|
+
transformer: {
|
|
91
|
+
"use": ["deepseek"],
|
|
92
|
+
"deepseek-chat": { use: ["tooluse"] }
|
|
93
|
+
},
|
|
94
|
+
instructions: {
|
|
95
|
+
en: "Get your API key from https://platform.deepseek.com/api_keys",
|
|
96
|
+
zh: "\u4ECE https://platform.deepseek.com/api_keys \u83B7\u53D6 API \u5BC6\u94A5"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: "qwen",
|
|
101
|
+
name: "Qwen (Alibaba)",
|
|
102
|
+
nameZh: "\u901A\u4E49\u5343\u95EE (\u963F\u91CC\u5DF4\u5DF4)",
|
|
103
|
+
description: "Alibaba Cloud Qwen models via DashScope",
|
|
104
|
+
descriptionZh: "\u963F\u91CC\u4E91\u901A\u4E49\u5343\u95EE\u5927\u6A21\u578B",
|
|
105
|
+
category: "chinese",
|
|
106
|
+
website: "https://dashscope.console.aliyun.com",
|
|
107
|
+
requiresApiKey: true,
|
|
108
|
+
baseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
109
|
+
models: ["qwen3-coder-plus", "qwen-max", "qwen-turbo"],
|
|
110
|
+
defaultModel: "qwen3-coder-plus",
|
|
111
|
+
features: ["chat", "vision", "tools", "streaming", "code"],
|
|
112
|
+
transformer: {
|
|
113
|
+
"use": [["maxtoken", { max_tokens: 65536 }]],
|
|
114
|
+
"qwen3-coder-plus": { use: ["enhancetool"] }
|
|
115
|
+
},
|
|
116
|
+
instructions: {
|
|
117
|
+
en: "Get your API key from Alibaba Cloud DashScope console",
|
|
118
|
+
zh: "\u4ECE\u963F\u91CC\u4E91 DashScope \u63A7\u5236\u53F0\u83B7\u53D6 API \u5BC6\u94A5"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: "siliconflow",
|
|
123
|
+
name: "SiliconFlow",
|
|
124
|
+
nameZh: "SiliconFlow \u7845\u57FA\u6D41\u52A8",
|
|
125
|
+
description: "High-speed inference for multiple models",
|
|
126
|
+
descriptionZh: "\u9AD8\u901F\u591A\u6A21\u578B\u63A8\u7406\u5E73\u53F0",
|
|
127
|
+
category: "chinese",
|
|
128
|
+
website: "https://siliconflow.cn",
|
|
129
|
+
requiresApiKey: true,
|
|
130
|
+
baseUrl: "https://api.siliconflow.cn/v1",
|
|
131
|
+
models: ["moonshotai/Kimi-K2-Instruct", "deepseek-ai/DeepSeek-V3"],
|
|
132
|
+
defaultModel: "moonshotai/Kimi-K2-Instruct",
|
|
133
|
+
features: ["chat", "tools", "streaming", "code"],
|
|
134
|
+
transformer: {
|
|
135
|
+
use: [["maxtoken", { max_tokens: 16384 }]]
|
|
136
|
+
},
|
|
137
|
+
instructions: {
|
|
138
|
+
en: "Get your API key from https://cloud.siliconflow.cn",
|
|
139
|
+
zh: "\u4ECE https://cloud.siliconflow.cn \u83B7\u53D6 API \u5BC6\u94A5"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: "modelscope",
|
|
144
|
+
name: "ModelScope",
|
|
145
|
+
nameZh: "ModelScope \u9B54\u642D",
|
|
146
|
+
description: "Alibaba ModelScope inference platform",
|
|
147
|
+
descriptionZh: "\u963F\u91CC\u5DF4\u5DF4\u9B54\u642D\u63A8\u7406\u5E73\u53F0",
|
|
148
|
+
category: "chinese",
|
|
149
|
+
website: "https://modelscope.cn",
|
|
150
|
+
requiresApiKey: true,
|
|
151
|
+
baseUrl: "https://api-inference.modelscope.cn/v1",
|
|
152
|
+
models: [
|
|
153
|
+
"Qwen/Qwen3-Coder-480B-A35B-Instruct",
|
|
154
|
+
"Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
155
|
+
"ZhipuAI/GLM-4.5"
|
|
156
|
+
],
|
|
157
|
+
defaultModel: "Qwen/Qwen3-Coder-480B-A35B-Instruct",
|
|
158
|
+
features: ["chat", "tools", "streaming", "thinking", "code"],
|
|
159
|
+
transformer: {
|
|
160
|
+
"use": [["maxtoken", { max_tokens: 65536 }]],
|
|
161
|
+
"Qwen/Qwen3-Coder-480B-A35B-Instruct": { use: ["enhancetool"] },
|
|
162
|
+
"Qwen/Qwen3-235B-A22B-Thinking-2507": { use: ["reasoning"] }
|
|
163
|
+
},
|
|
164
|
+
instructions: {
|
|
165
|
+
en: "Get your API key from ModelScope console",
|
|
166
|
+
zh: "\u4ECE\u9B54\u642D\u63A7\u5236\u53F0\u83B7\u53D6 API \u5BC6\u94A5"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
id: "volcengine",
|
|
171
|
+
name: "Volcengine (ByteDance)",
|
|
172
|
+
nameZh: "\u706B\u5C71\u5F15\u64CE (\u5B57\u8282\u8DF3\u52A8)",
|
|
173
|
+
description: "ByteDance AI platform with DeepSeek models",
|
|
174
|
+
descriptionZh: "\u5B57\u8282\u8DF3\u52A8 AI \u5E73\u53F0\uFF0C\u652F\u6301 DeepSeek",
|
|
175
|
+
category: "chinese",
|
|
176
|
+
website: "https://console.volcengine.com",
|
|
177
|
+
requiresApiKey: true,
|
|
178
|
+
baseUrl: "https://ark.cn-beijing.volces.com/api/v3",
|
|
179
|
+
models: ["deepseek-v3-250324", "deepseek-r1-250528"],
|
|
180
|
+
defaultModel: "deepseek-v3-250324",
|
|
181
|
+
features: ["chat", "tools", "streaming", "thinking", "code"],
|
|
182
|
+
transformer: {
|
|
183
|
+
use: ["deepseek"]
|
|
184
|
+
},
|
|
185
|
+
instructions: {
|
|
186
|
+
en: "Get your API key from Volcengine console",
|
|
187
|
+
zh: "\u4ECE\u706B\u5C71\u5F15\u64CE\u63A7\u5236\u53F0\u83B7\u53D6 API \u5BC6\u94A5"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: "kimi",
|
|
192
|
+
name: "Kimi (Moonshot)",
|
|
193
|
+
nameZh: "Kimi (\u6708\u4E4B\u6697\u9762)",
|
|
194
|
+
description: "Moonshot AI with long context support",
|
|
195
|
+
descriptionZh: "\u6708\u4E4B\u6697\u9762 AI\uFF0C\u652F\u6301\u8D85\u957F\u4E0A\u4E0B\u6587",
|
|
196
|
+
category: "chinese",
|
|
197
|
+
website: "https://platform.moonshot.cn",
|
|
198
|
+
requiresApiKey: true,
|
|
199
|
+
baseUrl: "https://api.moonshot.cn/v1",
|
|
200
|
+
models: ["moonshot-v1-128k", "moonshot-v1-32k", "moonshot-v1-8k"],
|
|
201
|
+
defaultModel: "moonshot-v1-128k",
|
|
202
|
+
features: ["chat", "tools", "streaming", "code"],
|
|
203
|
+
instructions: {
|
|
204
|
+
en: "Get your API key from https://platform.moonshot.cn/console/api-keys",
|
|
205
|
+
zh: "\u4ECE https://platform.moonshot.cn/console/api-keys \u83B7\u53D6 API \u5BC6\u94A5"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
id: "glm",
|
|
210
|
+
name: "GLM (Zhipu AI)",
|
|
211
|
+
nameZh: "GLM (\u667A\u8C31 AI)",
|
|
212
|
+
description: "Zhipu AI ChatGLM models",
|
|
213
|
+
descriptionZh: "\u667A\u8C31 AI ChatGLM \u5927\u6A21\u578B",
|
|
214
|
+
category: "chinese",
|
|
215
|
+
website: "https://open.bigmodel.cn",
|
|
216
|
+
requiresApiKey: true,
|
|
217
|
+
baseUrl: "https://open.bigmodel.cn/api/paas/v4",
|
|
218
|
+
models: ["glm-4-plus", "glm-4", "glm-4-flash"],
|
|
219
|
+
defaultModel: "glm-4-plus",
|
|
220
|
+
features: ["chat", "vision", "tools", "streaming", "code"],
|
|
221
|
+
instructions: {
|
|
222
|
+
en: "Get your API key from https://open.bigmodel.cn/usercenter/apikeys",
|
|
223
|
+
zh: "\u4ECE https://open.bigmodel.cn/usercenter/apikeys \u83B7\u53D6 API \u5BC6\u94A5"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
// === Google Gemini ===
|
|
227
|
+
{
|
|
228
|
+
id: "gemini",
|
|
229
|
+
name: "Google Gemini",
|
|
230
|
+
nameZh: "Google Gemini",
|
|
231
|
+
description: "Google AI models with multimodal capabilities",
|
|
232
|
+
descriptionZh: "Google AI \u591A\u6A21\u6001\u6A21\u578B",
|
|
233
|
+
category: "openai-compatible",
|
|
234
|
+
website: "https://aistudio.google.com",
|
|
235
|
+
requiresApiKey: true,
|
|
236
|
+
baseUrl: "https://generativelanguage.googleapis.com/v1beta/models/",
|
|
237
|
+
models: ["gemini-2.5-flash", "gemini-2.5-pro", "gemini-pro"],
|
|
238
|
+
defaultModel: "gemini-2.5-flash",
|
|
239
|
+
features: ["chat", "vision", "tools", "streaming", "thinking", "code"],
|
|
240
|
+
transformer: {
|
|
241
|
+
use: ["gemini"]
|
|
242
|
+
},
|
|
243
|
+
instructions: {
|
|
244
|
+
en: "Get your API key from https://aistudio.google.com/app/apikey",
|
|
245
|
+
zh: "\u4ECE https://aistudio.google.com/app/apikey \u83B7\u53D6 API \u5BC6\u94A5"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
// === Free Tier Providers ===
|
|
249
|
+
{
|
|
250
|
+
id: "groq",
|
|
251
|
+
name: "Groq",
|
|
252
|
+
nameZh: "Groq",
|
|
253
|
+
description: "Ultra-fast inference with free tier",
|
|
254
|
+
descriptionZh: "\u8D85\u5FEB\u63A8\u7406\uFF0C\u6709\u514D\u8D39\u989D\u5EA6",
|
|
255
|
+
category: "free",
|
|
256
|
+
website: "https://console.groq.com",
|
|
257
|
+
requiresApiKey: true,
|
|
258
|
+
baseUrl: "https://api.groq.com/openai/v1",
|
|
259
|
+
models: ["llama-3.3-70b-versatile", "mixtral-8x7b-32768"],
|
|
260
|
+
defaultModel: "llama-3.3-70b-versatile",
|
|
261
|
+
features: ["chat", "tools", "streaming", "code"],
|
|
262
|
+
instructions: {
|
|
263
|
+
en: "Get your free API key from https://console.groq.com/keys",
|
|
264
|
+
zh: "\u4ECE https://console.groq.com/keys \u83B7\u53D6\u514D\u8D39 API \u5BC6\u94A5"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
// === Local Providers ===
|
|
268
|
+
{
|
|
269
|
+
id: "ollama",
|
|
270
|
+
name: "Ollama (Local)",
|
|
271
|
+
nameZh: "Ollama (\u672C\u5730)",
|
|
272
|
+
description: "Run AI models locally with Ollama",
|
|
273
|
+
descriptionZh: "\u4F7F\u7528 Ollama \u672C\u5730\u8FD0\u884C AI \u6A21\u578B",
|
|
274
|
+
category: "local",
|
|
275
|
+
website: "https://ollama.ai",
|
|
276
|
+
requiresApiKey: false,
|
|
277
|
+
baseUrl: "http://localhost:11434/v1",
|
|
278
|
+
models: ["llama3.2", "codellama", "qwen2.5-coder"],
|
|
279
|
+
defaultModel: "llama3.2",
|
|
280
|
+
features: ["chat", "streaming", "code"],
|
|
281
|
+
instructions: {
|
|
282
|
+
en: "Install Ollama from https://ollama.ai and run: ollama pull llama3.2",
|
|
283
|
+
zh: "\u4ECE https://ollama.ai \u5B89\u88C5 Ollama \u5E76\u8FD0\u884C: ollama pull llama3.2"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
];
|
|
287
|
+
function getAllPresets() {
|
|
288
|
+
return PROVIDER_PRESETS;
|
|
289
|
+
}
|
|
290
|
+
function getPresetById(id) {
|
|
291
|
+
return PROVIDER_PRESETS.find((p) => p.id === id);
|
|
292
|
+
}
|
|
293
|
+
function getRecommendedPresets() {
|
|
294
|
+
const recommendedIds = ["anthropic", "302ai", "deepseek", "openrouter", "qwen"];
|
|
295
|
+
return recommendedIds.map((id) => getPresetById(id)).filter((p) => p !== void 0);
|
|
296
|
+
}
|
|
297
|
+
function getChinesePresets() {
|
|
298
|
+
return PROVIDER_PRESETS.filter(
|
|
299
|
+
(p) => p.category === "chinese" || p.id === "302ai"
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export { PROVIDER_PRESETS as P, getChinesePresets as a, getPresetById as b, getRecommendedPresets as c, getAllPresets as g };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { detectCodeToolType } from '../chunks/smart-defaults.mjs';
|
|
2
2
|
import { DEFAULT_CODE_TOOL_TYPE } from '../chunks/constants.mjs';
|
|
3
|
-
import { i18n } from '../chunks/
|
|
3
|
+
import { i18n } from '../chunks/index3.mjs';
|
|
4
4
|
import { readZcfConfigAsync } from '../chunks/ccjk-config.mjs';
|
|
5
5
|
|
|
6
6
|
const CODE_TYPE_ABBREVIATIONS = {
|
|
@@ -4,7 +4,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
4
4
|
import { homedir } from 'node:os';
|
|
5
5
|
import { promisify } from 'node:util';
|
|
6
6
|
import { join } from 'pathe';
|
|
7
|
-
import { i18n } from '../chunks/
|
|
7
|
+
import { i18n } from '../chunks/index3.mjs';
|
|
8
8
|
|
|
9
9
|
const execAsync = promisify(exec);
|
|
10
10
|
function getClaudePluginDir() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
3
|
import { CLAUDE_DIR, SETTINGS_FILE } from '../chunks/constants.mjs';
|
|
4
|
-
import { ensureI18nInitialized, i18n } from '../chunks/
|
|
4
|
+
import { ensureI18nInitialized, i18n } from '../chunks/index3.mjs';
|
|
5
5
|
import { e as getExistingApiConfig, f as configureApi, s as switchToOfficialLogin, b as backupExistingConfig, a as applyAiLanguageDirective } from '../chunks/config.mjs';
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
7
|
import { join, dirname } from 'pathe';
|