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/dbs-d9' into claude/fuobe-parity-4
Claude091c8387b30e
diff --cc src/server/assist/agent.tsindex 35ac823f,2ac4bfc3..5a2f5e7e--- a/src/server/assist/agent.ts+++ b/src/server/assist/agent.ts@@@ -705,7 -705,8 +705,8 @@@ 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), 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), edit_speech (a word, the pitch, pace, mood or noise of a recording or video changed without re-recording it, on the user's GPU; pass the transcript's timed lines) 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).+ - Soundtracks: split_soundtrack splits audio or a video's sound into dialogue, music and effects (all stems, one stem such as "just the music", or one remix at given levels), and remove_dialogue takes the talking out of a video, keeps only it, or lowers the music under it, with the picture untouched. Both run on the user's GPU (free); the cloud engine can't do them.- 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 323cf2a1,d1900d98..5ec7c738--- a/src/server/assist/studio-tools.ts+++ b/src/server/assist/studio-tools.ts@@@ -22,10 -21,14 +22,16 @@@ import { db } from "../db"import { chooseRoute, ConnectComfyError, createGenerations, outputKind, previewChained } from "../generations";import { isOffered } from "../model-access";import { engineMode } from "../settings";+import { storedMedia } from "../storage";+import { EMOTIONS, PACES, PITCH_STEPS, planSpeechEdit, VOLUME_STEPS, CLOUD_ONLY_SPEECH_EDIT_PROBLEM, type SpeechEffect } from "@/lib/speech-edit";import { fileUrl, saveFile } from "../storage";import { defineTool, type JobPlace, type ToolContext, type ToolOutcome } from "./define";+ // originals (o/dbs-d9): Split soundtrack and Remove dialogue as tools+ import { dbsChannelsFor, durationWords, hostPick, KEEP_STEMS, REMIX_MAX_DB, REMIX_MIN_DB, remixWords, SPLIT_MODEL, splitOutcome, splitTime, type KeepStem, type SplitOutcome } from "@/lib/av/split";+ import { LOWER_DEFAULT_DB, LOWER_MAX_DB, LOWER_MIN_DB, removeDialogueTime, type DialogueOutcome } from "@/lib/av/remove-dialogue";+ import { AudioToolBody, planAudioTool, previewAudioTool, runAudioTool, type AudioToolPlan, type AudioToolRequest } from "../audio-tools";+ import { comfyDevice, comfyDeviceSeen } from "../providers/comfyui";+ import { contentTypeFor, filesRel, kindFor } from "../storage";/*** Agent access to whole studios: split an image into layers, restyle footage, dub a video, make a