UNPKG

intent-graph-mcp-server

Version:

Universal LLM-powered MCP server for automated Intent Graph generation (Writer Palmyra, Claude, OpenAI, custom)

37 lines 1.31 kB
/** * IntentGraph Utility Functions * Helper functions for graph operations, validation, and analysis */ import type { IntentGraphNode, IntentGraphEdge, IntentGraphDocument, ValidationResult, ComplexityMetrics, StoredGraph } from './types.js'; /** * Generate unique node ID */ export declare function generateNodeId(agentName: string): string; /** * Generate unique edge ID */ export declare function generateEdgeId(fromNode: string, toNode: string): string; /** * Calculate complexity metrics for a graph */ export declare function calculateComplexityMetrics(nodes: IntentGraphNode[], edges: IntentGraphEdge[]): ComplexityMetrics; /** * Validate graph structure */ export declare function validateGraph(graph: IntentGraphDocument): ValidationResult; /** * Calculate critical path (longest path through graph) */ export declare function calculateCriticalPath(nodes: IntentGraphNode[], edges: IntentGraphEdge[]): string[]; /** * Find parallel execution opportunities */ export declare function findParallelOpportunities(_nodes: IntentGraphNode[], edges: IntentGraphEdge[]): Array<{ from_node: string; parallel_nodes: string[]; }>; /** * Update graph metadata after modifications */ export declare function updateGraphMetadata(stored: StoredGraph): void; //# sourceMappingURL=utils.d.ts.map