Skip to content

Commit d88a7a3

Browse files
authored
Merge branch 'claude-code-best:main' into main
2 parents 4f74daf + c80e593 commit d88a7a3

192 files changed

Lines changed: 8983 additions & 1940 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,29 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
ci:
1114
runs-on: ubuntu-latest
1215

1316
steps:
14-
- uses: actions/checkout@v4
15-
16-
- uses: oven-sh/setup-bun@v2
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2, 2026-04-25
18+
env:
19+
GIT_CONFIG_COUNT: 2
20+
GIT_CONFIG_KEY_0: init.defaultBranch
21+
GIT_CONFIG_VALUE_0: main
22+
GIT_CONFIG_KEY_1: advice.defaultBranchName
23+
GIT_CONFIG_VALUE_1: "false"
24+
25+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2, 2026-04-25
1726
with:
1827
bun-version: latest
1928

2029
- name: Install dependencies
30+
env:
31+
CLAUDE_CODE_SKIP_CHROME_MCP_SETUP: "1"
2132
run: bun install --frozen-lockfile
2233

2334
- name: Type check
@@ -26,12 +37,17 @@ jobs:
2637
- name: Test with Coverage
2738
run: |
2839
set -o pipefail
29-
bun test --coverage --coverage-reporter=lcov 2>&1 | grep -vE '^\s*(\(pass\)|\(skip\))' | sed '/^.*\/__tests__\/.*:$/d' | cat -s
40+
bun test --coverage --coverage-reporter lcov --coverage-dir coverage 2>&1 | grep -vE '^\s*(\(pass\)|\(skip\))' | sed '/^.*\/__tests__\/.*:$/d' | cat -s
41+
test -s coverage/lcov.info
42+
grep -q '^SF:' coverage/lcov.info
3043
3144
- name: Upload coverage to Codecov
32-
uses: codecov/codecov-action@v5
45+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
46+
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5, 2026-04-25
3347
with:
34-
file: ./coverage/lcov.info
48+
fail_ci_if_error: true
49+
files: ./coverage/lcov.info
50+
disable_search: true
3551
token: ${{ secrets.CODECOV_TOKEN }}
3652

3753
- name: Build

.github/workflows/publish-npm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
publish:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2, 2026-04-25
2424
with:
2525
ref: ${{ github.event.inputs.version || github.ref }}
2626

27-
- uses: actions/setup-node@v6
27+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6, 2026-04-25
2828
with:
2929
node-version: "24"
3030
registry-url: "https://registry.npmjs.org"
3131

3232
- name: Setup Bun
33-
uses: oven-sh/setup-bun@v2
33+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2, 2026-04-25
3434
with:
3535
bun-version: latest
3636

@@ -66,7 +66,7 @@ jobs:
6666
} >> "$GITHUB_OUTPUT"
6767
6868
- name: Create GitHub Release
69-
uses: softprops/action-gh-release@v2
69+
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2, 2026-04-25
7070
with:
7171
name: ${{ github.event.inputs.version || github.ref_name }}
7272
body: |

.github/workflows/release-rcs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717
packages: write
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2, 2026-04-25
2121

2222
- name: Login to GHCR
23-
uses: docker/login-action@v3
23+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3, 2026-04-25
2424
with:
2525
registry: ${{ env.REGISTRY }}
2626
username: ${{ github.actor }}
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Set up Docker Buildx
30-
uses: docker/setup-buildx-action@v3
30+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3, 2026-04-25
3131

3232
- name: Extract version
3333
id: version
@@ -47,7 +47,7 @@ jobs:
4747
echo "tags=$TAGS" >> "$GITHUB_OUTPUT"
4848
4949
- name: Build Docker image
50-
uses: docker/build-push-action@v5
50+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5, 2026-04-25
5151
with:
5252
context: .
5353
file: packages/remote-control-server/Dockerfile

.github/workflows/update-contributors.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
update:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2, 2026-04-25
1515
with:
1616
token: ${{ secrets.GITHUB_TOKEN }}
1717

18-
- uses: jaywcjlove/github-action-contributors@main
18+
- uses: jaywcjlove/github-action-contributors@86707f6d4c2469ce6b46bc3367253ebd41ee242c # main, 2026-04-25
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121
output: "contributors.svg"
2222
repository: ${{ github.repository }}
2323

24-
- uses: stefanzweifel/git-auto-commit-action@v5
24+
- uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5, 2026-04-25
2525
with:
2626
commit_message: "docs: update contributors"
2727
file_pattern: "contributors.svg"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ ccb update # 更新到最新版本
5555
CLAUDE_BRIDGE_BASE_URL=https://remote-control.claude-code-best.win/ CLAUDE_BRIDGE_OAUTH_TOKEN=test-my-key ccb --remote-control # 我们有自部署的远程控制
5656
```
5757

58+
> **安装/更新失败?**`npm rm -g claude-code-best` 清理旧版本,再 `npm i -g claude-code-best@latest`。仍失败则指定版本号:`npm i -g claude-code-best@<版本号>`
59+
5860
## ⚡ 快速开始(源码版)
5961

6062
### ⚙️ 环境要求

0 commit comments

Comments
 (0)