Expand description
Shared hook runtime for Claude Code and Codex: the native pair of @rightkit/hooks.
event: typed payload parsing (HookEvent,Wire,EventKind);output: exact per-event output shapes (Reply);- [
dispatch]: modules under per-module and total deadlines, exit 0 on any failure; receipt:emittedandobserveddelivery receipts and the transcript-scan module.
The crate holds no policy: a module decides, this crate only parses, bounds and prints.
Re-exports§
pub use dispatch::compose_reply;pub use dispatch::dispatch;pub use dispatch::run;pub use dispatch::run_with;pub use dispatch::Decision;pub use dispatch::DispatchOptions;pub use dispatch::DispatchResult;pub use dispatch::FnModule;pub use dispatch::HookModule;pub use dispatch::ModuleContext;pub use dispatch::ModuleOutput;pub use dispatch::ModuleResult;pub use dispatch::Status;pub use event::EventKind;pub use event::HookEvent;pub use event::ParseError;pub use event::Wire;pub use event::STDIN_CAP;pub use output::OutputError;pub use output::Reply;pub use receipt::marker;pub use receipt::new_receipt_id;pub use receipt::scan_transcript_tail;pub use receipt::tag_context;pub use receipt::DeliveryLevel;pub use receipt::ObserveModule;pub use receipt::Receipt;pub use receipt::ReceiptStore;