vigiles API reference
    Preparing search index...

    Interface HookProgram<N>

    A hook program: where it fires + the pure decision.

    interface HookProgram<N extends readonly NeedSpec[] = readonly ProviderName[]> {
        decide: (e: BashToolEvent<N>) => Decision;
        match: { tool: string };
        mode?: HookMode;
        needs?: N;
        on: string;
    }

    Type Parameters

    Index

    Properties

    decide: (e: BashToolEvent<N>) => Decision
    match: { tool: string }
    mode?: HookMode

    enforce (default) blocks on a deny; observe records + allows.

    needs?: N

    Declared context providers the trusted runtime gathers into e.ctx.

    on: string