mirror of
https://github.com/morluto/rea
synced 2026-10-28 06:46:47 -04:00
f4322b15ed
Admit unknowns before canonical construction and provenance interning. Offer independent per-file and application capacities through CLI, Evidence and the owned analysis worker, and reject over-allocation during streamed decoding. Report examined omitted emission occurrences by family and reason without retaining discarded identities. Preserve omission-free graph identities and distinguish node truncation from overall partial coverage. Fixes #4797
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
import type {
|
|
JavaScriptSemanticEvidenceContext,
|
|
JavaScriptSemanticFingerprint,
|
|
JavaScriptSemanticGraphNode,
|
|
JavaScriptSemanticGraphRelation,
|
|
JavaScriptSemanticGraphUnknown,
|
|
JavaScriptSemanticUnknownOmission,
|
|
} 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[];
|
|
readonly omittedUnknownOccurrences?: readonly JavaScriptSemanticUnknownOmission[];
|
|
readonly fingerprints: readonly JavaScriptSemanticFingerprint[];
|
|
readonly nodesTruncated: boolean;
|
|
}
|
|
|
|
/** Independent retained capacities offered to one source projection. */
|
|
export interface JavaScriptSemanticProjectionCapacity {
|
|
readonly nodes: number;
|
|
readonly unknowns: number;
|
|
}
|