feat(seed): seed 适配器优先用 relay 二进制,fallback 回 seed#237
Closed
sensuossss wants to merge 2 commits into
Closed
Conversation
Seed 已升级为 Relay,seed 适配器现在优先探测 `relay` 二进制; 找不到时 fallback 回 `seed`。适配器 id 保持 'seed' 不变,现有 bot 配置无需改动。 - createSeedAdapter: relay 优先 + seed fallback,resumeBin 跟随实际二进制 - 显示名统一为 "Seed/Relay"(setup / worker / card-builder 三处 + i18n) - session-discovery: seed 过滤器也匹配 relay 进程(同 mtr/opencode 模式) 同时清理了注释中的内部 npm 包名引用(@bytedance-*、@byted/*、@byted-sami/*)。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
createSeedAdapter 用 pathOverride 时,之前 binName 硬编码 seed,导致 override 到 relay 二进制时,closed-session card 展示 seed --resume,用户复制去跑会 从 seed 的默认 runtime 找 transcript,而真实会话写在 relay runtime 里。 修复:新增 detectBinName(),根据二进制 basename + realpath 后的包路径 (scoped package @*-relay 或裸 relay 目录)识别是 seed 还是 relay 变种, resumeBin / dataDir 都跟实际二进制对齐。同时加了 4 个回归测试。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Seed CLI 已升级为 Relay CLI,seed 适配器现在优先探测
relay二进制,找不到时 fallback 回seed。适配器 id 保持'seed'不变,现有 bot 配置无需任何改动。主要改动
createSeedAdapter:无pathOverride时先探测relay,找到即用 relay 的数据目录 +resumeBin: 'relay';否则 fallback 回seed,行为与之前一致filterCliId === 'seed'时也匹配 relay 进程(同 mtr/opencode 模式),避免/adopt和 wrapperCli pid 解析在 seed bot 用 relay 二进制时失效附带
验证
pnpm build通过pnpm test300 个测试文件、4551 个测试全绿