@unitsvc/cc-helper 1.0.16 → 1.0.17

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 (3) hide show
  1. package/README-zh.md +75 -28
  2. package/README.md +75 -28
  3. package/package.json +1 -1
package/README-zh.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  [**English**](./README.md) | **简体中文**
8
8
 
9
- > ⚡ 一键启用 Claude Code CLI 的隐藏功能:`/loop`、`/btw` 和 `MCPSearch`
9
+ > ⚡ 一键启用 Claude Code CLI 的隐藏功能:`/loop`、`/btw`、`/keybindings`、`/context1m` 和 `MCPSearch`
10
10
 
11
11
  ## 环境要求
12
12
 
@@ -14,19 +14,21 @@
14
14
  - Claude Code v2.1.71+
15
15
 
16
16
  ```bash
17
- npm install -g @anthropic-ai/claude-code@v2.1.71
17
+ npm install -g @anthropic-ai/claude-code@v2.1.76
18
18
  ```
19
19
 
20
20
  ## 使用方法
21
21
 
22
22
  ```bash
23
- # 启用默认功能(/loop, /btw)
23
+ # 启用默认功能(/loop, /btw, /keybindings
24
24
  npx @unitsvc/cc-helper enable
25
25
 
26
26
  # 启用特定功能
27
27
  npx @unitsvc/cc-helper enable loop
28
28
  npx @unitsvc/cc-helper enable btw
29
+ npx @unitsvc/cc-helper enable keybindings
29
30
  npx @unitsvc/cc-helper enable toolsearch
31
+ npx @unitsvc/cc-helper enable context1m # 别名: 1m, 1M
30
32
 
31
33
  # 查看状态
32
34
  npx @unitsvc/cc-helper status
@@ -37,29 +39,16 @@ npx @unitsvc/cc-helper disable
37
39
 
38
40
  ### 命令说明
39
41
 
40
- | 命令 | 说明 |
41
- |---------|-------------|
42
- | `enable` | 启用 `/loop` 和 `/btw` 功能(默认,不包含 toolsearch) |
43
- | `enable loop` | 仅启用 `/loop` 功能 |
44
- | `enable btw` | 仅启用 `/btw` 功能 |
45
- | `enable toolsearch` | 启用 toolsearch 功能(需要显式激活) |
46
- | `disable` | 恢复原始状态 |
47
- | `status` | 查看当前状态及版本要求 |
48
-
49
- ## 赞助
50
-
51
- <table>
52
- <tr>
53
- <td width="60" valign="middle">
54
- <img src="https://img.shields.io/badge/🚀-GLM-blue?style=for-the-badge" alt="GLM"/>
55
- </td>
56
- <td valign="middle">
57
- <b>GLM Coding Plan</b><br/>
58
- <sub>Full support for <b>Claude Code</b>, <b>Cline</b>, and <b>20+ top coding tools</b> — starting at just <b>$10/month</b></sub><br/>
59
- <a href="https://z.ai/subscribe?ic=1YVKN4IRCQ"><b>👉 Subscribe now — limited-time deal!</b></a>
60
- </td>
61
- </tr>
62
- </table>
42
+ | 命令 | 说明 |
43
+ | -------------------- | -------------------------------------------------------------- |
44
+ | `enable` | 启用 `/loop`、`/btw` 和 `/keybindings` 功能(默认) |
45
+ | `enable loop` | 仅启用 `/loop` 功能 |
46
+ | `enable btw` | 仅启用 `/btw` 功能 |
47
+ | `enable keybindings` | 仅启用 `/keybindings` 功能 |
48
+ | `enable toolsearch` | 启用 toolsearch 功能(需要显式激活) |
49
+ | `enable context1m` | 启用 1M 上下文窗口,用于 Claude Opus(v2.1.76+,需要显式激活) |
50
+ | `disable` | 恢复原始状态 |
51
+ | `status` | 查看当前状态及版本要求 |
63
52
 
64
53
  ---
65
54
 
@@ -188,15 +177,73 @@ ENABLE_TOOL_SEARCH=true claude
188
177
  }
189
178
  ```
190
179
 
