supermemory/packages/memory-graph/src
sohamd22 cfa6c7cb17 fix(memory-graph): distinguish document links from derives relations (#1701)
Document-to-memory links and actual `derives` relations were both emitted as `derives`, so they shared the same color and legend entry.

This separates structural document links into a `document` edge type, adds a dedicated theme color with `--graph-edge-document` support, and updates force-layout and level-of-detail handling to preserve existing structural behavior. The package and MCP widget legends/themes now distinguish document links from derived-memory relations.

Adds regression coverage for edge classification and validates the package plus its MCP consumer.

<!-- capy-badge:start -->
<a href="https://capy.ai/thread/jam_01M36F4MPFXZCA8J14T53YY029"><picture><source media="(prefers-color-scheme: dark)" srcset="https://capy.ai/badge/accent-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://capy.ai/badge/accent-light.svg"><img alt="Open in Capy" src="https://capy.ai/badge/accent-light.svg"></picture></a>
<!-- capy-badge:end -->
2026-09-25 22:00:12 +00:00
..
__tests__ fix(memory-graph): distinguish document links from derives relations (#1701) 2026-09-25 22:00:12 +00:00
canvas fix(memory-graph): distinguish document links from derives relations (#1701) 2026-09-25 22:00:12 +00:00
components fix(memory-graph): distinguish document links from derives relations (#1701) 2026-09-25 22:00:12 +00:00
hooks fix(memory-graph): distinguish document links from derives relations (#1701) 2026-09-25 22:00:12 +00:00
utils Improve memory graph (#973) 2026-06-05 15:48:41 -07:00
api-types.ts Rewrite @supermemory/memory-graph with perf optimizations + consolidate consumers (#809) 2026-03-28 19:06:27 -07:00
constants.ts fix(memory-graph): distinguish document links from derives relations (#1701) 2026-09-25 22:00:12 +00:00
index.tsx fix(memory-graph): distinguish document links from derives relations (#1701) 2026-09-25 22:00:12 +00:00
mock-data.ts Rewrite @supermemory/memory-graph with perf optimizations + consolidate consumers (#809) 2026-03-28 19:06:27 -07:00
types.ts fix(memory-graph): distinguish document links from derives relations (#1701) 2026-09-25 22:00:12 +00:00