vigiles API reference
    Preparing search index...

    Interface ReactEvent<N>

    The event a react hook reacts over — the tool, the file path, AND its response.

    interface ReactEvent<N extends readonly NeedSpec[] = readonly ProviderName[]> {
        ctx: HookCtx<N>;
        event: string;
        path: PathView;
        response: ResponseView;
        tool: string;
    }

    Type Parameters

    Index

    Properties

    ctx: HookCtx<N>

    Host-gathered, DECLARED facts — built-ins, inline providers, and state() reads.

    event: string
    path: PathView
    response: ResponseView

    The tool's response (PostToolUse) — react only on an error, capture output, …

    tool: string