Commit Graph

2 Commits

Author SHA1 Message Date
urbnywrt e7b44eb99a fix: use get_running_loop, guard updatedAt, pass auth on wait_ready 2026-05-14 23:56:15 +03:00
urbnywrt 21437c78ad feat: add Mihomo API client with refresh polling
Implements MihomoClient wrapping Mihomo's REST API with provider refresh
polling, config reload, and startup readiness check. Also fixes a
Python 3.14 + respx 0.21.1 compatibility issue where the httpcore mocker
passes bytes method to httpx.Request causing Method pattern matching to
fail; resolved by switching respx DEFAULT_MOCKER to the httpx-level mocker.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 23:49:17 +03:00