feat(native): make Bun the sole packaging engine, retire Node SEA - #9
Merged
Conversation
added 6 commits
August 25, 2026 04:19
Delete the SEA orchestrator (build.mjs), blob/inject steps, the build:native:sea/release scripts, and the blob/sea-config path helpers. Bun (build:native:bun) is now the only packaged engine.
- Remove the SEA build chain (build.mjs, 02-sea-blob, 03-inject, build:native:sea/release scripts, blob/sea-config path helpers) - Updater: drop the node:sea detection and the manifest platforms section — the bun section is the only source of update artifacts, and the stage default engine is bun - produce-manifest emits a bun-only manifest and fails on any missing target; native-manifest makes platforms optional and drops selectPlatformEntry - CI: the native bundle matrix now builds Bun binaries only; flake.nix compiles build:native:bun offline - Retire packages/kimi-build (its only consumer was the SEA injector) - Docs: Bun is the packaging engine everywhere (CONTRIBUTING en/zh, AGENTS.md); changeset for the engine switch
- release-artifacts tests now describe the bun-only manifest: full coverage required, missing targets listed in the error, platforms section gone - pin session_id in the builtin-tools projection test (sibling of the earlier isolation fix) - native-manifest test: bun section is the only lookup
2 tasks
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.
Related Issue
执行 SEA 退役(runbook 阶段 2+3 合并执行)。用户群体极小(维护者 + 数人),保留期失去意义,直接一次切换。Follow-up to #5。
Problem
Bun 已是事实上的构建/发布引擎,但仓库里还并存着完整的 Node SEA 构建链、升级端的 SEA 检测分支和 manifest 的 platforms 段——双引擎并存的维护成本(两套构建、两套升级路径、CI 双 job)由所有人承担。
What changed
build.mjs、02-sea-blob.mjs、03-inject.mjs、build:native:sea/release脚本、blob/sea-config 路径助手;build:native:bun成为唯一打包引擎node:sea检测(source.ts、native-assets.ts);manifest 的platforms段退场(schema optional、selectPlatformEntry删除),bun段是唯一更新产物来源;stage 默认引擎bunbun段,缺失任一目标即失败_native-build.yml只保留 Bun 六目标矩阵(SEA job 与build-sea/build-bun输入删除)build:native:bun验证
build:native:bun161.5MB ✓、冒烟 ✓build:native:bun,如有沙箱特有问题按轮次修复Checklist