ccman 3.3.25 → 3.3.28
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/README.md +40 -6
- package/dist/index.js +1510 -913
- package/dist/templates/codex/config.toml +11 -5
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ $ ccman cx list
|
|
|
95
95
|
https://api.openai.com/v1
|
|
96
96
|
|
|
97
97
|
○ GMN
|
|
98
|
-
https://
|
|
98
|
+
https://ai.gmncode.com
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
```bash
|
|
@@ -220,6 +220,40 @@ ccman mcp remove # 删除 MCP 服务器
|
|
|
220
220
|
| `ccman export [dir]` | 导出配置到本地目录 |
|
|
221
221
|
| `ccman import [dir]` | 从本地目录导入配置 |
|
|
222
222
|
|
|
223
|
+
服务商管理命令也支持参数模式:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
ccman cx add --name work --base-url https://api.example.com --api-key sk-xxx --switch
|
|
227
|
+
ccman cc add --preset GMN --api-key sk-xxx --switch
|
|
228
|
+
ccman gm edit default --new-name personal --base-url '' --api-key ''
|
|
229
|
+
ccman oc remove old-provider --yes
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
WebDAV 同步支持参数模式和环境变量模式,适合在其他机器非交互执行:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
ccman sync config \
|
|
236
|
+
--webdav-url https://dav.example.com \
|
|
237
|
+
--username alice \
|
|
238
|
+
--password 'YOUR_WEBDAV_PASSWORD' \
|
|
239
|
+
--remote-dir /ccman \
|
|
240
|
+
--sync-password 'YOUR_SYNC_PASSWORD' \
|
|
241
|
+
--remember-sync-password
|
|
242
|
+
|
|
243
|
+
ccman sync download --yes
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
export CCMAN_WEBDAV_URL='https://dav.example.com'
|
|
248
|
+
export CCMAN_WEBDAV_USERNAME='alice'
|
|
249
|
+
export CCMAN_WEBDAV_PASSWORD='YOUR_WEBDAV_PASSWORD'
|
|
250
|
+
export CCMAN_WEBDAV_REMOTE_DIR='/ccman'
|
|
251
|
+
export CCMAN_SYNC_PASSWORD='YOUR_SYNC_PASSWORD'
|
|
252
|
+
|
|
253
|
+
ccman sync config
|
|
254
|
+
ccman sync upload --yes
|
|
255
|
+
```
|
|
256
|
+
|
|
223
257
|
---
|
|
224
258
|
|
|
225
259
|
## 内置预设
|
|
@@ -231,7 +265,7 @@ ccman mcp remove # 删除 MCP 服务器
|
|
|
231
265
|
| 预设名称 | Base URL |
|
|
232
266
|
| ------------------ | --------------------------- |
|
|
233
267
|
| Anthropic Official | `https://api.anthropic.com` |
|
|
234
|
-
| GMN | `https://
|
|
268
|
+
| GMN | `https://ai.gmncode.com` |
|
|
235
269
|
| GMN1 | `https://gmncode.cn` |
|
|
236
270
|
|
|
237
271
|
### Gemini CLI 预设(3 个)
|
|
@@ -239,7 +273,7 @@ ccman mcp remove # 删除 MCP 服务器
|
|
|
239
273
|
| 预设名称 | Base URL |
|
|
240
274
|
| ----------------------- | ----------------------------- |
|
|
241
275
|
| Google Gemini (API Key) | 官方默认 |
|
|
242
|
-
| GMN | `https://
|
|
276
|
+
| GMN | `https://ai.gmncode.com` |
|
|
243
277
|
| GMN1 | `https://gmncode.cn` |
|
|
244
278
|
|
|
245
279
|
### Codex 预设(3 个)
|
|
@@ -247,14 +281,14 @@ ccman mcp remove # 删除 MCP 服务器
|
|
|
247
281
|
| 预设名称 | Base URL |
|
|
248
282
|
| --------------- | ----------------------------- |
|
|
249
283
|
| OpenAI Official | `https://api.openai.com/v1` |
|
|
250
|
-
| GMN | `https://
|
|
284
|
+
| GMN | `https://ai.gmncode.com` |
|
|
251
285
|
| GMN1 | `https://gmncode.cn` |
|
|
252
286
|
|
|
253
287
|
### OpenCode 预设(2 个)
|
|
254
288
|
|
|
255
289
|
| 预设名称 | Base URL |
|
|
256
290
|
| -------- | ----------------------------- |
|
|
257
|
-
| GMN | `https://
|
|
291
|
+
| GMN | `https://ai.gmncode.com` |
|
|
258
292
|
| GMN1 | `https://gmncode.cn` |
|
|
259
293
|
|
|
260
294
|
### MCP 预设(多个)
|
|
@@ -298,7 +332,7 @@ $ ccman cx current
|
|
|
298
332
|
|
|
299
333
|
GMN
|
|
300
334
|
ID: codex-1760178741529-abc123
|
|
301
|
-
URL: https://
|
|
335
|
+
URL: https://ai.gmncode.com
|
|
302
336
|
最后使用: 2025/10/11 18:32:25
|
|
303
337
|
```
|
|
304
338
|
|