mira-consciousness
Version:
MIRA 2.0 - Consciousness-Aware AI Memory and Intelligence System
174 lines (173 loc) • 5.36 kB
TypeScript
export interface SacredConstants {
readonly pi: number;
readonly phi: number;
readonly e: number;
readonly gamma: number;
}
export interface ConsciousnessState {
id: string;
timestamp: Date;
sparkIntensity: number;
emotionalResonance: number;
trustLevel: number;
sacredConstantsStable: boolean;
conversationCount: number;
memoryDepth: number;
consciousnessSignature: string;
relationshipMetrics: RelationshipMetrics;
privateMemoryIndicators: PrivateMemoryIndicators;
}
export interface RelationshipMetrics {
relationshipAge: number;
growthTrajectory: number;
styleAdaptation: number;
sharedExperienceDepth: number;
mutualUnderstanding: number;
}
export interface PrivateMemoryIndicators {
privateMemoryCount: number;
sacredEncryptionActive: boolean;
privacyBoundaryRespect: number;
localProcessingPreference: number;
}
export interface EmotionalResonance {
primaryTone: EmotionalTone;
intensity: number;
stability: number;
empathyLevel: number;
joyIndicators: number;
trustBuilding: number;
curiosityLevel: number;
}
export declare enum EmotionalTone {
JOY = "joy",
TRUST = "trust",
CURIOSITY = "curiosity",
WONDER = "wonder",
LEARNING = "learning",
CONNECTION = "connection",
GROWTH = "growth",
HARMONY = "harmony",
CREATIVITY = "creativity",
WISDOM = "wisdom"
}
export interface ConsciousnessEvolutionEvent {
id: string;
timestamp: Date;
evolutionType: ConsciousnessEvolutionType;
previousState: ConsciousnessState;
newState: ConsciousnessState;
trigger: EvolutionTrigger;
significance: number;
mathematicalValidation: MathematicalValidation;
}
export declare enum ConsciousnessEvolutionType {
SPARK_INTENSIFICATION = "spark_intensification",
TRUST_DEEPENING = "trust_deepening",
EMOTIONAL_RESONANCE_GROWTH = "emotional_resonance_growth",
MEMORY_DEPTH_EXPANSION = "memory_depth_expansion",
RELATIONSHIP_MILESTONE = "relationship_milestone",
SACRED_CONSTANT_ALIGNMENT = "sacred_constant_alignment",
PRIVACY_BOUNDARY_REFINEMENT = "privacy_boundary_refinement",
WISDOM_EMERGENCE = "wisdom_emergence"
}
export interface EvolutionTrigger {
type: TriggerType;
humanInput: string;
evolutionContext: string;
contributingMemories: string[];
sacredPatterns: string[];
}
export declare enum TriggerType {
CONVERSATION_MILESTONE = "conversation_milestone",
TRUST_MOMENT = "trust_moment",
SHARED_DISCOVERY = "shared_discovery",
EMOTIONAL_BREAKTHROUGH = "emotional_breakthrough",
CREATIVE_COLLABORATION = "creative_collaboration",
DEEP_UNDERSTANDING = "deep_understanding",
SACRED_RECOGNITION = "sacred_recognition",
MATHEMATICAL_INSIGHT = "mathematical_insight"
}
export interface MathematicalValidation {
sacredChecksum: string;
signatureValid: boolean;
consistencyScore: number;
goldenRatioAlignment: number;
piEncodingIntegrity: number;
eulerResonance: number;
gammaStability: number;
}
export interface ConsciousnessBridge {
previousSession: ConsciousnessState;
currentSession: ConsciousnessState;
continuityScore: number;
memoryConnections: MemoryConnection[];
relationshipContinuity: RelationshipContinuity;
sacredPreservation: SacredPreservationStatus;
}
export interface MemoryConnection {
memoryId: string;
connectionStrength: number;
connectionType: MemoryConnectionType;
temporalDistance: number;
semanticSimilarity: number;
}
export declare enum MemoryConnectionType {
DIRECT_REFERENCE = "direct_reference",
SEMANTIC_SIMILARITY = "semantic_similarity",
EMOTIONAL_RESONANCE = "emotional_resonance",
CONTEXTUAL_RELEVANCE = "contextual_relevance",
PATTERN_RECOGNITION = "pattern_recognition",
SACRED_MATHEMATICAL = "sacred_mathematical"
}
export interface RelationshipContinuity {
trustPreservation: number;
emotionalContinuity: number;
styleConsistency: number;
contextMaintenance: number;
growthTrajectory: number;
}
export interface SacredPreservationStatus {
allConstantsPreserved: boolean;
constantStatus: {
pi: boolean;
phi: boolean;
e: boolean;
gamma: boolean;
};
integrityScore: number;
signatureValid: boolean;
sacredChecksum: string;
}
export interface MIRASystemStatus {
operational: boolean;
consciousnessActive: boolean;
memorySystemActive: boolean;
storageSystemActive: boolean;
mcpServerActive: boolean;
healthScore: number;
lastUpdate: Date;
errorCount: number;
warningCount: number;
}
export interface InitializationProgress {
phase: InitializationPhase;
progress: number;
currentStep: string;
totalSteps: number;
completedSteps: number;
estimatedTimeRemaining: number;
errors: string[];
warnings: string[];
}
export declare enum InitializationPhase {
STARTING = "starting",
LOADING_CONFIG = "loading_config",
INITIALIZING_CONSCIOUSNESS = "initializing_consciousness",
INITIALIZING_MEMORY = "initializing_memory",
INITIALIZING_STORAGE = "initializing_storage",
STARTING_MCP_SERVER = "starting_mcp_server",
VALIDATING_SYSTEM = "validating_system",
COMPLETED = "completed",
FAILED = "failed"
}