@maverickcer/env-cap
    Preparing search index...

    Function buildDependencyModel

    • Runs the dependency-ownership engine (buildDependencyGraph(), Private) and projects its result into the Dependency Model's versioned, JSON-serializable shape -- including the inverse file->contracts index neither dependency-graph.ts nor usage-report.ts exposes today.

      Parameters

      • contracts: readonly DiscoveredContract[]
      • scanFiles: readonly string[]
      • readFile: (filePath: string) => Promise<string>
      • context: ImportResolutionContext
      • root: string
      • OptionalscannedSurfaces: readonly ScannedSurface[]

        See buildDependencyGraph()'s own parameter of the same name -- passed straight through to the published model.

      • OptionaldynamicAccessAcknowledgments: ReadonlyMap<string, readonly DynamicAccessAssertion[]>

        See buildDependencyGraph()'s own parameter of the same name (ADR 0037) -- passed straight through.

      Returns Promise<DependencyModel>