vigiles API reference
    Preparing search index...

    Type Alias DispatchKind

    DispatchKind:
        | "bash-gate"
        | "file-gate"
        | "prompt-gate"
        | "stop-gate"
        | "inject"
        | "react"

    The runtime dispatch shapes. A bare HookProgram (no role) is a Bash command gate; the role-keyed hooks carry their own shape. The runtime uses this to pick the right decode + output (a gate exits 2, an inject prints additionalContext, a react runs its classified command). prompt-gate and stop-gate are gates on non-tool events — they decode the prompt / stop signal and emit a Decision like the tool gates.