Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Workflows: the library a visitor reads gives each graph's mark and nothing more

Adarsha352e3ba6a7e
diff --git a/src/app/api/comfyui/route.ts b/src/app/api/comfyui/route.ts
index c902d381..a58442ee 100644
--- a/src/app/api/comfyui/route.ts
+++ b/src/app/api/comfyui/route.ts
@@ -53,7 +53,8 @@ export async function GET(request?: Request) {
});
}
-/** A workflow as anyone but the owner gets it: `validated` only on a checked one (its mark on the Workflows page). */
-function forVisitor({ validated, ...w }: ManifestWorkflow): Omit<ManifestWorkflow, "validated"> & { validated?: true } {
+/** A workflow as anyone but the owner gets it: `validated` only on a checked one (its mark on the Workflows page), and no check details. */
+function forVisitor({ validated, ...w }: ManifestWorkflow): Omit<ManifestWorkflow, "validated" | "validationError"> & { validated?: true } {
+ delete w.validationError;
return validated ? { ...w, validated } : w;
}
diff --git a/src/lib/comfy.ts b/src/lib/comfy.ts
index c69cdb59..da612330 100644
--- a/src/lib/comfy.ts
+++ b/src/lib/comfy.ts
@@ -118,6 +118,8 @@ export interface ManifestWorkflow {
*/
expand?: "captions" | "timeline" | "videos" | "audios";
validated: boolean;
+ /** What ComfyUI answered when it last refused this graph. */
+ validationError?: string;
notes?: string;
}
diff --git a/tests/workflows-page-marks.test.ts b/tests/workflows-page-marks.test.ts
index b6a59af8..1183bfe5 100644
--- a/tests/workflows-page-marks.test.ts
+++ b/tests/workflows-page-marks.test.ts
@@ -63,6 +63,7 @@ describe("GET /api/comfyui", () => {
for (const w of body.workflows) {
if (passed.get(w.id)) expect(w.validated, w.id).toBe(true);
else expect("validated" in w, w.id).toBe(false);
+ expect("validationError" in w, w.id).toBe(false);
}
expect(body.workflows.some((w) => w.validated === true)).toBe(true);
});