(&self, command: &str)
| 80 | } |
| 81 | |
| 82 | pub(super) async fn bash(&self, command: &str) -> Result<String> { |
| 83 | let args = serde_json::json!({ "command": command }); |
| 84 | let result = self |
| 85 | .tool_executor |
| 86 | .execute_with_context("bash", &args, &self.tool_context) |
| 87 | .await?; |
| 88 | Ok(result.output) |
| 89 | } |
| 90 | |
| 91 | pub(super) async fn glob(&self, pattern: &str) -> Result<Vec<String>> { |
| 92 | let args = serde_json::json!({ "pattern": pattern }); |