UNPKG

vibe-coder-mcp

Version:

Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.

619 lines 22.2 kB
import { z } from 'zod'; export declare enum ContextCuratorLLMTask { INTENT_ANALYSIS = "context_curator_intent_analysis", PROMPT_REFINEMENT = "context_curator_prompt_refinement", FILE_DISCOVERY = "context_curator_file_discovery", RELEVANCE_SCORING = "context_curator_relevance_scoring", META_PROMPT_GENERATION = "context_curator_meta_prompt_generation", ARCHITECTURAL_ANALYSIS = "context_curator_architectural_analysis" } export declare const intentAnalysisResultSchema: z.ZodObject<{ taskType: z.ZodEnum<["feature_addition", "refactoring", "bug_fix", "performance_optimization", "general"]>; confidence: z.ZodNumber; reasoning: z.ZodArray<z.ZodString, "many">; architecturalComponents: z.ZodArray<z.ZodString, "many">; scopeAssessment: z.ZodObject<{ complexity: z.ZodEnum<["simple", "moderate", "complex"]>; estimatedFiles: z.ZodNumber; riskLevel: z.ZodEnum<["low", "medium", "high"]>; }, "strip", z.ZodTypeAny, { complexity: "moderate" | "simple" | "complex"; estimatedFiles: number; riskLevel: "low" | "medium" | "high"; }, { complexity: "moderate" | "simple" | "complex"; estimatedFiles: number; riskLevel: "low" | "medium" | "high"; }>; suggestedFocusAreas: z.ZodArray<z.ZodString, "many">; estimatedEffort: z.ZodEnum<["low", "medium", "high", "very_high"]>; }, "strip", z.ZodTypeAny, { confidence: number; taskType: "general" | "refactoring" | "feature_addition" | "bug_fix" | "performance_optimization"; reasoning: string[]; architecturalComponents: string[]; scopeAssessment: { complexity: "moderate" | "simple" | "complex"; estimatedFiles: number; riskLevel: "low" | "medium" | "high"; }; suggestedFocusAreas: string[]; estimatedEffort: "low" | "medium" | "high" | "very_high"; }, { confidence: number; taskType: "general" | "refactoring" | "feature_addition" | "bug_fix" | "performance_optimization"; reasoning: string[]; architecturalComponents: string[]; scopeAssessment: { complexity: "moderate" | "simple" | "complex"; estimatedFiles: number; riskLevel: "low" | "medium" | "high"; }; suggestedFocusAreas: string[]; estimatedEffort: "low" | "medium" | "high" | "very_high"; }>; export type IntentAnalysisResult = z.infer<typeof intentAnalysisResultSchema> & { projectAnalysis?: ProjectTypeAnalysisResult; languageAnalysis?: LanguageAnalysisResult; patternAnalysis?: { patterns: string[]; confidence: { [pattern: string]: number; }; evidence: { [pattern: string]: string[]; }; }; }; export declare const fileDiscoveryResultSchema: z.ZodObject<{ relevantFiles: z.ZodArray<z.ZodObject<{ path: z.ZodString; priority: z.ZodEnum<["high", "medium", "low"]>; reasoning: z.ZodString; confidence: z.ZodNumber; estimatedTokens: z.ZodNumber; modificationLikelihood: z.ZodEnum<["very_high", "high", "medium", "low", "very_low"]>; }, "strip", z.ZodTypeAny, { path: string; priority: "low" | "medium" | "high"; estimatedTokens: number; confidence: number; reasoning: string; modificationLikelihood: "low" | "medium" | "high" | "very_low" | "very_high"; }, { path: string; priority: "low" | "medium" | "high"; estimatedTokens: number; confidence: number; reasoning: string; modificationLikelihood: "low" | "medium" | "high" | "very_low" | "very_high"; }>, "many">; totalFilesAnalyzed: z.ZodNumber; processingTimeMs: z.ZodNumber; searchStrategy: z.ZodEnum<["semantic_similarity", "keyword_matching", "semantic_and_keyword", "structural_analysis", "multi_strategy"]>; coverageMetrics: z.ZodObject<{ totalTokens: z.ZodNumber; averageConfidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { averageConfidence: number; totalTokens: number; }, { averageConfidence: number; totalTokens: number; }>; }, "strip", z.ZodTypeAny, { relevantFiles: { path: string; priority: "low" | "medium" | "high"; estimatedTokens: number; confidence: number; reasoning: string; modificationLikelihood: "low" | "medium" | "high" | "very_low" | "very_high"; }[]; searchStrategy: "semantic_similarity" | "keyword_matching" | "semantic_and_keyword" | "structural_analysis" | "multi_strategy"; processingTimeMs: number; totalFilesAnalyzed: number; coverageMetrics: { averageConfidence: number; totalTokens: number; }; }, { relevantFiles: { path: string; priority: "low" | "medium" | "high"; estimatedTokens: number; confidence: number; reasoning: string; modificationLikelihood: "low" | "medium" | "high" | "very_low" | "very_high"; }[]; searchStrategy: "semantic_similarity" | "keyword_matching" | "semantic_and_keyword" | "structural_analysis" | "multi_strategy"; processingTimeMs: number; totalFilesAnalyzed: number; coverageMetrics: { averageConfidence: number; totalTokens: number; }; }>; export type FileDiscoveryResult = z.infer<typeof fileDiscoveryResultSchema>; export type FileDiscoveryFile = { path: string; priority: 'high' | 'medium' | 'low'; reasoning: string; confidence: number; estimatedTokens: number; modificationLikelihood: 'very_high' | 'high' | 'medium' | 'low' | 'very_low'; }; export declare const promptRefinementResultSchema: z.ZodObject<{ refinedPrompt: z.ZodString; enhancementReasoning: z.ZodArray<z.ZodString, "many">; addedContext: z.ZodArray<z.ZodString, "many">; originalLength: z.ZodNumber; refinedLength: z.ZodNumber; improvementScore: z.ZodNumber; contextualEnhancements: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { originalLength: number; refinedPrompt: string; enhancementReasoning: string[]; addedContext: string[]; refinedLength: number; improvementScore: number; contextualEnhancements: string[]; }, { originalLength: number; refinedPrompt: string; enhancementReasoning: string[]; addedContext: string[]; refinedLength: number; improvementScore: number; contextualEnhancements: string[]; }>; export type PromptRefinementResult = z.infer<typeof promptRefinementResultSchema>; export declare const relevanceScoringResultSchema: z.ZodObject<{ fileScores: z.ZodArray<z.ZodObject<{ filePath: z.ZodString; relevanceScore: z.ZodNumber; confidence: z.ZodNumber; reasoning: z.ZodString; categories: z.ZodArray<z.ZodString, "many">; modificationLikelihood: z.ZodEnum<["very_high", "high", "medium", "low", "very_low"]>; estimatedTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { filePath: string; estimatedTokens: number; confidence: number; reasoning: string; relevanceScore: number; categories: string[]; modificationLikelihood: "low" | "medium" | "high" | "very_low" | "very_high"; }, { filePath: string; estimatedTokens: number; confidence: number; reasoning: string; relevanceScore: number; categories: string[]; modificationLikelihood: "low" | "medium" | "high" | "very_low" | "very_high"; }>, "many">; overallMetrics: z.ZodObject<{ averageRelevance: z.ZodNumber; totalFilesScored: z.ZodNumber; highRelevanceCount: z.ZodNumber; processingTimeMs: z.ZodNumber; }, "strip", z.ZodTypeAny, { averageRelevance: number; processingTimeMs: number; totalFilesScored: number; highRelevanceCount: number; }, { averageRelevance: number; processingTimeMs: number; totalFilesScored: number; highRelevanceCount: number; }>; scoringStrategy: z.ZodEnum<["semantic_similarity", "keyword_density", "structural_importance", "hybrid"]>; chunkingUsed: z.ZodOptional<z.ZodBoolean>; totalChunks: z.ZodOptional<z.ZodNumber>; chunkSize: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { fileScores: { filePath: string; estimatedTokens: number; confidence: number; reasoning: string; relevanceScore: number; categories: string[]; modificationLikelihood: "low" | "medium" | "high" | "very_low" | "very_high"; }[]; overallMetrics: { averageRelevance: number; processingTimeMs: number; totalFilesScored: number; highRelevanceCount: number; }; scoringStrategy: "hybrid" | "semantic_similarity" | "keyword_density" | "structural_importance"; totalChunks?: number | undefined; chunkingUsed?: boolean | undefined; chunkSize?: number | undefined; }, { fileScores: { filePath: string; estimatedTokens: number; confidence: number; reasoning: string; relevanceScore: number; categories: string[]; modificationLikelihood: "low" | "medium" | "high" | "very_low" | "very_high"; }[]; overallMetrics: { averageRelevance: number; processingTimeMs: number; totalFilesScored: number; highRelevanceCount: number; }; scoringStrategy: "hybrid" | "semantic_similarity" | "keyword_density" | "structural_importance"; totalChunks?: number | undefined; chunkingUsed?: boolean | undefined; chunkSize?: number | undefined; }>; export type RelevanceScoringResult = z.infer<typeof relevanceScoringResultSchema>; export declare const metaPromptGenerationResultSchema: z.ZodObject<{ systemPrompt: z.ZodString; userPrompt: z.ZodString; contextSummary: z.ZodString; taskDecomposition: z.ZodObject<{ epics: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodString; estimatedComplexity: z.ZodEnum<["low", "medium", "high", "very_high"]>; tasks: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodString; estimatedHours: z.ZodNumber; dependencies: z.ZodArray<z.ZodString, "many">; subtasks: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodString; estimatedMinutes: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: string; description: string; title: string; estimatedMinutes: number; }, { id: string; description: string; title: string; estimatedMinutes: number; }>, "many">; }, "strip", z.ZodTypeAny, { dependencies: string[]; id: string; description: string; title: string; estimatedHours: number; subtasks: { id: string; description: string; title: string; estimatedMinutes: number; }[]; }, { dependencies: string[]; id: string; description: string; title: string; estimatedHours: number; subtasks: { id: string; description: string; title: string; estimatedMinutes: number; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { tasks: { dependencies: string[]; id: string; description: string; title: string; estimatedHours: number; subtasks: { id: string; description: string; title: string; estimatedMinutes: number; }[]; }[]; id: string; description: string; title: string; estimatedComplexity: "low" | "medium" | "high" | "very_high"; }, { tasks: { dependencies: string[]; id: string; description: string; title: string; estimatedHours: number; subtasks: { id: string; description: string; title: string; estimatedMinutes: number; }[]; }[]; id: string; description: string; title: string; estimatedComplexity: "low" | "medium" | "high" | "very_high"; }>, "many">; }, "strip", z.ZodTypeAny, { epics: { tasks: { dependencies: string[]; id: string; description: string; title: string; estimatedHours: number; subtasks: { id: string; description: string; title: string; estimatedMinutes: number; }[]; }[]; id: string; description: string; title: string; estimatedComplexity: "low" | "medium" | "high" | "very_high"; }[]; }, { epics: { tasks: { dependencies: string[]; id: string; description: string; title: string; estimatedHours: number; subtasks: { id: string; description: string; title: string; estimatedMinutes: number; }[]; }[]; id: string; description: string; title: string; estimatedComplexity: "low" | "medium" | "high" | "very_high"; }[]; }>; guidelines: z.ZodArray<z.ZodString, "many">; estimatedComplexity: z.ZodEnum<["low", "medium", "high", "very_high"]>; qualityScore: z.ZodNumber; aiAgentResponseFormat: z.ZodOptional<z.ZodObject<{ description: z.ZodString; format: z.ZodString; rules: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { description: string; format: string; rules: string[]; }, { description: string; format: string; rules: string[]; }>>; }, "strip", z.ZodTypeAny, { taskDecomposition: { epics: { tasks: { dependencies: string[]; id: string; description: string; title: string; estimatedHours: number; subtasks: { id: string; description: string; title: string; estimatedMinutes: number; }[]; }[]; id: string; description: string; title: string; estimatedComplexity: "low" | "medium" | "high" | "very_high"; }[]; }; contextSummary: string; estimatedComplexity: "low" | "medium" | "high" | "very_high"; qualityScore: number; systemPrompt: string; userPrompt: string; guidelines: string[]; aiAgentResponseFormat?: { description: string; format: string; rules: string[]; } | undefined; }, { taskDecomposition: { epics: { tasks: { dependencies: string[]; id: string; description: string; title: string; estimatedHours: number; subtasks: { id: string; description: string; title: string; estimatedMinutes: number; }[]; }[]; id: string; description: string; title: string; estimatedComplexity: "low" | "medium" | "high" | "very_high"; }[]; }; contextSummary: string; estimatedComplexity: "low" | "medium" | "high" | "very_high"; qualityScore: number; systemPrompt: string; userPrompt: string; guidelines: string[]; aiAgentResponseFormat?: { description: string; format: string; rules: string[]; } | undefined; }>; export type MetaPromptGenerationResult = z.infer<typeof metaPromptGenerationResultSchema>; export declare const architecturalAnalysisResultSchema: z.ZodObject<{ architecturalPatterns: z.ZodArray<z.ZodString, "many">; dependencies: z.ZodArray<z.ZodObject<{ name: z.ZodString; version: z.ZodString; type: z.ZodEnum<["runtime", "development", "peer", "optional"]>; importance: z.ZodEnum<["critical", "important", "optional", "deprecated"]>; }, "strip", z.ZodTypeAny, { type: "development" | "runtime" | "peer" | "optional"; version: string; name: string; importance: "critical" | "important" | "optional" | "deprecated"; }, { type: "development" | "runtime" | "peer" | "optional"; version: string; name: string; importance: "critical" | "important" | "optional" | "deprecated"; }>, "many">; codeStructure: z.ZodObject<{ directories: z.ZodArray<z.ZodString, "many">; entryPoints: z.ZodArray<z.ZodString, "many">; configFiles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { directories: string[]; configFiles: string[]; entryPoints: string[]; }, { directories: string[]; configFiles: string[]; entryPoints: string[]; }>; recommendations: z.ZodArray<z.ZodString, "many">; complexityAssessment: z.ZodObject<{ overall: z.ZodEnum<["low", "medium", "high", "very_high"]>; factors: z.ZodArray<z.ZodString, "many">; score: z.ZodNumber; }, "strip", z.ZodTypeAny, { score: number; overall: "low" | "medium" | "high" | "very_high"; factors: string[]; }, { score: number; overall: "low" | "medium" | "high" | "very_high"; factors: string[]; }>; }, "strip", z.ZodTypeAny, { dependencies: { type: "development" | "runtime" | "peer" | "optional"; version: string; name: string; importance: "critical" | "important" | "optional" | "deprecated"; }[]; architecturalPatterns: string[]; recommendations: string[]; codeStructure: { directories: string[]; configFiles: string[]; entryPoints: string[]; }; complexityAssessment: { score: number; overall: "low" | "medium" | "high" | "very_high"; factors: string[]; }; }, { dependencies: { type: "development" | "runtime" | "peer" | "optional"; version: string; name: string; importance: "critical" | "important" | "optional" | "deprecated"; }[]; architecturalPatterns: string[]; recommendations: string[]; codeStructure: { directories: string[]; configFiles: string[]; entryPoints: string[]; }; complexityAssessment: { score: number; overall: "low" | "medium" | "high" | "very_high"; factors: string[]; }; }>; export type ArchitecturalAnalysisResult = z.infer<typeof architecturalAnalysisResultSchema>; export interface LanguageAnalysisResult { languages: string[]; fileExtensions: string[]; grammarSupport: { [language: string]: boolean; }; languageDistribution: { [language: string]: number; }; primaryLanguage: string; secondaryLanguages: string[]; frameworkIndicators: string[]; buildSystemIndicators: string[]; languageConfidence: { [language: string]: number; }; totalFilesAnalyzed: number; } export interface ProjectTypeAnalysisResult { projectType: string; secondaryTypes: string[]; confidence: number; evidence: string[]; frameworkStack: string[]; architectureStyle: string[]; developmentEnvironment: string[]; } export declare const llmTaskErrorSchema: z.ZodObject<{ task: z.ZodNativeEnum<typeof ContextCuratorLLMTask>; message: z.ZodString; code: z.ZodString; details: z.ZodRecord<z.ZodString, z.ZodUnknown>; recoverable: z.ZodBoolean; }, "strip", z.ZodTypeAny, { message: string; task: ContextCuratorLLMTask; code: string; details: Record<string, unknown>; recoverable: boolean; }, { message: string; task: ContextCuratorLLMTask; code: string; details: Record<string, unknown>; recoverable: boolean; }>; export type LLMTaskError = z.infer<typeof llmTaskErrorSchema>; export declare const validateIntentAnalysisResult: (result: unknown) => result is IntentAnalysisResult; export declare const validateFileDiscoveryResult: (result: unknown) => result is FileDiscoveryResult; export declare const validatePromptRefinementResult: (result: unknown) => result is PromptRefinementResult; export declare const validateRelevanceScoringResult: (result: unknown) => result is RelevanceScoringResult; export declare const validateMetaPromptGenerationResult: (result: unknown) => result is MetaPromptGenerationResult; export declare const validateArchitecturalAnalysisResult: (result: unknown) => result is ArchitecturalAnalysisResult; export declare const getLLMTaskName: (task: ContextCuratorLLMTask) => string; export declare const validateLLMTaskResult: (task: ContextCuratorLLMTask, result: unknown) => boolean; //# sourceMappingURL=llm-tasks.d.ts.map