Add local-first execution contracts to the capability language
This commit is contained in:
@@ -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][] = [
|
||||
|
||||
@@ -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][] = [
|
||||
|
||||
Reference in New Issue
Block a user