180
+ ## 什么是 `/keybindings`?
181
+
182
+ `/keybindings` 启用自定义键盘快捷键支持。在 `~/.claude/keybindings.json` 中配置您的键绑定。
183
+
184
+ ### 配置方法
185
+
186
+ 创建或编辑 `~/.claude/keybindings.json`:
187
+
188
+ ```json
189
+ {
190
+ "submit": ["ctrl+s"],
191
+ "interrupt": ["ctrl+c"],
192
+ "custom_commands": {
193
+ "ctrl+shift+l": "/loop 5m check status"
194
+ }
195
+ }
196
+ ```
197
+
198
+ ## 什么是 `/context1m`?
199
+
200
+ `/context1m` 为 Claude Opus 模型启用 1M token 上下文窗口。这允许您处理更大的代码库和更长的对话。
201
+
202
+ ### 要求
203
+
204
+ - Claude Code v2.1.76 或更高版本
205
+ - Claude Opus 4+ 模型
206
+ - 可能需要 Pro 计划或官方 API
207
+
208
+ ### 使用方法
209
+
210
+ ```bash
211
+ # 启用 1M 上下文
212
+ npx @unitsvc/cc-helper enable context1m
213
+
214
+ # 或使用别名
215
+ npx @unitsvc/cc-helper enable 1m
216
+ npx @unitsvc/cc-helper enable 1M
217
+ ```
218
+
219
+ ### 扩展思维支持
220
+
221
+ 使用第三方 API 代理时,扩展思维(推理)能力因模型而异:
222
+
223
+ | 模型 | 最大思维链长度 |
224
+ | -------------------- | --------------------- |
225
+ | qwen3.5-plus | 81,920 |
226
+ | qwen3-max-2026-01-23 | 81,920 |
227
+ | kimi-k2.5 | 81,920 |
228
+ | glm-5 | 32,768 |
229
+ | glm-4.7 | 32,768 |
230
+ | MiniMax-M2.5 | 32,768(思维链+回复) |
231
+ | qwen3-coder-next | 不支持思考模式 |
232
+ | qwen3-coder-plus | 不支持思考模式 |
233
+
191
234
  ## 功能特点
192
235
 
193
- - 一键启用 `/loop`、`/btw` 功能(toolsearch 需要显式激活)
236
+ - 一键启用 `/loop`、`/btw`、`/keybindings` 功能
237
+ - 可选 `/toolsearch` 用于第三方 API 代理
238
+ - 可选 `/context1m` 用于 1M 上下文窗口(v2.1.76+)
194
239
  - 可单独启用特定功能
195
240
  - 轻松恢复原始状态
196
241
  - 自动备份原文件
242
+ - 自动禁用 npm 弃用警告
243
+ - 自动跳过入门引导流程
197
244
  - 零运行时依赖
198
245
  - 跨平台支持
199
- - 支持版本:2.1.712.1.72、2.1.73、2.1.74
246
+ - 支持版本:2.1.71 - 2.1.76+
200
247
 
201
248
  ### 示例
202
249
 
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  **English** | [**简体中文**](./README-zh.md)
8
8
 
9
- > ⚡ Enable hidden features in Claude Code CLI with one command: `/loop`, `/btw`, and `MCPSearch`
9
+ > ⚡ Enable hidden features in Claude Code CLI with one command: `/loop`, `/btw`, `/keybindings`, `/context1m`, and `MCPSearch`
10
10
 
11
11
  ## Requirements
12
12
 
@@ -14,19 +14,21 @@
14
14
  - Claude Code v2.1.71+
15
15
 
16
16
  ```bash
17
- npm install -g @anthropic-ai/claude-code@v2.1.71
17
+ npm install -g @anthropic-ai/claude-code@v2.1.76
18
18
  ```
19
19
 
20
20
  ## Usage
21
21
 
22
22
  ```bash
23
- # Enable default features (/loop, /btw)
23
+ # Enable default features (/loop, /btw, /keybindings)
24
24
  npx @unitsvc/cc-helper enable
25
25
 
26
26
  # Enable specific features
27
27
  npx @unitsvc/cc-helper enable loop
28
28
  npx @unitsvc/cc-helper enable btw
29
+ npx @unitsvc/cc-helper enable keybindings
29
30
  npx @unitsvc/cc-helper enable toolsearch
31
+ npx @unitsvc/cc-helper enable context1m # or: 1m, 1M
30
32
 
31
33
  # Check status
32
34
  npx @unitsvc/cc-helper status
@@ -37,14 +39,16 @@ npx @unitsvc/cc-helper disable
37
39
 
38
40
  ### Commands
39
41
 
40
- | Command | Description |
41
- | ------------------- | ----------------------------------------------------------------- |
42
- | `enable` | Enable `/loop` and `/btw` features (default, excludes toolsearch) |
43
- | `enable loop` | Enable only `/loop` feature |
44
- | `enable btw` | Enable only `/btw` feature |
45
- | `enable toolsearch` | Enable toolsearch feature (requires explicit activation) |
46
- | `disable` | Restore original |
47
- | `status` | Check current status with version requirements |
42
+ | Command | Description |
43
+ | -------------------- | -------------------------------------------------------------------- |
44
+ | `enable` | Enable `/loop`, `/btw`, and `/keybindings` features (default) |
45
+ | `enable loop` | Enable only `/loop` feature |
46
+ | `enable btw` | Enable only `/btw` feature |
47
+ | `enable keybindings` | Enable only `/keybindings` feature |
48
+ | `enable toolsearch` | Enable toolsearch feature (requires explicit activation) |
49
+ | `enable context1m` | Enable 1M context window for Claude Opus (v2.1.76+, explicit opt-in) |
50
+ | `disable` | Restore original |
51
+ | `status` | Check current status with version requirements |
48
52
 
49
53
  ### Proxy Support
50
54
 
@@ -58,21 +62,6 @@ npx @unitsvc/cc-helper --proxy enable
58
62
  npx @unitsvc/cc-helper --proxy https://your-proxy.com enable
59
63
  ```
