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 'r3b/image-studios' into claude/fuobe-parity-3
Claude1bfcc5787c97
diff --cc src/components/app-sidebar.tsxindex 61b2e2ba,ef3ac3cb..aa89c0a9--- a/src/components/app-sidebar.tsx+++ b/src/components/app-sidebar.tsx@@@ -39,10 -38,10 +39,14 @@@ importLibrary,PersonStanding,Scissors,+ Shapes,+ Smartphone,+ Megaphone,+ Target,+ Images,+ Camera,+ Shirt,+ UserRoundCog,type LucideIcon,} from "lucide-react";import {@@@ -116,10 -114,10 +120,14 @@@ const NAV: NavGroupDef[] =label: "Studios",items: [{ href: "/cinema", label: "Cinema Studio", icon: Clapperboard },+ { href: "/shorts", label: "Shorts Studio", icon: Smartphone },+ { href: "/mixed-media", label: "Mixed Media", icon: Shapes },+ { href: "/marketing", label: "Marketing Studio", icon: Megaphone },+ { href: "/ads", label: "Ads Studio", icon: Target },+ { href: "/moodboards", label: "Moodboards", icon: Images },+ { href: "/photodump", label: "Photodump", icon: Camera },+ { href: "/fashion-factory", label: "Fashion Factory", icon: Shirt },+ { href: "/character-sheet", label: "Character Sheet", icon: UserRoundCog },{ href: "/lipsync", label: "Lipsync & avatars", icon: Mic2 },{ href: "/motion-control", label: "Motion control", icon: PersonStanding },{ href: "/video-edit", label: "Edit video", icon: Scissors },diff --cc src/server/db.tsindex 744f8017,76b1cb7e..60ba0c69--- a/src/server/db.ts+++ b/src/server/db.ts@@@ -175,125 -175,43 +175,158 @@@ const MIGRATIONS: string[] =edited_at INTEGER);CREATE INDEX IF NOT EXISTS canvases_updated ON canvases(updated_at DESC);`,+ // Layers projects: one source image, saved versions of its layer document, and the AI jobs its tools started.+ `CREATE TABLE IF NOT EXISTS layer_projects (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ source_url TEXT NOT NULL,+ cover_url TEXT,+ width INTEGER NOT NULL,+ height INTEGER NOT NULL,+ head_version_id TEXT,+ jobs_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS layer_projects_updated ON layer_projects(updated_at DESC);+ CREATE TABLE IF NOT EXISTS layer_versions (+ id TEXT PRIMARY KEY,+ project_id TEXT NOT NULL,+ label TEXT NOT NULL,+ doc_json TEXT NOT NULL,+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS layer_versions_project ON layer_versions(project_id, created_at DESC);`,+ // Shorts Studio: sessions (a clip cut into segments, each with its takes and the chosen one, plus the stitches) and custom presets.+ `CREATE TABLE IF NOT EXISTS shorts_sessions (+ id TEXT PRIMARY KEY,+ title TEXT NOT NULL,+ engine TEXT NOT NULL,+ batch_id TEXT NOT NULL,+ look_json TEXT NOT NULL,+ source_json TEXT NOT NULL,+ range_json TEXT NOT NULL,+ settings_json TEXT NOT NULL,+ segments_json TEXT NOT NULL DEFAULT '[]',+ stitches_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS shorts_sessions_updated ON shorts_sessions(updated_at DESC);+ CREATE TABLE IF NOT EXISTS shorts_presets (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ description TEXT NOT NULL DEFAULT '',+ references_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );`,+ // Marketing: brand kits (researched or manual), products (shared by every marketing flow), Ads Studio runs and their+ // creatives, and Marketing Studio / Click to Ad / Ad Multiplier runs (a batch of chained generations plus what made it).+ `CREATE TABLE IF NOT EXISTS brand_kits (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ website TEXT,+ status TEXT NOT NULL DEFAULT 'ready',+ progress_json TEXT,+ kit_json TEXT NOT NULL DEFAULT '{}',+ chat_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS brand_kits_updated ON brand_kits(updated_at DESC);+ CREATE TABLE IF NOT EXISTS products (+ id TEXT PRIMARY KEY,+ brand_id TEXT,+ name TEXT NOT NULL,+ description TEXT,+ price REAL,+ currency TEXT,+ audience TEXT,+ selling_points_json TEXT NOT NULL DEFAULT '[]',+ url TEXT,+ images_json TEXT NOT NULL DEFAULT '[]',+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS products_brand ON products(brand_id, created_at);+ CREATE TABLE IF NOT EXISTS ad_batches (+ id TEXT PRIMARY KEY,+ brand_id TEXT NOT NULL,+ engine TEXT NOT NULL,+ route TEXT NOT NULL,+ model_id TEXT NOT NULL,+ direction TEXT,+ created_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS ad_batches_brand ON ad_batches(brand_id, created_at DESC);+ CREATE TABLE IF NOT EXISTS ad_creatives (+ id TEXT PRIMARY KEY,+ batch_id TEXT NOT NULL,+ brand_id TEXT NOT NULL,+ product_id TEXT,+ position INTEGER NOT NULL DEFAULT 0,+ status TEXT NOT NULL,+ angle TEXT,+ headline TEXT,+ body TEXT,+ cta TEXT,+ visual TEXT,+ generation_id TEXT,+ layout TEXT,+ meta_json TEXT,+ // Image studios: colour signatures (Soul HEX; the 50 Cinema Studio palettes are seeded on first use), moodboards+ // (reference sets with their cover job, Recraft style id and optional style LoRA element) and Instadump user packs.+ `CREATE TABLE IF NOT EXISTS palettes (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ colors_json TEXT NOT NULL,+ background TEXT,+ slug TEXT,+ source TEXT NOT NULL DEFAULT 'manual',+ thumb_url TEXT,+ position INTEGER NOT NULL DEFAULT 0,+ created_at INTEGER NOT NULL,+ updated_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS palettes_source ON palettes(source, created_at DESC);+ CREATE TABLE IF NOT EXISTS moodboards (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ images_json TEXT NOT NULL,+ collages_json TEXT NOT NULL DEFAULT '[]',+ engine TEXT NOT NULL,+ generation_id TEXT,+ status TEXT NOT NULL DEFAULT 'queued',+ cover_url TEXT,+ style_id TEXT,+ element_id TEXT,error TEXT,created_at INTEGER NOT NULL,updated_at INTEGER NOT NULL);+ CREATE INDEX IF NOT EXISTS ad_creatives_brand ON ad_creatives(brand_id, created_at DESC);+ CREATE INDEX IF NOT EXISTS ad_creatives_batch ON ad_creatives(batch_id);+ CREATE INDEX IF NOT EXISTS ad_creatives_generation ON ad_creatives(generation_id);+ CREATE TABLE IF NOT EXISTS marketing_runs (+ id TEXT PRIMARY KEY,+ feature TEXT NOT NULL,+ batch_id TEXT NOT NULL,+ final_ids_json TEXT NOT NULL DEFAULT '[]',+ engine TEXT NOT NULL,+ title TEXT NOT NULL,+ meta_json TEXT NOT NULL DEFAULT '{}',+ created_at INTEGER NOT NULL+ );+ CREATE INDEX IF NOT EXISTS marketing_runs_feature ON marketing_runs(feature, created_at DESC);`,+ CREATE INDEX IF NOT EXISTS moodboards_created ON moodboards(created_at DESC);+ CREATE TABLE IF NOT EXISTS photodump_packs (+ id TEXT PRIMARY KEY,+ name TEXT NOT NULL,+ refs_json TEXT NOT NULL,+ created_at INTEGER NOT NULL+ );`,];declare global {diff --cc src/server/generations.tsindex 660bb5ea,db0c19d2..56b8d925--- a/src/server/generations.ts+++ b/src/server/generations.ts@@@ -208,14 -209,10 +209,18 @@@ const ASSET_REFS: { table: string; cols{ table: "cinema_projects", cols: ["cover_url", "palettes_json", "director_json", "chat_json", "brief_body"] },{ table: "cinema_items", cols: ["meta_json"], except: "generation_id" },{ table: "canvases", cols: ["graph_json"] },+ { table: "layer_projects", cols: ["source_url", "cover_url"] },+ { table: "layer_versions", cols: ["doc_json"] },+ { table: "shorts_sessions", cols: ["source_json", "look_json"] },+ { table: "shorts_presets", cols: ["references_json"] },+ { table: "brand_kits", cols: ["kit_json", "chat_json"] },+ { table: "products", cols: ["images_json"] },+ { table: "ad_creatives", cols: ["meta_json"] },+ { table: "marketing_runs", cols: ["meta_json"] },+ // Image studios: a palette's thumbnail, a moodboard's images, collages and cover, an Instadump pack's photos.+ { table: "palettes", cols: ["thumb_url"] },+ { table: "moodboards", cols: ["images_json", "collages_json", "cover_url"] },+ { table: "photodump_packs", cols: ["refs_json"] },];/** Whether anything still refers to this stored file (see ASSET_REFS). */