UNPKG

gemini-flow

Version:

🧠 Gemini Flow - AI-Powered Development Orchestration with Google Gemini API Integration

162 lines • 4.29 kB
/** * Context7 MCP Integration Types * TypeScript Definitionen für Context7 MCP-Tools in gemini-flow */ export interface Context7Config { enabled: boolean; cacheTimeout: number; maxCacheSize: string; libraryWhitelist?: string[]; autoContext: boolean; serverUrl?: string; transport?: 'stdio' | 'ws' | 'http'; } export interface Context7SearchRequest { query: string; library?: string; version?: string; maxResults?: number; includeExamples?: boolean; } export interface Context7SearchResult { library: string; version?: string; documentation: string; examples?: string[]; url?: string; lastUpdated: string; relevanceScore: number; } export interface Context7CacheEntry { key: string; content: Context7SearchResult; timestamp: number; accessCount: number; ttl: number; } export interface Context7IntegrationOptions { swarmId: string; agentId?: string; contextKey: string; shareWithSwarm: boolean; cacheResult: boolean; } export interface Context7MCPResponse<T = any> { success: boolean; data?: T; error?: string; cached?: boolean; timestamp: number; } export interface Context7Status { enabled: boolean; connected: boolean; cacheHitRate: number; totalRequests: number; cacheSize: string; lastRequest?: string; } export interface Context7EnhancedAgent { agentId: string; agentType: string; context7Enabled: boolean; autoContextPatterns: string[]; lastContextUpdate?: string; contextCache: Map<string, Context7SearchResult>; } export interface Context7SwarmContext { swarmId: string; sharedContext: Map<string, Context7SearchResult>; agentContexts: Map<string, Context7SearchResult[]>; lastSync: string; } export type Context7EventType = 'search_requested' | 'search_completed' | 'cache_hit' | 'cache_miss' | 'context_shared' | 'error_occurred'; export interface Context7Event { type: Context7EventType; timestamp: number; agentId?: string; swarmId?: string; data: any; } export interface Context7Pattern { pattern: RegExp; library: string; description: string; priority: number; } export interface Context7PatternMatch { pattern: Context7Pattern; matches: string[]; confidence: number; } export interface Context7SearchParams { query: string; library?: string; maxResults?: number; includeExamples?: boolean; cacheResult?: boolean; } export interface Context7CacheParams { action: 'get' | 'set' | 'delete' | 'clear' | 'stats'; key?: string; value?: Context7SearchResult; ttl?: number; } export interface Context7IntegrateParams { swarmId: string; contextData: Context7SearchResult; agentIds?: string[]; broadcast?: boolean; } export interface Context7StatusParams { detailed?: boolean; includeCache?: boolean; includeMetrics?: boolean; } export interface Context7ConfigParams { action: 'get' | 'set' | 'reset'; config?: Partial<Context7Config>; } export declare class Context7Error extends Error { code: string; details?: any | undefined; constructor(message: string, code: string, details?: any | undefined); } export declare class Context7NetworkError extends Context7Error { constructor(message: string, details?: any); } export declare class Context7CacheError extends Context7Error { constructor(message: string, details?: any); } export declare class Context7ConfigError extends Context7Error { constructor(message: string, details?: any); } export interface Context7Metrics { totalRequests: number; successfulRequests: number; cacheHits: number; cacheMisses: number; averageResponseTime: number; topLibraries: { library: string; count: number; }[]; errorRate: number; lastError?: string; } export interface Context7LibraryInfo { name: string; version?: string; description?: string; keywords: string[]; detectionPatterns: string[]; priority: number; } export interface Context7AutoContext { enabled: boolean; patterns: Context7Pattern[]; threshold: number; maxAutoRequests: number; cooldownMs: number; } //# sourceMappingURL=context7.d.ts.map