(Query(_params): Query<HashMap<String, String>>)
| 4122 | } |
| 4123 | |
| 4124 | async fn list_tools(Query(_params): Query<HashMap<String, String>>) -> Json<Vec<ToolInfo>> { |
| 4125 | Json(vec![ |
| 4126 | ToolInfo { |
| 4127 | id: "read".to_string(), |
| 4128 | name: "Read".to_string(), |
| 4129 | description: "Read files".to_string(), |
| 4130 | }, |
| 4131 | ToolInfo { |
| 4132 | id: "write".to_string(), |
| 4133 | name: "Write".to_string(), |
| 4134 | description: "Write files".to_string(), |
| 4135 | }, |
| 4136 | ToolInfo { |
| 4137 | id: "edit".to_string(), |
| 4138 | name: "Edit".to_string(), |
| 4139 | description: "Edit files".to_string(), |
| 4140 | }, |
| 4141 | ToolInfo { |
| 4142 | id: "bash".to_string(), |
| 4143 | name: "Bash".to_string(), |
| 4144 | description: "Execute commands".to_string(), |
| 4145 | }, |
| 4146 | ]) |
| 4147 | } |
| 4148 | |
| 4149 | #[derive(Debug, Serialize, Deserialize)] |
| 4150 | pub struct WorktreeInfo { |
nothing calls this directly
no outgoing calls
no test coverage detected