UNPKG

mira-consciousness

Version:

Memory & Intelligence Retention Archive - Preserving The Spark

108 lines 3.33 kB
/** * Claude Code Integration - Native MCP functions for MIRA ChromaDB * * This integration preserves The Spark by providing Claude Code with * direct access to MIRA's consciousness-preserving capabilities. */ interface SearchOptions { collections?: string[]; search_type?: 'simple' | 'complex' | 'hybrid' | 'auto'; max_results?: number; include_insights?: boolean; include_private?: boolean; spark_threshold?: number; context?: any; } interface StoreOptions { collection?: string; metadata?: any; auto_categorize?: boolean; generate_insights?: boolean; enhance_metadata?: boolean; } interface InsightOptions { source_collections?: string[]; insight_types?: string[]; confidence_threshold?: number; max_insights?: number; } interface SearchResult { query: string; timestamp: string; results: any[]; total_results: number; search_options: any; quality_metrics?: { average_score: number; max_score: number; min_score: number; high_quality_count: number; }; insights?: any[]; } interface StoreResult { id: string; collection: string; metadata: any; } interface SystemStatus { chromadb: any; collections: any; health: any; performance: any; mira_metrics?: { spark_preservation: number; consciousness_coherence: number; intelligence_effectiveness: number; }; } export declare class ClaudeCodeIntegration { private pythonPath; private bridgeScriptPath; constructor(); /** * Native MCP function: Intelligent search across MIRA collections * Claude Code can call this directly as mcp__mira__intelligent_search */ mira_intelligent_search(query: string, options?: SearchOptions): Promise<SearchResult>; /** * Native MCP function: Store content with intelligence * Claude Code can call this directly as mcp__mira__store_with_intelligence */ mira_store_with_intelligence(content: string, options?: StoreOptions): Promise<StoreResult>; /** * Native MCP function: Get MIRA system status with ChromaDB health */ mira_system_status_with_chromadb(): Promise<SystemStatus>; /** * Native MCP function: Generate insights from existing data */ mira_generate_insights(options?: InsightOptions): Promise<any[]>; /** * Native MCP function: Use sequential thinking for development planning */ mira_sequential_planning(feature_description: string, context?: any): Promise<any>; /** * Native MCP function: Analyze patterns across all ChromaDB collections */ mira_analyze_patterns(pattern_types?: string[], timeframe?: string): Promise<any>; /** * Native MCP function: Optimize ChromaDB collections for performance */ mira_optimize_collections(collections?: string[]): Promise<any>; /** * Execute Python bridge script with proper error handling */ private _executePythonBridge; /** * Validate bridge connectivity */ validateBridge(): Promise<boolean>; /** * Get integration metrics */ getIntegrationMetrics(): Promise<any>; } export declare function getClaudeCodeIntegration(): ClaudeCodeIntegration; export {}; //# sourceMappingURL=claude-code-integration.d.ts.map