update READMEs: Commander.js patch now automated, remove manual instructions

This commit is contained in:
Roger
2026-04-01 10:18:18 +08:00
parent 2a862bb2bd
commit ff43ce0b74
2 changed files with 2 additions and 10 deletions

View File

@@ -87,12 +87,9 @@ Two Anthropic-internal packages that can't be installed from npm:
git clone https://github.com/roger2ai/Claude-Code-Compiled.git
cd Claude-Code-Compiled
# Install dependencies (postinstall auto-creates @ant/* stubs)
# Install dependencies (postinstall auto-creates stubs + patches Commander.js)
bun install
# Patch Commander.js (multi-char short flags not supported upstream)
# See docs/BUILD.md §4.1 for details — needs re-apply after bun install
# Build
bun build shims/macro.ts src/main.tsx --target=bun --outdir=./dist
@@ -236,5 +233,4 @@ All `@ant/*` package references are behind `feature()` guards and tree-shaken at
2. **API key required**`ANTHROPIC_API_KEY` must be set for actual queries
3. **macOS Keychain** — falls back to plaintext file on Linux
4. **Sandbox on WSL2** — requires `apt install bubblewrap socat` for sandbox features
5. **Commander.js patch** — multi-character short flags (`-d2e`) need a manual patch to `node_modules` after each `bun install`

View File

@@ -87,12 +87,9 @@
git clone https://github.com/roger2ai/Claude-Code-Compiled.git
cd Claude-Code-Compiled
# 安装依赖postinstall 自动创建 @ant/* stub
# 安装依赖postinstall 自动创建 stub + 修补 Commander.js
bun install
# 修补 Commander.js多字符短标志不支持
# 详见 docs/BUILD.md §4.1 — 每次 bun install 后需重新应用
# 编译
bun build shims/macro.ts src/main.tsx --target=bun --outdir=./dist
@@ -236,5 +233,4 @@ claude-code/
2. **需要 API key** — 实际对话必须设置 `ANTHROPIC_API_KEY`
3. **macOS Keychain** — Linux 上回退到明文文件存储
4. **WSL2 沙箱** — 需要 `apt install bubblewrap socat` 才能使用沙箱功能
5. **Commander.js 补丁** — 多字符短标志(`-d2e`)每次 `bun install` 后需手动修补 `node_modules`