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.
Parameters
Section titled “Parameters”harness
Section titled “harness”string
string
decide
Section titled “decide”(input) => Answer | Promise<Answer | null> | null
Returns
Section titled “Returns”Promise<number>