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

@@ -379,6 +379,13 @@ export const javascriptAnalysisCoverage = (
? completeApplicationCoverage()
: partialApplicationCoverage([], null);
/** Parsed inventory identity shared by whole-file graph representations. */
export const fileOccurrenceIdentity = (file: JavaScriptArtifactFile) => ({
container_sha256: file.container_sha256,
path: file.path,
sha256: file.sha256,
});
/** Stable identity for a fact scoped to one exact artifact. */
export const artifactLocalIdentity = (
sha256: string,