mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
This introduces a `Hooks` service. It registers hooks from config and dispatches hook events at runtime. N.B. The hook config is not wired up to this yet. But for legacy reasons, we wire up `notify` from config and power it using hooks now. Nothing about the `notify` interface has changed. I'd start by reviewing `hooks/types.rs` Some things to note: - hook names subject to change - no hook result yet - stopping semantics yet to be introduced - additional hooks yet to be introduced
9 lines
192 B
Rust
9 lines
192 B
Rust
mod registry;
|
|
mod types;
|
|
mod user_notification;
|
|
|
|
pub(crate) use registry::Hooks;
|
|
pub(crate) use types::HookEvent;
|
|
pub(crate) use types::HookEventAfterAgent;
|
|
pub(crate) use types::HookPayload;
|