UNPKG

cortexweaver

Version:

CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate

109 lines 3.69 kB
import { Neo4jQueryResult, ProjectNodeData, ProjectNode, WorktreeResult, CommitResult, MCPClientConfig } from './index'; /** * MCPClientOperations handles all the operational aspects of MCP client functionality * including Neo4j operations, GitHub operations, diagnostic methods, and agent support */ export declare class MCPClientOperations { private neo4jConnected; private githubConnected; private config; private neo4jDriver; private diagnostics; constructor(config: MCPClientConfig); updateConfig(config: Partial<MCPClientConfig>): void; getConfig(): MCPClientConfig; isNeo4jConnected(): boolean; isGitHubConnected(): boolean; isConnected(): boolean; connectToNeo4j(): Promise<boolean>; executeCypherQuery(query: string, parameters?: { [key: string]: any; }): Promise<Neo4jQueryResult>; createProjectNode(projectData: ProjectNodeData): Promise<ProjectNode>; createTaskNode(taskData: any): Promise<any>; linkTaskToProject(taskId: string, projectId: string): Promise<void>; connectToGitHub(): Promise<boolean>; createWorktree(branchName: string, baseBranch?: string): Promise<WorktreeResult>; writeFileToWorktree(filePath: string, fileName: string, content: string): Promise<boolean>; commitToWorktree(worktreePath: string, message: string, files: string[]): Promise<CommitResult>; mergeWorktree(branchName: string, targetBranch?: string): Promise<void>; removeWorktree(worktreePath: string): Promise<void>; disconnect(): Promise<void>; healthCheck(): Promise<{ neo4j: boolean; github: boolean; }>; scanWorktreeForChanges(projectId?: string): Promise<Array<{ path: string; type: 'contract' | 'prototype' | 'code' | 'test'; lastModified: string; }>>; analyzeLogs(projectId?: string): Promise<{ errorPatterns: string[]; frequency: Record<string, number>; timeline: string; }>; getStackTrace(errorId: string): Promise<{ stackTrace: string; sourceMap?: string; context: string[]; }>; getSystemMetrics(): Promise<{ memory: { usage: string; available?: string; trend?: string; }; cpu: { usage: string; load?: number; trend?: string; }; disk?: { usage: string; iops?: string; }; network?: { bandwidth?: string; latency?: string; packetLoss?: string; errors?: number; }; database?: { connections?: number; maxConnections?: number; status?: string; }; }>; runDiagnosticCommands(commands: string[]): Promise<{ results: Array<{ command: string; output: string; exitCode: number; duration: number; }>; }>; getEnvironmentInfo(): Promise<{ nodeVersion: string; npmVersion: string; osVersion: string; dockerVersion?: string; dependencies: Record<string, string>; }>; captureErrorContext(errorId: string): Promise<{ timestamp: string; environment: Record<string, any>; processState: Record<string, any>; memorySnapshot: Record<string, any>; }>; commitKnowledgeUpdates(projectId: string, updates: { knowledgeNodes: string[]; pheromoneChanges: string[]; summary: string; }): Promise<{ success: boolean; commitHash?: string; message?: string; }>; } //# sourceMappingURL=client-operations.d.ts.map