Skip to main content

Crate codex_hooks

Crate codex_hooks 

Source

Structs§

Hook
HookEventAfterAgent
HookListEntry
HookListOutcome
HookPayload
HookResponse
Hooks
HooksConfig
PermissionRequestOutcome
PermissionRequestRequest
PluginHookDeclaration
Minimal declaration metadata for one bundled plugin hook handler.
PostCompactRequest
PostToolUseOutcome
PostToolUseRequest
PreCompactOutcome
PreCompactRequest
PreToolUseOutcome
PreToolUseRequest
SessionEndOutcome
SessionEndRequest
SessionStartOutcome
SessionStartRequest
StatelessHookOutcome
StopOutcome
StopRequest
SubagentHookContext
Identifies a thread-spawned subagent when a normal hook runs inside it.
UserPromptSubmitOutcome
UserPromptSubmitRequest

Enums§

HookEvent
HookResult
PermissionRequestDecision
SessionStartSource
StartHookTarget
StopHookTarget

Constants§

HOOK_EVENT_NAMES
Hook event names as they appear in hooks JSON and config files.
HOOK_EVENT_NAMES_WITH_MATCHERS
Hook event names whose matcher fields are meaningful during dispatch.

Functions§

command_from_argv
hook_event_key_label
Returns the hook event label used in persisted hook-state keys.
hook_key
Builds the persisted config-state key for one discovered hook handler.
hook_states_from_stack
Build effective hook state from config layers that are allowed to override user preferences.
legacy_notify_json
list_hooks
notify_hook
plugin_hook_declarations
Return the hook handlers declared by plugin bundles without projecting live runtime state.
write_schema_fixtures