UNPKG

superaugment

Version:

Enterprise-grade MCP server with world-class C++ analysis, robust error handling, and production-ready architecture for VS Code Augment

129 lines 4.22 kB
import { z } from 'zod'; import type { SuperAugmentTool } from '../ToolManager.js'; import { ConfigManager } from '../../config/ConfigManager.js'; declare const ReviewCodeInputSchema: z.ZodObject<{ pullRequest: z.ZodOptional<z.ZodNumber>; files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; diff: z.ZodOptional<z.ZodString>; projectPath: z.ZodOptional<z.ZodString>; persona: z.ZodOptional<z.ZodString>; criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; severity: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "all"]>>; includeMetrics: z.ZodDefault<z.ZodBoolean>; maxFiles: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { maxFiles: number; severity: "low" | "medium" | "high" | "all"; includeMetrics: boolean; files?: string[] | undefined; projectPath?: string | undefined; persona?: string | undefined; pullRequest?: number | undefined; diff?: string | undefined; criteria?: string[] | undefined; }, { maxFiles?: number | undefined; severity?: "low" | "medium" | "high" | "all" | undefined; files?: string[] | undefined; projectPath?: string | undefined; persona?: string | undefined; includeMetrics?: boolean | undefined; pullRequest?: number | undefined; diff?: string | undefined; criteria?: string[] | undefined; }>; type ReviewCodeInput = z.infer<typeof ReviewCodeInputSchema>; /** * Code review tool with cognitive persona support */ export declare class ReviewCodeTool implements SuperAugmentTool { private configManager; name: string; description: string; inputSchema: z.ZodObject<{ pullRequest: z.ZodOptional<z.ZodNumber>; files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; diff: z.ZodOptional<z.ZodString>; projectPath: z.ZodOptional<z.ZodString>; persona: z.ZodOptional<z.ZodString>; criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; severity: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "all"]>>; includeMetrics: z.ZodDefault<z.ZodBoolean>; maxFiles: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { maxFiles: number; severity: "low" | "medium" | "high" | "all"; includeMetrics: boolean; files?: string[] | undefined; projectPath?: string | undefined; persona?: string | undefined; pullRequest?: number | undefined; diff?: string | undefined; criteria?: string[] | undefined; }, { maxFiles?: number | undefined; severity?: "low" | "medium" | "high" | "all" | undefined; files?: string[] | undefined; projectPath?: string | undefined; persona?: string | undefined; includeMetrics?: boolean | undefined; pullRequest?: number | undefined; diff?: string | undefined; criteria?: string[] | undefined; }>; private fileSystemManager; constructor(configManager: ConfigManager); execute(args: ReviewCodeInput): Promise<any>; /** * Get files to review based on input parameters */ private getFilesToReview; private performReview; private formatReviewResult; /** * Check code quality issues */ private checkCodeQuality; /** * Check best practices */ private checkBestPractices; /** * Check security issues */ private checkSecurity; /** * Check performance issues */ private checkPerformance; /** * Check maintainability issues */ private checkMaintainability; /** * Check if error handling exists around a line */ private hasErrorHandling; /** * Get severity level as number for comparison */ private getSeverityLevel; /** * Generate recommendations based on findings */ private generateRecommendations; /** * Calculate quality metrics */ private calculateQualityMetrics; /** * Apply persona-specific insights */ private applyPersonaInsights; /** * Get persona-specific recommendations */ private getPersonaRecommendations; } export {}; //# sourceMappingURL=ReviewCodeTool.d.ts.map