vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
124 lines • 4.45 kB
TypeScript
import { Epic, AtomicTask } from '../types/task.js';
import { FileOperationResult } from '../utils/file-utils.js';
export interface EpicDependency {
id: string;
fromEpicId: string;
toEpicId: string;
type: 'blocks' | 'enables' | 'requires' | 'suggests';
description: string;
critical: boolean;
strength: number;
metadata: {
createdAt: Date;
createdBy: string;
reason: string;
taskDependencies: string[];
};
}
export interface EpicDependencyAnalysis {
epicDependencies: EpicDependency[];
epicExecutionOrder: string[];
phases: EpicPhase[];
conflicts: EpicConflict[];
recommendations: EpicRecommendation[];
metadata: {
analyzedAt: Date;
projectId: string;
totalEpics: number;
totalTaskDependencies: number;
analysisTime: number;
};
}
export interface EpicPhase {
id: string;
name: string;
description: string;
epicIds: string[];
order: number;
estimatedDuration: number;
canRunInParallel: boolean;
prerequisites: string[];
}
export interface EpicConflict {
type: 'circular_dependency' | 'priority_mismatch' | 'resource_conflict' | 'timeline_conflict';
severity: 'low' | 'medium' | 'high' | 'critical';
description: string;
affectedEpics: string[];
resolutionOptions: {
type: 'reorder' | 'split' | 'merge' | 'adjust_priority';
description: string;
complexity: 'low' | 'medium' | 'high';
}[];
}
export interface EpicRecommendation {
type: 'parallelization' | 'reordering' | 'splitting' | 'merging' | 'priority_adjustment';
description: string;
affectedEpics: string[];
estimatedBenefit: string;
implementationComplexity: 'low' | 'medium' | 'high';
priority: 'low' | 'medium' | 'high';
}
export interface EpicDependencyConfig {
minDependencyStrength: number;
maxEpicDepth: number;
autoGeneratePhases: boolean;
enableParallelization: boolean;
minTasksPerEpic: number;
enableIntelligentDiscovery: boolean;
enableFilePathAnalysis: boolean;
enableSemanticAnalysis: boolean;
}
export interface RelationshipDiscoveryResult {
discoveredDependencies: EpicDependency[];
semanticRelationships: SemanticRelationship[];
filePathRelationships: FilePathRelationship[];
confidence: number;
reasoning: string[];
}
export interface SemanticRelationship {
fromEpicId: string;
toEpicId: string;
relationshipType: 'conceptual' | 'functional' | 'temporal' | 'hierarchical';
strength: number;
description: string;
confidence: number;
}
export interface FilePathRelationship {
fromEpicId: string;
toEpicId: string;
sharedFilePaths: string[];
conflictType: 'modification' | 'creation' | 'deletion' | 'read_dependency';
severity: 'low' | 'medium' | 'high';
resolutionSuggestion: string;
}
export declare class EpicDependencyManager {
private config;
private dependencyValidator;
constructor(config?: Partial<EpicDependencyConfig>);
analyzeEpicDependencies(projectId: string): Promise<FileOperationResult<EpicDependencyAnalysis>>;
createEpicDependency(fromEpicId: string, toEpicId: string, taskDependencies: string[], createdBy?: string): Promise<FileOperationResult<EpicDependency>>;
private deriveEpicDependencies;
private calculateDependencyStrength;
private calculateEpicExecutionOrder;
private generateProjectPhases;
private detectEpicConflicts;
private generateEpicRecommendations;
private validateEpicDependency;
private updateEpicDependencyLists;
private detectCircularEpicDependencies;
private detectPriorityConflicts;
private detectResourceConflicts;
private identifyParallelizationOpportunities;
private identifyEpicSplittingOpportunities;
private identifyEpicMergingOpportunities;
discoverIntelligentRelationships(projectId: string, epics: Epic[], tasks: AtomicTask[]): Promise<RelationshipDiscoveryResult>;
private analyzeFilePathRelationships;
private analyzeSemanticRelationships;
private calculateDiscoveryConfidence;
validateDiscoveredRelationships(discoveredDependencies: EpicDependency[], existingDependencies: EpicDependency[]): Promise<{
validatedDependencies: EpicDependency[];
conflicts: EpicConflict[];
optimizations: EpicRecommendation[];
}>;
}
//# sourceMappingURL=epic-dependency-manager.d.ts.map