chore: apply cargo fmt formatting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7ca71f500a
commit
6e8c799af5
3 changed files with 13 additions and 3 deletions
|
|
@ -1054,7 +1054,10 @@ impl Provider for OpenAiCompatibleProvider {
|
|||
|
||||
let url = self.chat_completions_url();
|
||||
let response = self
|
||||
.apply_auth_header(self.http_client().post(&url).json(&native_request), credential)
|
||||
.apply_auth_header(
|
||||
self.http_client().post(&url).json(&native_request),
|
||||
credential,
|
||||
)
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
|
|
|
|||
|
|
@ -334,7 +334,10 @@ impl SecurityPolicy {
|
|||
|
||||
if risk == CommandRiskLevel::High {
|
||||
if self.block_high_risk_commands {
|
||||
tracing::debug!(command, "Shell command blocked: high-risk disallowed by policy");
|
||||
tracing::debug!(
|
||||
command,
|
||||
"Shell command blocked: high-risk disallowed by policy"
|
||||
);
|
||||
return Err("Command blocked: high-risk command is disallowed by policy".into());
|
||||
}
|
||||
if self.autonomy == AutonomyLevel::Supervised && !approved {
|
||||
|
|
|
|||
|
|
@ -170,7 +170,11 @@ impl Tool for ShellTool {
|
|||
})
|
||||
}
|
||||
Err(_) => {
|
||||
tracing::warn!(command, timeout_secs = SHELL_TIMEOUT_SECS, "Shell command timed out");
|
||||
tracing::warn!(
|
||||
command,
|
||||
timeout_secs = SHELL_TIMEOUT_SECS,
|
||||
"Shell command timed out"
|
||||
);
|
||||
Ok(ToolResult {
|
||||
success: false,
|
||||
output: String::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue