class Rigor::ModuleGraph::PackwerkOverlay

Discovers Packwerk-style packages (package.yml) inside a project tree and maps source file paths to their owning package.

Treats every directory that contains a +package.yml+ as a package root. The package’s name is its path relative to the project root with a leading +./+ stripped — that’s how +packwerk+ itself reports them, and it’s stable across Packwerk versions which gives the renderer something to use as the cluster label.

Files map to the +deepest+ ancestor package — if a nested packages/billing/invoices/package.yml lives under packages/billing/package.yml, a file under the inner one belongs to +packages/billing/invoices+, not +packages/billing+.