fix: support flattened SEA layout in v2.1.229+ (unblocks 2.1.229–2.1.237) - #11
Open
y-cruce wants to merge 1 commit into
Open
fix: support flattened SEA layout in v2.1.229+ (unblocks 2.1.229–2.1.237)#11y-cruce wants to merge 1 commit into
y-cruce wants to merge 1 commit into
Conversation
Anthropic flattened the embedded file layout starting v2.1.229: cli.js now sits at the extract root instead of src/entrypoints/cli.js, so extraction fails with ENOENT on 2.1.229 and later. Fall back to the new path when the legacy one is absent. Also add curl --retry to binary downloads: transient CDN SSL errors (curl exit 35) otherwise fail the whole multi-platform build.
y-cruce
force-pushed
the
fix/sea-layout-2.1.224
branch
from
August 20, 2026 03:19
7262e31 to
e2003a2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10
改动
scripts/fetch-and-process.mjs,共 6 行:cli.js从src/entrypoints/cli.js移到了提取根目录。旧路径存在则沿用(兼容 ≤2.1.228),否则回退到根目录。--retry 3 --retry-delay 2 --retry-all-errors,避免 CDN 瞬时 SSL 错误(curl exit 35)拖垮整个多平台构建。布局分界(二分实测 darwin-arm64 二进制)
src/entrypoints/cli.js)cli.js)即 2.1.225–2.1.228 用现有脚本也能构建,2.1.229 起必须本修复。
验证
node cli.js --version正常,交互会话正常注:分支名沿用 fix/sea-layout-2.1.224(提 PR 时初判分界为 224,后经二分定位更正为 229)。