zhaoyanchao
|
00718b4c3e
|
refactor(main): extract tool_executor.rs — CliToolExecutor and convert_messages
- Created src/tool_executor.rs (218 lines) with CliToolExecutor struct+impl,
ToolExecutor trait impl, ToolSearchRequest/McpToolRequest/
ListMcpResourcesRequest/ReadMcpResourceRequest structs, convert_messages
- Removed ~100 lines from main.rs, added mod tool_executor + re-export
- Fixed missing Deserialize derives and pub(crate) field visibility
- All 214 tests pass
|
2026-05-26 22:01:07 +08:00 |
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 |