(&self, args: serde_json::Value)
| 3939 | /// ``` |
| 3940 | #[napi(js_name = "gitCommand", ts_args_type = "args: GitCommandOptions")] |
| 3941 | pub async fn git_command(&self, args: serde_json::Value) -> napi::Result<ToolResult> { |
| 3942 | let args = normalize_git_args(args)?; |
| 3943 | let session = self.inner.clone(); |
| 3944 | let result = get_runtime() |
| 3945 | .spawn(async move { session.tool("git", args).await }) |
| 3946 | .await |
| 3947 | .map_err(|e| napi::Error::from_reason(format!("Task join error: {e}")))? |
| 3948 | .map_err(|e| napi::Error::from_reason(format!("Tool execution failed: {e}")))?; |
| 3949 | Ok(tool_result_from_core(result)) |
| 3950 | } |
| 3951 | |
| 3952 | // ======================================================================== |
| 3953 | // Advanced optional Queue API |
nothing calls this directly
no test coverage detected