Skip to content

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
CometixSpace:masterfrom
y-cruce:fix/sea-layout-2.1.224
Open

fix: support flattened SEA layout in v2.1.229+ (unblocks 2.1.229–2.1.237)#11
y-cruce wants to merge 1 commit into
CometixSpace:masterfrom
y-cruce:fix/sea-layout-2.1.224

Conversation

@y-cruce

@y-cruce y-cruce commented Aug 19, 2026

Copy link
Copy Markdown

Fixes #10

改动

scripts/fetch-and-process.mjs,共 6 行:

  1. 适配 v2.1.229+ 扁平化布局cli.jssrc/entrypoints/cli.js 移到了提取根目录。旧路径存在则沿用(兼容 ≤2.1.228),否则回退到根目录。
  2. 下载重试:二进制下载加 --retry 3 --retry-delay 2 --retry-all-errors,避免 CDN 瞬时 SSL 错误(curl exit 35)拖垮整个多平台构建。

布局分界(二分实测 darwin-arm64 二进制)

版本 布局
2.1.224 / 2.1.227 / 2.1.228 旧(src/entrypoints/cli.js
2.1.229+(含 2.1.235、2.1.237) 新(根目录 cli.js

即 2.1.225–2.1.228 用现有脚本也能构建,2.1.229 起必须本修复。

验证

  • 2.1.235 / 2.1.237 全 9 平台 CI 构建通过(运行记录),P1/P3/P5–P9 全部正常应用,AST 校验通过
  • darwin-arm64 本地安装后 node cli.js --version 正常,交互会话正常
  • 2.1.223(旧布局)回归构建通过,走 legacy 分支

注:分支名沿用 fix/sea-layout-2.1.224(提 PR 时初判分界为 224,后经二分定位更正为 229)。

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
y-cruce force-pushed the fix/sea-layout-2.1.224 branch from 7262e31 to e2003a2 Compare August 20, 2026 03:19
@y-cruce y-cruce changed the title fix: support flattened SEA layout in v2.1.224+ (unblocks 2.1.224–2.1.235) fix: support flattened SEA layout in v2.1.229+ (unblocks 2.1.229–2.1.237) Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2.1.229+ 构建失败:官方 SEA 内嵌布局扁平化导致提取路径 ENOENT(当前卡在 2.1.224)

1 participant