Lower checked shared edges into the portable graph model

This commit is contained in:
Timothy J. Aveni
2026-09-25 12:34:13 -07:00
parent c482a99aca
commit 58a75da83f
6 changed files with 105 additions and 42 deletions
+18 -2
View File
@@ -18,7 +18,15 @@ const meta = () => selection("_camino", { selection: [selection("ref")] });
export const inspectionPackage = "org.quixos.inspection/1";
export interface InspectionTemplate {
interface: string;
members: { id: string; name: string; key: string; flag: string; lane: "local" | "server"; many: boolean; relationship: boolean }[];
members: {
id: string;
name: string;
key: string;
flag: string;
lane: "local" | "server";
many: boolean;
relationship: boolean;
}[];
inputs?: PublicQueryContract;
view?: PublicQueryContract;
server?: PublicQueryContract;
@@ -81,7 +89,15 @@ export function compileInspectionTemplates(plan: ExecutionPlan) {
// Only native edges promise the relationship traversal used by the interpreter.
if (member.kind === "relationship" && providers.some((op) => op!.binding.kind !== "edge")) continue;
if (!complete && (lane === "local" || !portable))
template.members.push({ id: member.id, name: member.displayName, key, flag, lane, many, relationship: member.kind === "relationship" });
template.members.push({
id: member.id,
name: member.displayName,
key,
flag,
lane,
many,
relationship: member.kind === "relationship",
});
inputFields[flag] = scalar("bool");
const field = selection(member.displayName, {
key,