feat: [EPIC-GW-02A] 统一网关入口至 neocode 子命令体系 (Single Binary 收敛)#284
Merged
Conversation
Collaborator
Author
|
@xgopilot /review |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Collaborator
Author
|
/review |
|
|
||
| ```bash | ||
| go run ./cmd/neocode-gateway | ||
| go run ./cmd/neocode gateway |
Contributor
There was a problem hiding this comment.
Command migration docs are consistent with the implemented neocode gateway subcommand and url-dispatch skeleton behavior.
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.
🎯 目标 (Motivation & Context)
本 PR 实现了网关重构计划的前置任务 [EPIC-GW-02A],旨在将网关层的相关入口统一收敛至
neocode子命令体系中。 此举严格对齐了 [#249] 中确立的 Single Binary Architecture 原则,彻底消除多二进制散落的问题,为后续的 URL Scheme 唤醒分发(EPIC-GW-02)及网络面拓展打下标准化的拓扑基座。Closes #283 , Relates to #250 and #249
✨ 主要变更 (Key Changes)
1. 新增子命令体系
neocode根命令下新增了gateway与url-dispatch两个子命令。2.
gateway子命令落地cmd/neocode-gateway的 Bootstrap 启动逻辑,未重复造轮子。--listen端口绑定、--log-level级别设置,并完整保留了信号优雅退出机制。3.
url-dispatch唤醒分发器骨架--url参数或位置参数 URL 兜底。planned in EPIC-GW-02。4. 🧹 架构清理 (Break Change / Cleanup)
cmd/neocode-gateway/main.go及相关测试文件,实现代码物理层面的绝对收敛。5. 文档同步
README.md中的网关启动指引(替换为go run ./cmd/neocode gateway)。url-dispatch骨架的示例及后续规划说明。✅ 验收标准清单 (Acceptance Criteria)
neocode gateway --help与neocode url-dispatch --help均可正常输出帮助文档。neocode主链路命令行为未发生回归。go test ./...)全量通过。url-dispatch接收到 mock URL 时,按预期返回待实现提示。🧪 测试与验证结果 (Verification)
在本地已执行并通过以下验证: