`GET /api/v1/supply-chain` returns what the workspace's products are made
of, as nodes and edges for the Lieferkette page (#1050):
- nodes: suppliers (by the name a target gives), components (targets, not
archived) and product projects (family, product, assembly), each with a
stable key (`supplier:<name>`, `target:<id>`, `project:<id>`);
- edges: supplier to component with how its SBOM arrives (an active invite,
an upload, or none yet) and the version and time; component to every
product project it is part of, so a shared component makes a DAG; project
to the project above it;
- open CVEs on each component, and on each project the sum over the distinct
components beneath it, through assemblies, each counted once.
`Project` now reads the registry's `level` and `parent_id` (tenant-registry
0020); an empty parent is none. Topics are left out. Without a registry
(dev) projects are named by their id, as on the machine page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9