Foundry.Context.GraphBuilder (foundry v0.1.4)

Copy Markdown

Assembles the complete project graph by collecting all nodes and deriving edges between them based on structural and behavioral relationships.

Edge derivation rules:

  • Reactor :create/:update steps → resource: writes edge
  • Reactor :read/:read_one steps → resource: reads edge
  • Oban worker with @performs → Reactor: async edge
  • Resource belongs_to relationship: references edge
  • Resource has_many/has_one relationship: referenced_by edge

Summary

Functions

build(project_root, manifest)

@spec build(String.t(), list()) ::
  {[Foundry.Context.NodeEntry.t()], [Foundry.Context.EdgeEntry.t()]}