UNPKG

arela

Version:

AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.

43 lines 1.08 kB
/** * Search Enforcer - BLOCKS grep/find unless arela_search was tried first * * This is the 100% solution to force agents to use semantic search. */ export declare class SearchEnforcer { private toolCallHistory; private tokensSaved; private grepBlocked; /** * Record a tool call */ recordToolCall(tool: string, args: any): void; /** * Check if arela_search was tried in last 2 minutes */ hasTriedArelaSearch(): boolean; /** * Validate if grep/find is allowed */ validateGrepAttempt(query: string): { allowed: boolean; message?: string; }; /** * Get enforcement statistics */ getStats(): { totalCalls: number; arelaSearches: number; grepAttempts: number; grepBlocked: number; tokensSaved: number; moneySaved: string; complianceRate: string; }; /** * Print statistics */ printStats(): void; } export declare const searchEnforcer: SearchEnforcer; //# sourceMappingURL=search-enforcer.d.ts.map