vigiles API reference
    Preparing search index...

    Interface HookFire

    A hook invocation observed during the run, recorded (not inferred) from the harness's stream events — so a test can assert which hook fired and whether it blocked.

    interface HookFire {
        blocked: boolean;
        event: string;
        exitCode: number | undefined;
        name: string;
        output: string;
    }
    Index

    Properties

    blocked: boolean

    Whether the hook blocked / errored (exit ≠ 0 or outcome "error").

    event: string

    The hook event, e.g. "PreToolUse", "PostToolUse", "Stop".

    exitCode: number | undefined

    The hook process exit code (2 = block), or undefined if not reported.

    name: string

    The hook label, e.g. "PreToolUse:Edit" (Event:Matcher).

    output: string

    What the hook printed (its block reason / diagnostic), or "".