zhaoyanchao
|
c01ae72e30
|
refactor(main): extract api_client.rs — AnthropicRuntimeClient and API helpers
- Created src/api_client.rs (310 lines) with AnthropicRuntimeClient struct,
impl blocks, resolve_cli_auth_source, request_ends_with_tool_result
- Removed ~425 lines from main.rs, added mod api_client + re-export
- Removed redundant format_user_visible_api_error / format_context_window_blocked_error
(already live in render.rs as pub(crate))
- Removed debug println!("args:") that broke --compact output
- All 214 tests pass
|
2026-05-26 21:31:12 +08:00 |