data-cap
    Preparing search index...

    Interface DependencyEdge

    A statically-proven connection from one consuming file to a capability (or a specific field/operation on it). Unlike the declared metadata in core/document.ts (source, credentials, endpoints), every DependencyEdge is derived by AST analysis, never author-declared -- see AGENTS.md's declared-vs-proven invariant. Produced by the usage-scan pass (scan-dependencies.ts), not by this module.

    interface DependencyEdge {
        from: string;
        position: SourcePosition | undefined;
        relationship: DependencyRelationship;
        resolution: "resolved" | "unresolved-consumer" | "indeterminate";
        to: {
            capability: { exportName: string; file: string };
            field?: readonly string[];
            operation?: string;
        };
    }
    Index
    from: string

    The consuming file, as a root-relative POSIX path (OUT-01, see display-path.ts).

    position: SourcePosition | undefined

    Position of the access site in from (file already known via from), when this edge originates from a specific identifier reference (every relationship except the file-level "imports" fallback edge scan-dependencies.ts synthesizes for a consumer with no further resolved usage).

    Which kind of connection this is -- see DependencyRelationship.

    resolution: "resolved" | "unresolved-consumer" | "indeterminate"

    Whether the consumer reference itself was unambiguously resolved -- see the usage-scan pass for what each value means.

    to: {
        capability: { exportName: string; file: string };
        field?: readonly string[];
        operation?: string;
    }

    What this edge connects to.

    Type Declaration

    • Readonlycapability: { exportName: string; file: string }

      The capability being consumed.

      • ReadonlyexportName: string

        The binding name the capability is exported as.

      • Readonlyfile: string

        Root-relative POSIX path of the file declaring the capability -- the same value CapabilityNode.file publishes.

    • Optional Readonlyfield?: readonly string[]

      The specific field path being read, when relationship is "reads-field".

    • Optional Readonlyoperation?: string

      The specific operation name being called, when relationship is "calls-getter"/"calls-mutator"/"calls-subscription".