fix: add context=import to JS/TS named-import edges (caught by PR #573 test)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Safi
2026-05-02 16:50:33 +01:00
co-authored by Claude Sonnet 4.6
parent 28047b502f
commit bfe18f0c83
+1
View File
@@ -251,6 +251,7 @@ def _import_js(node, source: bytes, file_nid: str, stem: str, edges: list, str_p
"source": file_nid,
"target": _make_id(target_stem, sym),
"relation": "imports",
"context": "import",
"confidence": "EXTRACTED",
"source_file": str_path,
"source_location": f"L{line}",