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.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Merge branch 'r4/genjutsu' into claude/fuobe-parity-4
Claude1eb12b015d83
diff --cc src/components/studio/studio-page.tsxindex dca7ac8f,fbf97f9c..a8ed488c--- a/src/components/studio/studio-page.tsx+++ b/src/components/studio/studio-page.tsx@@@ -283,9 -253,15 +284,15 @@@ function StudioBody({ header, tabs }:<div className="flex flex-col items-center pt-[16vh] text-center"><h2 className="font-heading text-display text-balance">{config.hero}</h2>{config.subtitle && <p className="mt-2 max-w-xl text-[13px] text-muted-foreground">{config.subtitle}</p>}+ {config.related && (+ <Link href={config.related.href} className="mt-3 inline-flex items-center gap-1 rounded-full bg-muted px-3 py-1 text-[12px] font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none">+ {config.related.label}+ <ArrowRight className="size-3" />+ </Link>+ )}</div>)}- </main>+ </div>{/* One composer for both layouts (centred under the hero, docked under the feed), so it keeps focus and state when the first result arrives. */}<divdiff --cc src/server/providers/comfyui.tsindex 3a647fd8,2fa9fb2b..fb409a0e--- a/src/server/providers/comfyui.ts+++ b/src/server/providers/comfyui.ts@@@ -30,10 -30,11 +30,11 @@@ import} from "@/lib/comfy";import { expandTimelineWorkflow, readTimeline } from "@/lib/av/timeline";import { guessKind } from "@/lib/catalog/payload";+ import { getMaker, makerPrompt, OPEN_TARGET_PROBLEM, swapTarget } from "@/lib/catalog/genjutsu";import { CLICK_OPEN_PROBLEM, HAND_OFF, REMOVE_SCENE, targetPhrase } from "@/lib/catalog/remove-object";-import type { GenInput, MediaKind, Operation } from "@/lib/catalog/types";+import type { GenInput, MediaKind, ModelRoute, Operation } from "@/lib/catalog/types";import { probeMedia, type MediaInfo } from "@/lib/media-probe";-import { getSetting } from "../settings";+import { getSetting, isCandidate, savedSetting } from "../settings";import { decodePng, encodePng } from "../png";import { readRef } from "../storage";import { ProviderError, type ProviderAdapter, type RemoteOutput } from "./types";diff --cc tests/library-pure.test.tsindex 9b525866,cfa6d294..c6494309--- a/tests/library-pure.test.ts+++ b/tests/library-pure.test.ts@@@ -87,34 -61,9 +88,35 @@@ describe("outputActions", () =>expect(download.href).toBe("/api/files/outputs/d/abcdef123456.png?download=a-fox-abcdef.png");});+ it("gives SVG results no raster hand-offs, but keeps them on demo placeholders", () => {+ const svg = (p: Partial<Generation>, o: Partial<Generation["outputs"][number]> = {}) => gen({ provider: "fal", outputs: [{ url: "/api/files/outputs/d/logo.svg", kind: "image", contentType: "image/svg+xml", ...o }], ...p });+ expect(ids(svg({}))).toEqual(["bar:download", "bar:favorite", "menu:copy-prompt", "menu:pin", "menu:review", "menu:delete"]);+ expect(ids(svg({}, { url: "https://v3.fal.media/files/x/logo.svg", contentType: undefined }))[0]).toBe("bar:download");+ expect(ids(svg({ feature: "upload", provider: "local" }))).toEqual(["bar:download", "menu:delete-upload"]);+ // A demo picture is an SVG standing in for a raster result: it can still be animated (a demo Vectorize result can't).+ expect(ids(svg({ provider: "mock", op: "t2i" }))[0]).toBe("primary:animate");+ expect(ids(svg({ provider: "mock", op: "vectorize" }))[0]).toBe("bar:download");+ expect(ids(gen({ outputs: [{ url: "/api/files/o/a.png", kind: "image", contentType: "image/png" }] }))[0]).toBe("primary:animate");+ });+it("gives videos Extend first and the video hand-offs", () => {const g = gen({ kind: "video", op: "t2v", outputs: [{ url: "/api/files/o/v.mp4", kind: "video", draftId: "d1" }] });- expect(ids(g)).toEqual(["primary:extend", "bar:download", "bar:favorite", "menu:reframe", "menu:lipsync", "menu:upscale", "menu:add-sound", "menu:grade", "menu:genjutsu", "menu:finalize", "menu:copy-prompt", "menu:delete"]);+ expect(ids(g)).toEqual([+ "primary:extend",+ "bar:download",+ "bar:favorite",+ "menu:reframe",+ "menu:lipsync",+ "menu:upscale",+ "menu:add-sound",+ "menu:grade",++ "menu:genjutsu",+ "menu:finalize",+ "menu:copy-prompt",+ "menu:pin",+ "menu:review",+ "menu:delete",+ ]);});it("handles audio, text, 3D, layers, favorites and the Trash", () => {