Lots of changes... not done yet.
This commit is contained in:
@@ -61,6 +61,9 @@ pub mod text {
|
||||
RequestCommandOutputResult::CancelledBeforeExecution => {
|
||||
writeln!(w, "{CANCELLED_MESSAGE}")
|
||||
}
|
||||
RequestCommandOutputResult::ExecutionError { command, message } => {
|
||||
writeln!(w, "Command `{command}` was not executed: {message}")
|
||||
}
|
||||
RequestCommandOutputResult::Denylisted { .. } => {
|
||||
writeln!(
|
||||
w,
|
||||
@@ -829,6 +832,11 @@ pub mod json {
|
||||
RequestCommandOutputResult::CancelledBeforeExecution => {
|
||||
Some(JsonMessage::ToolCanceled)
|
||||
}
|
||||
RequestCommandOutputResult::ExecutionError { message, .. } => {
|
||||
Some(JsonMessage::ToolError {
|
||||
error: Cow::Borrowed(message),
|
||||
})
|
||||
}
|
||||
RequestCommandOutputResult::Denylisted { .. } => Some(JsonMessage::ToolError {
|
||||
error: Cow::Borrowed(
|
||||
"Command was not allowed to run due to presence on denylist",
|
||||
|
||||
Reference in New Issue
Block a user