ccproxy-api
ccproxy-api copied to clipboard
feat: complete AnyIO migration
Summary
- migrate the runtime facade and task manager to AnyIO primitives, removing direct asyncio dependencies across core services
- refactor hook execution, streaming responses, DuckDB access-log ingestion, and permissions flows to operate on the shared async runtime
- tighten regression coverage with unit/integration stress suites that exercise high-concurrency hooks, task cancellation cycles, DuckDB ingest/pagination, streaming responses, and permissions SSE handling
- update documentation and helper utilities so downstream services consistently consume the new runtime helpers
Testing
uv run ruff checkuv run mypyuv run pytestuv run pytest tests/api/middleware/test_streaming_stress.py -m slowuv run pytest tests/plugins/permissions/integration/test_permissions_sse_stress.py -m slowuv run pytest tests/plugins/analytics/integration/test_duckdb_access_log_stress.py tests/plugins/analytics/integration/test_analytics_pagination_stress.py -m slowuv run pytest tests/unit/core/test_async_task_manager.py -m slowuv run pytest tests/unit/core/test_background_hook_thread_manager.py -m slow