forked from cleveragents/cleveragents-core
680cc8c352
Add A2aStdioTransport class that manages subprocess lifecycle and communicates via newline-delimited JSON-RPC 2.0 messages over stdin/stdout. Add A2aTransport protocol (typing.Protocol) defining the abstract transport interface. Add A2aTransportSelector that picks A2aStdioTransport in local mode (no server URL) or A2aHttpTransport in server mode. New files: - transport_protocol.py: A2aTransport Protocol - stdio_transport.py: A2aStdioTransport with subprocess management - transport_selector.py: A2aTransportSelector configuration-based - echo_agent.py: Minimal echo agent fixture for tests Tests: - 20 Behave BDD scenarios covering protocol conformance, construction, subprocess lifecycle, send/receive, context manager, transport selector, and contract round-trip tests - 7 Robot Framework integration tests with helper script ISSUES CLOSED: #691