Cohere.Map (Cohere v0.1.0)

Copy Markdown View Source

The derived map: the actual shape of the system, assembled from reflection over the compiled application.

The map is 100% derived and deterministic — same code in, same bytes out, no timestamps — so regenerating it in CI is free and diffing it is meaningful. It is the level-2 rung of the coherence ladder: truth that cannot lie because nobody authors it.

Summary

Functions

Builds the full map for a project.

Finds a context group by name ("Deals") or module (MyApp.Deals).

Builds and renders the map to markdown in one step.

Types

t()

@type t() :: %Cohere.Map{
  groups: term(),
  jobs: term(),
  other: term(),
  project: term(),
  root: term(),
  routers: term(),
  schemas: term(),
  web: term()
}

Functions

build(project)

@spec build(Cohere.Project.t()) :: t()

Builds the full map for a project.

fetch_group(map, name)

Finds a context group by name ("Deals") or module (MyApp.Deals).

render(project)

@spec render(Cohere.Project.t()) :: String.t()

Builds and renders the map to markdown in one step.