vigiles API reference
    Preparing search index...

    Interface RawHookEvent

    The raw event fields the decode functions read (the union across roles).

    interface RawHookEvent {
        cwd?: string;
        prompt?: string;
        source?: string;
        stop_hook_active?: boolean;
        tool_input?: { command?: unknown; file_path?: unknown };
        tool_name?: string;
        tool_response?: unknown;
    }
    Index

    Properties

    cwd?: string

    The session's working directory, which Claude Code puts in EVERY hook payload. The fallback project root repo-relative path prefixes resolve against when the runtime does not pass one — see projectRootOf.

    prompt?: string

    UserPromptSubmit (prompt-gate).

    source?: string

    SessionStart / UserPromptSubmit (inject).

    stop_hook_active?: boolean

    Stop / SubagentStop (stop-gate) — the prior-block loop guard.

    tool_input?: { command?: unknown; file_path?: unknown }
    tool_name?: string
    tool_response?: unknown

    PostToolUse response (react).