UNPKG

@webdevtoday/grok-cli

Version:

A sophisticated CLI tool for interacting with xAI Grok 4, featuring conversation history, file reference, custom commands, memory system, and genetic development workflows

50 lines 1.41 kB
/** * Hook system implementation for Grok CLI * Compatible with Claude Code hook patterns */ import type { HookEvent, HookResult, HookEventName, GrokConfig } from '../types'; /** * Hook manager handles execution of hooks for various events */ export declare class HookManager { private config; private isEnabled; constructor(config: GrokConfig); /** * Execute hooks for a given event */ executeHooks(eventName: HookEventName, event: HookEvent): Promise<HookResult>; /** * Execute a single hook command */ private executeHookCommand; /** * Check if event matches the hook pattern */ private matchesPattern; /** * Process hook results and determine final outcome */ private processHookResults; /** * Enable or disable hook execution */ setEnabled(enabled: boolean): void; /** * Check if hooks are enabled */ isHooksEnabled(): boolean; /** * Update hook configuration */ updateConfig(config: GrokConfig): void; /** * Get list of hooks for a specific event */ getHooksForEvent(eventName: HookEventName): string[]; /** * Create hook event object */ static createHookEvent(eventName: HookEventName, sessionId: string, cwd: string, transcriptPath: string, additional?: Partial<HookEvent>): HookEvent; } //# sourceMappingURL=hooks.d.ts.map