Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
type Hooks struct {
PreToolUse []PreToolUse
PostToolUse []PostToolUse
}
type PostToolUse ¶
PostToolUse is called after a tool executes. Receives the call and result. Return a modified result to transform it, or return the same result to pass through.
IMPORTANT: the return value unconditionally REPLACES the upstream result — returning ("", nil) clears the result. To pass through unchanged, return the input `result` verbatim. To signal an error, return a non-nil error (the result will be replaced with "error: <msg>").
Click to show internal directories.
Click to hide internal directories.