Allow hooks to return errors. We should do this before introducing more hook types, or we'll have to migrate them all.
19 lines
533 B
Rust
19 lines
533 B
Rust
mod registry;
|
|
mod types;
|
|
mod user_notification;
|
|
|
|
pub use registry::Hooks;
|
|
pub use registry::HooksConfig;
|
|
pub use registry::command_from_argv;
|
|
pub use types::Hook;
|
|
pub use types::HookEvent;
|
|
pub use types::HookEventAfterAgent;
|
|
pub use types::HookEventAfterToolUse;
|
|
pub use types::HookPayload;
|
|
pub use types::HookResponse;
|
|
pub use types::HookResult;
|
|
pub use types::HookToolInput;
|
|
pub use types::HookToolInputLocalShell;
|
|
pub use types::HookToolKind;
|
|
pub use user_notification::legacy_notify_json;
|
|
pub use user_notification::notify_hook;
|