From ff43ce0b7406a976fbb525e2a1724c3719f3872e Mon Sep 17 00:00:00 2001 From: Roger Date: Wed, 1 Apr 2026 10:18:18 +0800 Subject: [PATCH] update READMEs: Commander.js patch now automated, remove manual instructions --- README.md | 6 +----- README_CN.md | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b97f265..a24d50b 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/README_CN.md b/README_CN.md index 0f30f8f..c714fa9 100644 --- a/README_CN.md +++ b/README_CN.md @@ -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`