Skip to content

runHook

runHook(harness, event, decide): Promise<number>

Defined in: index.d.ts:141

Be a hook command: read the harness’s input on stdin, call decide with Claude Code’s input, write its answer (null allows) in the harness’s form, and resolve to the exit code.

string

string

(input) => Answer | Promise<Answer | null> | null

Promise<number>