@unitsvc/cc-helper 1.3.7 → 1.4.1
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 +41 -2
- package/README.md +53 -14
- package/package.json +1 -1
package/README-zh.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[**English**](./README.md) | [**简体中文**](./README-zh.md)
|
|
6
6
|
|
|
7
|
-
> 一键解锁 Claude Code 隐藏超能力:`/loop`、`/btw`、`/keybindings`、`/context1m`、`automode` 和 `MCPSearch`
|
|
7
|
+
> 一键解锁 Claude Code 隐藏超能力:`/loop`、`/btw`、`/keybindings`、`/context1m`、`automode`、`monitor` 和 `MCPSearch`
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
| Claude Code | v2.1.71+ |
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install -g @anthropic-ai/claude-code@v2.1.
|
|
19
|
+
npm install -g @anthropic-ai/claude-code@v2.1.104
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## 安装
|
|
@@ -56,6 +56,7 @@ npx @unitsvc/cc-helper enable keybindings
|
|
|
56
56
|
npx @unitsvc/cc-helper enable toolsearch
|
|
57
57
|
npx @unitsvc/cc-helper enable context1m # 别名: 1m, 1M
|
|
58
58
|
npx @unitsvc/cc-helper enable automode # 所有模型的自动模式
|
|
59
|
+
npx @unitsvc/cc-helper enable monitor # 流式事件监控(v2.1.100+)
|
|
59
60
|
|
|
60
61
|
# 查看状态
|
|
61
62
|
npx @unitsvc/cc-helper status
|
|
@@ -75,6 +76,7 @@ npx @unitsvc/cc-helper disable
|
|
|
75
76
|
| `enable toolsearch` | 启用 toolsearch(需要显式激活) |
|
|
76
77
|
| `enable context1m` | 启用 1M 上下文(v2.1.76+) |
|
|
77
78
|
| `enable automode` | 启用所有模型的自动模式(v2.1.75+) |
|
|
79
|
+
| `enable monitor` | 启用 Monitor 流式事件监控(v2.1.100+) |
|
|
78
80
|
| `disable` | 恢复原始状态 |
|
|
79
81
|
| `status` | 查看当前状态及版本要求 |
|
|
80
82
|
|
|
@@ -385,6 +387,42 @@ npx @unitsvc/cc-helper enable automode
|
|
|
385
387
|
| `CC_HELPER_AUTO_MODE_MODEL` | 自定义分类器模型 |
|
|
386
388
|
| `ANTHROPIC_DEFAULT_HAIKU_MODEL` | 未指定时的回退模型 |
|
|
387
389
|
|
|
390
|
+
### Monitor
|
|
391
|
+
|
|
392
|
+
启用 Monitor 工具用于流式事件监控。
|
|
393
|
+
|
|
394
|
+
**为什么启用?** Claude Code 通过远程配置(`tengu_amber_sentinel` 标志)控制 Monitor 功能。此 patch 绕过远程控制,在本地启用该功能。
|
|
395
|
+
|
|
396
|
+
**优势:**
|
|
397
|
+
|
|
398
|
+
- **流式监控**:实时监控日志、文件变化、API 事件
|
|
399
|
+
- **事件驱动工作流**:事件到达时立即响应
|
|
400
|
+
- **持久监控**:在会话期间运行长期监控任务
|
|
401
|
+
|
|
402
|
+
**要求:**
|
|
403
|
+
|
|
404
|
+
- Claude Code v2.1.100 或更高版本
|
|
405
|
+
|
|
406
|
+
```bash
|
|
407
|
+
npx @unitsvc/cc-helper enable monitor
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
**示例:**
|
|
411
|
+
|
|
412
|
+
```bash
|
|
413
|
+
# 监控日志文件中的错误
|
|
414
|
+
tail -f /var/log/app.log | grep --line-buffered "ERROR"
|
|
415
|
+
|
|
416
|
+
# 监控文件变化
|
|
417
|
+
inotifywait -m --format '%e %f' /watched/dir
|
|
418
|
+
|
|
419
|
+
# 轮询 GitHub 获取新的 PR 评论
|
|
420
|
+
while true; do
|
|
421
|
+
gh api "repos/owner/repo/issues/123/comments?since=$last" --jq '.[].body'
|
|
422
|
+
sleep 30
|
|
423
|
+
done
|
|
424
|
+
```
|
|
425
|
+
|
|
388
426
|
---
|
|
389
427
|
|
|
390
428
|
## 功能特点
|
|
@@ -395,6 +433,7 @@ npx @unitsvc/cc-helper enable automode
|
|
|
395
433
|
| 工具搜索 | 可选 `/toolsearch` 用于第三方 API 代理 |
|
|
396
434
|
| 1M 上下文 | 可选 `/context1m` 用于 1M 上下文(v2.1.76+) |
|
|
397
435
|
| 自动模式 | 可选 `automode` 用于所有模型(v2.1.75+) |
|
|
436
|
+
| Monitor | 可选 `monitor` 用于流式事件监控(v2.1.100+) |
|
|
398
437
|
| Provider 配置 | `plan` 命令支持 vault 加密存储 |
|
|
399
438
|
| 密钥管理 | `vault` 命令安全管理密钥 |
|
|
400
439
|
| 多环境支持 | `env` 命令环境切换 |
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[**English**](./README.md) | [**简体中文**](./README-zh.md)
|
|
6
6
|
|
|
7
|
-
> One command to unlock Claude Code's hidden superpowers: `/loop`, `/btw`, `/keybindings`, `/context1m`, `automode`, and `MCPSearch`
|
|
7
|
+
> One command to unlock Claude Code's hidden superpowers: `/loop`, `/btw`, `/keybindings`, `/context1m`, `automode`, `monitor`, and `MCPSearch`
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
| Claude Code | v2.1.71+ |
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install -g @anthropic-ai/claude-code@v2.1.
|
|
19
|
+
npm install -g @anthropic-ai/claude-code@v2.1.104
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Installation
|
|
@@ -56,6 +56,7 @@ npx @unitsvc/cc-helper enable keybindings
|
|
|
56
56
|
npx @unitsvc/cc-helper enable toolsearch
|
|
57
57
|
npx @unitsvc/cc-helper enable context1m # or: 1m, 1M
|
|
58
58
|
npx @unitsvc/cc-helper enable automode # auto-mode for all models
|
|
59
|
+
npx @unitsvc/cc-helper enable monitor # streaming event monitoring (v2.1.100+)
|
|
59
60
|
|
|
60
61
|
# Check status
|
|
61
62
|
npx @unitsvc/cc-helper status
|
|
@@ -75,6 +76,7 @@ npx @unitsvc/cc-helper disable
|
|
|
75
76
|
| `enable toolsearch` | Enable toolsearch (requires explicit activation) |
|
|
76
77
|
| `enable context1m` | Enable 1M context for Claude Opus (v2.1.76+) |
|
|
77
78
|
| `enable automode` | Enable auto-mode for all models (v2.1.75+) |
|
|
79
|
+
| `enable monitor` | Enable Monitor tool for streaming events (v2.1.100+) |
|
|
78
80
|
| `disable` | Restore original |
|
|
79
81
|
| `status` | Check current status with version requirements |
|
|
80
82
|
|
|
@@ -385,22 +387,59 @@ npx @unitsvc/cc-helper enable automode
|
|
|
385
387
|
| `CC_HELPER_AUTO_MODE_MODEL` | Custom classifier model |
|
|
386
388
|
| `ANTHROPIC_DEFAULT_HAIKU_MODEL` | Fallback model if not specified |
|
|
387
389
|
|
|
390
|
+
### Monitor
|
|
391
|
+
|
|
392
|
+
Enable the Monitor tool for streaming event monitoring.
|
|
393
|
+
|
|
394
|
+
**Why Enable?** Claude Code controls the Monitor feature via remote config (`tengu_amber_sentinel` flag). This patch bypasses remote control and enables it locally.
|
|
395
|
+
|
|
396
|
+
**Benefits:**
|
|
397
|
+
|
|
398
|
+
- **Streaming monitoring**: Watch logs, file changes, API events in real-time
|
|
399
|
+
- **Event-driven workflow**: Respond to events as they arrive
|
|
400
|
+
- **Persistent monitoring**: Run long-lived monitors during the session
|
|
401
|
+
|
|
402
|
+
**Requirements:**
|
|
403
|
+
|
|
404
|
+
- Claude Code v2.1.100 or higher
|
|
405
|
+
|
|
406
|
+
```bash
|
|
407
|
+
npx @unitsvc/cc-helper enable monitor
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
**Examples:**
|
|
411
|
+
|
|
412
|
+
```bash
|
|
413
|
+
# Monitor log file for errors
|
|
414
|
+
tail -f /var/log/app.log | grep --line-buffered "ERROR"
|
|
415
|
+
|
|
416
|
+
# Watch for file changes
|
|
417
|
+
inotifywait -m --format '%e %f' /watched/dir
|
|
418
|
+
|
|
419
|
+
# Poll GitHub for new PR comments
|
|
420
|
+
while true; do
|
|
421
|
+
gh api "repos/owner/repo/issues/123/comments?since=$last" --jq '.[].body'
|
|
422
|
+
sleep 30
|
|
423
|
+
done
|
|
424
|
+
```
|
|
425
|
+
|
|
388
426
|
---
|
|
389
427
|
|
|
390
428
|
## Features
|
|
391
429
|
|
|
392
|
-
| Feature | Description
|
|
393
|
-
| ------------------ |
|
|
394
|
-
| One-command enable | Enable `/loop`, `/btw`, `/keybindings` with one command
|
|
395
|
-
| Tool Search | Optional `/toolsearch` for third-party API proxies
|
|
396
|
-
| 1M Context | Optional `/context1m` for 1M context (v2.1.76+)
|
|
397
|
-
| Auto Mode | Optional `automode` for all models (v2.1.75+)
|
|
398
|
-
|
|
|
399
|
-
|
|
|
400
|
-
|
|
|
401
|
-
|
|
|
402
|
-
|
|
|
403
|
-
|
|
|
430
|
+
| Feature | Description |
|
|
431
|
+
| ------------------ | ------------------------------------------------------------- |
|
|
432
|
+
| One-command enable | Enable `/loop`, `/btw`, `/keybindings` with one command |
|
|
433
|
+
| Tool Search | Optional `/toolsearch` for third-party API proxies |
|
|
434
|
+
| 1M Context | Optional `/context1m` for 1M context (v2.1.76+) |
|
|
435
|
+
| Auto Mode | Optional `automode` for all models (v2.1.75+) |
|
|
436
|
+
| Monitor | Optional `monitor` for streaming event monitoring (v2.1.100+) |
|
|
437
|
+
| Provider config | `plan` command with vault-based API key storage |
|
|
438
|
+
| Secret management | `vault` command for secure secret storage |
|
|
439
|
+
| Multi-environment | `env` command for environment switching |
|
|
440
|
+
| Git sync | `sync` command for configuration sync |
|
|
441
|
+
| Easy restore | Automatic backup and restore |
|
|
442
|
+
| Zero dependencies | No runtime dependencies |
|
|
404
443
|
|
|
405
444
|
### Screenshots
|
|
406
445
|
|