(edge: MemoryEdge, fromId: string)
| 119 | } |
| 120 | |
| 121 | function getNeighborId(edge: MemoryEdge, fromId: string): string { |
| 122 | return edge.source === fromId ? edge.target : edge.source; |
| 123 | } |
| 124 | |
| 125 | export async function upsertNode(rootDir: string, type: NodeType, label: string, content: string, metadata?: Record<string, string>): Promise<MemoryNode> { |
| 126 | const graph = await loadGraph(rootDir); |
no outgoing calls
no test coverage detected