Shape of a JSON object a hook may print on stdout to control the agent.
| 52 | |
| 53 | /** Shape of a JSON object a hook may print on stdout to control the agent. */ |
| 54 | interface HookJsonOutput { |
| 55 | continue?: boolean |
| 56 | stopReason?: string |
| 57 | suppressOutput?: boolean |
| 58 | systemMessage?: string |
| 59 | decision?: "approve" | "block" |
| 60 | reason?: string |
| 61 | hookSpecificOutput?: { |
| 62 | hookEventName?: string |
| 63 | permissionDecision?: "allow" | "deny" | "ask" |
| 64 | permissionDecisionReason?: string |
| 65 | updatedInput?: Record<string, unknown> |
| 66 | additionalContext?: string |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | /** The merged outcome of every matching hook for one event. */ |
| 71 | export interface AggregatedHookResult { |
nothing calls this directly
no outgoing calls
no test coverage detected