Allow hooks to error (#11615)

Allow hooks to return errors. 

We should do this before introducing more hook types, or we'll have to
migrate them all.
This commit is contained in:
gt-oai authored and GitHub committed 2026-02-16 14:11:05 +00:00
1 parent 825a4af42f
commit b3095679ed
6 files changed
+251 -43

No files matched your search

+2 -1
View File
@@ -9,8 +9,9 @@ pub use types::Hook;
pub use types::HookEvent;
pub use types::HookEventAfterAgent;
pub use types::HookEventAfterToolUse;
pub use types::HookOutcome;
pub use types::HookPayload;
pub use types::HookResponse;
pub use types::HookResult;
pub use types::HookToolInput;
pub use types::HookToolInputLocalShell;
pub use types::HookToolKind;