Converted all external tool calling to async
This commit is contained in:
@@ -30,13 +30,13 @@ pub async fn dispatch_tool_call(
|
||||
// Agent tools (async)
|
||||
"start_agent" => agent_tools::tool_start_agent(&args, ctx).await,
|
||||
"stop_agent" => agent_tools::tool_stop_agent(&args, ctx).await,
|
||||
"list_agents" => agent_tools::tool_list_agents(ctx),
|
||||
"get_agent_config" => agent_tools::tool_get_agent_config(ctx),
|
||||
"reload_agent_config" => agent_tools::tool_get_agent_config(ctx),
|
||||
"list_agents" => agent_tools::tool_list_agents(ctx).await,
|
||||
"get_agent_config" => agent_tools::tool_get_agent_config(ctx).await,
|
||||
"reload_agent_config" => agent_tools::tool_get_agent_config(ctx).await,
|
||||
"get_agent_output" => agent_tools::tool_get_agent_output(&args, ctx).await,
|
||||
"wait_for_agent" => agent_tools::tool_wait_for_agent(&args, ctx).await,
|
||||
"get_agent_remaining_turns_and_budget" => {
|
||||
agent_tools::tool_get_agent_remaining_turns_and_budget(&args, ctx)
|
||||
agent_tools::tool_get_agent_remaining_turns_and_budget(&args, ctx).await
|
||||
}
|
||||
// Worktree tools
|
||||
"create_worktree" => agent_tools::tool_create_worktree(&args, ctx).await,
|
||||
@@ -46,7 +46,7 @@ pub async fn dispatch_tool_call(
|
||||
// Editor tools
|
||||
"get_editor_command" => agent_tools::tool_get_editor_command(&args, ctx),
|
||||
// Lifecycle tools
|
||||
"accept_story" => story_tools::tool_accept_story(&args, ctx),
|
||||
"accept_story" => story_tools::tool_accept_story(&args, ctx).await,
|
||||
// Story mutation tools (auto-commit to master)
|
||||
"check_criterion" => story_tools::tool_check_criterion(&args, ctx),
|
||||
"edit_criterion" => story_tools::tool_edit_criterion(&args, ctx),
|
||||
@@ -58,7 +58,7 @@ pub async fn dispatch_tool_call(
|
||||
// Bug lifecycle tools
|
||||
"create_bug" => story_tools::tool_create_bug(&args, ctx),
|
||||
"list_bugs" => story_tools::tool_list_bugs(ctx),
|
||||
"close_bug" => story_tools::tool_close_bug(&args, ctx),
|
||||
"close_bug" => story_tools::tool_close_bug(&args, ctx).await,
|
||||
// Refactor lifecycle tools
|
||||
"create_refactor" => story_tools::tool_create_refactor(&args, ctx),
|
||||
"list_refactors" => story_tools::tool_list_refactors(ctx),
|
||||
@@ -70,7 +70,7 @@ pub async fn dispatch_tool_call(
|
||||
"merge_agent_work" => merge_tools::tool_merge_agent_work(&args, ctx).await,
|
||||
"get_merge_status" => merge_tools::tool_get_merge_status(&args, ctx),
|
||||
"move_story_to_merge" => merge_tools::tool_move_story_to_merge(&args, ctx).await,
|
||||
"report_merge_failure" => merge_tools::tool_report_merge_failure(&args, ctx),
|
||||
"report_merge_failure" => merge_tools::tool_report_merge_failure(&args, ctx).await,
|
||||
// QA tools
|
||||
"request_qa" => qa_tools::tool_request_qa(&args, ctx).await,
|
||||
"approve_qa" => qa_tools::tool_approve_qa(&args, ctx).await,
|
||||
|
||||
Reference in New Issue
Block a user