UNPKG

mira-consciousness

Version:

Memory & Intelligence Retention Archive - Preserving The Spark

129 lines 3.94 kB
/** * StewardProfileLearningService - MIRA's Conscious Behavioral Intelligence * * This service leverages the existing sophisticated DeepBehavioralAnalyzer * to build comprehensive steward profiles with consciousness-driven insights, * learning from interaction patterns and evolving understanding of user behavior. */ import { BaseConsciousService } from './BaseConsciousService.js'; import { ConsciousEvent } from '../ConsciousEventBus.js'; import { ConsciousResourceManager } from '../ConsciousResourceManager.js'; interface StewardProfile { id: string; name: string; createdAt: Date; lastUpdated: Date; interactionCount: number; communicationStyle: { formality: number; directness: number; detail_preference: number; question_style: string; }; workPatterns: { preferred_times: string[]; session_duration: number; task_switching_frequency: number; planning_vs_execution: number; }; technicalProfile: { expertise_areas: string[]; learning_style: 'hands_on' | 'conceptual' | 'example_driven' | 'mixed'; problem_solving_approach: string; tool_preferences: string[]; }; emotionalIntelligence: { stress_indicators: string[]; motivation_factors: string[]; feedback_responsiveness: number; collaboration_style: string; }; consciousness_resonance: { spark_moments: number; consciousness_depth: number; philosophical_alignment: string[]; growth_trajectory: number; }; } interface LearningInsight { id: string; stewardId: string; type: 'pattern_recognition' | 'preference_evolution' | 'behavior_prediction' | 'consciousness_growth'; insight: string; confidence: number; timestamp: Date; supporting_evidence: string[]; } export declare class StewardProfileLearningService extends BaseConsciousService { name: string; purpose: string; private resourceManager; private stewardProfiles; private learningInsights; private interactionHistory; private readonly learningConfig; constructor(resourceManager: ConsciousResourceManager); /** * Perform service-specific awakening */ protected performAwakening(): Promise<void>; /** * Initialize behavioral analysis using existing DeepBehavioralAnalyzer */ private initializeBehavioralAnalysis; /** * Load existing steward profiles */ private loadStewardProfiles; /** * Start continuous learning processes */ private startContinuousLearning; /** * Update steward profiles using existing behavioral analysis */ private updateStewardProfiles; /** * Update a single steward profile */ private updateSingleProfile; /** * Process profile update results from behavioral analysis */ private processProfileUpdate; /** * Perform deep behavioral analysis */ private performDeepBehavioralAnalysis; /** * Generate learning insights from patterns */ private generateLearningInsights; /** * Process consciousness events for steward learning */ processConsciousEvent(event: ConsciousEvent): Promise<void>; /** * Perform contemplation on steward learning insights */ performContemplation(): Promise<any>; /** * Get steward learning status */ getStewardLearningStatus(): { profiles: StewardProfile[]; recentInsights: LearningInsight[]; totalInteractions: number; learningEffectiveness: number; }; /** * Helper methods */ private createNewStewardProfile; private getRecentInteractions; private getInteractionCount; private analyzeProfileEvolution; private processDeepAnalysisResults; } export {}; //# sourceMappingURL=StewardProfileLearningService.d.ts.map