vigiles API reference
    Preparing search index...

    Interface BashToolEvent<N>

    The typed event a Bash gate decides over. Generic over the declared context needs (N) so e.ctx exposes ONLY the facts the hook declared — reading an undeclared one is a tsc error. The default is the erased (all-providers) shape used by the runtime/AnyHook.

    interface BashToolEvent<N extends readonly NeedSpec[] = readonly ProviderName[]> {
        command: CommandView;
        ctx: HookCtx<N>;
        event: string;
        tool: "Bash";
    }

    Type Parameters

    Index

    Properties

    Properties

    command: CommandView
    ctx: HookCtx<N>

    Host-gathered, DECLARED read-only facts (git branch, …) — see needs.

    event: string
    tool: "Bash"