feat: cross-node consumption edges over the mesh

Carry each deployment's `requires` (deployment refs, no secrets) from config →
registry → the mesh MQTT payload, and expose it on /mesh/deployments. The System
Map resolves a remote deployment's ref against the provider set across nodes
(same machine → local provider → other machine) and draws a dashed cross-node
edge. This is the multi-node payoff: e.g. primer's castle-api → civil's mqtt.
This commit is contained in:
2026-07-06 17:16:09 -07:00
parent bbd5590742
commit ebd23e42c1
6 changed files with 69 additions and 0 deletions

View File

@@ -126,6 +126,9 @@ def mesh_deployments() -> dict:
"base_url": getattr(d, "base_url", None),
"subdomain": d.subdomain,
"endpoints": _endpoints_of_registry(d),
"requires": [
r.get("ref") for r in (getattr(d, "requires", None) or []) if r.get("ref")
],
}
)
return {"deployments": out}