chore: align dual-stack transport contract, deploy input model, and CI baseline#63
Merged
liujuanjuan1984 merged 12 commits intomainfrom Feb 12, 2026
Merged
Conversation
Collaborator
Author
|
补充修复已推送: 本次处理:
回归:
|
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.
关联 Issue
Closes #62
Closes #64
Closes #65
背景
本 PR 最初围绕双栈传输契约(HTTP+JSON / JSON-RPC)对齐展开,后续按相关 issue 补充了 CI 基线与 deploy 输入模型优化,因此最终范围覆盖传输契约、Agent Card 能力描述、部署脚本与部署文档一致性、CI、许可证信息。
变更概览(按模块)
1) 传输契约与运行时防护(#62)
preferredTransport=HTTP+JSON,同时在additionalInterfaces暴露 JSON-RPCGET /v1/tasks/{task_id}:subscribe400500:subscribe,不存在:resubscribe)2) Agent Card 能力描述与部署上下文(#62)
3) Deploy 输入模型与文档一致性(#65)
scripts/deploy.sh新增非敏感 CLI keys:data_root、a2a_streaming、a2a_log_level、a2a_log_payloads、a2a_log_body_limitA2A_PROJECT=<project>到a2a.envENV NamevsCLI KeyCLI > ENV > defaultdocs/deployment.md作为单一权威说明,避免双重标准4) CI 与许可证(#64)
mainpush 自动执行uv run pre-commit run --all-filesuv run pytest主要变更文件
src/opencode_a2a_serve/app.py,src/opencode_a2a_serve/config.pytests/test_transport_contract.py,tests/test_agent_card.pyREADME.md,docs/guide.md,docs/deployment.mdscripts/deploy.sh,scripts/deploy/setup_instance.sh.github/workflows/ci.yml,LICENSE验证
uv run pre-commit run --all-files通过uv run pytest通过(44 passed)bash -n scripts/deploy.sh scripts/deploy/setup_instance.sh通过提交参考
95498f3,72f1fc7,01c3fc65f0e6b150c447c,72a0ba7,aecf83f,b14272a,a5c66a1da5569c