II.
HookSurface overview
Reference · livehook-surface:pi.on-event
onEvent (Pi) overview
Pi's generic onEvent hook. Pi exposes a single onEvent dispatcher that routes to handler scripts by event name. Canonicalizes to post-tool-use for cross-product policies.
Attributes
eventName
onEvent (Pi)
displayName
onEvent (Pi)
kind
native
originVendor
a5c
direction
post
blocking
false
family
shell-hook
payloadSchema
type
object
required
- event
properties
event
type
string
payload
type
object
description
Pi's generic onEvent hook. Pi exposes a single onEvent dispatcher
that routes to handler scripts by event name. Canonicalizes to
post-tool-use for cross-product policies.
Outgoing edges
canonicalized_to1
- hook-surface:post-tool-use·HookSurfacePostToolUse (canonical)
Incoming edges
maps_hook1
- hook-mapping:before-provider-request-pi·HookMapping