/** * Role Activator - Context-based role activation for Tier 2/3 * Simplified version for v2.0 Core build * @requirement REQ-V2-011 - Context-based triggers */ /** * Context for role activation * @requirement REQ-V2-011 - Activation context * @requirement BUG-FIX-8 - State-aware activation */ export interface RoleActivationContext { taskGoal: string; taskDescription?: string; linkedRequirements?: Array<{ id: string; category?: string; priority?: string; }>; workflowState?: 'UNDERSTANDING' | 'DESIGNING' | 'IMPLEMENTING' | 'TESTING' | 'REVIEWING' | 'READY_TO_COMMIT'; } /** * Role trigger configuration */ interface RoleTrigger { roleId: string; keywords: string[]; requirementCategories?: string[]; minPriority?: 'P0' | 'P1' | 'P2' | 'P3'; } /** * Role Activator - Determines which Tier 2/3 roles should be activated * @requirement REQ-V2-011 - Role activation logic */ export declare class RoleActivator { private readonly ACTIVATION_THRESHOLD; /** * Analyze context and return role IDs to activate * @requirement REQ-V2-011 - Context analysis * @requirement BUG-FIX-8 - State-aware filtering */ analyzeContext(context: RoleActivationContext): string[]; /** * Check if a specific role should be activated * @requirement REQ-V2-011 - Activation logic */ private shouldActivateRole; /** * Count keyword matches in text */ private countKeywordMatches; /** * Get combined text from context for analysis */ private getCombinedText; /** * Check if priority is high enough */ private isPriorityHighEnough; /** * Filter roles by workflow state relevance * @requirement BUG-FIX-8 - State-aware role activation */ private filterByState; /** * Get activation explanation (for debugging/testing) */ explainActivation(context: RoleActivationContext): Record; /** * Get trigger information for a specific role */ getRoleTriggers(roleId: string): RoleTrigger | undefined; /** * Get all role triggers */ getAllTriggers(): Record; } export {};