Skip to content

Commit 0c9f957

Browse files
Alex Holmbergclaude
authored andcommitted
fix(agent): register CreateDeploymentConfigTool and DeployServiceTool
The agent couldn't create deployments because these tools weren't registered: - CreateDeploymentConfigTool - manual config creation - DeployServiceTool - intelligent deployment with analysis Now the agent can: 1. Analyze projects and recommend deployment settings 2. Create deployment configs 3. Trigger deployments Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c907da2 commit 0c9f957

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

src/agent/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ pub async fn run_interactive(
595595
.tool(CheckProviderConnectionTool::new())
596596
.tool(ListDeploymentCapabilitiesTool::new())
597597
// Deployment tools for service management
598+
.tool(CreateDeploymentConfigTool::new())
599+
.tool(DeployServiceTool::new(project_path_buf.clone()))
598600
.tool(ListDeploymentConfigsTool::new())
599601
.tool(TriggerDeploymentTool::new())
600602
.tool(GetDeploymentStatusTool::new())
@@ -710,6 +712,8 @@ pub async fn run_interactive(
710712
.tool(CheckProviderConnectionTool::new())
711713
.tool(ListDeploymentCapabilitiesTool::new())
712714
// Deployment tools for service management
715+
.tool(CreateDeploymentConfigTool::new())
716+
.tool(DeployServiceTool::new(project_path_buf.clone()))
713717
.tool(ListDeploymentConfigsTool::new())
714718
.tool(TriggerDeploymentTool::new())
715719
.tool(GetDeploymentStatusTool::new())
@@ -816,6 +820,8 @@ pub async fn run_interactive(
816820
.tool(CheckProviderConnectionTool::new())
817821
.tool(ListDeploymentCapabilitiesTool::new())
818822
// Deployment tools for service management
823+
.tool(CreateDeploymentConfigTool::new())
824+
.tool(DeployServiceTool::new(project_path_buf.clone()))
819825
.tool(ListDeploymentConfigsTool::new())
820826
.tool(TriggerDeploymentTool::new())
821827
.tool(GetDeploymentStatusTool::new())
@@ -2270,6 +2276,8 @@ pub async fn run_query(
22702276
.tool(CheckProviderConnectionTool::new())
22712277
.tool(ListDeploymentCapabilitiesTool::new())
22722278
// Deployment tools for service management
2279+
.tool(CreateDeploymentConfigTool::new())
2280+
.tool(DeployServiceTool::new(project_path_buf.clone()))
22732281
.tool(ListDeploymentConfigsTool::new())
22742282
.tool(TriggerDeploymentTool::new())
22752283
.tool(GetDeploymentStatusTool::new())
@@ -2353,6 +2361,8 @@ pub async fn run_query(
23532361
.tool(CheckProviderConnectionTool::new())
23542362
.tool(ListDeploymentCapabilitiesTool::new())
23552363
// Deployment tools for service management
2364+
.tool(CreateDeploymentConfigTool::new())
2365+
.tool(DeployServiceTool::new(project_path_buf.clone()))
23562366
.tool(ListDeploymentConfigsTool::new())
23572367
.tool(TriggerDeploymentTool::new())
23582368
.tool(GetDeploymentStatusTool::new())
@@ -2425,6 +2435,8 @@ pub async fn run_query(
24252435
.tool(CheckProviderConnectionTool::new())
24262436
.tool(ListDeploymentCapabilitiesTool::new())
24272437
// Deployment tools for service management
2438+
.tool(CreateDeploymentConfigTool::new())
2439+
.tool(DeployServiceTool::new(project_path_buf.clone()))
24282440
.tool(ListDeploymentConfigsTool::new())
24292441
.tool(TriggerDeploymentTool::new())
24302442
.tool(GetDeploymentStatusTool::new())

src/agent/tools/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,11 @@ pub use k8s_optimize::K8sOptimizeTool;
171171
pub use kubelint::KubelintTool;
172172
pub use plan::{PlanCreateTool, PlanListTool, PlanNextTool, PlanUpdateTool};
173173
pub use platform::{
174-
CheckProviderConnectionTool, CurrentContextTool, DeployServiceTool, GetDeploymentStatusTool,
175-
GetServiceLogsTool, ListDeploymentCapabilitiesTool, ListDeploymentConfigsTool,
176-
ListDeploymentsTool, ListOrganizationsTool, ListProjectsTool, OpenProviderSettingsTool,
177-
SelectProjectTool, TriggerDeploymentTool,
174+
CheckProviderConnectionTool, CreateDeploymentConfigTool, CurrentContextTool,
175+
DeployServiceTool, GetDeploymentStatusTool, GetServiceLogsTool,
176+
ListDeploymentCapabilitiesTool, ListDeploymentConfigsTool, ListDeploymentsTool,
177+
ListOrganizationsTool, ListProjectsTool, OpenProviderSettingsTool, SelectProjectTool,
178+
TriggerDeploymentTool,
178179
};
179180
pub use prometheus_connect::PrometheusConnectTool;
180181
pub use prometheus_discover::PrometheusDiscoverTool;

0 commit comments

Comments
 (0)