Add local-first execution contracts to the capability language

This commit is contained in:
Timothy J. Aveni
2026-09-19 22:09:40 -07:00
parent 757531bb63
commit 03ac7f8557
24 changed files with 3872 additions and 2760 deletions
+6 -1
View File
@@ -131,7 +131,12 @@ export const genericImplementationType = (
};
const operations = (contract.template?.members ?? contract.members).flatMap((member) =>
member.operations
.filter((op) => op.mode === "call" && op.scope !== "class")
.filter(
(op) =>
op.mode === "call" &&
op.scope !== "class" &&
(!requirement.operations || requirement.operations.includes(op.id)),
)
.map((op) => ({ ...op, name: `${member.displayName}.${op.displayName}` })),
);
const methods: [string, string][] = [
+6 -1
View File
@@ -213,7 +213,12 @@ export const generateTypeScriptBindings = (
// Streaming ports need a future streaming ABI; ordinary calls are fully typed today.
const operations = contract.members.flatMap((member) =>
member.operations
.filter((operation) => operation.mode === "call" && operation.scope !== "class")
.filter(
(operation) =>
operation.mode === "call" &&
operation.scope !== "class" &&
(!requirement.operations || requirement.operations.includes(operation.id)),
)
.map((operation) => ({ ...operation, name: `${member.displayName}.${operation.displayName}` })),
);
const methods: [string, string][] = [