UNPKG

gitdb-database

Version:

A production-ready CLI tool for managing a NoSQL database using GitHub repositories as storage

56 lines 1.42 kB
export interface AICommand { command: string; description: string; confidence: number; parameters?: Record<string, any>; suggestedQuery?: string; } export interface AIContext { collection?: string; recentCommands: string[]; databaseStats: { collections: number; totalDocuments: number; lastActivity: string; }; } export declare class AIAssistant { private octokit; private owner; private repo; private context; constructor(token: string, owner: string, repo: string); /** * Convert natural language to GitDB commands */ interpretQuery(query: string): Promise<AICommand[]>; /** * Enhanced parameter extraction from natural language query */ private extractParameters; /** * Generate suggested query based on extracted parameters */ private generateSuggestedQuery; /** * Generate smart suggestions based on context */ generateSuggestions(): Promise<string[]>; /** * Update context with recent command */ updateContext(command: string): void; /** * Get smart help based on context */ getSmartHelp(command?: string): Promise<string>; /** * Get help for specific command */ private getCommandHelp; /** * Get general help information */ private getGeneralHelp; } //# sourceMappingURL=assistant.d.ts.map