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
Tests: the new round 5 tests pass on Windows
Adarsh859508bf5910
diff --git a/docs/research/hi3d-refine.json b/docs/research/hi3d-refine.jsonindex b3097f37..d4fa07db 100644--- a/docs/research/hi3d-refine.json+++ b/docs/research/hi3d-refine.json@@ -2,8 +2,8 @@"asOf": "2026-11-02","scope": "Hi3D v1.0 (Sparc3D's refinement stage, released open): what it is, its weights, licence, hardware, ComfyUI support and hosting, read for package hi3d-refine.","sources": {- "readme": "https://github.com/hi3d-official/Hi3Dv1.0 README.md (copy read as data: /home/user/ext/hi3d/README.md)",- "licence": "https://github.com/hi3d-official/Hi3Dv1.0 LICENSE (copy read as data: /home/user/ext/hi3d/LICENSE)",+ "readme": "https://github.com/hi3d-official/Hi3Dv1.0 README.md (read from a local copy)",+ "licence": "https://github.com/hi3d-official/Hi3Dv1.0 LICENSE (read from a local copy)","weights": "https://huggingface.co/hi3d-official/Hi3Dv1.0 (API read 2026-11-02)","site": "https://www.hi3d.ai/hi3d-1-0-open-source"},diff --git a/tests/e2e/keying.mjs b/tests/e2e/keying.mjsindex d7a3ef5b..5f603c6f 100644--- a/tests/e2e/keying.mjs+++ b/tests/e2e/keying.mjs@@ -68,7 +68,7 @@ try {await noSideScroll(page, `${label} green screen`);if (size === "1440" && engine === "open") {// The settings: the three outputs and the three formats.- const settings = page.getByRole("button", { name: /settings|options/i }).first();+ const settings = page.getByRole("button", { name: /^Settings:/ }).first();if (await settings.isVisible().catch(() => false)) {await settings.click();await page.waitForTimeout(400);diff --git a/tests/hi3d-refine.test.ts b/tests/hi3d-refine.test.tsindex 57499df8..c5987b16 100644--- a/tests/hi3d-refine.test.ts+++ b/tests/hi3d-refine.test.ts@@ -1,7 +1,7 @@import fs from "node:fs";-import os from "node:os";import path from "node:path";-import { afterAll, beforeAll, describe, expect, it } from "vitest";+import { beforeAll, describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";/*** Hi3D 1.0 refine (hi3d-refine, docs/research/hi3d-refine.json): the request and its parameters, the chain Image to 3D@@ -10,7 +10,7 @@ import { afterAll, beforeAll, describe, expect, it } from "vitest";* scaling, watertight check and files. Nothing here runs Hi3D (it needs an Ampere-or-newer NVIDIA GPU).*/-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-hi3d-"));+const dir = tempDir("fuobe-hi3d-");process.env.FUOBE_DATA_DIR = dir;process.env.COMFYUI_URL = "http://127.0.0.1:9";@@ -29,7 +29,6 @@ const m3d = await import("@/lib/av/model3d");const print = await import("@/lib/print3d");beforeAll(() => setSetting("demoMode", "auto"));-afterAll(() => fs.rmSync(dir, { recursive: true, force: true }));const read = (p: string) => fs.readFileSync(path.join(process.cwd(), p), "utf8");const manifest = JSON.parse(read("workflows/comfyui/manifest.json")) as { workflows: { id: string; license: string; bindings: Record<string, unknown>; customNodes: { name: string }[]; models: { file: string; folder: string; url: string }[] }[] };diff --git a/tests/hosted-runs-kandinsky6.test.ts b/tests/hosted-runs-kandinsky6.test.tsindex 1661fb4c..14a7d45f 100644--- a/tests/hosted-runs-kandinsky6.test.ts+++ b/tests/hosted-runs-kandinsky6.test.ts@@ -1,15 +1,13 @@-import fs from "node:fs";import http from "node:http";-import os from "node:os";-import path from "node:path";import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";import { FAKE_POLICY, listenInRange, startFakeBilling, type FakeBilling } from "./helpers/fake-billing";import { startFakeComfy, type FakeComfy } from "./helpers/fake-comfy-runner";// Kandinsky 6.0 on hosted runs (FUOBE_HOSTED_RUNS=1; nm10-kandinsky6): an account with no GPU of its own may make a clip with// dialogue on this install's ComfyUI like any open model, priced by the billing service as a video run; image to video and// Kandinsky VSR read a file, so they follow the policy's uploads, and fal's Kandinsky never runs there.-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-hosted-k6-"));+const dir = tempDir("fuobe-hosted-k6-");process.env.FUOBE_DATA_DIR = dir;process.env.FUOBE_PUBLIC_SIGNUP = "1";delete process.env.FUOBE_PASSWORD;@@ -39,7 +37,6 @@ afterAll(async () => {for (const k of ["FUOBE_HOSTED_RUNS", "FUOBE_BILLING_URL", "FUOBE_BILLING_TOKEN"]) delete process.env[k];await fake.close();await comfy.close();- fs.rmSync(dir, { recursive: true, force: true });});beforeEach(() => {billing.resetBillingCache();diff --git a/tests/idol-clean.test.ts b/tests/idol-clean.test.tsindex 202861b3..b0adecc1 100644--- a/tests/idol-clean.test.ts+++ b/tests/idol-clean.test.ts@@ -1,9 +1,9 @@import fs from "node:fs";import http from "node:http";import type { AddressInfo } from "node:net";-import os from "node:os";import path from "node:path";import { afterAll, beforeAll, describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";import type { Manifest } from "@/lib/comfy";/**@@ -13,7 +13,7 @@ import type { Manifest } from "@/lib/comfy";* The pack is never installed here: the graph is checked against the inputs the pack's nodes declare (§5.1).*/-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-idol-clean-"));+const dir = tempDir("fuobe-idol-clean-");process.env.FUOBE_DATA_DIR = dir;process.env.COMFYUI_URL = "http://127.0.0.1:9";@@ -68,7 +68,6 @@ beforeAll(async () => {});afterAll(() => {server.close();- fs.rmSync(dir, { recursive: true, force: true });});const prepare = (extra: Record<string, unknown>, idolPack?: () => Promise<boolean | undefined>) =>diff --git a/tests/idol-views.test.ts b/tests/idol-views.test.tsindex f6203484..149eb6ea 100644--- a/tests/idol-views.test.ts+++ b/tests/idol-views.test.ts@@ -1,9 +1,9 @@import fs from "node:fs";import http from "node:http";import type { AddressInfo } from "node:net";-import os from "node:os";import path from "node:path";import { afterAll, beforeAll, describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";import type { Manifest } from "@/lib/comfy";/**@@ -14,7 +14,7 @@ import type { Manifest } from "@/lib/comfy";* the chain into TRELLIS.2 multi-view, and an element's new references.*/-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-idol-views-"));+const dir = tempDir("fuobe-idol-views-");process.env.FUOBE_DATA_DIR = dir;process.env.COMFYUI_URL = "http://127.0.0.1:9";@@ -62,7 +62,6 @@ beforeAll(async () => {});afterAll(() => {server.close();- fs.rmSync(dir, { recursive: true, force: true });});const PHOTO = "/api/files/front.png";diff --git a/tests/kandinsky6.test.ts b/tests/kandinsky6.test.tsindex 6fe8ed77..e478a171 100644--- a/tests/kandinsky6.test.ts+++ b/tests/kandinsky6.test.ts@@ -1,7 +1,7 @@import fs from "node:fs";-import os from "node:os";import path from "node:path";-import { afterAll, describe, expect, it } from "vitest";+import { describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";import { getModel, getPreset } from "@/lib/catalog";import { buildPayload } from "@/lib/catalog/payload";import { estimateCost, planGeneration, routesFor, sourceLengthProblem } from "@/lib/catalog/plan";@@ -16,12 +16,11 @@ import { LIPSYNC_STUDIO } from "@/lib/studios";// Package nm10-kandinsky6 (docs/research/new-models-10.md §2.1, §2.6): Kandinsky 6.0 on both engines. Kandinsky Lab's packs// (kandinsky6, kandinsky6-sr) on your GPU, fal's Pro / Lite / VSR in the cloud, priced by steps and per output frame.-const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-k6-"));+const tmp = tempDir("fuobe-k6-");process.env.FUOBE_DATA_DIR = tmp;process.env.COMFYUI_URL = "http://comfy.test:8188";const { prepareWorkflow } = await import("@/server/providers/comfyui");const { STUDIO_ROWS } = await import("@/server/gpu/tools");-afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));const dir = path.join(process.cwd(), "workflows/comfyui");const read = <T>(f: string) => JSON.parse(fs.readFileSync(path.join(dir, f), "utf8")) as T;diff --git a/tests/moss-sheets.test.ts b/tests/moss-sheets.test.tsindex 6da831a1..43ba4243 100644--- a/tests/moss-sheets.test.ts+++ b/tests/moss-sheets.test.ts@@ -1,7 +1,5 @@-import fs from "node:fs";-import os from "node:os";-import path from "node:path";-import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";+import { beforeAll, describe, expect, it, vi } from "vitest";+import { tempDir } from "./helpers/temp-dir";import { applyMeasured, imagesToMeasure } from "@/components/layers/apply";import { getModel, getPreset } from "@/lib/catalog";import { planGeneration } from "@/lib/catalog/plan";@@ -13,7 +11,7 @@ import { readLayout } from "@/lib/layout-prompt";// N7-11: MOSS-Image's layouts in two studios people already use. Storyboard's "One sheet" draws every panel on one page// (a multi-panel layout, cropped into frames in the browser); Layers' "Re-render from layers" paints the arrangement again// from each visible layer's box and the text read off the picture. Demo mode: no keys, no GPU.-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-moss-sheets-"));+const dir = tempDir("fuobe-moss-sheets-");process.env.FUOBE_DATA_DIR = dir;process.env.COMFYUI_URL = "http://127.0.0.1:9";@@ -23,7 +21,6 @@ const { jobSteps, nearestAspect, rerenderCaption } = await import("@/server/layeconst { getGeneration } = await import("@/server/generations");beforeAll(() => setSetting("demoMode", "auto"));-afterAll(() => fs.rmSync(dir, { recursive: true, force: true }));const plan = (r: GenerationRequest) => planGeneration(r, getModel, getPreset);const ratio = (a: string) => {diff --git a/tests/pika-flex.test.ts b/tests/pika-flex.test.tsindex 1fb8d424..54c108a4 100644--- a/tests/pika-flex.test.ts+++ b/tests/pika-flex.test.ts@@ -1,7 +1,7 @@import fs from "node:fs";-import os from "node:os";import path from "node:path";-import { afterAll, describe, expect, it } from "vitest";+import { describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";import { getModel, getPreset } from "@/lib/catalog";import { planCinema, takesClips, type CinemaGenerateInput } from "@/lib/catalog/cinema";import { PIKA_FLEX_FL2VA, PIKA_FLEX_LORAS, PIKA_FLEX_NOTICE, PIKA_FLEX_REF2VA, pikaFlexGraphLoras } from "@/lib/catalog/pika-flex";@@ -15,7 +15,7 @@ import type { MediaInfo } from "@/lib/media-probe";// Pika H3 Flex on your GPU (nm10-pika-flex; docs/research/new-models-10.md): 6-step FL2VA graphs, the Ref2VA references// graph, the References mode's limits and order, Cinema and Lipsync on it, the adapters' licence rows and pre-flight row.-const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-pika-flex-"));+const tmp = tempDir("fuobe-pika-flex-");process.env.FUOBE_DATA_DIR = tmp;process.env.COMFYUI_URL = "http://comfy.test:8188";const { prepareWorkflow } = await import("@/server/providers/comfyui");@@ -23,7 +23,6 @@ const { accessList, knownSwitch, readAccess, saveAccess } = await import("@/servconst { previewGeneration } = await import("@/server/generations");const { runAsTenant } = await import("@/server/tenant");const { STUDIO_ROWS, studioTool, modelTool } = await import("@/server/gpu/tools");-afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));const DIR = path.join(__dirname, "../workflows/comfyui");const manifest = JSON.parse(fs.readFileSync(path.join(DIR, "manifest.json"), "utf8")) as { workflows: ManifestWorkflow[] };diff --git a/tests/regenerate-latent.test.ts b/tests/regenerate-latent.test.tsindex eafd754e..4b1bed4f 100644--- a/tests/regenerate-latent.test.ts+++ b/tests/regenerate-latent.test.ts@@ -1,7 +1,5 @@-import fs from "node:fs";-import os from "node:os";-import path from "node:path";import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";+import { tempDir } from "./helpers/temp-dir";import type { Generation } from "@/lib/catalog/types";import { startFakeComfy, type FakeComfy } from "./helpers/fake-comfy-runner";@@ -13,7 +11,7 @@ vi.setConfig({ testTimeout: 120_000 });// tests/regenerate-held.test.ts checks that every way in refuses it while it is off.vi.mock("@/lib/catalog/regenerate", async (importOriginal) => ({ ...(await importOriginal<typeof import("@/lib/catalog/regenerate")>()), REGEN_OFFERED: true }));-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-regen-latent-"));+const dir = tempDir("fuobe-regen-latent-");process.env.FUOBE_DATA_DIR = dir;delete process.env.FUOBE_PASSWORD;delete process.env.COMFYUI_WHERE;@@ -32,7 +30,6 @@ const { readAccess, saveAccess } = await import("@/server/model-access");beforeAll(() => setSetting("demoMode", "off"));afterAll(async () => {await fake.close();- fs.rmSync(dir, { recursive: true, force: true });});type Graph = Record<string, { class_type: string; inputs: Record<string, unknown> }>;diff --git a/tests/regenerate-more-api.test.ts b/tests/regenerate-more-api.test.tsindex 9b216785..0d873ec9 100644--- a/tests/regenerate-more-api.test.ts+++ b/tests/regenerate-more-api.test.ts@@ -1,7 +1,7 @@import fs from "node:fs";-import os from "node:os";import path from "node:path";-import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";+import { beforeAll, describe, expect, it, vi } from "vitest";+import { tempDir } from "./helpers/temp-dir";import type { Generation, GenerationRequest, GenInput } from "@/lib/catalog/types";// Regenerate in Faceless, video segments and Cinema H3 shots (package n7-10-regenerate-more): MiniMax H3's 2K tier on your@@ -12,7 +12,7 @@ vi.setConfig({ testTimeout: 120_000 });// tests/regenerate-offered.test.ts checks that nothing offers it while it is off.vi.mock("@/lib/catalog/regenerate", async (importOriginal) => ({ ...(await importOriginal<typeof import("@/lib/catalog/regenerate")>()), REGEN_OFFERED: true }));-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-regen-more-"));+const dir = tempDir("fuobe-regen-more-");process.env.FUOBE_DATA_DIR = dir;process.env.COMFYUI_URL = "http://127.0.0.1:9";delete process.env.FUOBE_PASSWORD;@@ -47,7 +47,6 @@ const params = <T extends Record<string, string>>(p: T) => ({ params: Promise.reconst sixteen = (accountId?: string) => saveFile({ data: fs.readFileSync(path.join(__dirname, "fixtures/shorts-12s.mp4")), contentType: "video/mp4", source: "upload", name: "edit.mp4", ...(accountId && { accountId }) }).url;beforeAll(() => setSetting("demoMode", "auto"));-afterAll(() => fs.rmSync(dir, { recursive: true, force: true }));async function settle(id: string, ms = 60_000): Promise<Generation> {const end = Date.now() + ms;diff --git a/tests/scene-props.test.ts b/tests/scene-props.test.tsindex 7a674b0d..7d6baff3 100644--- a/tests/scene-props.test.ts+++ b/tests/scene-props.test.ts@@ -183,7 +183,7 @@ describe("the scene draws props in its own render", () => {it("reads frames with no pixel-pack buffer bound (Spark's async sort readback leaves one: frame 0 came out black)", () => {const engine = read("src/components/cinema/scene-engine.ts");- expect(engine).toMatch(/gl\.bindBuffer\(gl\.PIXEL_PACK_BUFFER, null\);\n\s+this\.renderer\.readRenderTargetPixels/);+ expect(engine).toMatch(/gl\.bindBuffer\(gl\.PIXEL_PACK_BUFFER, null\);\r?\n\s+this\.renderer\.readRenderTargetPixels/);expect(engine.match(/this\.renderer\.readRenderTargetPixels\(/g)).toHaveLength(1);});diff --git a/tests/splat-view.test.ts b/tests/splat-view.test.tsindex 424ee041..242e462e 100644--- a/tests/splat-view.test.ts+++ b/tests/splat-view.test.ts@@ -117,7 +117,7 @@ describe("Spark loads only with the splat viewer", () => {it("only splat-engine.ts imports it, and only through a dynamic import", () => {const importers = src.filter((f) => fs.readFileSync(f, "utf8").includes("@sparkjsdev/spark"));- expect(importers.map((f) => path.relative(process.cwd(), f))).toEqual(["src/components/model3d/splat-engine.ts"]);+ expect(importers.map((f) => path.relative(process.cwd(), f).split(path.sep).join("/"))).toEqual(["src/components/model3d/splat-engine.ts"]);const engineUsers = src.filter((f) => /["']\.\/splat-engine["']|model3d\/splat-engine["']/.test(fs.readFileSync(f, "utf8")));for (const f of engineUsers) {const text = fs.readFileSync(f, "utf8");@@ -125,7 +125,7 @@ describe("Spark loads only with the splat viewer", () => {expect(text.replace(/import type [^;]+;/g, "").replace(/import\("(\.\/|\.\.\/model3d\/)splat-engine"\)/g, ""), path.relative(process.cwd(), f)).not.toMatch(/splat-engine/);}// The splat viewer, and Cinema's 3D scene for its props (idol-9; itself loaded only when a scene opens).- expect(engineUsers.map((f) => path.relative(process.cwd(), f)).sort()).toEqual(["src/components/cinema/scene-engine.ts", "src/components/model3d/splat-viewer.tsx"]);+ expect(engineUsers.map((f) => path.relative(process.cwd(), f).split(path.sep).join("/")).sort()).toEqual(["src/components/cinema/scene-engine.ts", "src/components/model3d/splat-viewer.tsx"]);});});diff --git a/tests/world-mode.test.ts b/tests/world-mode.test.tsindex d28dc8d1..e2218b40 100644--- a/tests/world-mode.test.ts+++ b/tests/world-mode.test.ts@@ -1,7 +1,7 @@import fs from "node:fs";-import os from "node:os";import path from "node:path";-import { afterAll, beforeAll, describe, expect, it } from "vitest";+import { beforeAll, describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";import type { CinemaGenerateInput } from "@/lib/catalog/cinema";import type { ComfyWorkflow, Manifest } from "@/lib/comfy";import type { WorldScript } from "@/lib/world";@@ -12,7 +12,7 @@ import type { WorldScript } from "@/lib/world";* bindings, Cinema's World take (open engine only) and the GPU pre-flight row.*/-const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-world-"));+const tmp = tempDir("fuobe-world-");process.env.FUOBE_DATA_DIR = tmp;process.env.COMFYUI_URL = "http://127.0.0.1:9";process.env.OLLAMA_URL = "http://127.0.0.1:9";@@ -34,7 +34,6 @@ beforeAll(() => {setSetting("demoMode", "auto");setSetting("enhanceProvider", "none");});-afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));const dir = path.join(process.cwd(), "workflows/comfyui");const read = <T>(f: string) => JSON.parse(fs.readFileSync(path.join(dir, f), "utf8")) as T;diff --git a/tests/worldcast-plan.test.ts b/tests/worldcast-plan.test.tsindex 6bf9fb99..ac4300f7 100644--- a/tests/worldcast-plan.test.ts+++ b/tests/worldcast-plan.test.ts@@ -1,17 +1,16 @@import { spawnSync } from "node:child_process";import fs from "node:fs";-import os from "node:os";import path from "node:path";-import { afterAll, describe, expect, it } from "vitest";+import { describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";/*** WorldCast behind the camera-path buttons (build plan N7-9): the steps of a run, the buttons preferring it when the* worker answers and saying what they film on when it doesn't, the ModelDef's visibility, and the server's case.*/-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-worldcast-plan-"));+const dir = tempDir("fuobe-worldcast-plan-");process.env.FUOBE_DATA_DIR = dir;-afterAll(() => fs.rmSync(dir, { recursive: true, force: true }));const { getModel, MODELS } = await import("@/lib/catalog");const { providerEngine } = await import("@/lib/catalog/engines");diff --git a/tests/worldcast-worker.test.ts b/tests/worldcast-worker.test.tsindex e857d6ef..27be4c72 100644--- a/tests/worldcast-worker.test.ts+++ b/tests/worldcast-worker.test.ts@@ -1,11 +1,9 @@-import fs from "node:fs";import http from "node:http";-import os from "node:os";-import path from "node:path";import { afterAll, beforeEach, describe, expect, it } from "vitest";+import { tempDir } from "./helpers/temp-dir";// The WorldCast worker's client (docs/workers/worldcast.md) against a stand-in worker: submit, poll, download, errors.-const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-worldcast-"));+const dir = tempDir("fuobe-worldcast-");process.env.FUOBE_DATA_DIR = dir;type Job = { status: string; progress?: number; error?: string };@@ -79,7 +77,6 @@ const { framePoses, presetKeys } = await import("@/lib/camera-path");afterAll(async () => {await new Promise<void>((r) => server.close(() => r()));delete process.env.WORLDCAST_URL;- fs.rmSync(dir, { recursive: true, force: true });});beforeEach(() => {