UNPKG

superaugment

Version:

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

85 lines 3.22 kB
import { z } from 'zod'; import type { SuperAugmentTool } from '../ToolManager.js'; import { ConfigManager } from '../../config/ConfigManager.js'; declare const AnalyzeCodeInputSchema: z.ZodObject<{ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; code: z.ZodOptional<z.ZodString>; projectPath: z.ZodOptional<z.ZodString>; persona: z.ZodOptional<z.ZodString>; depth: z.ZodDefault<z.ZodEnum<["basic", "detailed", "comprehensive"]>>; focus: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; language: z.ZodOptional<z.ZodString>; includeMetrics: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { depth: "basic" | "detailed" | "comprehensive"; includeMetrics: boolean; code?: string | undefined; files?: string[] | undefined; projectPath?: string | undefined; persona?: string | undefined; focus?: string[] | undefined; language?: string | undefined; }, { code?: string | undefined; depth?: "basic" | "detailed" | "comprehensive" | undefined; files?: string[] | undefined; projectPath?: string | undefined; persona?: string | undefined; focus?: string[] | undefined; language?: string | undefined; includeMetrics?: boolean | undefined; }>; type AnalyzeCodeInput = z.infer<typeof AnalyzeCodeInputSchema>; /** * Code analysis tool with cognitive persona support */ export declare class AnalyzeCodeTool implements SuperAugmentTool { private configManager; name: string; description: string; inputSchema: z.ZodObject<{ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; code: z.ZodOptional<z.ZodString>; projectPath: z.ZodOptional<z.ZodString>; persona: z.ZodOptional<z.ZodString>; depth: z.ZodDefault<z.ZodEnum<["basic", "detailed", "comprehensive"]>>; focus: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; language: z.ZodOptional<z.ZodString>; includeMetrics: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { depth: "basic" | "detailed" | "comprehensive"; includeMetrics: boolean; code?: string | undefined; files?: string[] | undefined; projectPath?: string | undefined; persona?: string | undefined; focus?: string[] | undefined; language?: string | undefined; }, { code?: string | undefined; depth?: "basic" | "detailed" | "comprehensive" | undefined; files?: string[] | undefined; projectPath?: string | undefined; persona?: string | undefined; focus?: string[] | undefined; language?: string | undefined; includeMetrics?: boolean | undefined; }>; private fileSystemManager; constructor(configManager: ConfigManager); execute(args: AnalyzeCodeInput): Promise<any>; /** * Get code to analyze from files or direct input */ private getCodeToAnalyze; private performAnalysis; private detectIssues; private generateSuggestions; private calculateMetrics; private calculateOverallMetrics; private detectLanguage; private applyPersonaInsights; private formatAnalysisResult; } export {}; //# sourceMappingURL=AnalyzeCodeTool.d.ts.map