feat: 添加 ccb update 命令,支持 npm/bun 自动更新

从 package.json 读取当前版本,查询 npm registry 最新版本,
自动检测安装方式(bun 或 npm)执行全局更新。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-04-20 22:35:57 +08:00
parent 13a0bfc479
commit 96ec96c720
3 changed files with 176 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ npm i -g claude-code-best
ccb # 以 nodejs 打开 claude code
ccb-bun # 以 bun 形态打开
ccb update # 更新到最新版本
CLAUDE_BRIDGE_BASE_URL=https://remote-control.claude-code-best.win/ CLAUDE_BRIDGE_OAUTH_TOKEN=test-my-key ccb --remote-control # 我们有自部署的远程控制
```