vigiles API reference
    Preparing search index...

    Interface SweptHook

    The hook a sweep looked at, as its config declares it.

    interface SweptHook {
        command: string;
        condition: string | null;
        event: string;
        index: number;
        matcher: string | null;
    }
    Index

    Properties

    command: string

    The command, with the harness's plugin-root token already expanded.

    condition: string | null

    Its condition as written (Claude Code's if), or null when unconditional.

    event: string

    The event it registers under, e.g. "PreToolUse".

    index: number

    Its position in the flattened registration list, so two hooks sharing a command are still distinguishable in a report. Stable for one sweep of one directory; not an identity across versions.

    matcher: string | null

    Its tool matcher, or null when it declares none (matches everything).