"""ASGI server infrastructure for CleverAgents.

Provides the FastAPI-based ASGI application, A2A JSON-RPC 2.0 endpoint
routing, and uvicorn server lifecycle management.  The server's sole
client-facing interface is the A2A JSON-RPC 2.0 endpoint — there is no
REST API (ADR-048).

Public surface:

- :func:`create_asgi_app` — build a configured FastAPI application
- :func:`run_server` — launch uvicorn with graceful shutdown
- :class:`ServerLifecycle` — start/stop lifecycle manager
"""

from cleveragents.infrastructure.server.asgi_app import create_asgi_app
from cleveragents.infrastructure.server.server_lifecycle import (
    ServerLifecycle,
    run_server,
)

__all__ = [
    "ServerLifecycle",
    "create_asgi_app",
    "run_server",
]
