MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / HookJsonOutput

Interface HookJsonOutput

src/core/hooks.ts:54–68  ·  view source on GitHub ↗

Shape of a JSON object a hook may print on stdout to control the agent.

Source from the content-addressed store, hash-verified

52
53/** Shape of a JSON object a hook may print on stdout to control the agent. */
54interface 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. */
71export interface AggregatedHookResult {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected