Skip to content

Commit ff43ce0

Browse files
committed
update READMEs: Commander.js patch now automated, remove manual instructions
1 parent 2a862bb commit ff43ce0

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,9 @@ Two Anthropic-internal packages that can't be installed from npm:
8787
git clone https://github.com/roger2ai/Claude-Code-Compiled.git
8888
cd Claude-Code-Compiled
8989

90-
# Install dependencies (postinstall auto-creates @ant/* stubs)
90+
# Install dependencies (postinstall auto-creates stubs + patches Commander.js)
9191
bun install
9292

93-
# Patch Commander.js (multi-char short flags not supported upstream)
94-
# See docs/BUILD.md §4.1 for details — needs re-apply after bun install
95-
9693
# Build
9794
bun build shims/macro.ts src/main.tsx --target=bun --outdir=./dist
9895

@@ -236,5 +233,4 @@ All `@ant/*` package references are behind `feature()` guards and tree-shaken at
236233
2. **API key required**`ANTHROPIC_API_KEY` must be set for actual queries
237234
3. **macOS Keychain** — falls back to plaintext file on Linux
238235
4. **Sandbox on WSL2** — requires `apt install bubblewrap socat` for sandbox features
239-
5. **Commander.js patch** — multi-character short flags (`-d2e`) need a manual patch to `node_modules` after each `bun install`
240236

README_CN.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,9 @@
8787
git clone https://github.com/roger2ai/Claude-Code-Compiled.git
8888
cd Claude-Code-Compiled
8989

90-
# 安装依赖(postinstall 自动创建 @ant/* stub)
90+
# 安装依赖(postinstall 自动创建 stub + 修补 Commander.js
9191
bun install
9292

93-
# 修补 Commander.js(多字符短标志不支持)
94-
# 详见 docs/BUILD.md §4.1 — 每次 bun install 后需重新应用
95-
9693
# 编译
9794
bun build shims/macro.ts src/main.tsx --target=bun --outdir=./dist
9895

@@ -236,5 +233,4 @@ claude-code/
236233
2. **需要 API key** — 实际对话必须设置 `ANTHROPIC_API_KEY`
237234
3. **macOS Keychain** — Linux 上回退到明文文件存储
238235
4. **WSL2 沙箱** — 需要 `apt install bubblewrap socat` 才能使用沙箱功能
239-
5. **Commander.js 补丁** — 多字符短标志(`-d2e`)每次 `bun install` 后需手动修补 `node_modules`
240236

0 commit comments

Comments
 (0)