Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Approval ¶
Approval returns JSON for a hook approval decision formatted for the given agent. The decision parameter uses graith's internal values ("allow", "block", "deny", "defer"). Each agent maps these to its own hook schema vocabulary.
func InboxContext ¶ added in v0.69.0
InboxContext returns the hook stdout JSON that surfaces unread inbox messages to an agent at a lifecycle event (e.g. "SessionStart"). For Claude Code the context must be delivered via hookSpecificOutput.additionalContext so it actually reaches the model — a plain systemMessage is shown to the human only. Other agents keep the systemMessage form they already consume.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.