import type { Comment } from "../schema.js"; /** * Calculate comprehensive status indicators for a comment. * * This function analyzes a comment and its context to determine various * status indicators that help with prioritization and resolution tracking. * * ## Status Indicators Calculated * * ### Resolution Status * - **unresolved**: No human response, not outdated * - **acknowledged**: Has human response but not resolved * - **in_progress**: Has MCP action command (automated resolution) * - **resolved**: Outdated or explicitly resolved * * ### Priority Scoring (0-100) * * Priority is calculated based on multiple factors: * - **CodeRabbit Severity**: high=40, medium=25, low=10 points * - **Suggestion Type**: actionable=30, additional=20, nit=5 points * - **Response Status**: +10 for manual response, +15 for MCP action * - **Outdated Status**: -20 for outdated comments * * ### Actionability Indicators * - **needs_mcp_resolution**: Has MCP action command available * - **has_manual_response**: Human has replied to this comment * - **is_actionable**: Contains actionable keywords or CodeRabbit metadata * - **is_outdated**: Comment is marked as outdated by GitHub * * ## Context Analysis * * When `allComments` is provided, the function analyzes: * - **Reply Detection**: Looks for human replies to this comment * - **Self-Acknowledgement**: Avoids counting author's own responses * - **Bot Filtering**: Only considers human responses for acknowledgment * * @param comment - The comment to analyze * @param allComments - Optional array of all comments for context analysis * @returns Status indicators object with resolution status and priority * * @example * ```typescript * const indicators = calculateStatusIndicators(comment, allComments); * console.log(`Priority: ${indicators.priority_score}/100`); * console.log(`Status: ${indicators.resolution_status}`); * ``` */ export declare function calculateStatusIndicators(comment: Comment, allComments?: Comment[]): Comment["status_indicators"]; //# sourceMappingURL=status-indicators.d.ts.map