60
64
 
61
- ## Sponsors
62
-
63
- <table>
64
- <tr>
65
- <td width="60" valign="middle">
66
- <img src="https://img.shields.io/badge/🚀-GLM-blue?style=for-the-badge" alt="GLM"/>
67
- </td>
68
- <td valign="middle">
69
- <b>GLM Coding Plan</b><br/>
70
- <sub>Full support for <b>Claude Code</b>, <b>Cline</b>, and <b>20+ top coding tools</b> — starting at just <b>$10/month</b></sub><br/>
71
- <a href="https://z.ai/subscribe?ic=1YVKN4IRCQ"><b>👉 Subscribe now — limited-time deal!</b></a>
72
- </td>
73
- </tr>
74
- </table>
75
-
76
65
  ---
77
66
 
78
67
  ## What is `/loop`?
@@ -200,15 +189,73 @@ You can also disable the `MCPSearch` tool specifically using the `disallowedTool
200
189
  }
201
190
  ```
202
191
 
192
+ ## What is `/keybindings`?
193
+
194
+ `/keybindings` enables custom keyboard shortcuts support. Configure your keybindings in `~/.claude/keybindings.json`.
195
+
196
+ ### Configuration
197
+
198
+ Create or edit `~/.claude/keybindings.json`:
199
+
200
+ ```json
201
+ {
202
+ "submit": ["ctrl+s"],
203
+ "interrupt": ["ctrl+c"],
204
+ "custom_commands": {
205
+ "ctrl+shift+l": "/loop 5m check status"
206
+ }
207
+ }
208
+ ```
209
+
210
+ ## What is `/context1m`?
211
+
212
+ `/context1m` enables 1M token context window for Claude Opus models. This allows you to work with much larger codebases and conversations.
213
+
214
+ ### Requirements
215
+
216
+ - Claude Code v2.1.76 or higher
217
+ - Claude Opus 4+ model
218
+ - May require Pro plan or first-party API
219
+
220
+ ### Usage
221
+
222
+ ```bash
223
+ # Enable 1M context
224
+ npx @unitsvc/cc-helper enable context1m
225
+
226
+ # Or use aliases
227
+ npx @unitsvc/cc-helper enable 1m
228
+ npx @unitsvc/cc-helper enable 1M
229
+ ```
230
+
231
+ ### Extended Thinking Support
232
+
233
+ When using third-party API proxies, extended thinking (reasoning) capabilities vary by model:
234
+
235
+ | Model | Max Thinking Tokens |
236
+ | -------------------- | ---------------------------- |
237
+ | qwen3.5-plus | 81,920 |
238
+ | qwen3-max-2026-01-23 | 81,920 |
239
+ | kimi-k2.5 | 81,920 |
240
+ | glm-5 | 32,768 |
241
+ | glm-4.7 | 32,768 |
242
+ | MiniMax-M2.5 | 32,768 (thinking + response) |
243
+ | qwen3-coder-next | Not supported |
244
+ | qwen3-coder-plus | Not supported |
245
+
203
246
  ## Features
204
247
 
205
- - Enable `/loop`, `/btw`, and toolsearch with one command
248
+ - Enable `/loop`, `/btw`, `/keybindings` with one command
249
+ - Optional `/toolsearch` for third-party API proxies
250
+ - Optional `/context1m` for 1M context window (v2.1.76+)
206
251
  - Enable specific features individually
207
252
  - Easy restore functionality
208
253
  - Automatic backup
254
+ - Auto-disable npm deprecation warning
255
+ - Auto-skip onboarding flow
209
256
  - Zero runtime dependencies
210
257
  - Cross-platform support
211
- - Version support: 2.1.71, 2.1.72, 2.1.73, 2.1.74
258
+ - Version support: 2.1.71 - 2.1.76+
212
259
 
213
260
  ### Examples
214
261
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitsvc/cc-helper",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Claude Code /loop feature bypass tool",
5
5
  "main": "dist/index.js",
6
6
  "bin": {