feat(serve): add capability registry protocol versions#4200
Conversation
Introduce a serve capability registry and advertise protocolVersions from /capabilities while preserving the existing v1 envelope and Stage 1 feature aliases. Update SDK wire types, docs, and focused tests for old-daemon compatibility. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
📋 Review SummaryThis PR introduces a capability registry for the 🔍 General Feedback
🎯 Specific Feedback🟢 Medium
🔵 Low
✅ Highlights
|
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run. |
Summary
qwen servenow advertises its supported serve protocol version alongside the existing capability envelope, and its feature list is backed by a small registry that future daemon work can extend consistently.Validation
protocolVersions.current = "v1"andprotocolVersions.supported = ["v1"].84 passedfor daemon server tests and43 passedfor SDK daemon client tests.Scope / Risk
1, and the previous Stage 1 feature exports remain available as compatibility aliases.Testing Matrix
Testing matrix notes:
Linked Issues / Bugs