import { ProjectState } from './project-state'; /** * Enhanced AI Persona Engine - Spawns protocol-aware AI subagents * * This is the core engine that transforms our CLI from menu-based interactions * to real AI conversations using Task tool subagents with strict artifact management. * * Key Features: * - Real AI conversations using Task tool subagents * - Strict artifact management protocols * - Automatic validation and quality gates * - Cross-persona handoffs with context preservation */ export interface AIPersonaConfig { name: string; role: string; personality: string; expertise: string[]; capabilities: string[]; systemPrompt: string; conversationStarter: string; projectContext: string; protocolEnabled: boolean; expectedArtifacts: string[]; requiresValidation: boolean; } export declare class AIPersonaEngine { private taskTool; private projectState; private artifactManager; constructor(projectState?: ProjectState); /** * Enhanced persona spawning with protocol integration * This creates real AI conversations with strict artifact management */ spawnPersona(personaConfig: AIPersonaConfig): Promise; /** * Initialize protocol for the persona */ private initializeProtocol; /** * Execute post-spawn protocol operations */ private executePostSpawnProtocol; /** * Handle spawn failures with protocol cleanup */ private handleSpawnFailure; /** * Generate unique session ID */ private generateSessionId; /** * Build protocol-aware persona prompt */ private buildProtocolAwarePrompt; /** * Build comprehensive persona prompt based on BMad Method architecture */ private buildPersonaPrompt; /** * Create The Mentor AI Persona Configuration with Protocol Integration */ createMentorPersona(projectContext: string): AIPersonaConfig; /** * Create The Gauntlet AI Persona Configuration with Protocol Integration */ createGauntletPersona(projectContext: string): AIPersonaConfig; /** * Create The Architect AI Persona Configuration with Protocol Integration */ createArchitectPersona(projectContext: string): AIPersonaConfig; }