fix(javascript): retain endpoint candidates through graph projection

This commit is contained in:
morluto
2026-10-14 09:47:30 +08:00
parent 6e344302cb
commit 88afcc738b
9 changed files with 226 additions and 27 deletions
@@ -77,6 +77,7 @@ export interface AstEdgeInput {
/** Inferred static relationship edge values. */
export interface InferenceEdgeInput extends AstEdgeInput {
readonly limitations?: readonly string[];
readonly confidence?: "high" | "medium" | "low";
readonly relation:
| "imports"
| "loads"
@@ -194,6 +195,9 @@ export const addStaticInferenceEdge = (
range: input.range,
operation: "map-static-relationship",
coverage: input.coverage,
...(input.confidence === undefined
? {}
: { confidence: input.confidence }),
...(input.limitations === undefined
? {}
: { limitations: input.limitations }),