docs(v2): C25 DirectConnect 与上游代理 (YAO-124) - #66
Merged
Conversation
新增章节落地 docs/30-DirectConnect-与上游代理.md(已在 spec §9.3.1 行 583 NN=30 + scripts/check-code-ratio.ts NEW_CHAPTER_FILES 登记, 承接 C24 NN=29)。 风格双亲(spec §5): - v1-20 API 调用与错误恢复(错误分类、握手/重连、ConnectionState 状态机) - v1-12 工具系统调度对称性(DirectConnect 客户端 vs UpstreamProxy 服务端) 保留/改写/新增统计(spec §9.3.1): - 保留 0(v1 未覆盖 server/ 与 upstreamproxy/ 任何一面) - 改写 0(无 v1 重叠章节可改写) - 新增 100%(全新对称叙事:DirectConnect 三文件 358 行 + UpstreamProxy 两文件 740 行 + useDirectConnect 229 行) CI 闸(本地通过): - C-3 源码块占比 24.9% (< 25%) - C-4 标题 15/15 全合规 - no-frontmatter 通过 - no-revision-codenames 通过 - no-spec-jargon 通过 - no-fuzzy 3 处 warning(不阻塞 CI,reviewer 复核) - check-source-commits 全部指向 290fdc94 Co-authored-by: multica-agent <github@multica.ai>
OC-R review feedback: - §3.2: clarify that prctl(PR_SET_DUMPABLE,0) only runs under Linux + Bun runtime; CCR Node path does not execute it. - §3.5: lazy import in entrypoints/init.ts only checks CLAUDE_CODE_REMOTE; CCR_UPSTREAM_PROXY_ENABLED gate is inside initUpstreamProxy itself, not the import condition. Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
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.
概要
新增 C25 章节《DirectConnect 与上游代理》落地
docs/30-DirectConnect-与上游代理.md(spec §9.3.1 行 583,NN=30,承接 C24 NN=29)。把server/(DirectConnect 三文件 358 行)和upstreamproxy/(两文件 740 行)+hooks/useDirectConnect.ts(229 行)放在一篇里,按「同一份 CLI 在两条对称方向上的复用」这条主线讲。风格双亲(spec §5)
DirectConnectSessionManager、§2.3 重连闭环保留 / 改写 / 新增统计(spec §9.3.1)
server/与upstreamproxy/任何一面Manifest diff 摘要
docs/30-DirectConnect-与上游代理.md(+546 行)scripts/check-code-ratio.tsNEW_CHAPTER_FILES已包含docs/30-DirectConnect-与上游代理.mdCI 闸(本地通过)
290fdc9481a70612bc5823aa4ed225c52c52aad3✅关联
290fdc9481a70612bc5823aa4ed225c52c52aad3只提 PR,不要 merge,请 OC-R 走 review。