@benbenwu/zcf 3.6.4

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.
Files changed (94) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +193 -0
  3. package/bin/zcf.mjs +2 -0
  4. package/dist/chunks/api-providers.mjs +137 -0
  5. package/dist/chunks/claude-code-config-manager.mjs +731 -0
  6. package/dist/chunks/claude-code-incremental-manager.mjs +601 -0
  7. package/dist/chunks/codex-config-switch.mjs +394 -0
  8. package/dist/chunks/codex-provider-manager.mjs +197 -0
  9. package/dist/chunks/codex-uninstaller.mjs +422 -0
  10. package/dist/chunks/commands.mjs +118 -0
  11. package/dist/chunks/features.mjs +632 -0
  12. package/dist/chunks/simple-config.mjs +7904 -0
  13. package/dist/cli.d.mts +1 -0
  14. package/dist/cli.d.ts +1 -0
  15. package/dist/cli.mjs +2013 -0
  16. package/dist/i18n/locales/en/api.json +53 -0
  17. package/dist/i18n/locales/en/ccr.json +65 -0
  18. package/dist/i18n/locales/en/cli.json +55 -0
  19. package/dist/i18n/locales/en/codex.json +123 -0
  20. package/dist/i18n/locales/en/cometix.json +29 -0
  21. package/dist/i18n/locales/en/common.json +20 -0
  22. package/dist/i18n/locales/en/configuration.json +85 -0
  23. package/dist/i18n/locales/en/errors.json +26 -0
  24. package/dist/i18n/locales/en/installation.json +80 -0
  25. package/dist/i18n/locales/en/language.json +19 -0
  26. package/dist/i18n/locales/en/mcp.json +24 -0
  27. package/dist/i18n/locales/en/menu.json +51 -0
  28. package/dist/i18n/locales/en/multi-config.json +79 -0
  29. package/dist/i18n/locales/en/tools.json +15 -0
  30. package/dist/i18n/locales/en/uninstall.json +56 -0
  31. package/dist/i18n/locales/en/updater.json +25 -0
  32. package/dist/i18n/locales/en/workflow.json +23 -0
  33. package/dist/i18n/locales/zh-CN/api.json +53 -0
  34. package/dist/i18n/locales/zh-CN/ccr.json +65 -0
  35. package/dist/i18n/locales/zh-CN/cli.json +55 -0
  36. package/dist/i18n/locales/zh-CN/codex.json +123 -0
  37. package/dist/i18n/locales/zh-CN/cometix.json +29 -0
  38. package/dist/i18n/locales/zh-CN/common.json +20 -0
  39. package/dist/i18n/locales/zh-CN/configuration.json +85 -0
  40. package/dist/i18n/locales/zh-CN/errors.json +26 -0
  41. package/dist/i18n/locales/zh-CN/installation.json +80 -0
  42. package/dist/i18n/locales/zh-CN/language.json +19 -0
  43. package/dist/i18n/locales/zh-CN/mcp.json +24 -0
  44. package/dist/i18n/locales/zh-CN/menu.json +51 -0
  45. package/dist/i18n/locales/zh-CN/multi-config.json +79 -0
  46. package/dist/i18n/locales/zh-CN/tools.json +15 -0
  47. package/dist/i18n/locales/zh-CN/uninstall.json +56 -0
  48. package/dist/i18n/locales/zh-CN/updater.json +25 -0
  49. package/dist/i18n/locales/zh-CN/workflow.json +23 -0
  50. package/dist/index.d.mts +324 -0
  51. package/dist/index.d.ts +324 -0
  52. package/dist/index.mjs +19 -0
  53. package/dist/shared/zcf.DGjQxTq_.mjs +34 -0
  54. package/package.json +117 -0
  55. package/templates/CLAUDE.md +221 -0
  56. package/templates/claude-code/CLAUDE.md +250 -0
  57. package/templates/claude-code/common/settings.json +48 -0
  58. package/templates/claude-code/en/workflow/bmad/commands/bmad-init.md +275 -0
  59. package/templates/claude-code/en/workflow/common/agents/get-current-datetime.md +29 -0
  60. package/templates/claude-code/en/workflow/common/agents/init-architect.md +114 -0
  61. package/templates/claude-code/en/workflow/common/commands/init-project.md +53 -0
  62. package/templates/claude-code/en/workflow/plan/agents/planner.md +116 -0
  63. package/templates/claude-code/en/workflow/plan/agents/ui-ux-designer.md +91 -0
  64. package/templates/claude-code/en/workflow/plan/commands/feat.md +105 -0
  65. package/templates/claude-code/zh-CN/workflow/bmad/commands/bmad-init.md +275 -0
  66. package/templates/claude-code/zh-CN/workflow/common/agents/get-current-datetime.md +29 -0
  67. package/templates/claude-code/zh-CN/workflow/common/agents/init-architect.md +114 -0
  68. package/templates/claude-code/zh-CN/workflow/common/commands/init-project.md +53 -0
  69. package/templates/claude-code/zh-CN/workflow/plan/agents/planner.md +116 -0
  70. package/templates/claude-code/zh-CN/workflow/plan/agents/ui-ux-designer.md +91 -0
  71. package/templates/claude-code/zh-CN/workflow/plan/commands/feat.md +105 -0
  72. package/templates/codex/common/config.toml +0 -0
  73. package/templates/common/output-styles/en/engineer-professional.md +88 -0
  74. package/templates/common/output-styles/en/laowang-engineer.md +127 -0
  75. package/templates/common/output-styles/en/leibus-engineer.md +251 -0
  76. package/templates/common/output-styles/en/nekomata-engineer.md +120 -0
  77. package/templates/common/output-styles/en/ojousama-engineer.md +121 -0
  78. package/templates/common/output-styles/en/rem-engineer.md +173 -0
  79. package/templates/common/output-styles/zh-CN/engineer-professional.md +89 -0
  80. package/templates/common/output-styles/zh-CN/laowang-engineer.md +127 -0
  81. package/templates/common/output-styles/zh-CN/leibus-engineer.md +251 -0
  82. package/templates/common/output-styles/zh-CN/nekomata-engineer.md +120 -0
  83. package/templates/common/output-styles/zh-CN/ojousama-engineer.md +121 -0
  84. package/templates/common/output-styles/zh-CN/rem-engineer.md +179 -0
  85. package/templates/common/workflow/git/en/git-cleanBranches.md +102 -0
  86. package/templates/common/workflow/git/en/git-commit.md +205 -0
  87. package/templates/common/workflow/git/en/git-rollback.md +90 -0
  88. package/templates/common/workflow/git/en/git-worktree.md +276 -0
  89. package/templates/common/workflow/git/zh-CN/git-cleanBranches.md +102 -0
  90. package/templates/common/workflow/git/zh-CN/git-commit.md +205 -0
  91. package/templates/common/workflow/git/zh-CN/git-rollback.md +90 -0
  92. package/templates/common/workflow/git/zh-CN/git-worktree.md +276 -0
  93. package/templates/common/workflow/sixStep/en/workflow.md +251 -0
  94. package/templates/common/workflow/sixStep/zh-CN/workflow.md +215 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-PRESENT UfoMiao <https://github.com/UfoMiao> & Miao Da <https://github.com/WitMiao>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,193 @@
