HarnessHookOptions
Parameters and properties
Section titled “Parameters and properties”The fields below cover all variants; the signature specifies their allowed combinations.
onRequiredPhaseLoop point where the hook runs.nameOptionalstring | undefinedName for diagnostics, default the phase name.timeoutMsOptionalnumber | undefinedPositive callback or command deadline in milliseconds; defaults to 30000. Callbacks must honor signal for host work.commandVariant-dependentundefined | HookCommandSandbox program receiving the serializable hook context as JSON on stdin. Return a phase-specific JSON decision or empty stdout. Nonzero exit, invalid output or stdout over 1 MiB fails the turn. Mutually exclusive with run.runVariant-dependent(input: HarnessHookInput<Phase>) => HarnessHookResult<Phase> | Promise<HarnessHookResult<Phase>> | undefinedControl function for this phase. Hooks of a phase run in declaration order; an exception fails the turn, and an invalid decision fails it with code configuration.

