vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
41 lines • 2.65 kB
TypeScript
import { FileOperationResult } from '../../utils/file-utils.js';
import { Dependency, DependencyGraph } from '../../types/dependency.js';
export interface DependencyStorageOperations {
createDependency(dependency: Dependency): Promise<FileOperationResult<Dependency>>;
getDependency(dependencyId: string): Promise<FileOperationResult<Dependency>>;
updateDependency(dependencyId: string, updates: Partial<Dependency>): Promise<FileOperationResult<Dependency>>;
deleteDependency(dependencyId: string): Promise<FileOperationResult<void>>;
listDependencies(projectId?: string): Promise<FileOperationResult<Dependency[]>>;
getDependenciesForTask(taskId: string): Promise<FileOperationResult<Dependency[]>>;
getDependentsForTask(taskId: string): Promise<FileOperationResult<Dependency[]>>;
dependencyExists(dependencyId: string): Promise<boolean>;
saveDependencyGraph(projectId: string, graph: DependencyGraph): Promise<FileOperationResult<void>>;
loadDependencyGraph(projectId: string): Promise<FileOperationResult<DependencyGraph>>;
deleteDependencyGraph(projectId: string): Promise<FileOperationResult<void>>;
}
export declare class DependencyStorage implements DependencyStorageOperations {
private dataDirectory;
private dependenciesDirectory;
private graphsDirectory;
private dependencyIndexFile;
constructor(dataDirectory?: string);
initialize(): Promise<FileOperationResult<void>>;
createDependency(dependency: Dependency): Promise<FileOperationResult<Dependency>>;
getDependency(dependencyId: string): Promise<FileOperationResult<Dependency>>;
updateDependency(dependencyId: string, updates: Partial<Dependency>): Promise<FileOperationResult<Dependency>>;
deleteDependency(dependencyId: string): Promise<FileOperationResult<void>>;
listDependencies(projectId?: string): Promise<FileOperationResult<Dependency[]>>;
getDependenciesForTask(taskId: string): Promise<FileOperationResult<Dependency[]>>;
getDependentsForTask(taskId: string): Promise<FileOperationResult<Dependency[]>>;
dependencyExists(dependencyId: string): Promise<boolean>;
saveDependencyGraph(projectId: string, graph: DependencyGraph): Promise<FileOperationResult<void>>;
loadDependencyGraph(projectId: string): Promise<FileOperationResult<DependencyGraph>>;
deleteDependencyGraph(projectId: string): Promise<FileOperationResult<void>>;
private getDependencyFilePath;
private getGraphFilePath;
private validateDependency;
private isDependencyInProject;
private loadIndex;
private updateIndex;
}
//# sourceMappingURL=dependency-storage.d.ts.map