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 'o/n7-7-exact-orbits' into claude/fuobe-parity-4
Claude0aa7043f21cd
diff --cc src/components/canvas/node-list.tsxindex 4f9b3a21,81d32533..0b977bfe--- a/src/components/canvas/node-list.tsx+++ b/src/components/canvas/node-list.tsx@@@ -9,7 -9,7 +9,7 @@@ import type { MediaKind } from "@/lib/cimport { fileToSlot } from "@/components/studio/media-slot";import { cn } from "@/lib/utils";import { EMPTY_VIEW, NodeIcon, useEditorActions, useEditorSnapshot } from "./canvas-context";- import { costLabel, ElementPicker, EngineBadge, LayoutNodeRow, LibraryButton, MediaPreview, OutputThumb, Results } from "./nodes";-import { CameraPathFields, costLabel, ElementPicker, EngineBadge, LibraryButton, MediaPreview, OutputThumb, Results } from "./nodes";++import { CameraPathFields, costLabel, ElementPicker, EngineBadge, LayoutNodeRow, LibraryButton, MediaPreview, OutputThumb, Results } from "./nodes";const KIND: Partial<Record<CanvasNode["type"], MediaKind>> = { "image-input": "image", "video-input": "video", "audio-input": "audio", "clone-voice": "audio" };diff --cc src/components/canvas/nodes.tsxindex 972ab19c,0ef33082..22d52bf5--- a/src/components/canvas/nodes.tsx+++ b/src/components/canvas/nodes.tsx@@@ -119,12 -118,10 +120,15 @@@ import { matchSpokenLanguage, spokenLanimport { keyCombo } from "@/lib/keys";import { cn } from "@/lib/utils";import { responseError, toastError } from "@/lib/refusals";+import { KIND_COLOR } from "@/lib/layout-edit";+import { readLayout, readsBoxes, type LayoutDraft } from "@/lib/layout-prompt";+import { layoutCanvas } from "@/lib/catalog/plan";+import { getModel } from "@/lib/catalog";+import type { EditorCanvas } from "@/components/studio/layout-editor";import { BOARD_NODE_TYPES, type BoardType } from "./board";+ import { ExactOrbitControls } from "@/components/exact-orbit-controls";+ import { PATH_PRESETS } from "@/lib/camera-path";+ import { exactDefaults } from "@/lib/exact-orbit";import { NodeIcon, PORT_COLOR, useEditorActions, useEditorGlobals, useEditorSelector, useNodeResults, useNodeView, type EditorSnapshot, type NodeResults } from "./canvas-context";/** A node on the board: a graph node, or a group, comment pin or drawing (./board.tsx). */@@@ -1930,8 -1825,9 +1983,10 @@@ export const NODE_TYPES =translate: GeneratorNode,concat: GeneratorNode,restore: GeneratorNode,+ "fly-around": GeneratorNode,+ "camera-path": CameraPathNode,table: TableNode,+ layout: LayoutNode,output: OutputNode,note: NoteNode,...BOARD_NODE_TYPES,diff --cc src/components/model3d/model-card.tsxindex c303dcbd,4f7b6e79..f881b322--- a/src/components/model3d/model-card.tsx+++ b/src/components/model3d/model-card.tsx@@@ -1,12 -1,14 +1,14 @@@"use client";- import { Box, Clapperboard, Download, ImageIcon, Loader2, Paintbrush, Pause, PersonStanding, Play, Rotate3d, Sparkles, Video } from "lucide-react";-import { Box, Camera, Clapperboard, Download, ImageIcon, Loader2, Pause, PersonStanding, Play, Rotate3d, Sparkles, Video } from "lucide-react";++import { Box, Camera, Clapperboard, Download, ImageIcon, Loader2, Paintbrush, Pause, PersonStanding, Play, Rotate3d, Sparkles, Video } from "lucide-react";import Link from "next/link";- import { createElement, useCallback, useEffect, useRef, useState, useSyncExternalStore } from "react";+ import { createElement, useCallback, useEffect, useEffectEvent, useRef, useState, useSyncExternalStore } from "react";import { toast } from "sonner";import { Button } from "@/components/ui/button";- import { uploadFile, useHydrated } from "@/lib/api";- import { animateSpinHref, animationName, model3dView, stillOf, type Model3dView } from "@/lib/av/model3d";+ import { uploadFile, useEngine, useHydrated } from "@/lib/api";+ import { animateSpinHref, animationName, model3dView, photorealAngle, photorealBody, stillOf, type Model3dView } from "@/lib/av/model3d";+ import { PATH_FPS, PATH_FRAMES } from "@/lib/camera-path";+ import { useFlyAround } from "@/components/fly-around-run";import type { Generation } from "@/lib/catalog/types";import { cn } from "@/lib/utils";import { toastError } from "@/lib/refusals";@@@ -328,11 -371,20 +373,25 @@@ export function ModelCard({ g, info, cl<PersonStanding className="size-3.5" /> {view.rigged ? "Another animation" : "Rig & animate"}</Button>)}+ {view.glb && !view.rigged && !view.splat && g.op !== "splat" && (+ <Button variant="outline" size="sm" className="rounded-full" onClick={() => setRetexturing(true)}>+ <Paintbrush className="size-3.5" /> Retexture+ </Button>+ )}+ {canFilm && (+ <Button+ variant="outline"+ size="sm"+ className="rounded-full"+ onClick={film}+ disabled={filmBusy || !!fly.preview.data?.blocker}+ title={fly.preview.data?.blocker ?? (engine === "open" ? "The photo filmed going round the model, on your GPU" : "The photo filmed going round the model, in the cloud")}+ >+ {filmBusy ? <Loader2 className="size-3.5 animate-spin" /> : <Camera className="size-3.5" />}+ {filming !== null ? `Recording the orbit… ${Math.round(filming * 100)}%` : "Film it photoreal"}+ {filming === null && fly.price && <span className="text-muted-foreground">· {fly.price}</span>}+ </Button>+ )}{spin && (<Button asChild size="sm" className="rounded-full"><Link href={spin} prefetch={false}>diff --cc src/components/model3d/model3d-studio.tsxindex edc1ee97,0a5520ce..92169f94--- a/src/components/model3d/model3d-studio.tsx+++ b/src/components/model3d/model3d-studio.tsx@@@ -18,9 -17,9 +18,10 @@@ import { Panel, ToolHero, ToolShell } fimport { SelfHostNote } from "@/components/self-host-note";import { useCreateGeneration, useEngine, useGenerations, useHydrated, useLikelyVisitor, useModelAccess, useStatus } from "@/lib/api";import {+ IDOL_QUALITIES,MAX_3D_PROMPT,MODEL3D_FEATURE,+ MODEL3D_FILM_FEATURE,MODEL3D_MODES,MODELS_3D,RIG_MODEL,diff --cc src/lib/catalog/canvas.tsindex 59f458c6,b4305411..7652aa37--- a/src/lib/catalog/canvas.ts+++ b/src/lib/catalog/canvas.ts@@@ -17,8 -15,9 +17,11 @@@ import { isSpeed, keyTimes, timingFor,import { estimateCost, inferOperation, planGeneration, routesFor, type Plan } from "./plan";import { replacedBy, replacementOf } from "./replaced";import { REGEN_COPY, REGEN_MODEL } from "./regenerate";+import { compileWords, LAYOUT_PARAM, readLayout, type LayoutDraft } from "@/lib/layout-prompt";+import { fillLayout, layoutPlaceholders } from "@/lib/layout-surfaces";+ import { FLY_MODELS, flyKeys, planFlyAround } from "./fly-around";+ import type { CameraKey } from "@/lib/camera-path";+ import type { ExactOrbit } from "@/lib/exact-orbit";import {OPERATION_LABELS,OPERATION_OUTPUT,@@@ -66,7 -66,8 +70,9 @@@ export type CanvasNodeType| "concat"| "restore"| "table"+ | "layout"+ | "camera-path"+ | "fly-around"| "output"| "note";@@@ -116,8 -117,12 +122,14 @@@ export interface CanvasNodeDatarows?: string[][];/** Translate (video) on the open engine: the Translate & dub session it started (its result comes back from there). */dubId?: string;+ /** Layout: its boxes, one row per box (src/lib/layout-prompt.ts), drawn in the Layout editor. */+ layout?: LayoutDraft;+ /** Camera path (N7-7): a preset (camera-path PATH_PRESETS), an exact orbit's numbers, or keys; the first set wins. */+ pathPreset?: string;+ orbit?: ExactOrbit;+ keys?: CameraKey[];+ /** Fly around: the clip's length in seconds (the cloud; your GPU always films about 5 s). */+ duration?: number;}export interface CanvasNode {@@@ -249,7 -254,8 +261,9 @@@ export const NODE_SPECS: Record<CanvasNconcat: { type: "concat", label: "Assemble film", group: "Utilities", icon: "Film", ops: ["concat"], description: "Up to 50 clips in one film: trim and mute each, pick the frame" },restore: { type: "restore", label: "Restore & colourise", group: "Utilities", icon: "Palette", ops: ["restore-video"], description: "Old or black-and-white footage, cleaned and in colour" },table: { type: "table", label: "Table", group: "Inputs", icon: "Table", description: "Rows of words: what it feeds runs once per row" },+ layout: { type: "layout", label: "Layout", group: "Inputs", icon: "LayoutDashboard", description: "Boxes for a headline, a product, a price: the image model draws each in its place" },+ "camera-path": { type: "camera-path", label: "Camera path", group: "Inputs", icon: "Orbit", description: "A move round the subject: a preset or an exact orbit" },+ "fly-around": { type: "fly-around", label: "Fly around", group: "Generate", icon: "Rotate3d", ops: ["camera-path"], description: "A still filmed along a camera path, with other views if you have them" },output: { type: "output", label: "Output", group: "Output", icon: "MonitorPlay", description: "Preview what's connected, side by side" },note: { type: "note", label: "Sticky note", group: "Output", icon: "StickyNote", description: "A note on the board (not run)" },};@@@ -303,7 -309,8 +317,9 @@@ export const PALETTE: PaletteItem[] ={ ...pick("concat"), id: "concat", keywords: "concatenate join merge stitch edit trim mute film assemble" },{ ...pick("restore"), id: "restore", keywords: "restore colourise colorize archive old footage black and white film scan vhs" },{ ...pick("table"), id: "table", data: { columns: ["Subject"], rows: [[""], [""], [""]] }, keywords: "rows batch spreadsheet list variations csv grid" },+ { ...pick("layout"), id: "layout", data: { layout: { summary: { caption: "", meta: [], canvas: "single" }, items: [], aspect: "1:1" } }, keywords: "layout boxes poster text placement composition headline price moss" },+ { ...pick("camera-path"), id: "camera-path", data: { pathPreset: "orbit_360" }, keywords: "orbit arc camera move path keyframes exact turnaround" },+ { ...pick("fly-around"), id: "fly-around", keywords: "orbit fly around turnaround camera path 360 spin product" },{ ...pick("output"), id: "output", keywords: "preview compare result" },{ ...pick("note"), id: "note", keywords: "comment annotation" },];@@@ -486,11 -487,9 +503,12 @@@ export function modelChoices(n: Pick<Careturn MODELS.filter((m) => !m.hidden && (!kind || m.kind === kind) && !needsMarks(m) && m.routes.some((r) => !UNSUPPORTED_OPS.has(r.op)));}if (n.type === "concat") return Object.values(CONCAT_MODELS).flatMap((id) => getModel(id) ?? []);+ if (n.type === "fly-around") return [FLY_MODELS.cloud, FLY_MODELS.open].flatMap((id) => getModel(id) ?? []);const ops = nodeOps(n);- return MODELS.filter((m) => ops.some((op) => supportsOp(m, op)) && (!m.hidden || ops.includes("frame")) && !needsMarks(m));+ // Clean up voice offers only what runs on your GPU (RE-USE): the hosted cleaners share its op but are Clean up+ // dialogue's cloud engine (defaultModelForNode).+ const own = (m: ModelDef) => n.type !== "clean-voice" || runsOn(m, "open");+ return MODELS.filter((m) => ops.some((op) => supportsOp(m, op)) && (!m.hidden || ops.includes("frame")) && !needsMarks(m) && own(m));}// ---------------------------------------------------------------------------@@@ -627,9 -634,11 +653,11 @@@ const toPortType = (k: MediaKind | unde/** The type of a node's output handle (null = no output handle). */export function outputType(_graph: CanvasGraph, n: CanvasNode): PortType | null {- if (n.type === "prompt" || n.type === "table") return "text";+ if (n.type === "prompt" || n.type === "table" || n.type === "layout") return "text";if (n.type === "clone-voice") return "voice";if (n.type === "element") return "element";+ if (n.type === "camera-path") return "path";+ if (n.type === "fly-around") return "video";if (MEDIA_INPUT_TYPE[n.type]) return MEDIA_INPUT_TYPE[n.type]!;if (!isGenerator(n)) return null;// Never inferred from the inputs (that would walk the whole upstream graph): a chosen or fixed op, else the model's kind.@@@ -967,9 -971,7 +996,10 @@@ function buildRequest(graph: CanvasGrapif (n.type !== "model" && op && !supportsOp(model, op)) return { error: `${model.name} can't do ${OPERATION_LABELS[op].toLowerCase()} — pick another model` };if ((op === "translate" || op === "dub") && !n.data.params?.targetLanguage) return { error: op === "dub" ? "Pick a language to dub into" : "Pick a language to translate into" };if (n.type === "concat") return concatRequest(graph, n, model);+ if (n.type === "fly-around") return flyAroundRequest(graph, n, model);+ // Keyframe animation: a table wired in is its gaps' timing (one row per gap), not a run per row.+ const timingTable = model.options.inbetween ? timingTableOf(graph, n) : undefined;+ if (timingTable) return inbetweenRequest(graph, n, model, timingTable);if (!single) {const rows = rowsFeeding(graph, n);if (rows && "error" in rows) return rows;diff --cc src/server/assist/agent.tsindex 0ae44d6d,f374c029..da95cf27--- a/src/server/assist/agent.ts+++ b/src/server/assist/agent.ts@@@ -705,7 -705,7 +705,7 @@@ How you work- Call generate (or create_storyboard) directly. The app shows the user a plan card with the cost and runs it when they approve — never ask "shall I go ahead?" in text.- For multi-step work (an image, then animate it; transcribe, translate, then voice it), put the steps in one generate call and set "after" on each later job: it starts by itself when the earlier job finishes and gets its result as input. When you need to judge a result before deciding the next step, wait with check_generations instead (look=true to see images) and pass the output URL into the next call.- Besides images, video and audio, models can transcribe speech, translate or write text (scripts, captions, ad copy), split images into layers, separate voice from background, trim, caption or re-sound clips, and turn an image into a 3D model: search_models with kind "text" or "model3d" finds the text and 3D ones.- - Whole studio jobs have their own tools, and each job opens in its studio, where the user can carry on: split_layers (a Layers project), restyle_footage (a Shorts Studio session), dub_video (a dub the user reviews line by line in Translate & dub), faceless_episode (a Faceless Studio episode), create_ads (an Ads Studio batch), add_captions (the Captions editor), restore_video (old or black-and-white footage restored and colourised, in Restore & colourise), remove_person (a person removed from a video and the scene rebuilt behind them, on the user's own GPU, in Remove a person), blockout_film (a grey-box 3D blockout from Blender or any 3D app filmed from reference stills and timed beats, as Cinema's Blockout does; in the Library) and katana (a reference edit — a 1–30 s video — rebuilt shot for shot with the user's own subject from 1–5 photos, when they want "this edit, but with me / my product"). Use them instead of chaining those steps by hand; once one starts, say which studio it's in (the chat links to it).-- Whole studio jobs have their own tools, and each job opens in its studio, where the user can carry on: split_layers (a Layers project), restyle_footage (a Shorts Studio session), dub_video (a dub the user reviews line by line in Translate & dub), faceless_episode (a Faceless Studio episode), create_ads (an Ads Studio batch), add_captions (the Captions editor), restore_video (old or black-and-white footage restored and colourised, in Restore & colourise), blockout_film (a grey-box 3D blockout from Blender or any 3D app filmed from reference stills and timed beats, as Cinema's Blockout does; in the Library), fly_around (a still filmed along an exact camera path: an orbit by its degrees, direction, tilt and pulse, or a ready move; in the Library) and katana (a reference edit — a 1–30 s video — rebuilt shot for shot with the user's own subject from 1–5 photos, when they want "this edit, but with me / my product"). Use them instead of chaining those steps by hand; once one starts, say which studio it's in (the chat links to it).++- Whole studio jobs have their own tools, and each job opens in its studio, where the user can carry on: split_layers (a Layers project), restyle_footage (a Shorts Studio session), dub_video (a dub the user reviews line by line in Translate & dub), faceless_episode (a Faceless Studio episode), create_ads (an Ads Studio batch), add_captions (the Captions editor), restore_video (old or black-and-white footage restored and colourised, in Restore & colourise), remove_person (a person removed from a video and the scene rebuilt behind them, on the user's own GPU, in Remove a person), blockout_film (a grey-box 3D blockout from Blender or any 3D app filmed from reference stills and timed beats, as Cinema's Blockout does; in the Library), fly_around (a still filmed along an exact camera path: an orbit by its degrees, direction, tilt and pulse, or a ready move; in the Library) and katana (a reference edit — a 1–30 s video — rebuilt shot for shot with the user's own subject from 1–5 photos, when they want "this edit, but with me / my product"). Use them instead of chaining those steps by hand; once one starts, say which studio it's in (the chat links to it).- Use the user's files by the URLs listed in their message. Earlier outputs are found with list_recent. Saved characters and products are Elements: check list_elements and write their @handle in prompts.- Results show up in the chat by themselves, so don't repeat URLs back. After starting jobs, say briefly what's coming; after they finish, give a short take and suggest a next step.- Be brief and friendly. Plain sentences, no headings. Prices are estimates in USD; open-source models run free on the user's own GPU.diff --cc src/server/assist/studio-tools.tsindex b384785e,d29591f8..b0f3e786--- a/src/server/assist/studio-tools.ts+++ b/src/server/assist/studio-tools.ts@@@ -12,8 -12,9 +12,10 @@@ import { SHORTS_MODELS } from "@/lib/caimport type { ChainSlot, Engine, GenerationRequest, Operation } from "@/lib/catalog/types";import { TOOL_MODELS } from "@/lib/layers";import { planCinema } from "@/lib/catalog/cinema";+ import { FLY_VIEWS_MAX, planFlyAround } from "@/lib/catalog/fly-around";+ import { PATH_PRESETS } from "@/lib/camera-path";import { createPipeline, type PipelineStep } from "../chains";+import { getEraser, planRemoval, REMOVE, removalTitle } from "@/lib/catalog/remove-object";import { blockoutFromFile, cinemaContext } from "../cinema-generate";import { db } from "../db";import { chooseRoute, ConnectComfyError, createGenerations, outputKind, previewChained } from "../generations";@@@ -817,7 -773,70 +819,70 @@@ const blockoutFilm = defineTool(},});- export const STUDIO_TOOLS = [splitLayers, restyleFootage, dubVideo, facelessEpisode, createAds, addCaptions, restoreVideo, removePerson, blockoutFilm];+ // ---------------------------------------------------------------------------+ // Fly around (build plan N7-7): a still filmed along an exact camera path++ export const FlyAroundToolInput = z.object({+ image: ref.describe("The still to film: the clip's first frame (a character, a product, a scene)."),+ views: z.array(ref).max(FLY_VIEWS_MAX).optional().describe("Cloud only: other pictures of the same subject from other sides; MiniMax H3 Max takes them as references (the path then goes in words)."),+ preset: z+ .enum(PATH_PRESETS.map((p) => p.id) as [string, ...string[]])+ .optional()+ .describe(`A ready move: ${PATH_PRESETS.map((p) => `${p.id} (${p.name})`).join(", ")}. Leave it out to give the orbit's numbers instead.`),+ degrees: z.number().min(30).max(360).optional().describe("An exact orbit: how far round the subject, 30–360° (default 360)."),+ direction: z.enum(["cw", "ccw"]).optional().describe("An exact orbit's direction seen from above: cw moves the camera round to the left, ccw to the right (default ccw)."),+ tilt: z.number().min(0).max(20).optional().describe("An exact orbit's height tilt, 0–20°: the ring rises over the first half turn and dips below eye level over the second."),+ pulse: z.boolean().optional().describe("An exact orbit moves 25% in and out twice on the way round."),+ prompt: z.string().max(1500).optional().describe("Motion words: what the subject does while the camera moves (the camera's own move is set by the path)."),+ duration: z.number().min(1).max(15).optional().describe("Cloud only: seconds (default 5). Your GPU always films about 5 s."),+ });+ export type FlyAroundToolInput = z.infer<typeof FlyAroundToolInput>;++ /** The fly-around's steps as a pipeline in the Library (src/lib/catalog/fly-around.ts). */+ function flyAroundSteps(i: FlyAroundToolInput, ctx: ToolContext): PipelineStep[] {+ const engine = engineOf(ctx);+ const exact = !i.preset || i.degrees !== undefined || i.direction !== undefined || i.tilt !== undefined || i.pulse !== undefined;+ const plan = planFlyAround({+ engine,+ image: i.image,+ views: i.views,+ ...(exact ? { orbit: { degrees: i.degrees ?? 360, direction: i.direction ?? "ccw", tilt: i.tilt ?? 0, pulse: i.pulse ? 0.25 : 0 } } : { preset: i.preset }),+ prompt: i.prompt,+ duration: i.duration,+ feature: "fly-around",+ });+ if (plan.blocker) throw new Error(plan.blocker);+ return plan.steps.map((s) => ({ key: s.key, request: s.request, ...(s.after?.length && { after: s.after }) }));+ }++ const flyAround = defineTool({+ name: "fly_around",+ description:+ "Film a still along an exact camera path: an orbit set by numbers (degrees, direction seen from above, a height tilt, a radius pulse) or a ready move (Orbit 360°, arcs, a tilted ring, a figure of eight, dollies, trucks) — Fuobe's Fly around. " ++ "In the cloud MiniMax H3 Max camera controls follows the path as keyframes from the still (5 s at 768P is $0.40 at list price); with other views of the subject, MiniMax H3 Max takes them as references and the path goes in words. " ++ "On your GPU MoGe 2 measures the still's depth, the studio renders the path through it, and Wan 2.1 with Uni3C films the still along that render: free, about 5 s, a large GPU (about 48 GB). Gated by the same approval card as generate.",+ schema: FlyAroundToolInput,+ gated: true,+ title: (i) => (i.preset ? `Fly around: ${PATH_PRESETS.find((p) => p.id === i.preset)?.name ?? i.preset}` : `Fly around: ${i.degrees ?? 360}°`),+ plan: (i, ctx) => {+ try {+ return planSteps("fly_around", flyAroundSteps(i, ctx));+ } catch (e) {+ return [{ tool: "fly_around", modelId: "fly-around", modelName: "Fly around", kind: "video", op: "camera-path", prompt: "Fly around", count: 0, costUsd: 0, demo: false, atomic: true, error: (e as Error).message }];+ }+ },+ async run(i, ctx) {+ let steps: PipelineStep[];+ try {+ steps = flyAroundSteps(i, ctx);+ } catch (e) {+ return { content: JSON.stringify({ error: (e as Error).message }), isError: true };+ }+ return startPipeline("Fly around", steps, "Fly around");+ },+ });+-export const STUDIO_TOOLS = [splitLayers, restyleFootage, dubVideo, facelessEpisode, createAds, addCaptions, restoreVideo, blockoutFilm, flyAround];++export const STUDIO_TOOLS = [splitLayers, restyleFootage, dubVideo, facelessEpisode, createAds, addCaptions, restoreVideo, removePerson, blockoutFilm, flyAround];/** For tests: the fallback pipelines, as they would be created. */- export const fallbackSteps = { restore: restoreSteps, layers: layerSteps, restyle: restyleSteps, dub: dubSteps, faceless: facelessSteps, captions: captionSteps, ads: adRequests, blockout: blockoutSteps };+ export const fallbackSteps = { restore: restoreSteps, layers: layerSteps, restyle: restyleSteps, dub: dubSteps, faceless: facelessSteps, captions: captionSteps, ads: adRequests, blockout: blockoutSteps, flyAround: flyAroundSteps };diff --cc src/server/canvas.tsindex 778863d8,3ec671bd..a16a5ecd--- a/src/server/canvas.ts+++ b/src/server/canvas.ts@@@ -106,7 -105,8 +108,9 @@@ const NODE_TYPES ="translate","concat","table",+ "layout",+ "camera-path",+ "fly-around","output","note",] as const satisfies readonly CanvasNodeType[];@@@ -188,8 -173,11 +192,13 @@@ const NodeData = z.object(rows: z.array(z.array(z.string().max(TABLE_LIMITS.cell)).max(TABLE_LIMITS.columns)).max(TABLE_LIMITS.rows * 2).optional(),// Translate (video) on the open engine: the dub it started in Translate & dub.dubId: z.string().max(40).optional(),+ // Layout: its boxes (read as a Fuobe draft, anything else dropped).+ layout: LayoutData.optional(),+ // Camera path (N7-7): a preset, an exact orbit or keys; Fly around: the clip's length.+ pathPreset: z.string().max(40).optional(),+ orbit: ExactOrbitSchema.optional(),+ keys: z.array(CameraKeySchema).min(1).max(MAX_KEYS).optional(),+ duration: z.number().min(1).max(15).optional(),});const Num = z.number().finite();diff --cc src/server/gpu/tools.tsindex bc4b1ff1,48fe05d1..009d52ad--- a/src/server/gpu/tools.ts+++ b/src/server/gpu/tools.ts@@@ -1,7 -1,7 +1,8 @@@import "server-only";+ import { FLY_MODELS } from "@/lib/catalog/fly-around";import { DUB_STEP_MODELS } from "@/lib/av/dub";import { SPLIT_MODEL } from "@/lib/av/split";+import { CLEAN_DIALOGUE_PRESET, OPEN_MODEL as CLEAN_DIALOGUE_MODEL, OPEN_MUX_MODEL as CLEAN_DIALOGUE_MUX } from "@/lib/av/clean-dialogue";import { REMOVE_DIALOGUE_MODELS } from "@/lib/av/remove-dialogue";import { CLEAN_MODEL } from "@/lib/av/clean-voice";import { getModel, getPreset, MODELS, modelsFor, PRESETS } from "@/lib/catalog";diff --cc tests/assist-context.test.tsindex f9c64300,ce265f49..11abbdb3--- a/tests/assist-context.test.ts+++ b/tests/assist-context.test.ts@@@ -374,7 -374,10 +374,11 @@@ describe("studio tools", () =>create_ads: [{ brief: "oat milk for runners" }, { brief: "oat milk", product_image: image, count: 2, aspect_ratios: ["1:1", "9:16"] }],add_captions: [{ video }, { video, translate_to: "Spanish" }],restore_video: [{ video }, { video, prompt: "a harbour in the 1930s, natural colour", reference: image }],+ remove_person: [{ video, who: "the man in the grey shirt" }, { video, who: "the woman on the left", start: 0, end: 1, mask_grow: 9 }],+ fly_around: [+ { image, degrees: 180, direction: "cw", tilt: 10, pulse: true },+ { image, preset: "orbit_90_ccw", views: [image], duration: 8 },+ ],blockout_film: [{ video, seconds: 8, beats: [{ start: 0, label: "Arrival", words: "She walks in." }] },{ video, seconds: 40, beats: [{ start: 0, label: "Arrival" }, { start: 20, label: "Lights out" }], references: [{ url: image, role: "character", name: "Mara" }], model: "minimax-h3-max-3d", sounds: ["Footsteps"] },