claw-code/openspec/changes
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
..
refactor-main-rs refactor: 将 main.rs 拆分为模块以提升可维护性 2026-04-30 15:13:42 +08:00
refactor-main-rs-split refactor(main): extract api_client.rs — AnthropicRuntimeClient and API helpers 2026-05-26 21:31:12 +08:00