2026-10-11 07:22:50 +08:00
|
|
|
import type {
|
|
|
|
|
JavaScriptSemanticEvidenceContext,
|
|
|
|
|
JavaScriptSemanticFingerprint,
|
|
|
|
|
JavaScriptSemanticGraphNode,
|
|
|
|
|
JavaScriptSemanticGraphRelation,
|
|
|
|
|
JavaScriptSemanticGraphUnknown,
|
2026-10-17 21:57:31 +08:00
|
|
|
JavaScriptSemanticUnknownOmission,
|
2026-10-11 07:22:50 +08:00
|
|
|
} from "./javascriptSemanticGraphSchemas.js";
|
|
|
|
|
|
|
|
|
|
/** File-local facts transported before binding them to the containing application graph. */
|
|
|
|
|
export interface JavaScriptSemanticFileProjection {
|
|
|
|
|
readonly roots: readonly string[];
|
|
|
|
|
readonly evidenceContexts: readonly JavaScriptSemanticEvidenceContext[];
|
|
|
|
|
readonly nodes: readonly JavaScriptSemanticGraphNode[];
|
|
|
|
|
readonly relations: readonly JavaScriptSemanticGraphRelation[];
|
|
|
|
|
readonly unknowns: readonly JavaScriptSemanticGraphUnknown[];
|
2026-10-17 21:57:31 +08:00
|
|
|
readonly omittedUnknownOccurrences?: readonly JavaScriptSemanticUnknownOmission[];
|
2026-10-11 07:22:50 +08:00
|
|
|
readonly fingerprints: readonly JavaScriptSemanticFingerprint[];
|
2026-10-17 21:57:31 +08:00
|
|
|
readonly nodesTruncated: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Independent retained capacities offered to one source projection. */
|
|
|
|
|
export interface JavaScriptSemanticProjectionCapacity {
|
|
|
|
|
readonly nodes: number;
|
|
|
|
|
readonly unknowns: number;
|
2026-10-11 07:22:50 +08:00
|
|
|
}
|