Build checked component artifacts and shared React session SDK (WI-09)

This commit is contained in:
Timothy J. Aveni
2026-09-21 16:01:48 -07:00
parent 24073d7f2a
commit 2cf53280e4
9 changed files with 104 additions and 5 deletions
+9
View File
@@ -2692,6 +2692,15 @@ const compileCapabilityResourceSourceInternal = (
externalInterfaces,
revision: lowerPackage(state, context, options.source),
};
if (resource.revision.components?.length) {
resource.revision.clientInterfaces = Object.fromEntries(
imports.flatMap((entry) => {
if (entry.kind !== "interface") return [];
const contract = options.environment?.interfaces?.get(entry.binding);
return contract && !contract.template ? [[entry.binding, contract.revisionId]] : [];
}),
);
}
}
if (resource.kind === "interface") {