fix(javascript): preserve source facts across graph projections

This commit is contained in:
morluto committed 2026-10-24 03:00:10 +08:00
1 parent dac544be20
commit c8f8ec656c
14 files changed
+369 -60

No files matched your search

@@ -52,8 +52,12 @@ export const traceApplicationFeature = (
const graph = traceGraph(input, seedMatches, traversal);
const paths = terminalPaths(traversal, seedMatches);
const nativeHandoffs = buildJavaScriptNativeHandoffs(
traversal.nodes,
traversal.edges,
input.graph,
new Set(
traversal.nodes
.filter(({ kind }) => kind === "native-addon")
.map(({ node_id }) => node_id),
),
input.nativeEvidence,
);
const evidenceLinks = uniqueSorted([