Skip to content

fix(cli): resolve UTF-8 comment regression#6

Merged
pionxe merged 18 commits into
mainfrom
release/v2.0-split-build
Apr 24, 2026
Merged

fix(cli): resolve UTF-8 comment regression#6
pionxe merged 18 commits into
mainfrom
release/v2.0-split-build

Conversation

@fennoai
Copy link
Copy Markdown

@fennoai fennoai Bot commented Apr 23, 2026

Requested by @pionxe

Summary

  • Restored garbled Chinese comments in gateway CLI command file to valid UTF-8 text
  • Kept behavior unchanged and validated with targeted internal/cli tests

pionxe and others added 3 commits April 23, 2026 18:48
- 新增 gateway-only 可执行入口 neocode-gateway,并与 `neocode gateway` 复用同一启动内核
- 引入共享 launcher,固定发现顺序:
  NEOCODE_GATEWAY_BIN > PATH(neocode-gateway) > 回退 neocode gateway
- 在 url-dispatch 不可达路径接入“先拉起后重拨”流程,限制为单次受控回退
- 增加结构化启动决策日志字段与白名单断言测试,降低双入口行为漂移风险
- 扩展发布与安装体系:goreleaser 双产物、install 脚本 flavor + dry-run + checksum 校验
- CI 增加 gateway-only 冒烟链路与安装脚本 dry-run 回归检查
- 补齐文档体系:RFC 设计、第三方接入指南、RPC API(XGO 风格)、错误字典、兼容性策略
- 增加基于 Go 结构体的 JSON 示例自动生成机制,输出 docs/generated 示例文件

测试:
- go build ./...
- go test ./internal/gateway/launcher ./internal/gateway/adapters/urlscheme ./internal/gateway/protocol ./scripts
- go test ./internal/cli -run "TestNewGatewayStandaloneCommandPassesFlagsToRunner|TestNewGatewayStandaloneCommandRejectsInvalidLogLevel|TestGatewaySubcommandAndStandaloneCommandAreOptionEquivalent|TestExecuteGatewayServerUsesStandaloneCommand|TestGatewaySubcommandAndStandaloneCommandPropagateSameRunnerError"

关联:RFC#420
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
@fennoai
Copy link
Copy Markdown
Author

fennoai Bot commented Apr 23, 2026

Important

Configuration Required

No API key has been configured for this organization. XGopilot requires an API key to process requests.

Please visit the Settings page to configure your API key.

xgopilot and others added 7 commits April 23, 2026 11:51
Generated with [codeagent](https://github.com/qbox/codeagent)

Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 23, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 91.53605% with 27 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
scripts/check_gateway_docs/main.go 72.72% 10 Missing and 5 partials ⚠️
internal/gateway/adapters/urlscheme/dispatcher.go 94.11% 7 Missing and 3 partials ⚠️
internal/gateway/launcher/launcher.go 97.14% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

xgopilot and others added 8 commits April 23, 2026 13:11
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
fix(gateway): 对齐拉起契约并修复文档校验链路
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
fix(gateway): close unresolved review risks and simplify
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: pionxe <148670367+pionxe@users.noreply.github.com>
@pionxe pionxe merged commit d1e4e6e into main Apr 24, 2026
1 check passed
@fennoai fennoai Bot deleted the release/v2.0-split-build branch April 24, 2026 11:33
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.

3 participants