refactor(cli): remove redundant serve subcommand#296
Merged
liujuanjuan1984 merged 2 commits intomainfrom Mar 23, 2026
Merged
Conversation
Collaborator
Author
|
本轮基于 PR diff 做了 reviewer 视角审查。 结论
评估
issue 关系
|
Collaborator
Author
|
基于最新 diff 重新审查后,结论如下。 结论
评估
issue 关系
|
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.
概要
本 PR 聚焦
#295,收敛 CLI 启动入口并移除冗余的serve子命令。当前
opencode-a2a无子命令时即可直接启动服务,因此serve不再保留为兼容入口。本次实现将 canonical 启动方式统一为根命令opencode-a2a,并同步收敛文档与测试。模块变更
src/opencode_a2a/cli.pyserve子命令及其相关 help 文案。call子命令两种入口。README.mdopencode-a2a启动服务。serve兼容说明,避免继续强化旧入口。docs/guide.mdopencode-a2a作为服务启动命令。serve相关兼容说明。tests/server/test_cli.pyserve会被 argparse 拒绝。servehelp / runtime 调用测试。验证
uv run pre-commit run --all-filesuv run pytest340 passed关联
Closes #295