Beds read the catalogue: one loader, eight beds converted, the rest declared (hq issue 073) #41

Merged
jschoubben merged 5 commits from feat/beds-read-the-catalogue into main 2026-09-21 17:23:16 +00:00
Showing only changes of commit 8c37328ba3 - Show all commits
+3 -1
View File
@@ -255,7 +255,9 @@ export function catalogueDir(): string {
? [resolve(named, "modules"), resolve(named)] ? [resolve(named, "modules"), resolve(named)]
: [resolve(process.cwd(), "..", "mesh-catalog", "modules")]; : [resolve(process.cwd(), "..", "mesh-catalog", "modules")];
for (const dir of candidates) { for (const dir of candidates) {
if (existsSync(resolve(dir, "mesh-controller", "module.json"))) return dir; // Known by the registry's manifest, which genesis reads from the catalogue and always will —
// not the control plane's, which lives in the control plane's own repository (ADR 0069).
if (existsSync(resolve(dir, "distribution", "module.json"))) return dir;
} }
throw new Error( throw new Error(
`no catalogue: MESH_LAB_CATALOG=${named ?? "(unset)"} and nothing at ${candidates.join(", ")}`); `no catalogue: MESH_LAB_CATALOG=${named ?? "(unset)"} and nothing at ${candidates.join(", ")}`);