重构: tool_registry拆分及多批改进
This commit is contained in:
@@ -99,7 +99,7 @@ pub async fn execute(request: ShellRequest) -> anyhow::Result<ShellResult> {
|
||||
cmd.output(),
|
||||
)
|
||||
.await
|
||||
.map_err(|_| anyhow::anyhow!("命令执行超时: {}秒", secs))??,
|
||||
.map_err(|_| anyhow::anyhow!("命令执行超时({}s): {}", secs, request.command))??,
|
||||
None => cmd.output().await?,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user