1
+ [![npm version][npm-version-src]][npm-version-href]
2
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
3
+ [![License][license-src]][license-href]
4
+ [![Claude Code][claude-code-src]][claude-code-href]
5
+ [![codecov][codecov-src]][codecov-href]
6
+ [![JSDocs][jsdocs-src]][jsdocs-href]
7
+ [![Ask DeepWiki][deepwiki-src]][deepwiki-href]
8
+
9
+ <div align="center">
10
+ <img src="./src/assets/banner.webp" alt="Banner"/>
11
+
12
+ <h1>
13
+ ZCF - Zero-Config Code Flow
14
+ </h1>
15
+
16
+ <p align="center">
17
+ <b>English</b> | <a href="README_zh-CN.md">中文</a> | <a href="README_ja-JP.md">日本語</a> | <a href="CHANGELOG.md">Changelog</a>
18
+
19
+ **✨ Full Documentation**: [ZCF Docs](https://zcf.ufomiao.com/)
20
+
21
+ > Zero-config, one-click setup for Claude Code & Codex with bilingual support, intelligent agent system and personalized AI assistant
22
+ </p>
23
+ </div>
24
+
25
+ ## ♥️ Sponsors
26
+
27
+ [![GLM](./src/assets/GLM-en.png)](https://z.ai/subscribe?ic=8JVLJQFSKB)
28
+
29
+ This project is sponsored by Z.ai, supporting us with their GLM CODING PLAN.
30
+ GLM CODING PLAN is a subscription service designed for AI coding, starting at just $10/month. It provides access to their flagship GLM-4.7 & (GLM-5 Only Available for Pro Users)model across 10+ popular AI coding tools (Claude Code, Cline, Roo Code, etc.), offering developers top-tier, fast, and stable coding experiences.
31
+ Get 10% OFF GLM CODING PLAN:https://z.ai/subscribe?ic=8JVLJQFSKB
32
+
33
+ ---
34
+
35
+ [![Sponsor AI API](./src/assets/302.ai-en.jpg)](https://share.302.ai/gAT9VG)
36
+ [302.AI](https://share.302.ai/gAT9VG) is a pay-as-you-go enterprise AI resource hub that offers the latest and most comprehensive AI models and APIs on the market, along with a variety of ready-to-use online AI applications.
37
+
38
+ ---
39
+
40
+ <table>
41
+ <tbody>
42
+ <tr>
43
+ <td width="180"><a href="https://www.packyapi.com/register?aff=zcf"><img src="./src/assets/packycode.png" alt="PackyCode" width="150"></a></td>
44
+ <td>Thanks to PackyCode for sponsoring this project! PackyCode is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex, Gemini, and more. PackyCode provides special discounts for our software users: register using <a href="https://www.packyapi.com/register?aff=zcf">this link</a> and enter the "zcf" promo code during recharge to get 10% off.</td>
45
+ </tr>
46
+ <tr>
47
+ <td width="180"><a href="https://www.aicodemirror.com/register?invitecode=ZCFZCF"><img src="./src/assets/AICodeMirror.jpg" alt="AICodeMirror" width="150"></a></td>
48
+ <td>Thanks to AICodeMirror for sponsoring this project! AICodeMirror provides official high-stability relay services for Claude Code/Codex/Gemini CLI, supporting enterprise-level high concurrency, fast invoicing, and 7x24 dedicated technical support. Official channels for Claude Code/Codex/Gemini at discounts as low as 38%/2%/10.9% off, with additional discounts on top-ups! AICodeMirror offers special benefits for ZCF users: users who register through <a href="https://www.aicodemirror.com/register?invitecode=ZCFZCF">this link</a> can enjoy 20% off on first top-up, and enterprise customers can get up to 25% off!</td>
49
+ </tr>
50
+ <tr>
51
+ <td width="180"><a href="https://crazyrouter.com/?utm_source=github&utm_medium=sponsor&utm_campaign=zcf&aff=yJFo"><img src="./src/assets/crazyrouter.svg" alt="Crazyrouter" width="150"></a></td>
52
+ <td>Thanks to Crazyrouter for sponsoring this project! Crazyrouter is a high-performance AI API aggregation gateway — one API key for 300+ models (GPT, Claude, Gemini, DeepSeek, and more). All models at 55% of official pricing with auto-failover, smart routing, and unlimited concurrency. Fully OpenAI-compatible, works seamlessly with Claude Code, Codex, and Gemini CLI. Crazyrouter offers an exclusive deal for ZCF users: register via <a href="https://crazyrouter.com/?utm_source=github&utm_medium=sponsor&utm_campaign=zcf&aff=yJFo">this link</a> to get $2 free credit instantly!</td>
53
+ </tr>
54
+ </tbody>
55
+ </table>
56
+
57
+ ## 🚀 Quick Start
58
+
59
+ - Recommended: `npx @benbenwu/zcf` opens the interactive menu — pick what you need.
60
+ - Common commands:
61
+
62
+ ```bash
63
+ npx @benbenwu/zcf i # Full initialization: install + workflows + API/CCR + MCP
64
+ npx @benbenwu/zcf u # Update workflows only
65
+ npx @benbenwu/zcf --lang zh-CN # Switch interface language (example)
66
+ npx @benbenwu/zcf i -s -T codex # Non-interactive Codex setup
67
+ ```
68
+
69
+ - Non-interactive example (provider preset):
70
+
71
+ ```bash
72
+ npx @benbenwu/zcf i -s -p 302ai -k "sk-xxx"
73
+ ```
74
+
75
+ - For local development validation, use the repo entrypoints instead of bare `npx @benbenwu/zcf`:
76
+
77
+ ```bash
78
+ pnpm dev -- i -s -T codex
79
+ pnpm start -- i -s -T codex
80
+ node bin/zcf.mjs i -s -T codex
81
+ ```
82
+
83
+ Bare `npx @benbenwu/zcf` resolves the published npm package, so it will not automatically use your local repository changes.
84
+
85
+ More usage, options, and workflows: see documentation.
86
+
87
+ ## 📖 Full Documentation
88
+
89
+ - https://zcf.ufomiao.com/
90
+
91
+ ## 💬 Community
92
+
93
+ Join our Telegram group for support, discussions, and updates:
94
+
95
+ [![Telegram](https://img.shields.io/badge/Telegram-Join%20Chat-blue?style=flat&logo=telegram)](https://t.me/ufomiao_zcf)
96
+
97
+ ## 🙏 Acknowledgments
98
+
99
+ This project is inspired by and incorporates work from:
100
+
101
+ - [LINUX DO - New Ideal Community](https://linux.do)
102
+ - [CCR](https://github.com/musistudio/claude-code-router)
103
+ - [CCometixLine](https://github.com/Haleclipse/CCometixLine)
104
+ - [ccusage](https://github.com/ryoppippi/ccusage)
105
+ - [BMad Method](https://github.com/bmad-code-org/BMAD-METHOD)
106
+
107
+ Thanks to these community contributors for sharing!
108
+
109
+ ## ❤️ Support & Sponsors
110
+
111
+ If you find this project helpful, please consider sponsoring its development. Your support is greatly appreciated!
112
+
113
+ [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/UfoMiao)
114
+
115
+ <table>
116
+ <tr>
117
+ <td><img src="/src/assets/alipay.webp" width="200" alt="Alipay" /></td>
118
+ <td><img src="/src/assets/wechat.webp" width="200" alt="WeChat Pay" /></td>
119
+ </tr>
120
+ </table>
121
+
122
+ ### Our Sponsors
123
+
124
+ A huge thank you to all our sponsors for their generous support!
125
+
126
+ 【Corporate Sponsors】
127
+
128
+ - [302.AI](https://share.302.ai/gAT9VG) (first corporate sponsorship 🤠)
129
+ - [GLM](https://z.ai/subscribe?ic=8JVLJQFSKB) (first AI model sponsorship 🤖)
130
+ - [PackyCode](https://www.packyapi.com/register?aff=zcf) (first API proxy service sponsor 🧝🏻‍♀️)
131
+ - [AICodeMirror](https://www.aicodemirror.com/register?invitecode=ZCFZCF) (official high-stability relay service sponsor 🪞)
132
+ - [UUCode](https://www.uucode.org/auth?ref=JQ2DJ1T8) (sponsored $100 proxy credits 💰)
133
+ - [Crazyrouter](https://crazyrouter.com/?utm_source=github&utm_medium=sponsor&utm_campaign=zcf&aff=yJFo) (AI API aggregation gateway sponsor 🚀)
134
+
135
+ 【Individual Sponsors】
136
+
137
+ - Tc (first sponsor)
138
+ - Argolinhas (first ko-fi sponsor ٩(•̤̀ᵕ•̤́๑))
139
+ - r\*r (first anonymous sponsor 🤣)
140
+ - \*\*康 (first KFC sponsor 🍗)
141
+ - \*东 (first coffee sponsor ☕️)
142
+ - 炼\*3 (first Termux user sponsor 📱)
143
+ - [chamo101](https://github.com/chamo101) (first GitHub issue sponsor 🎉)
144
+ - 初屿贤 (first Codex user sponsor 🙅🏻‍♂️)
145
+ - Protein (first 1688 sponsor 😏)
146
+ - [musistudio](https://github.com/musistudio) (first open source project author sponsor, the author of [CCR](https://github.com/musistudio/claude-code-router) 🤩)
147
+ - \*年 (first 100 CNY sponsor 💴)
148
+ - [BeatSeat](https://github.com/BeatSeat) (community expert 😎, provided $1000 Claude credits)
149
+ - [wenwen](https://github.com/wenwen12345) (community expert 🤓, provided daily $100 Claude&GPT credits)
150
+ - 16°C coffee (My best friend 🤪, offered ChatGPT Pro $200 package)
151
+
152
+ ### Promotion Thanks
153
+
154
+ Thanks to the following authors for promoting this project:
155
+
156
+ - 逛逛 GitHub, article: https://mp.weixin.qq.com/s/phqwSRb16MKCHHVozTFeiQ
157
+ - Geek, tweet: https://x.com/geekbb/status/1955174718618866076
158
+
159
+ ## 📄 License
160
+
161
+ [MIT License](LICENSE)
162
+
163
+ ---
164
+
165
+ ## 🚀 Contributors
166
+
167
+ <a href="https://github.com/UfoMiao/zcf/graphs/contributors">
168
+ <img src="https://contrib.rocks/image?repo=UfoMiao/zcf" />
169
+ </a>
170
+ <br /><br />
171
+
172
+ ## ⭐️ Star History
173
+
174
+ If this project helps you, please give me a ⭐️ Star!
175
+
176
+ [![Star History Chart](https://api.star-history.com/svg?repos=UfoMiao/zcf&type=Date)](https://star-history.com/#UfoMiao/zcf&Date)
177
+
178
+ <!-- Badges -->
179
+
180
+ [npm-version-src]: https://img.shields.io/npm/v/%40benbenwu%2Fzcf?style=flat&colorA=080f12&colorB=1fa669
181
+ [npm-version-href]: https://npmjs.com/package/@benbenwu/zcf
182
+ [npm-downloads-src]: https://img.shields.io/npm/dm/%40benbenwu%2Fzcf?style=flat&colorA=080f12&colorB=1fa669
183
+ [npm-downloads-href]: https://npmjs.com/package/@benbenwu/zcf
184
+ [license-src]: https://img.shields.io/github/license/ufomiao/zcf.svg?style=flat&colorA=080f12&colorB=1fa669
185
+ [license-href]: https://github.com/ufomiao/zcf/blob/main/LICENSE
186
+ [claude-code-src]: https://img.shields.io/badge/Claude-Code-1fa669?style=flat&colorA=080f12&colorB=1fa669
187
+ [claude-code-href]: https://claude.ai/code
188
+ [codecov-src]: https://codecov.io/gh/UfoMiao/zcf/graph/badge.svg?token=HZI6K4Y7D7&style=flat&colorA=080f12&colorB=1fa669
189
+ [codecov-href]: https://codecov.io/gh/UfoMiao/zcf
190
+ [jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-1fa669?style=flat&colorA=080f12&colorB=1fa669
191
+ [jsdocs-href]: https://www.jsdocs.io/package/zcf
192
+ [deepwiki-src]: https://img.shields.io/badge/Ask-DeepWiki-1fa669?style=flat&colorA=080f12&colorB=1fa669
193
+ [deepwiki-href]: https://deepwiki.com/UfoMiao/zcf
package/bin/zcf.mjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import '../dist/cli.mjs'
@@ -0,0 +1,137 @@
1
+ const API_PROVIDER_PRESETS = [
2
+ {
3
+ id: "302ai",
4
+ name: "302.AI",
5
+ supportedCodeTools: ["claude-code", "codex"],
6
+ claudeCode: {
7
+ baseUrl: "https://api.302.ai/cc",
8
+ authType: "api_key"
9
+ },
10
+ codex: {
11
+ baseUrl: "https://api.302.ai/v1",
12
+ wireApi: "responses"
13
+ },
14
+ description: "302.AI API Service"
15
+ },
16
+ {
17
+ id: "packycode",
18
+ name: "PackyCode",
19
+ supportedCodeTools: ["claude-code", "codex"],
20
+ claudeCode: {
21
+ baseUrl: "https://www.packyapi.com",
22
+ authType: "auth_token"
23
+ },
24
+ codex: {
25
+ baseUrl: "https://www.packyapi.com/v1",
26
+ wireApi: "responses"
27
+ },
28
+ description: "PackyCode API Service"
29
+ },
30
+ {
31
+ id: "aicodemirror",
32
+ name: "AICodeMirror",
33
+ supportedCodeTools: ["claude-code", "codex"],
34
+ claudeCode: {
35
+ baseUrl: "https://api.aicodemirror.com/api/claudecode",
36
+ authType: "auth_token"
37
+ },
38
+ codex: {
39
+ baseUrl: "https://api.aicodemirror.com/api/codex/backend-api/codex",
40
+ wireApi: "responses"
41
+ },
42
+ description: "AICodeMirror Global High-Quality Line"
43
+ },
44
+ {
45
+ id: "aicodemirror-cn",
46
+ name: "AICodeMirror CN",
47
+ supportedCodeTools: ["claude-code", "codex"],
48
+ claudeCode: {
49
+ baseUrl: "https://api.claudecode.net.cn/api/claudecode",
50
+ authType: "auth_token"
51
+ },
52
+ codex: {
53
+ baseUrl: "https://api.claudecode.net.cn/api/codex/backend-api/codex",
54
+ wireApi: "responses"
55
+ },
56
+ description: "AICodeMirror China Optimized Line"
57
+ },
58
+ {
59
+ id: "crazyrouter",
60
+ name: "Crazyrouter",
61
+ supportedCodeTools: ["claude-code", "codex"],
62
+ claudeCode: {
63
+ baseUrl: "https://crazyrouter.com",
64
+ authType: "api_key"
65
+ },
66
+ codex: {
67
+ baseUrl: "https://crazyrouter.com/v1",
68
+ wireApi: "responses"
69
+ },
70
+ description: "Crazyrouter AI API aggregation gateway"
71
+ },
72
+ {
73
+ id: "glm-cn",
74
+ name: "GLM CN",
75
+ supportedCodeTools: ["claude-code"],
76
+ claudeCode: {
77
+ baseUrl: "https://open.bigmodel.cn/api/anthropic",
78
+ authType: "auth_token"
79
+ },
80
+ description: "GLM (\u667A\u8C31AI)"
81
+ },
82
+ {
83
+ id: "z-ai",
84
+ name: "Z.ai",
85
+ supportedCodeTools: ["claude-code"],
86
+ claudeCode: {
87
+ baseUrl: "https://api.z.ai/api/anthropic",
88
+ authType: "auth_token"
89
+ },
90
+ description: "Z.ai API Service"
91
+ },
92
+ {
93
+ id: "bailian-coding",
94
+ name: "Bailian Coding",
95
+ supportedCodeTools: ["claude-code"],
96
+ claudeCode: {
97
+ baseUrl: "https://coding.dashscope.aliyuncs.com/apps/anthropic",
98
+ authType: "auth_token",
99
+ defaultModels: ["glm-5"]
100
+ },
101
+ description: "Bailian Coding API Service"
102
+ },
103
+ {
104
+ id: "minimax",
105
+ name: "MiniMax",
106
+ supportedCodeTools: ["claude-code"],
107
+ claudeCode: {
108
+ baseUrl: "https://api.minimax.io/anthropic",
109
+ authType: "auth_token",
110
+ defaultModels: ["MiniMax-M2.7", "MiniMax-M2.7-highspeed"]
111
+ },
112
+ description: "MiniMax API Service"
113
+ },
114
+ {
115
+ id: "kimi-coding",
116
+ name: "Kimi Coding",
117
+ supportedCodeTools: ["claude-code"],
118
+ claudeCode: {
119
+ baseUrl: "https://api.kimi.com/coding/",
120
+ authType: "auth_token"
121
+ },
122
+ description: "Kimi (Moonshot AI)"
123
+ }
124
+ ];
125
+ function getApiProviders(codeToolType) {
126
+ return API_PROVIDER_PRESETS.filter(
127
+ (provider) => provider.supportedCodeTools.includes(codeToolType)
128
+ );
129
+ }
130
+ function getProviderPreset(providerId) {
131
+ return API_PROVIDER_PRESETS.find((provider) => provider.id === providerId);
132
+ }
133
+ function getValidProviderIds() {
134
+ return API_PROVIDER_PRESETS.map((provider) => provider.id);
135
+ }
136
+
137
+ export { API_PROVIDER_PRESETS, getApiProviders, getProviderPreset, getValidProviderIds };