Lots of changes... not done yet.

This commit is contained in:
Ryan Ward
2026-08-17 18:19:37 -05:00
parent b5f3290d1a
commit 56e3b51d48
55 changed files with 4494 additions and 1098 deletions
+8
View File
@@ -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",