Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Merge branch 'r3b/marketing' into claude/fuobe-parity-3

Claude2510cd9efa50
diff --cc src/components/app-sidebar.tsx
index 8df038c9,2313b212..61b2e2ba
--- a/src/components/app-sidebar.tsx
+++ b/src/components/app-sidebar.tsx
@@@ -39,8 -38,8 +39,10 @@@ import
Library,
PersonStanding,
Scissors,
+ Shapes,
+ Smartphone,
+ Megaphone,
+ Target,
type LucideIcon,
} from "lucide-react";
import {
@@@ -114,8 -112,8 +116,10 @@@ 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: "/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.ts
index 604f6a09,b70d47ff..744f8017
--- a/src/server/db.ts
+++ b/src/server/db.ts
@@@ -175,53 -175,78 +175,125 @@@ 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,
+ 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);`,
];
declare global {
diff --cc src/server/generations.ts
index e0d9054b,b2ebeee1..660bb5ea
--- a/src/server/generations.ts
+++ b/src/server/generations.ts
@@@ -208,10 -208,10 +208,14 @@@ 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"] },
];
/** Whether anything still refers to this stored file (see ASSET_REFS). */