Conversation
…ement, and SSE streaming Add axum-based HTTP server to zeph-a2a crate behind feature-gated server module. Implements core A2A protocol server-side operations: JSON-RPC 2.0 dispatch for message/send, tasks/get, tasks/cancel; in-memory TaskManager with full lifecycle; SSE streaming with JSON-RPC response envelope; bearer token auth with constant-time comparison (subtle); per-IP rate limiting; 1 MiB body size limit. Refactor Part from flat struct to tagged enum with kind discriminator and rename TaskState::Pending to Submitted with explicit per-variant serde renames for spec-compliant kebab-case wire format. Resolves #83, #84, #85
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #98 +/- ##
==========================================
+ Coverage 78.93% 81.05% +2.11%
==========================================
Files 28 32 +4
Lines 4881 6161 +1280
==========================================
+ Hits 3853 4994 +1141
- Misses 1028 1167 +139
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
…A server - Bump workspace version 0.6.0 -> 0.7.0 - Add A2A Server section to README with endpoints and env vars - Add A2A environment variables to docker-compose.yml and docker-compose.dev.yml - Expose A2A port 8080 in Docker Compose services - Add zeph-a2a Cargo.toml to Dockerfile.dev dependency cache layer - Update CHANGELOG with 0.7.0 release date
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.
Summary
zeph-a2acrate behindserverfeature flagmessage/send,tasks/get,tasks/cancelwith spec-compliant error codesTaskManagerwith full task lifecycle (create, get, update, cancel, artifacts, history)/a2a/stream) with events wrapped in JSON-RPC response envelopesubtle::ConstantTimeEq), per-IP rate limiting, 1 MiB body limit/.well-known/agent-card.json(public, no auth)A2aServerConfigwith env var overrides for all fieldsPartto tagged enum withkinddiscriminator; renameTaskState::PendingtoSubmittedwith kebab-case serdeResolves #83, #84, #85
Epic: #82
Test plan
cargo +nightly fmt --checkpassescargo clippy --features a2a -- -D warningspasses