fix(javascript): preserve source facts across graph projections

This commit is contained in:
morluto
2026-10-24 02:59:20 +08:00
parent dac544be20
commit c8f8ec656c
14 changed files with 369 additions and 60 deletions
@@ -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,