@unitsvc/cc-helper 1.0.17 → 1.0.19
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-zh.md +127 -13
- package/README.md +127 -12
- package/package.json +3 -2
package/README-zh.md
CHANGED
|
@@ -17,6 +17,18 @@
|
|
|
17
17
|
npm install -g @anthropic-ai/claude-code@v2.1.76
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
## 安装
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g @unitsvc/cc-helper@latest
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
或直接使用 npx 运行:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx @unitsvc/cc-helper enable
|
|
30
|
+
```
|
|
31
|
+
|
|
20
32
|
## 使用方法
|
|
21
33
|
|
|
22
34
|
```bash
|
|
@@ -50,6 +62,19 @@ npx @unitsvc/cc-helper disable
|
|
|
50
62
|
| `disable` | 恢复原始状态 |
|
|
51
63
|
| `status` | 查看当前状态及版本要求 |
|
|
52
64
|
|
|
65
|
+
**注意**: 运行 `cc-helper enable` 时会自动在 `~/.claude/settings.json` 中配置推荐的环境变量:
|
|
66
|
+
|
|
67
|
+
- `DISABLE_INSTALLATION_CHECKS=1` - 禁用 npm 安装警告
|
|
68
|
+
- `DISABLE_AUTOUPDATER=1` - 禁用自动更新
|
|
69
|
+
- `DISABLE_BUG_COMMAND=1` - 禁用 bug 命令
|
|
70
|
+
- `DISABLE_ERROR_REPORTING=1` - 禁用错误报告
|
|
71
|
+
- `DISABLE_TELEMETRY=1` - 禁用遥测
|
|
72
|
+
- `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1` - 禁用非必要流量
|
|
73
|
+
- `CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1` - 禁用反馈调查
|
|
74
|
+
- `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` - 启用实验性 Agent Teams
|
|
75
|
+
- `CLAUDE_CODE_HIDE_ACCOUNT_INFO=1` - 隐藏账户信息
|
|
76
|
+
- `API_TIMEOUT_MS=3000000` - 设置 API 超时为 50 分钟
|
|
77
|
+
|
|
53
78
|
---
|
|
54
79
|
|
|
55
80
|
## 什么是 `/loop`?
|
|
@@ -216,27 +241,116 @@ npx @unitsvc/cc-helper enable 1m
|
|
|
216
241
|
npx @unitsvc/cc-helper enable 1M
|
|
217
242
|
```
|
|
218
243
|
|
|
219
|
-
###
|
|
244
|
+
### 扩展思维与上下文长度
|
|
245
|
+
|
|
246
|
+
使用第三方 API 代理时,扩展思维(推理)能力和上下文窗口大小因模型而异:
|
|
247
|
+
|
|
248
|
+
| 模型 | 最大思维链长度 | 上下文长度(Tokens) |
|
|
249
|
+
| -------------------- | ----------------------- | -------------------- |
|
|
250
|
+
| qwen3.5-plus | 81,920 | 1,000,000 |
|
|
251
|
+
| qwen3-coder-plus | 不支持思考模式 | 1,000,000 |
|
|
252
|
+
| qwen3-max-2026-01-23 | 81,920 | 262,144 |
|
|
253
|
+
| qwen3-coder-next | 不支持思考模式 | 262,144 |
|
|
254
|
+
| kimi-k2.5 | 81,920 | 262,144 |
|
|
255
|
+
| MiniMax-M2.5 | 32,768(思维链 + 回复) | 204,800 |
|
|
256
|
+
| glm-5 | 32,768 | 202,752 |
|
|
257
|
+
| glm-4.7 | 32,768 | 202,752 |
|
|
258
|
+
|
|
259
|
+
## plan 命令 - 配置 Provider
|
|
260
|
+
|
|
261
|
+
`cc-helper plan` 命令帮助配置 AI Provider,支持 vault 加密存储。
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
# 添加 Provider(自动保存到 vault + settings.json)
|
|
265
|
+
cc-helper plan add -p bailian -k YOUR_API_KEY
|
|
266
|
+
cc-helper plan add -p minimaxi -k YOUR_API_KEY --mcp
|
|
267
|
+
|
|
268
|
+
# 切换 Provider(自动从 vault 获取密钥)
|
|
269
|
+
cc-helper plan switch -p zai
|
|
270
|
+
|
|
271
|
+
# 列出已配置的 Provider
|
|
272
|
+
cc-helper plan list
|
|
273
|
+
|
|
274
|
+
# 导出配置
|
|
275
|
+
cc-helper plan export --all-env -o config.json
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
**支持的 Provider:**
|
|
279
|
+
|
|
280
|
+
- `bailian` - (CN) Aliyun
|
|
281
|
+
- `minimaxi` - (CN) MiniMax
|
|
282
|
+
- `glm` - (CN) Zhipu
|
|
283
|
+
- `zai` - (EN) Zhipu
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## vault 命令 - 密钥管理
|
|
288
|
+
|
|
289
|
+
安全的密钥存储,加密存储在 `cc-helper.json` 中。
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
# 列出所有密钥
|
|
293
|
+
cc-helper vault list
|
|
294
|
+
|
|
295
|
+
# 设置密钥
|
|
296
|
+
cc-helper vault set bailian default -k "YOUR_API_KEY"
|
|
297
|
+
|
|
298
|
+
# 获取并解密密钥
|
|
299
|
+
cc-helper vault get bailian default
|
|
300
|
+
|
|
301
|
+
# 删除密钥
|
|
302
|
+
cc-helper vault delete bailian default
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## env 命令 - 环境管理
|
|
308
|
+
|
|
309
|
+
支持多环境配置(default、work、staging 等)。
|
|
310
|
+
|
|
311
|
+
```bash
|
|
312
|
+
# 列出环境
|
|
313
|
+
cc-helper env list
|
|
314
|
+
|
|
315
|
+
# 创建环境
|
|
316
|
+
cc-helper env create work
|
|
317
|
+
|
|
318
|
+
# 切换环境
|
|
319
|
+
cc-helper env switch work
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## sync 命令 - 配置同步
|
|
220
325
|
|
|
221
|
-
|
|
326
|
+
将配置导出/导入到 Git 仓库,支持 JWE 加密。
|
|
222
327
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
328
|
+
```bash
|
|
329
|
+
# 登录 GitHub
|
|
330
|
+
cc-helper sync login -r https://github.com/user/repo -t ghp_xxx
|
|
331
|
+
|
|
332
|
+
# 导出到 Git 仓库
|
|
333
|
+
cc-helper sync export
|
|
334
|
+
|
|
335
|
+
# 导出到文件
|
|
336
|
+
cc-helper sync export --file config.json
|
|
337
|
+
cc-helper sync export --workspace test # 使用工作区配置
|
|
338
|
+
|
|
339
|
+
# 导入配置
|
|
340
|
+
cc-helper sync import
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
---
|
|
233
344
|
|
|
234
345
|
## 功能特点
|
|
235
346
|
|
|
236
347
|
- 一键启用 `/loop`、`/btw`、`/keybindings` 功能
|
|
237
348
|
- 可选 `/toolsearch` 用于第三方 API 代理
|
|
238
349
|
- 可选 `/context1m` 用于 1M 上下文窗口(v2.1.76+)
|
|
239
|
-
-
|
|
350
|
+
- `plan` 命令支持 vault 加密存储 API 密钥
|
|
351
|
+
- `vault` 命令安全管理密钥
|
|
352
|
+
- `env` 命令支持多环境配置
|
|
353
|
+
- `sync` 命令支持 Git 仓库同步
|
|
240
354
|
- 轻松恢复原始状态
|
|
241
355
|
- 自动备份原文件
|
|
242
356
|
- 自动禁用 npm 弃用警告
|
package/README.md
CHANGED
|
@@ -17,6 +17,18 @@
|
|
|
17
17
|
npm install -g @anthropic-ai/claude-code@v2.1.76
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g @unitsvc/cc-helper@latest
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Or use without installation:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx @unitsvc/cc-helper enable
|
|
30
|
+
```
|
|
31
|
+
|
|
20
32
|
## Usage
|
|
21
33
|
|
|
22
34
|
```bash
|
|
@@ -50,6 +62,19 @@ npx @unitsvc/cc-helper disable
|
|
|
50
62
|
| `disable` | Restore original |
|
|
51
63
|
| `status` | Check current status with version requirements |
|
|
52
64
|
|
|
65
|
+
**Note**: Running `cc-helper enable` also automatically configures recommended environment variables in `~/.claude/settings.json`:
|
|
66
|
+
|
|
67
|
+
- `DISABLE_INSTALLATION_CHECKS=1` - Disable npm installation warnings
|
|
68
|
+
- `DISABLE_AUTOUPDATER=1` - Disable auto-updater
|
|
69
|
+
- `DISABLE_BUG_COMMAND=1` - Disable bug command
|
|
70
|
+
- `DISABLE_ERROR_REPORTING=1` - Disable error reporting
|
|
71
|
+
- `DISABLE_TELEMETRY=1` - Disable telemetry
|
|
72
|
+
- `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1` - Disable non-essential traffic
|
|
73
|
+
- `CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1` - Disable feedback survey
|
|
74
|
+
- `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` - Enable experimental agent teams
|
|
75
|
+
- `CLAUDE_CODE_HIDE_ACCOUNT_INFO=1` - Hide account info
|
|
76
|
+
- `API_TIMEOUT_MS=3000000` - Set API timeout to 50 minutes
|
|
77
|
+
|
|
53
78
|
### Proxy Support
|
|
54
79
|
|
|
55
80
|
If download fails, use `--proxy` flag:
|
|
@@ -228,26 +253,116 @@ npx @unitsvc/cc-helper enable 1m
|
|
|
228
253
|
npx @unitsvc/cc-helper enable 1M
|
|
229
254
|
```
|
|
230
255
|
|
|
231
|
-
### Extended Thinking
|
|
256
|
+
### Extended Thinking and Context Length
|
|
257
|
+
|
|
258
|
+
When using third-party API proxies, extended thinking (reasoning) capabilities and context window sizes vary by model:
|
|
259
|
+
|
|
260
|
+
| Model | Max Thinking Tokens | Context Length (Tokens) |
|
|
261
|
+
| -------------------- | ---------------------------- | ----------------------- |
|
|
262
|
+
| qwen3.5-plus | 81,920 | 1,000,000 |
|
|
263
|
+
| qwen3-coder-plus | Not supported | 1,000,000 |
|
|
264
|
+
| qwen3-max-2026-01-23 | 81,920 | 262,144 |
|
|
265
|
+
| qwen3-coder-next | Not supported | 262,144 |
|
|
266
|
+
| kimi-k2.5 | 81,920 | 262,144 |
|
|
267
|
+
| MiniMax-M2.5 | 32,768 (thinking + response) | 204,800 |
|
|
268
|
+
| glm-5 | 32,768 | 202,752 |
|
|
269
|
+
| glm-4.7 | 32,768 | 202,752 |
|
|
270
|
+
|
|
271
|
+
## plan Command - Configure Provider
|
|
272
|
+
|
|
273
|
+
Configure AI providers with vault-based secret storage.
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
# Add provider (auto-saves to vault + settings.json)
|
|
277
|
+
cc-helper plan add -p bailian -k YOUR_API_KEY
|
|
278
|
+
cc-helper plan add -p minimaxi -k YOUR_API_KEY --mcp
|
|
279
|
+
|
|
280
|
+
# Switch provider (auto-retrieves key from vault)
|
|
281
|
+
cc-helper plan switch -p zai
|
|
282
|
+
|
|
283
|
+
# List configured providers
|
|
284
|
+
cc-helper plan list
|
|
285
|
+
|
|
286
|
+
# Export configuration
|
|
287
|
+
cc-helper plan export --all-env -o config.json
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**Supported Providers:**
|
|
291
|
+
|
|
292
|
+
- `bailian` - (CN) Aliyun
|
|
293
|
+
- `minimaxi` - (CN) MiniMax
|
|
294
|
+
- `glm` - (CN) Zhipu
|
|
295
|
+
- `zai` - (EN) Zhipu
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## vault Command - Secret Management
|
|
300
|
+
|
|
301
|
+
Securely store API keys encrypted in `cc-helper.json`.
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
# List all secrets
|
|
305
|
+
cc-helper vault list
|
|
306
|
+
|
|
307
|
+
# Set a secret
|
|
308
|
+
cc-helper vault set bailian default -k "YOUR_API_KEY"
|
|
309
|
+
|
|
310
|
+
# Get and decrypt a secret
|
|
311
|
+
cc-helper vault get bailian default
|
|
312
|
+
|
|
313
|
+
# Delete a secret
|
|
314
|
+
cc-helper vault delete bailian default
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## env Command - Environment Management
|
|
320
|
+
|
|
321
|
+
Support multiple environments (default, work, staging, etc.).
|
|
322
|
+
|
|
323
|
+
```bash
|
|
324
|
+
# List environments
|
|
325
|
+
cc-helper env list
|
|
326
|
+
|
|
327
|
+
# Create environment
|
|
328
|
+
cc-helper env create work
|
|
329
|
+
|
|
330
|
+
# Switch environment
|
|
331
|
+
cc-helper env switch work
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
## sync Command - Configuration Sync
|
|
232
337
|
|
|
233
|
-
|
|
338
|
+
Export/import configuration to/from Git repository with JWE encryption.
|
|
234
339
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
340
|
+
```bash
|
|
341
|
+
# Login to GitHub
|
|
342
|
+
cc-helper sync login -r https://github.com/user/repo -t ghp_xxx
|
|
343
|
+
|
|
344
|
+
# Export to Git repository
|
|
345
|
+
cc-helper sync export
|
|
346
|
+
|
|
347
|
+
# Export to file
|
|
348
|
+
cc-helper sync export --file config.json
|
|
349
|
+
cc-helper sync export --workspace test # Use workspace config
|
|
350
|
+
|
|
351
|
+
# Import configuration
|
|
352
|
+
cc-helper sync import
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
---
|
|
245
356
|
|
|
246
357
|
## Features
|
|
247
358
|
|
|
248
359
|
- Enable `/loop`, `/btw`, `/keybindings` with one command
|
|
249
360
|
- Optional `/toolsearch` for third-party API proxies
|
|
250
361
|
- Optional `/context1m` for 1M context window (v2.1.76+)
|
|
362
|
+
- `plan` command with vault-based API key storage
|
|
363
|
+
- `vault` command for secure secret management
|
|
364
|
+
- `env` command for multi-environment support
|
|
365
|
+
- `sync` command for Git repository sync
|
|
251
366
|
- Enable specific features individually
|
|
252
367
|
- Easy restore functionality
|
|
253
368
|
- Automatic backup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unitsvc/cc-helper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Claude Code /loop feature bypass tool",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"claude code",
|
|
17
|
-
"
|
|
17
|
+
"coding plan",
|
|
18
|
+
"compliance",
|
|
18
19
|
"cli"
|
|
19
20
|
],
|
|
20
21
|
"author": "next-bin",
|