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
Docs: README, STATUS, ARCHITECTURE and the research index describe round 4, part 2
Claude88a537a76e2e
diff --git a/README.md b/README.mdindex 423a1711..adf090e2 100644--- a/README.md+++ b/README.md@@ -4,22 +4,26 @@Use the same frontier paid models Higgsfield uses (Nano Banana Pro, Seedance 2.5, Kling 3.0, Veo 3.1, Seedream 5, GPT Image 2.5, FLUX.3, Gemini Omni, MiniMax, ElevenLabs…, and Higgsfield's own Soul and Cinema Studio) with your own fal.ai / Replicate / Higgsfield key, **or** run the equivalent open-weight workflows on your own GPU through **ComfyUI**. Same studio, same apps, same camera motions — flip one switch.- **Assist:** describe the whole job in a chat; the agent picks models, shows the plan and its cost, runs it when you approve, checks the results and chains the next step. Free / Smart / Manual modes, 20 built-in **skills** (SKILL.md playbooks, or upload your own), **projects** with instructions and up to 20 sources (links, files and PDFs, elements, notes), and **memory**. Runs on Claude, a local Ollama model, or an offline planner-- **MCP:** other agents (Claude Code, Claude Desktop, any MCP client) can drive the studio through `/api/mcp`, including whole studio jobs that open in their studio (a Layers project, a Shorts session, a dub to review, a Faceless episode, an Ads Studio batch, the Captions editor, a Katana edit; Genjutsu and Remove object aren't tools yet) and the skills as prompts. `npx skills add workingprototype/Fuobe` installs the skills in other agents+- **MCP:** other agents (Claude Code, Claude Desktop, any MCP client) can drive the studio through `/api/mcp`, including whole studio jobs that open in their studio (a Layers project, a Shorts session, a dub to review, a Faceless episode, an Ads Studio batch, the Captions editor, a Katana edit; Genjutsu, Remove object, Content Factory, the AI Influencer builder and Layers' Inpaint, Enhancer and Save as element aren't tools yet) and the skills as prompts. `npx skills add workingprototype/Fuobe` installs the skills in other agents- **Command line:** `fuobe` lists models, prices a run, generates, waits and downloads from a terminal, a script or a coding agent; see [`docs/cli.md`](docs/cli.md)-- **Create:** Image · Video (text, image, start/end frame, **Frames**: up to 10 stills on a timeline, reference images and clips, multi-shot, draft mode) · Edit · **Layers** (split a flat image into editable layers, edit text, regional edits, cropped or positioned zips) · Inpaint & Draw to Edit · Color grading · Camera motions · Effects · Storyboard (and turn it into a film) · **Canvas** (wire prompts, files and models into node workflows; every template in a cloud and an open-source version) · Apps+- **Create:** Image · Video (text, image, start/end frame, **Frames**: up to 10 stills on a timeline, reference images and clips, multi-shot, draft mode) · Edit · **Layers** (split a flat image into editable layers, edit text with the lines found for you on either engine, Inpaint a painted area, an Enhancer (skin, soft glow, sharpen, detail), regional edits, save a layer as an element, cropped or positioned zips) · Inpaint & Draw to Edit · Color grading · Camera motions · Effects · Storyboard (and turn it into a film) · **Canvas** (wire prompts, files and models into node workflows; every template in a cloud and an open-source version) · Apps- **Studios:**- **Cinema Studio** — projects and scenes, Director's Panel (camera, lens, 50 palettes, lighting rig, Emotion Wheel), 33 camera moves (# in the prompt bar), AI Director, image grids, Soul Cast and Soul Location, and **3D scenes**: turn a still into a scene you fly through, set the lens and frame, and Capture a re-rendered take from that view- - **Shorts Studio** — restyle up to 2 minutes of your own footage with 44 looks (or your own references), in segments you can regenerate, stitched back under your sound; **Mixed Media** — 33 looks for 1–10 s clips with per-preset settings and a preview frame+ - **Shorts Studio** — restyle up to 2 minutes of your own footage with 44 looks (or your own references), in segments you can regenerate, stitched back under your sound; **Mixed Media** — 33 looks for 1–10 s clips with per-preset settings and a preview frame; on the cloud the clip's frames are sampled at the rate you pick (4–24 FPS) and each one is redrawn by default (Nano Banana 2 or Seedream 5.0 Flash, priced per frame), and **Fast** restyles in one video-to-video pass- **Genjutsu** — keep a 4–30 s clip's motion, camera and framing and change what is in it: motion transfer, object swap, restyle or insert, with reference images, priced before it runs- - **Marketing Studio** (84 templates), **Click to Ad**, **Ads Studio** (brand kit from your website, up to 20 ads per product in 1:1 / 4:5 / 9:16) and **Ad Multiplier**+ - **Marketing Studio** (84 templates), **Click to Ad** (with a logo end card), **Ads Studio** (brand kit from your website, up to 20 ads per product in 1:1 / 4:5 / 9:16) and **Ad Multiplier**- **Moodboards**, **Color signature** (Soul HEX palettes), **Photodump / Instadump**, **Fashion Factory**, **Character Sheet**+ - **AI Influencer** builder — build a character game-style: a character type (Average, Bold or Extreme human, or a creature: insect, frog, cat, dog, rodent or bird) and traits in 18 categories, with Shuffle, then save the sheet as a character- **Faceless Studio** and **Explainer** — channels, scripts, narrated and subtitled episodes with a timeline editor; "Frame by frame" moves the camera slowly over each still (a Ken Burns move), the music loops to cover long films, and Explainer reads PDF and Word sources+ - **Content Factory** — a faceless series in the style of a clip you like: upload it, paste a TikTok, Instagram or web-page link, or pick one of 8 preset styles. Fuobe reads it into a style brief you can edit, prices the whole series, then makes 1–10 Faceless episodes of 30 s to 5 min here, or gives you a prompt for Claude Code to make them through Fuobe's MCP server- **Translate & dub** (your voice, lip-synced, over the original music and effects on both engines), **Captions** (transcribe, edit, burn in), **Trim**, **Katana** (recreate a reference edit with your subject), **Image to 3D**, Lipsync & avatars, Motion control, Edit / Extend / Reframe video, Video tools (**Remove object**: type it, paint it or, on the cloud, click it, and it's erased from the clip; matte, relight, depth, join clips, match colors), Upscale (images and video, **FPS Boost** and slow motion, **SDR to HDR**, and **Export** to ProRes, H.265 10-bit, FFV1 or EXR frames on the open engine), Audio (speech with voice picker and cloning, dialogue, voice change, sound effects, music, sound for video, transcribe, **loop / extend** and **join**), and a Virality predictor (a labelled heuristic)- **Library:** all your results (images, videos, audio, text, 3D) with layouts, filters, nested folders, pins, a review status (In progress, Needs review, Approved, Rejected), Select all, bulk zip download and a Trash with 30-day restore. Helper steps stay hidden until you ask (Show steps), and an upload is deleted only when nothing uses it. Results arrive live, and a browser notification can tell you when a job finishes while Fuobe is in the background- **Getting around:** a **Get started** card on Home and Settings (use paid models, use your GPU, or just try the demo); a **⌘K / Ctrl+K palette** that searches pages, settings, apps, motions, effects, models and recent creations; Start on Home runs the job and says first what it costs; **Settings → About & licences** lists every open model's licence-- **Elements:** save characters, locations, props, styles and voices once, then `@mention` them in any prompt; train a character (Soul ID, a fal LoRA, or AI-Toolkit on your GPU) for a consistent face-- **Catalog:** 193 cloud models + 84 open-source models (plus 42 hidden ones: chain steps and studio helpers, self-tests, browser tools, and four that no studio uses yet: Gemma 4 speech translate and the cloud Overlay image, Extract frames and Images to video), 124 apps, 108 camera motions (mix any two), 255 effects-- **Open-source engine:** 139 API-format ComfyUI workflows (official templates, community packs and hand-built graphs) validated against real ComfyUI node definitions, plus 43 researched LoRAs (camera moves, VFX) attached to 55 motion, effect and app presets+- **Elements:** save characters, locations, props, styles and voices once, then `@mention` them in any prompt; train a character (Soul ID, a fal LoRA, or AI-Toolkit on your GPU) for a consistent face; save one straight from a Layers layer or an AI Influencer sheet+- **LoRAs:** small add-on files that give an open model a look, a camera move or an effect. **Settings → LoRAs** lists a library of 114 researched LoRAs (67 looks, 23 motions, 24 effects) with each one's licence and source, and downloads them. On the open engine, a LoRA ComfyUI doesn't have is downloaded into your LoRA folder before the run and checked against its SHA-256 fingerprint. On the cloud, seven hosted open-weight models take LoRAs: Z-Image Turbo (hosted, now on fal and Replicate) and six new ones (Qwen-Image 2512, Qwen-Image-Edit 2511, FLUX.2 [klein] 4B, Wan 2.2 A14B image and video, LTX-2.3 22B), and a LoRA a run can't carry is left out with a warning. No preset takes its LoRAs from the new library yet+- **Catalog:** 200 cloud models + 85 open-source models (plus 45 hidden ones: chain steps and studio helpers, self-tests, browser tools, and Gemma 4 speech translate, which no studio uses yet), 124 apps, 108 camera motions (mix any two), 255 effects+- **Open-source engine:** 139 API-format ComfyUI workflows (official templates, community packs and hand-built graphs) validated against real ComfyUI node definitions, plus 43 researched LoRAs (camera moves, VFX) that 55 motion, effect and app presets use today (a separate set from the Settings → LoRAs library)+- **Evaluation harness (for developers):** `pnpm eval:run` (or `fuobe eval`) runs a suite of cases for each planned Fuobe Original (Fuobe's own open-weight versions of Higgsfield's in-house models, such as Soul and DoP) on the demo, open or cloud engine, scores the results with pinned open models, runs a blind A/B review and says whether a recipe may become a default. No Original is in the app yet: for now the suites measure their recipes on models already in the catalog (Z-Image Turbo for Soul, Wan 2.2 for DoP…), and cases that need the Original itself are skipped. Cloud runs are priced first and capped (default $5), and nothing goes through Higgsfield. Nothing has been measured on a GPU or the cloud yet; see [`scripts/eval/README.md`](scripts/eval/README.md)- **No keys? No GPU?** Demo mode lets you click through everything with clearly-labelled placeholder outputs.> Project status, what works, what's verified and what's left: **[docs/STATUS.md](docs/STATUS.md)** (also in-app at `/status`).@@ -46,16 +50,17 @@ The mode can also be set with `FUOBE_ENGINE_MODE=both|open|cloud`. Then connect| You have | What to set | You get ||---|---|---|| A [fal.ai](https://fal.ai/dashboard/keys) key | `fal.ai API key` (or `FAL_KEY`) | Every cloud model and cloud app |-| A Replicate token | `Replicate API token` (or `REPLICATE_API_TOKEN`) | Fallback route for models Replicate hosts; **Preferred provider** (or `FUOBE_CLOUD_PROVIDER`: `auto`, `fal`, `replicate` or `higgsfield`) picks which one goes first |+| A Replicate token | `Replicate API token` (or `REPLICATE_API_TOKEN`) | Fallback route for models Replicate hosts; **Preferred provider** (or `FUOBE_CLOUD_PROVIDER`: `auto`, `fal`, `replicate` or `higgsfield`) picks which one goes first, unless only the other can carry the run's LoRAs or make the clip length asked || A [Higgsfield API](https://console.higgsfield.ai) key | `Higgsfield API key` as `KEY_ID:KEY_SECRET` (or `HIGGSFIELD_API_KEY`, `HF_KEY`, or `HF_API_KEY` + `HF_API_SECRET`) | Soul 2.0 / Soul Cinema / Soul v1 with live presets, Soul ID training, Genjutsu and Genjutsu Lite, Cinema Studio 4.0, Marketing Studio, Ads Studio, plus extra routes for Seedance, Kling, Wan, MiniMax… || A GPU running ComfyUI | `ComfyUI server URL` (or `COMFYUI_URL`, default `http://127.0.0.1:8188`; `COMFYUI_TOKEN` if it sits behind a proxy) | Every open-source model, app, motion, effect and studio route || An Anthropic key | `Anthropic API key` (or `ANTHROPIC_API_KEY`) | The full **Assist** agent (Smart and Manual modes), text steps (translate, write, scripts, ad copy, brand research), prompt **Enhance** and storyboard splitting with Claude || Ollama | `Prompt enhancement` → Ollama (`OLLAMA_URL`, `OLLAMA_MODEL`, default `qwen3:8b`; `FUOBE_ENHANCE_PROVIDER`) | The same text steps and the Assist agent on a local model (tool calling) |+| A LoRA folder (and a civitai account) | **Settings → LoRAs**: `LoRA folder`, ComfyUI's `models/loras` (or `COMFYUI_LORAS_DIR`), and `civitai API key` (or `CIVITAI_API_KEY`) | Fuobe downloads a LoRA ComfyUI doesn't have before the run and checks its fingerprint. 72 of the 114 library LoRAs are on civitai and need the key, which is never sent to fal or Replicate || AI-Toolkit (ostris) on your GPU | `AI_TOOLKIT_URL` (+ `AI_TOOLKIT_AUTH`, `AI_TOOLKIT_DATASET_DIR`) and `COMFYUI_LORAS_DIR` | Train character and style LoRAs from an element's photos or a moodboard; the result is copied into ComfyUI and used whenever you @mention it |Each connection field in Settings has **Save & test**: what you typed is tested before it is saved, and a failure says why. Until something is connected (or you hide it), Home and Settings show a **Get started** card with the three ways in.-Keys are stored in a local SQLite database (`data/fuobe.db`) and never sent to the browser. Generated media is saved under `data/files/`. Fuobe is single-user.+Keys are stored in a local SQLite database (`data/fuobe.db`) and never sent to the browser. Generated media is saved under `data/files/`, and LoRAs downloaded only to copy them to fal or Replicate under `data/loras/`. Fuobe is single-user.### Self-hosting and security@@ -81,21 +86,27 @@ Uploads up to 200 MB work with sign-in on. Inputs given as URLs are fetched only### Upgrading from an earlier version-- **Get the new code and rebuild.** Pull `main`. On Windows, run `start.bat` as usual: it installs packages on every start and rebuilds because the code changed. On Mac or Linux, run `pnpm install`, then `pnpm build` (or just `pnpm dev`). Round 4 adds only one dependency, `@types/three` (for development); round 3 added `@xyflow/react`, `@google/model-viewer`, `three` and `unpdf`. In a checkout without `.next`, run `pnpm exec next typegen` (or a dev or build run) before `pnpm typecheck`.-- **Your data upgrades on its own.** The database migrations run once each at start-up, in order, and an existing `data/` folder (or `FUOBE_DATA_DIR`) keeps everything it holds. Round 4 adds one migration, for the Library's nested folders, pins and review status (PR #6); PR #7 adds none. The list is in [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md#storage-srcserverdbts-storagets-settingsts).-- **If you ran one of the round-3 package branches** (`r3/*`, `r3b/*`) before they were merged, start with a fresh data folder. Those branches numbered their migrations differently, so tables can be missing. Move the old folder aside rather than deleting it if it holds results you want.+- **Get the new code and rebuild.** Pull `main`. On Windows, run `start.bat` as usual: it installs packages on every start and rebuilds because the code changed. On Mac or Linux, run `pnpm install`, then `pnpm build` (or just `pnpm dev`). Round 4 adds only one dependency, `@types/three` (for development; PR #9 adds none); round 3 added `@xyflow/react`, `@google/model-viewer`, `three` and `unpdf`. In a checkout without `.next`, run `pnpm exec next typegen` (or a dev or build run) before `pnpm typecheck`.+- **Your data upgrades on its own.** The database migrations run once each at start-up, in order, and an existing `data/` folder (or `FUOBE_DATA_DIR`) keeps everything it holds. Round 4 adds three migrations: one for the Library's nested folders, pins and review status (PR #6), and two new tables in PR #9, `lora_mirrors` (each LoRA copy Fuobe makes) and `content_series` (Content Factory), added at the first start. PR #7 adds none. The list is in [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md#storage-srcserverdbts-storagets-settingsts).+- **If you ran one of the round-3 package branches** (`r3/*`, `r3b/*`) before they were merged, start with a fresh data folder. Those branches numbered their migrations differently, so tables can be missing. Move the old folder aside rather than deleting it if it holds results you want. The same goes for a folder used by the `r4/content-factory` branch on its own: there Content Factory's table took the Library migration's number, so the Library's folders, pins and review status would never be added.- **Start on Home now runs the job** in Image, Video or Edit instead of only opening the studio. With a saved key for the default model this is a paid run; the line under the box says first what will run and what it costs. **⌘K / Ctrl+K** opens the search palette instead of going Home.- **Topaz Video is priced by size:** $0.01/s at 720p, $0.02/s at 1080p and $0.06/s above, doubled at 60 fps (it was a flat $0.02/s at 2×). The default target is 1080p, and a size that wouldn't enlarge the clip moves up, so a 1080p clip now goes to 1440p at $0.06/s. Open-source video upscaling (SeedVR2, Real-ESRGAN) also asks for a size now, 720p to 2160p, instead of 2× or 4×.+- **Cloud Mixed Media costs more by default.** It now redraws each sampled frame (**Per frame**): about $6 for 10 s at 1K, where the video-to-video pass was one call. Pick **Fast** under Restyle to keep the old behaviour. API calls with no `modelId` and no `mode` now get Per frame; a model sent for the wrong mode gets a 422.+- **Click to Ad ends on a logo card by default** when the product kit has a logo: 2.5 s longer, included in the price. Switch **End card** off to keep the old ads. API calls without `endCard` are unchanged.+- **LoRAs on the open engine:** set the **LoRA folder** in Settings → LoRAs, plus a civitai key for 72 of the 114 library LoRAs. Fuobe writes the files itself, so the folder must be one the Fuobe machine can write to (ComfyUI on the same PC, or its `models/loras` shared); otherwise place the files by hand, as you must for the two gated Hugging Face LoRAs. With no folder set, a run that needs a LoRA ComfyUI doesn't have stops and says what to do. A LoRA sent to a workflow with no model loader to attach it to now fails the run instead of being dropped silently.+- **Cloud runs with LoRAs:** when a model runs on both fal and Replicate, Fuobe picks the one that can take every LoRA and the clip length asked, even over **Preferred provider**. LoRAs a run can't take are left out with a warning.- **Password-less installs reached by a domain name** (a reverse proxy, a tunnel, a Tailscale name) get 403 since round 3. Set a password, or add the name to `FUOBE_ALLOWED_ORIGINS`.- **Inputs from LAN addresses** (an image URL on your NAS, say) are refused unless `FUOBE_ALLOW_PRIVATE_URLS=1` (also since round 3).-- **ComfyUI node packs:** re-run `scripts/comfy/install-comfyui.sh` (it keeps what's installed and pins each pack to the commit Fuobe was validated with). Round 3 added ComfyUI-MelBandRoFormer, ComfyUI-QwenASR and ComfyUI-HunyuanVideo-Foley; round 4 adds ComfyUI-ToSVG for the open Vectorize app. Open-source video upscaling and FPS Boost now also need ComfyUI-VideoHelperSuite (before, core ComfyUI was enough), which the script installs too. If you set up ComfyUI another way (ComfyUI Desktop, for example), install these packs yourself. ComfyUI itself needs no upgrade: the library still targets 0.41.0.-- **Models for the new tools.** Round 4 adds about 28 GB of model files to the library, all in PR #6 (PR #7 adds none): VOID with its CogVideoX VAE (22.73 GB, Remove object's "Shadows and reflections too"), MoGe 2 (0.66 GB, 3D scenes), and OvisOCR3 and TripoSplat for graphs no studio uses yet. The new tools also use files the library already listed, which you may not have downloaded: Wan 2.1 VACE 14B (34.68 GB) and SAM 3.1 (Remove object; Genjutsu's swap and insert), Wan Animate 2 (Genjutsu's motion transfer), Qwen-Image-Edit 2511 with the Multiple-Angles LoRA (3D scenes) and RIFE 4.26 (FPS Boost). The **Workflows** page lists them with their install commands. GPU memory, from the manifest and not measured: Wan VACE 24 GB, VOID 24–40 GB, SeedVR2 in passes 16 GB.+- **ComfyUI node packs:** re-run `scripts/comfy/install-comfyui.sh` (it keeps what's installed and pins each pack to the commit Fuobe was validated with). Round 3 added ComfyUI-MelBandRoFormer, ComfyUI-QwenASR and ComfyUI-HunyuanVideo-Foley; round 4 adds ComfyUI-ToSVG for the open Vectorize app (PR #9 adds none). Open-source video upscaling and FPS Boost now also need ComfyUI-VideoHelperSuite (before, core ComfyUI was enough), which the script installs too. If you set up ComfyUI another way (ComfyUI Desktop, for example), install these packs yourself. ComfyUI itself needs no upgrade: the library still targets 0.41.0.+- **Models for the new tools.** Round 4 adds about 28 GB of model files to the library, all in PR #6 (PR #7 adds none): VOID with its CogVideoX VAE (22.73 GB, Remove object's "Shadows and reflections too"), MoGe 2 (0.66 GB, 3D scenes), OvisOCR3 (1.71 GB, Layers' text detection since PR #9) and TripoSplat for a graph no studio uses yet. The new tools also use files the library already listed, which you may not have downloaded: Wan 2.1 VACE 14B (34.68 GB) and SAM 3.1 (Remove object; Genjutsu's swap and insert), Wan Animate 2 (Genjutsu's motion transfer), Qwen-Image-Edit 2511 with the Multiple-Angles LoRA (3D scenes) and RIFE 4.26 (FPS Boost). PR #9 adds no files to the library, but its tools use these: OvisOCR3 for Layers' text detection; Gemma 4 E4B (9.06 GB) plus ComfyUI-VideoHelperSuite for Content Factory's reading of a reference clip; FLUX.1 Fill [dev] (23.8 GB) for Layers' Inpaint. The **Workflows** page lists them with their install commands. GPU memory, from the manifest and not measured: Wan VACE 24 GB, VOID 24–40 GB, SeedVR2 in passes 16 GB, Gemma 4 E4B 12 GB, OvisOCR3 3 GB.+- **`pnpm test` also runs the evaluation harness's Python metric tests**, in the harness's own venv or through uv (which may download numpy, Pillow and pytest once); with neither, they are skipped. Nothing is removed in PR #9: no route, setting, environment variable, workflow or provider.### Setting up the open-source engine1. Install ComfyUI on a machine with a GPU (24 GB VRAM covers almost every workflow; Z-Image Turbo, Wan 2.2 5B and SDXL run in 8–16 GB; VOID, Remove object's "Shadows and reflections too", may need up to 40 GB). `scripts/comfy/install-comfyui.sh` installs ComfyUI and the 15 custom node packs at the commits Fuobe was validated with (`NC_PACKS=1` adds the non-commercial ComfyUI-Whisper).2. Open **ComfyUI workflows** in Fuobe. Each workflow lists the model files it needs, which are already installed (✓) and a **Copy install commands** button that produces the exact `wget` / `git clone` lines.3. Switch the engine toggle (top-right of every studio) to **Open source**.+4. For LoRAs (camera motions, effects, trained characters), set **Settings → LoRAs → LoRA folder** to ComfyUI's `models/loras`, and add a civitai key for civitai files. Fuobe then downloads a LoRA ComfyUI doesn't have before the run.LatentSync 1.6 and ThinkSound are optional and run on a separate, isolated ComfyUI (`scripts/comfy/install-isolated-worker.sh`, port 8189); see [`scripts/comfy/README.md`](scripts/comfy/README.md). Lipsync offers LatentSync 1.6 and Sound effects offers ThinkSound, marked in the model picker as running on the isolated worker. Set its address as **Isolated worker URL** in Settings (or `COMFYUI_ISOLATED_URL`); without it, those jobs fail with a message naming the setting. Their workflows are validated, but not run with real weights. Open dubbing, Faceless and UGC narration clone a voice with Chatterbox, so they need a voice sample (record or upload one). Open-source translation uses Ollama when it's running, and Qwen3.5 4B on your ComfyUI when it isn't.@@ -110,9 +121,9 @@ node tests/e2e/comfyui-faceless-plus.mjs http://localhost:3000 # Ken Burns, th## Development```bash-pnpm typecheck && pnpm lint && pnpm test # TypeScript, ESLint, Vitest (116 files, 1813 tests)+pnpm typecheck && pnpm lint && pnpm test # TypeScript, ESLint, Vitest (133 files, 2084 tests; with uv, also the harness's Python metric tests)pnpm build # production build-pnpm gen:catalog # regenerate cloud models, Higgsfield models and presets, LoRA map and icon map from docs/research/*.json+pnpm gen:catalog # regenerate cloud models, Higgsfield models and presets, LoRA map, LoRA library, AI Influencer options and icon map from docs/research/*.jsonpnpm dev:clean # clear the Turbopack cache if the dev server gets stuck reloading or serves stale CSSnode scripts/gen-demo-3d.mjs # regenerate the demo GLB and turntable (needs ffmpeg)```@@ -136,17 +147,30 @@ node tests/e2e/assist-flows.mjs [url] # skills, memory, projects, skill`layers.mjs` and `cinema-scene.mjs` expect their open-engine step to run in demo mode: with a reachable ComfyUI they fail (demo stills are SVG placeholders ComfyUI can't read, and Layers needs the Qwen-Image-Layered weights).+The Fuobe Originals evaluation harness (see [`scripts/eval/README.md`](scripts/eval/README.md); `fuobe eval <command>` does the same from a checkout). `eval:run` needs a running Fuobe:++```bash+pnpm eval:validate # check every case file, and that the generated suites match the research+pnpm eval:run --suite selftest --engine demo # about 30 s, free: submit, wait, download, score, report+pnpm eval:setup # the metrics venv (needs uv; CPU torch by default)+pnpm eval:review latest # rate a run's pairs blind, with the keyboard+pnpm eval:compare latest~1 latest # wins, losses and mean gain per metric; exits 1 when a guarded metric regresses+pnpm eval:promote latest # does the recipe win? A person changes the default, in a reviewed commit+node tests/e2e/eval-review.mjs # the report and blind review pages at 1440 and 390 px, light and dark (no app needed)+```+- `docs/ARCHITECTURE.md` — how requests flow from the composer to providers and back, pipelines, live updates, security, each studio's modules-- `docs/cli.md` — the `fuobe` command line: install, sign in, every command, MCP and skills for other agents+- `docs/cli.md` — the `fuobe` command line: install, sign in, every command (`fuobe eval` included), MCP and skills for other agents- `docs/research/` — the research this is built on (Higgsfield inventory, studios, image studios, marketing and agents, API, round-4 changes, in-house products; paid model APIs parts 1–4; ComfyUI equivalents parts 1–4; workflow library; the round-4 UX and speed audit; open recipes for Fuobe Originals; Liner UI language); [`docs/research/README.md`](docs/research/README.md) says what each file covers- `docs/workers/tribe-v2.md` — the optional, non-commercial TRIBE v2 worker contract for the Virality predictor- `scripts/comfy/` — the pipeline that exports and validates the ComfyUI workflow library+- `scripts/eval/` — the Fuobe Originals evaluation harness: suites, metrics, blind review and the promote rule- `skills/` — Assist's built-in skills (`<name>/SKILL.md` in the Agent Skills format: name, description and compatibility, with Fuobe's own fields under `metadata`: title, when_to_use, icon, studio, tags, offline hints); `.agents/skills/fuobe/` teaches another agent to drive Fuobe through MCP or the CLI## Tech-Next.js 16 (App Router, Cache Components) · React 19 · Tailwind CSS v4 · shadcn/ui (Radix) · TanStack Query · SQLite (better-sqlite3) · zod · fal.ai queue API · Replicate predictions API · Higgsfield API · ComfyUI HTTP + WebSocket API · Anthropic SDK (Claude) · Ollama · @xyflow/react (Canvas) · @google/model-viewer + three (3D) · unpdf (PDF text) · cmdk · WebGL · server-sent events · Vitest · Playwright.+Next.js 16 (App Router, Cache Components) · React 19 · Tailwind CSS v4 · shadcn/ui (Radix) · TanStack Query · SQLite (better-sqlite3) · zod · fal.ai queue API · Replicate predictions API · Higgsfield API · ComfyUI HTTP + WebSocket API · Anthropic SDK (Claude) · Ollama · @xyflow/react (Canvas) · @google/model-viewer + three (3D) · unpdf (PDF text) · cmdk · WebGL · server-sent events · Vitest · Playwright · Python with uv (the evaluation harness's metrics).## License notes-Fuobe's code is open source. Model weights have their own licenses: several open models used here are **non-commercial** (FLUX.1/FLUX.2 [dev], inswapper, MMAudio weights, USO's FLUX.1 base, some LoRAs, ComfyUI-Whisper's node code, TRIBE v2), HunyuanVideo-Foley and Hunyuan3D 2.1 exclude the EU, UK and South Korea, Stable Audio 3 is free under US$1M revenue (Stability Community licence), and VOID (Remove object's "Shadows and reflections too" on the open engine) is built on CogVideoX-5B, whose licence asks you to register before commercial use. The Workflows page, **Settings → About & licences** and `docs/research/comfyui-oss*.md` list each license. Cloud models are billed by your provider.+Fuobe's code is open source. Model weights have their own licenses: several open models used here are **non-commercial** (FLUX.1/FLUX.2 [dev], inswapper, MMAudio weights, USO's FLUX.1 base, some LoRAs, ComfyUI-Whisper's node code, TRIBE v2), HunyuanVideo-Foley and Hunyuan3D 2.1 exclude the EU, UK and South Korea, Stable Audio 3 is free under US$1M revenue (Stability Community licence), and VOID (Remove object's "Shadows and reflections too" on the open engine) is built on CogVideoX-5B, whose licence asks you to register before commercial use. The Workflows page, **Settings → About & licences** and `docs/research/comfyui-oss*.md` list each license. LoRAs have their own too: **Settings → LoRAs** shows each one's (commercial or not, your GPU only or also the cloud), and a LoRA licensed for your GPU only is never sent to fal or Replicate. Cloud models are billed by your provider.diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex b59ecff2..6f499af6 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -1,6 +1,6 @@# Architecture-Fuobe is a single Next.js 16 app. The browser (and the `fuobe` command line) talks only to Fuobe's own API; the server talks to providers (fal.ai, Replicate, Higgsfield, ComfyUI, and Claude or Ollama for text) and stores every input and output locally, so the library never depends on a provider's expiring URLs.+Fuobe is a single Next.js 16 app. The browser (and the `fuobe` command line) talks only to Fuobe's own API; the server talks to providers (fal.ai, Replicate, Higgsfield, ComfyUI, and Claude or Ollama for text), fetches LoRA files from Hugging Face and civitai when a run needs them, and stores every input and output locally, so the library never depends on a provider's expiring URLs.```proxy.ts: hostAllowed() (no password set) → crossSite() → sign-in (session cookie or API token)@@ -18,15 +18,18 @@ Composer / studio (React) ──POST /api/generations (or a studio route that bu│ NEEDS / requires / minImages: says which input is missing▼engine mode check Settings → Engine mode (both / open / cloud)- chooseRoute() first configured provider for that operation- │ (Preferred provider sets fal/Replicate order; "llm" for text steps),- │ else the demo provider (Settings → Demo mode)+ chooseRoute() first configured provider for that operation, preferring one that carries+ │ every LoRA and makes the clip length asked (Preferred provider sets+ │ fal/Replicate order otherwise; "llm" for text steps), else the demo+ │ provider (Settings → Demo mode)+ fitLoras() src/lib/catalog/loras.ts: LoRAs a cloud run can't carry are left out, with notes▼createGenerations() / createPipeline() one row per job; dependsOn for chained steps│ SQLite row (queued) → submit() in the background│ (a row with depends_on waits until every generation it names succeeds,│ then gets their outputs through its chain slots: see Pipelines)│ upload inputs to the provider (prepareFile), optional prompt enhancement,+ │ LoRA files: downloaded into ComfyUI's folder, or mirrored to fal / Replicate (src/server/loras.ts),│ adapter.submit() → external job id (generation_runs.submitted_at)▼runner (started at boot by src/instrumentation.ts; every 1.5 s, plus a 500 ms lane for jobs near the end)@@ -34,7 +37,7 @@ Composer / studio (React) ──POST /api/generations (or a studio route that bu│ timeouts: 45 min running or 4 h queued (generation_runs), cancel at the provider first│ on success: outputs downloaded → data/files → assets table (text inlined, meta kept,│ files linked in meta.artifacts copied too: persistArtifacts)- │ also: poll trainings, launch dependent steps whose inputs are ready+ │ also: poll trainings, launch waiting steps whose inputs are ready (fail them when one failed)▼SQLite TEMP triggers → src/server/live.ts ──GET /api/generations/stream (SSE)──▶ one stream per browser▼@@ -45,8 +48,8 @@ Feed, Library, studios (React Query caches patched by id; polls every 10 s while| file | what ||---|---|-| `types.ts` | `ModelDef`, `ModelRoute`, `FieldMap`, `ModelOptions`, `Pricing`, `Preset`, `GenerationRequest`, `ChainSlot`, `GenInput`, `Generation`, `OutputFile`; since round 4 `VideoFormat`, `MatteOutput`, `PixelPoint`, `FocusPoint`, `COLORMAPS` and `ReviewStatus` |-| `cloud-models.generated.ts` | fal / Replicate models. **Generated** by `scripts/gen-cloud-models.py` from the verified API schemas in `docs/research/paid-model-apis.json`, `-2.json`, `-3.json` and `-4.json` (key fields merged, per-route options, sliders and controls read from the research, required inputs filled from their documented defaults) — field names, enums, defaults and prices are never typed by hand |+| `types.ts` | `ModelDef`, `ModelRoute`, `FieldMap`, `ModelOptions`, `Pricing`, `Preset`, `GenerationRequest`, `ChainSlot`, `GenInput`, `Generation`, `OutputFile`; since round 4 `VideoFormat`, `MatteOutput`, `PixelPoint`, `FocusPoint`, `COLORMAPS` and `ReviewStatus`; since round 4 part 2 `LoraField`, `LoraLicence` and `CHAIN_LIST_SLACK` |+| `cloud-models.generated.ts` | fal / Replicate models. **Generated** by `scripts/gen-cloud-models.py` from the verified API schemas in `docs/research/paid-model-apis.json`, `-2.json`, `-3.json` and `-4.json` (key fields merged, per-route options, sliders and controls read from the research, required inputs filled from their documented defaults) — field names, enums, defaults and prices are never typed by hand. Since round 4 part 2 it also reads the hosted open-weight endpoints of `docs/research/fuobe-originals-recipes-5.json` (`hostedLoraEndpoints`, `hostedBaseEndpoints`) into LoRA routes: `FieldMap.loras`, `loraEndpoint` and `Pricing.withLoras` || `higgsfield-models.generated.ts` | Higgsfield-only models (Soul, Genjutsu and Genjutsu Lite, Cinema Studio, Marketing Studio, Ads Studio…) and extra Higgsfield routes for models also on fal (`HIGGSFIELD_ROUTES`, e.g. Kling O3 video edit). **Generated** by `scripts/gen-higgsfield-models.py` from `docs/research/higgsfield-api.json` || `higgsfield-presets.generated.ts` | 106 Soul + 33 Soul 2.0 presets (ids, categories, descriptions), the 14 Photodump / Instadump packs and the 6 Fashion Factory templates. **Generated** by `scripts/gen-higgsfield-presets.py` from `higgsfield-image-studios.json`; the fallback for the style picker || `models.ts` | Open-source models (ComfyUI workflow ids), fal utility models (Join clips, and the hidden Extract frame, Crop to size, Mix voice and music, Level audio, Forced Alignment), the browser-only models (`local` provider: Color Grade, Ad compositor) + the generated cloud lists (whose hidden chain helpers include Trim video, Add soundtrack, Voice timeline and Extract soundtrack). A launch price (`Pricing.promo`) is applied when the list loads (`withCurrentPrice` → `pricingAt`) |@@ -57,12 +60,15 @@ Feed, Library, studios (React Query caches patched by id; polls every 10 s while| `training.ts` | Training targets (Soul ID, fal Z-Image LoRA, AI-Toolkit), `aiToolkitJob` (character or style preset) and `trainingCaption` || `apps.ts`, `motions.ts` | 124 apps, 108 camera motions, 255 effects: prompt templates, input slots, option pickers, cloud and open routes. `APP_ALIASES` keeps renamed app ids working || `oss-loras.generated.ts` | Higgsfield preset name → researched Wan LoRAs + trigger words (`scripts/gen-oss-loras.py`) |+| `loras.ts` | LoRAs in a run, pure (round 4 part 2): library lookups (`libraryEntry`, `loraRef`), the licence rules (`localOnly`: a LoRA whose licence doesn't allow hosting never goes to fal or Replicate; `gated`; `needsToken` for civitai links), `fitLoras` (what a cloud route can carry, and notes on the rest), `lorasFit` (for route choice), `loraFields` (each API's payload shape) and `loraEndpointFor`. Downloads and mirrors are in `src/server/loras.ts` (see LoRAs) |+| `lora-library.generated.ts` | 114 researched LoRAs (67 looks, 23 motions, 24 effects), each with its pinned download, a unique local file name, SHA256, size and licence snapshot, plus the motion / effect preset → LoRA map (`MOTION_EFFECT_LORAS`). **Generated** by `scripts/gen-lora-library.py` from `fuobe-originals-recipes-5.json`. The downloader and Settings → LoRAs read it; no preset or Soul look takes its LoRAs from it yet |+| `influencer-options.generated.ts` | The AI Influencer builder's data: 19 categories (Character type first) and their options, the 6 creature types with species, Shuffle's weights and the two clash messages (`CONFLICT_MESSAGES`). **Generated** by `scripts/gen-influencer-options.py` from `docs/research/higgsfield-delta-4.json`; the rules and the prompt compiler are in `src/lib/influencer.ts` || `index.ts` | Lookup helpers; attaches LoRAs / Wan Fun Camera poses / ReActor to open routes; registers the LLM models |-| `plan.ts` | Pure planning logic (operation inference, prompt composition, batching, input validation, cost estimate, `pricingAt`) |+| `plan.ts` | Pure planning logic (operation inference, prompt composition, batching, input validation, cost estimate, `pricingAt`, `routeLoras`) || `payload.ts` | `buildPayload(FieldMap, GenInput)`, `extractMedia(response)`, `extractOutputs(response, op)` (structured outputs), `keepMatte` and `noOutputsError` || `palettes.ts` | `applySignature` (Color signature / Moodboard picks → native palette, style id, or words) and `withSignatureWords` || `keyframes.ts` | Frames mode: which models take keyframes and how (`frameSupport`, `FRAMES_MODELS`), the strip's blockers and notes, gap checks (`chainGapProblem`) and the open film's clip plan (`planKeyframeClips`) |-| `cinema.ts`, `canvas.ts`, `shorts.ts`, `shorts-models.ts`, `mixed-media.ts`, `marketing.ts`, `faceless.ts`, `packs.ts`, `remove-object.ts`, `genjutsu.ts` | Each studio's data and pure planner, shared by client and server (see Studios) |+| `cinema.ts`, `canvas.ts`, `shorts.ts`, `shorts-models.ts`, `mixed-media.ts`, `marketing.ts`, `faceless.ts`, `packs.ts`, `remove-object.ts`, `genjutsu.ts`, `content-factory.ts` | Each studio's data and pure planner, shared by client and server (see Studios) |A **model** has one **route** per (operation, provider). A route's `FieldMap` translates Fuobe's canonical input (`prompt`, `images`, `image2`, `endImage`, `video`, `videos`, `audio`, `audios`, `aspectRatio`, `duration`, `voice`, `voiceAudio`, `dialogue`, `shots`, `draft`, `startTime` / `endTime`, `fps`, `palette`, `styleId`, `numLayers`, `sourceLanguage`, `targetLanguage`…) to the provider's field names. Dotted keys (`voice_settings.stability`) are written as nested objects; `setPath` ignores `__proto__`, `constructor` and `prototype`. `defaults` are sent unless the request sets them (applied before the canonical fields), `fixed` always wins (applied after). `sourceLanguage` may be `{key, values}`, matched to the API's list. `palette {key, format, background}` converts hex colours to each API's shape (Recraft on fal, Recraft on Higgsfield, Ideogram members with falling weights, plain lists). `tracks` and `timeline` build fal FFmpeg compose timelines. Masks are converted to each API's convention (white = change, black = change, or alpha) by a small PNG codec (`src/server/png.ts`).@@ -72,7 +78,9 @@ Round 4 adds 17 operations (`remove-object`, `video-swap`, `video-insert`, `keyf`plan.ts` adds `promptOptional(model, op)` (promptless ops such as trim, mux, captions, layers, image-to-3d, vectorize), NEEDS entries with `oneOf` and `media` (transcribe and separate-audio take audio or video), a server-only check that rejects inputs no route can send (it needs the field maps the slim client catalog strips), and `inferOperation` picking `ref2v` when clips are attached. Since round 4, two or more images are `keyframes` when they carry `keyframeTimes` (or the model has no `ref2v` and no chained route), checked by `checkKeyframes` (on a chained route: up to 10, the first at 0 s, every gap within the model's clip lengths); a `format` the model doesn't write is refused; `checkVideoToolOptions` refuses colour maps and matte outputs the model can't make, and Remove background fills `params.matteOutput` with the model's first; a remove-object request can name its target with a mask or points instead of words when a route reads them (`markedTarget`). `estimateCost(model, params, jobs, op)` prices upscale-video, interpolate, sdr-to-hdr and export-video by the clip's seconds (`params.sourceDuration`; slow motion by the stretched length) and applies `Pricing.factors`. `chooseRoute` (in `src/server/generations.ts`) passes over a route whose image list takes fewer images than the run sends (`FieldMap.maxImages`).-Round-4 open models in `models.ts`: the erasers `oss-vace-remove`, `oss-vace-remove-painted` and `oss-void-remove`; `oss-vace-swap` and `oss-vace-insert`; `oss-rife` (now `interpolate-rife-fps`), `oss-seedvr2` and `oss-upscale-video-esrgan` (now the chunked graphs, by target size), `oss-sdr-to-hdr` and `oss-export-video`; `oss-scene-moge`; `oss-vtracer`; and the hidden helpers `oss-ken-burns`, `oss-join-encoded`, `oss-audio-loop` and `oss-audio-join`. Wan 2.2 14B and Wan 2.2 14B Lightning get a chained `keyframes` route (`KEYFRAME_FILM` on `wan22-flf2v-14b`). `oss-latentsync` and `oss-thinksound` are no longer hidden; they carry `worker: "isolated"`.+Round 4 part 2 makes LoRAs part of any run (see LoRAs). `FieldMap.loras` is a `LoraField` in one of four shapes: `items` (fal's `loras: [{path, scale, transformer?, weight_name?}]`, with a maximum, a scale range and whether the API refuses an empty list), `arrays` (Replicate's `lora_weights[]` + `lora_scales[]`), `experts` (one LoRA per Wan 2.2 expert, Replicate's Wan 2.2 fast) and `single` (one URL and one scale field). `FieldMap.size` writes width and height from the aspect ratio on a base×base pixel budget (Replicate's Z-Image LoRA model), and `numFrames` gains `step` (Wan 4n+1, LTX 8n+1 frames) and `fromDuration` (extend: the frames to add, at the clip's own frame rate when known). `ModelRoute.loraEndpoint` is now called whenever a run carries LoRAs, not only for a trained identity, and `Pricing.withLoras` is its price. `LoraRef` gains `weightName`, `hostedUrl` (a mirror), `version` (a civitai version id or a Hugging Face commit) and `licence` (`LoraLicence`: commercial, hostedOk, the snapshot date, civitai's permissions). In `plan.ts`, `planGeneration` puts the request's own LoRAs (an @character's trained identity) before a preset's and a Mix's, so on an API that takes few the identity wins, and leaves out a LoRA at strength 0 together with its trigger word at the start of the prompt; `routeLoras(route, loras)` says which LoRAs a route applies and why each other one is dropped; `estimateCost(…, withLoras)` uses the LoRA endpoint's price (the server's estimate does; the composer's own price doesn't yet); and a concat of one clip plus an appended still counts as two clips (an ad and its end card). `chooseRoute(candidates, images, loras, seconds)` now prefers a ready route that carries every LoRA and makes the clip length asked, then one that carries the LoRAs, then one that makes the length, then the first ready one, so a LoRA or length fit wins over Preferred provider. `prepare()` then fits the LoRAs to the route (`fitLoras`) and adds a note when a frame-count API can't make the length asked (`framedLength`: Replicate's Wan 2.2 fast renders 81–121 frames). The notes come back on the created generations (`Generation.notes`) and in the answer of `POST /api/generations` (and its preview), and the composer shows them as a warning toast; they aren't stored.++Round-4 open models in `models.ts`: the erasers `oss-vace-remove`, `oss-vace-remove-painted` and `oss-void-remove`; `oss-vace-swap` and `oss-vace-insert`; `oss-rife` (now `interpolate-rife-fps`), `oss-seedvr2` and `oss-upscale-video-esrgan` (now the chunked graphs, by target size), `oss-sdr-to-hdr` and `oss-export-video`; `oss-scene-moge`; `oss-vtracer`; and the hidden helpers `oss-ken-burns`, `oss-join-encoded`, `oss-audio-loop` and `oss-audio-join`. Wan 2.2 14B and Wan 2.2 14B Lightning get a chained `keyframes` route (`KEYFRAME_FILM` on `wan22-flf2v-14b`). `oss-latentsync` and `oss-thinksound` are no longer hidden; they carry `worker: "isolated"`. Round 4 part 2 wires four library graphs: `oss-ocr-lines` (OvisOCR3 on `ocr-lines-qwen35`, Layers' open text detection) and the hidden helpers `oss-reference-brief` (Gemma 4 E4B on `reference-brief-gemma4`, Content Factory), `oss-append-endcard` (`video-append-endcard`) and `oss-still-to-clip` (`still-to-clip`) for the Click to Ad end card. The cloud lists gain Seedream 5.0 Flash (`seedream-5-flash`, Mixed Media's cheaper frame editor) and six hosted open-weight models with LoRA routes: `qwen-image-2512-cloud`, `qwen-image-edit-2511-cloud`, `flux-2-klein-4b-cloud`, `wan-2-2-a14b-image-cloud`, `wan-2-2-a14b-cloud` and `ltx-2-3-22b-cloud`; `z-image-turbo-cloud` gains a LoRA field on fal and a Replicate route that takes LoRAs.A **preset** (app / motion / effect) has a `cloud` and an `open` route, each naming a model and operation, optional fixed params and LoRAs. Apps pin their model; motions and effects add their camera / effect prompt to whichever video model the user picks (LoRAs only apply to the preset's own open model). `PresetChoice.extra` lets an option set model `params.extra`.@@ -80,8 +88,8 @@ A **preset** (app / motion / effect) has a `cloud` and an `open` route, each namEvery adapter implements `isConfigured`, `prepareFile`, `submit` and `poll`, and optionally `cancel` and `test`. `RemoteOutput` carries optional `text` and `meta`. `prepareFile(data, type, name, route)` gets the route the file is for (ComfyUI sends an isolated-worker workflow's inputs to that worker). `test({ focus })` names the setting being checked, for a provider whose settings reach more than one server (the Anthropic key, the isolated worker's address).-- **fal** — queue API (`queue.fal.run/<endpoint>`); always uses the `status_url` / `response_url` returned at submit. Files go to fal storage via `@fal-ai/client`. The key test (15 s timeout) counts only 2xx, 400, 404 and 422 as "accepted"; a proxy or an outage (405, 407, 5xx) reads "Couldn't check the key".-- **replicate** — predictions API; small files as data URIs, larger via the Files API. Outputs are copied immediately (Replicate deletes them after an hour).+- **fal** — queue API (`queue.fal.run/<endpoint>`); always uses the `status_url` / `response_url` returned at submit. Files go to fal storage via `@fal-ai/client`. The key test (15 s timeout) counts only 2xx, 400, 404 and 422 as "accepted"; a proxy or an outage (405, 407, 5xx) reads "Couldn't check the key". Since round 4 part 2, LoRAs go in the route's LoRA field (`routeLoraField`: one item per file, Wan 2.2's expert as `transformer`, `weight_name`, the scale clamped, at most the API's maximum) and the call switches to the route's `loraEndpoint` (`loraEndpointFor`; an endpoint that needs at least one LoRA is never called with none). `prepareFile` uploads a named `File`, so uploads keep their name and extension (a mirrored LoRA stays `.safetensors`).+- **replicate** — predictions API; small files as data URIs, larger via the Files API. Outputs are copied immediately (Replicate deletes them after an hour). Since round 4 part 2 it sends LoRAs (before, it ignored them): `lora_weights` / `lora_scales` arrays, one LoRA per Wan 2.2 expert, or one field, switching to the route's LoRA model when it has one (`loraEndpointFor`).- **higgsfield** — `api.higgsfield.ai` with `Key id:secret` auth: submit with idempotency keys, poll `/requests/<id>/status` (only the documented result fields are read; extra files such as zip or fbx land in `meta.artifacts`, which the runner now copies into the Library), cancel, signed-URL uploads, live style / template lists, and Soul ID training. The key test counts 401 and 403 as rejected, 400 / 404 / 422 as accepted, anything else as "Couldn't check".- **comfyui** — loads `workflows/comfyui/manifest.json`. `prepareWorkflow()` turns a `GenInput` into the prompt: canonical keys → bindings, uploads it makes itself (including media refs in `params.extra`), LoRA nodes after each diffusion-model loader, width / height from aspect ratio + tier, frame counts as `n·step+1`, the palette as a hex sentence plus a 512×512 swatch rendered on the server, `SLOT_RULES` (repeat, required, hints) per workflow, and graph rewrites for `expand: "captions"` (`expandCaptionWorkflow` in `src/lib/comfy.ts`) and `expand: "timeline"` (`expandTimelineWorkflow` in `src/lib/av/timeline.ts`). A left-out reference in a FLUX.2 ReferenceLatent chain is removed by `bypassReference()`. The second audio track is read from `inputs.audio2` (else `params.extra.audio2`); a mux with no background picks the one-track graph. `prepareFile` records each upload's header facts (`src/lib/media-probe.ts`: MP4 / MOV / M4A with rotation, WAV, FLAC, MP3) so the "auto" shape, trim checks, lip-sync frames, the mux bed length, caption windows and the Whisper RAM guard use them. Progress comes over the websocket (reset when the URL changes), results from `/history`; `collectOutputs()` maps them in manifest order (text with cues and language, `model3d`, stems with `meta.stem`, layers back to front with `meta.z / name / bbox`, roles, VHS meta-batch passes followed by their `fuobe/<generationId>` filename prefix). A 502 or a missing prompt is retried; a prompt fails only after it is missing three polls in a row. The first `isConfigured()` per URL waits for a real probe from a worker thread (`probeComfySync`, at most 1.5 s).@@ -90,9 +98,10 @@ Every adapter implements `isConfigured`, `prepareFile`, `submit` and `poll`, and- **Per-request graph work** in `prepareWorkflow()`: EXR requests switch to their own graph (`exrWorkflow`); `videoFinishValues()` sets export formats, the HDR colour space, FPS Boost's multiplier and frame step (FrameInterpolate is bypassed when the multiplier is 1) and the size of each pass of a chunked graph (`framesPerPass`, about 1.5 GB of frames); Ken Burns zoom / pan / easing are bound; a graph with `limits.maxDurationSec` refuses longer jobs; a crossfade uploads a small fade-curve WAV (`fadeCurveWav`) and refuses clips too short for it (`crossfadeProblem`). Remove object turns the words into SAM 3.1's target (`targetPhrase`), fills the gap with a neutral scene prompt (`REMOVE_SCENE`) and keeps the painted graph's hand-off mask output only when `params.extra.handOffMask` asks; swap and insert take SAM's target from `maskPrompt` or the prompt (`swapTarget`) and refuse clicks. Depth maps bind `colormap` and `sideBySide`; Remove background deletes the save node not asked for (`matteOutput`). Graphs that hold a whole clip in memory are refused above half the server's RAM (`wholeClipProblem`; `comfyRam()` reads `/system_stats`).- **Graph rewrites** in `src/lib/comfy.ts`: `tagMetaBatch` gives every VideoHelperSuite batch manager a per-job tag, and `dropVhsAudio` removes the sound link from VHS video loaders when the clip header says it is silent (both for every workflow that has those nodes, old ones too). `expand: "videos"` and `expand: "audios"` rewrite a join for every clip in one prompt (`expandVideoJoinWorkflow`, `expandAudioJoinWorkflow` in `src/lib/av/joins.ts`).- **Results and cancel.** EXR frames (output role `frames`) are fetched one at a time into a stored zip in the scratch folder and ride on the preview clip as `meta.artifacts.exr` (`bundleFrames`). Cancel (`stopPrompts`) deletes every queued prompt carrying the job's filename prefix and interrupts the running one; a meta-batch job is swept again up to 5 times, 1 s apart (`sweepPasses`). Uploads of `.webm` and `.mkv` are probed too.+ - **Round 4 part 2.** A graph with no diffusion-model loader refuses LoRAs instead of dropping them (`canTakeLoras` in `src/lib/comfy.ts`), and a missing-LoRA error points at the LoRA's model card and at Settings → LoRAs. `comfyLoraFiles(route)` reads `GET /models/loras` from the server that runs the route, for the download before submit (see LoRAs). An OCR graph's `lines` output is read by `parseOcrLines` (`src/lib/ocr.ts`: code fences, `bbox_2d` / `text_content`, 0–1000 boxes, cut-off answers) into text, `meta.lines` and `meta.size` (from its `frame` output); an answer with no list keeps its words, with `meta.unreadable`. `video-append-endcard` is bound to the ad's own width, height and fps from its header (an unreadable header is refused), and a silent ad loses the LoadAudio chain that would read its sound (`dropLoadedSound`).- **llm** — text steps in this process (below).- **local** — results made in the browser (Color grading's PNG / WebM, Ads Studio composites; `/api/generations/local` records them).-- **mock** — demo outputs for every operation (SVG art, bundled sample clips, a tone, layers with meta, cue lists, two stems, a GLB with a turntable from `scripts/gen-demo-3d.mjs`), so the product works with zero setup. Round-4 operations answer too: a scene-3d job gets the GLB plus a grey depth PNG on the open engine and a Spectral-coloured depth PNG on the cloud, and an EXR job a sample clip with a zip that holds only a README.+- **mock** — demo outputs for every operation (SVG art, bundled sample clips, a tone, layers with meta, cue lists, two stems, a GLB with a turntable from `scripts/gen-demo-3d.mjs`), so the product works with zero setup. Round-4 operations answer too: a scene-3d job gets the GLB plus a grey depth PNG on the open engine and a Spectral-coloured depth PNG on the cloud, and an EXR job a sample clip with a zip that holds only a README. An extract-frames job returns as many frames as `max_frames` asks (4 without a count), so a per-frame Mixed Media demo fans out like the real one.## Structured outputs@@ -109,8 +118,8 @@ Outputs are not only media. `extractOutputs(response, op)` in `payload.ts` (fal,| scene-3d: a GLB (`meta.role` `scene`) + a depth PNG (`depth`) on the open engine; a depth image (`meta.role` `depth`) on the cloud (`sceneOutputs`) | MoGe 2 (`scene-mesh-moge`), Marigold (`marigold-depth`) || `model3d` with `meta.format` (`ply` / `spz`) and `meta.preview` | splat || `model3d` with `meta.rigged`, `meta.animated`, `meta.formats` (fbx files, clips) | rig-3d |-| `text` with `meta.lines [{text, bbox}]`, `meta.size` | ocr |-| images with `meta.index` (source frame = index × frameInterval) | extract-frames |+| `text` with `meta.lines [{text, bbox}]`, `meta.size` (`meta.unreadable` when the answer has no list) | ocr: Florence-2 on fal; OvisOCR3 on ComfyUI (`ocrOutput`, round 4 part 2) |+| images with `meta.index` (source frame = index × frameInterval; a chain slot's `index` reads it) | extract-frames || a preview clip with `meta.artifacts.exr` (a zip of EXR frames) | sdr-to-hdr on LTX 2.3 HDR; open EXR export and HDR (`bundleFrames`) || `meta.role` `cutout` / `matte` (one kept, `keepMatte`) | Remove background (bg-remove-video) || `meta.role` `mask` (a window's last tracked mask) | the open painted eraser |@@ -135,20 +144,39 @@ A generation can depend on others (`CreateOptions.dependsOn`, one id or a list).An audio slot can carry `stem` to take the output whose `meta.stem` matches ("voice" also matches vocals / speech / target; "background" also accompaniment / instrumental / residual / no_vocals). `pickOutput()` in `generations.ts` does the choosing; a missing stem fails the step with a clear message.-**`createPipeline(steps, opts)`** creates any DAG of steps `{key, request, after?, chain?}`. Before a single row exists it checks duplicate or unknown keys, self-waits, loops (Kahn sort), chain-slot counts, that a step others depend on makes one job, and previews every step with placeholders; a mix of demo and real steps is refused (`assertOneMode`). Rows are created in topological order with `dependsOn`, labelled "Step n of N", and it returns `{batchId, items, byKey}`; if creation fails partway, what it started is canceled. Its TSDoc example is a whole dub. Layers, Shorts, Mixed Media, the palette lock, Photodump / Fashion / Character Sheet, Marketing Studio / Click to Ad / Ad Multiplier, dub, Katana, Remove object, Genjutsu, the Audio hub's Loop / extend and Join, and the Assist studio tools build their jobs this way; Cinema, Canvas, Faceless / Explainer, Ads Studio and moodboards call `createGenerations` (with `dependsOn` for chained steps) directly; Cinema, Canvas and Faceless preview every step first.+**`createPipeline(steps, opts)`** creates any DAG of steps `{key, request, after?, chain?}`. Before a single row exists it checks duplicate or unknown keys, self-waits, loops (Kahn sort, linear in steps + edges, since a per-frame render has hundreds), chain-slot counts and output numbers (`index` / `of`), that a step others depend on makes one job, and previews every step with placeholders; a mix of demo and real steps is refused (`assertOneMode`). Rows are created in topological order with `dependsOn`, labelled "Step n of N", and it returns `{batchId, items, byKey}`; if creation fails partway, what it started is canceled. Since round 4 part 2, `opts.existing` maps keys to generations made before (a retry's finished or running steps): new steps may wait for them, they aren't made again, and a demo step can't continue steps that ran for real. Its TSDoc example is a whole dub. Layers, Shorts, Mixed Media, the palette lock, Photodump / Fashion / Character Sheet, the AI Influencer builder's two-step sheet, Marketing Studio / Click to Ad / Ad Multiplier, dub, Katana, Remove object, Genjutsu, the Audio hub's Loop / extend and Join, and the Assist studio tools build their jobs this way; Cinema, Canvas, Faceless / Explainer, Content Factory's reading steps, Ads Studio and moodboards call `createGenerations` (with `dependsOn` for chained steps) directly; Cinema, Canvas and Faceless preview every step first.++At launch the runner fills the slots (`slotsFor` pads short chains, `chainValue` reads text files when the text isn't inline) and checks the mode again (`chainMode`: a real step after demo steps runs as a demo, or fails with what to connect when demo mode is off). Round 4 part 2 changes the runner for every chain, for per-frame work:++- **Fan-out and fan-in by output number.** `ChainSlot.index` takes the dependency's output number i of the slot's kind (by `meta.index` when the outputs carry it; past the end, the last one). One step per index fans a list out (a step per extracted frame); one step with a slot per index gathers it back in order. With `of`, the number of outputs planned, a list more than `CHAIN_LIST_SLACK` (2) short fails the step before it runs (`listShortfall`), so a frame or two lost at the clip's end is held, and half a clip of frozen, paid frames is not.+- **Waiting steps are picked by readiness.** `advanceDependents` reads `READY_DEPENDENTS` (`generations.ts`): waiting rows none of whose inputs is still queued or running, or one of whose inputs failed, was canceled or is gone. Before, it read the 50 oldest waiting rows, so a render with hundreds of waiting steps held up every chain started after it. A step whose input failed is now failed at once, even behind a backlog.+- **`dropWhenUnused`.** A waiting step marked so (today only per-frame Mixed Media's frame edits and clips) is canceled unpaid ("Stopped before it ran: the steps it was for failed", `DROPPED_UNUSED`) once every step that would use it has failed or been canceled. `dropUnused` runs when a chained step fails and on cancel, and walks up the chain.+- **Retries.** A launched step is stored with `chainFilled: true`; `unfilledRequest()` takes the chained inputs out again, so a retry can rebuild the step from new or kept dependencies (Mixed Media's `retryMixed`, with `createPipeline`'s `existing`).-At launch the runner fills the slots (`slotsFor` pads short chains, `chainValue` reads text files when the text isn't inline) and checks the mode again (`chainMode`: a real step after demo steps runs as a demo, or fails with what to connect when demo mode is off). Built on that:+Built on that:- **Join clips** (`joinClips`): fal's FFmpeg `merge-videos` on the cloud, ComfyUI's `video-concat-{2,3,4}` on the open engine (folded four at a time). `oss-join-sound1/2` are joins that keep one clip's own sound at 25 fps (marketing films). `oss-join-encoded` (`video-concat-encoded`, `expand: "videos"`) joins up to 100 clips in one prompt by packet copy when they share size and frame rate; Faceless Frame by frame films use it, 24 clips per join.- **Open multi-shot** (`createShotFilm`), **storyboard film** (`createStoryboardFilm`), **last-frame extend** (`createExtendChain`: extract frame → the model's image-to-video → join; `oss-extract-frame` on the open engine).- **Keyframe film** (`createKeyframeFilm`): Frames mode on an open model whose `keyframes` route is `chained`. `createGenerations` hands a keyframes request on Wan 2.2 14B (or Lightning) to it: one `wan22-flf2v-14b` clip per pair of neighbouring frames, each as long as its gap in the workflow's frame steps (`planKeyframeClips`), then an image-to-video clip after the last frame when it isn't at the end, then a join. The whole request is previewed first, and clips already made are canceled when one fails. A chained route can't be a step that waits for another step's output: `createGenerations`, `previewChained` and Canvas's `describeNode` refuse it with one message (`chainedWaitMessage`).- **Pieces and windows** (`src/lib/catalog/remove-object.ts`, shared by Remove object and Genjutsu): a long clip is cut into pieces each cloud model takes (`planCloudPieces`), or into frame-exact windows for the open graphs (`planWindows`, `planFrameCuts`; `VACE_WINDOW` is 4n+1 frames, up to 81). Each piece is trimmed and made, the pieces are joined, and the clip's own sound is put back (`joinWithSound`), with the helpers in `REMOVE_TOOLS` (fal trim / join / mux, or `oss-trim` / `oss-join-clips` / `oss-mux`). Open windows are joined with hard cuts; the seams have not been checked on real models.+## LoRAs (`src/lib/catalog/loras.ts`, `src/server/loras.ts`)++Round 4 part 2. A run's LoRAs come from a preset's open LoRAs (`oss-loras.generated.ts`), an @character's trained LoRA, or the request's `loras` (API callers and the evaluation harness: at most 8). The library (`lora-library.generated.ts`) gives each researched file its pins and licence; a LoRA the library doesn't know is the user's own. Nothing is committed to the repo: files are fetched when a run needs them.++- **Open engine.** Before a ComfyUI run, `ensureLorasOnComfy` compares the run's LoRAs with ComfyUI's own list (`comfyLoraFiles`) and the LoRA folder. A missing file is downloaded into Settings → LoRAs folder (`comfyLorasDir`, `COMFYUI_LORAS_DIR`) by `downloadLora`: a Hugging Face file at its pinned commit, a civitai file by its pinned version with the user's civitai key (`?token=`, redacted from error messages). The bytes are hashed while they stream to a `.part` file and kept only when they match the SHA256 pinned in the library (else the one Hugging Face or civitai states). One download per file runs at a time (`downloadOnce`), and the job's card shows its progress ("Downloading … · 40%"). With no folder set, the run stops with what to do; a gated Hugging Face file has to be placed by hand. `injectLoras` then adds the loader nodes.+- **Cloud engine.** `fitLoras` keeps what the route can carry: never a LoRA whose licence doesn't allow hosting (`localOnly`: the ref's or the library's licence says so), a gated Hugging Face file or a file that exists only on ComfyUI; over the API's maximum, the first ones win. Before submit, `prepareCloudLoras` gives each LoRA a URL the provider can fetch: a public file as it is; a civitai file is mirrored once to fal or Replicate storage through the adapter's `prepareFile`, only after civitai confirms that day that the model's permissions still include "Rent" (no answer, no copy). A mirror is made again after 7 days on fal and 1 day on Replicate (guesses: neither documents how long uploads live). The civitai key is never sent to fal or Replicate. Files downloaded only to mirror them live in `<data dir>/loras` (`LORA_CACHE_DIR`).+- **Records.** Every copy, a download into ComfyUI's folder or a mirror, is a `lora_mirrors` row (file, target, source URL, version, hosted URL, SHA256, size and the licence / permission snapshot it was made under).+- **Settings → LoRAs** (`src/components/lora-settings.tsx`) reads `GET /api/loras`: the library with each file's licence line, whether it is in the folder, where it was mirrored, a `folderProblem` for a folder setting that can't be read, and whether a civitai key is set (never the key). `POST /api/loras {file}` downloads one library LoRA now (`downloadToComfy`). The civitai key's Save & test asks civitai's `/me` (`testCivitaiKey`).+- **Research pins.** `scripts/fetch-lora-pins.py` pins every LoRA of the research to exact bytes (SHA256, size, the Hugging Face commit), and `scripts/fetch-hosted-schemas.py` reads the hosted endpoints' input schemas; both need the network and aren't part of `gen:catalog`. `gen-lora-library.py` fails on a missing pin or a licence-rule break (a non-commercial LoRA in a default row).++Checked: one pinned 85 MB Hugging Face LoRA was downloaded live through `/api/loras` and matched its hash, and the payloads are tested against the providers' schemas. No LoRA has run on fal, Replicate or a GPU, and civitai downloads and mirrors have never run live. A civitai LoRA sent to the cloud without a civitai key fails the run instead of being left out with a note.+## LLM provider (`src/server/providers/llm.ts`)Text steps (`translate`, `write`) run inside the server and are polled like any job; cancel aborts the call and a restart fails the job as "Interrupted" (retryable). `llmBackends(route)` lists the backends in order: Claude (claude-opus-5-5, low effort, server-side fallback) when an Anthropic key is set and Prompt enhancement is Claude, or Auto on an install that isn't open-only; then Ollama when it answers, unless Prompt enhancement is pinned to Claude. Claude errors fall back to the next backend; endpoint `ollama` (`oss-text-llm`) never uses Claude; Prompt enhancement → Offline rewriter (`none`) turns text steps off. Since round 4 an open-source **translation** with no Ollama answering runs on ComfyUI instead, when ComfyUI answers: `viaComfy()` submits and polls the hidden `oss-qwen35-translate` model (Qwen3.5 4B, workflow `translate-qwen35-textgen`) with the same numbered batches, one prompt at a time, so cues keep their timing; writing still needs Ollama, and the message with neither running names both. The first check for a new Ollama URL is a blocking worker-thread probe (`probeOllama`), later checks refresh a 15 s cache in the background. A text step on Ollama costs 0. The connection test asks the servers themselves: the Anthropic key with a free one-model list call (`testClaude`), Ollama with `/api/tags` and whether the model Settings names is pulled (`testOllama`).-`translateCues()` translates JSON cue lists, SRT and WebVTT (`src/lib/cues.ts`) in numbered batches of 30 (multi-line cues kept together); a batch that comes back merged or short is redone in pieces of 10, then cue by cue through a pool (1 request in flight on Ollama, 4 on Claude). The output keeps `meta.cues`. `write` uses `params.extra.system` when given. Studios that need free text (brand research, the AI Director, storyboard splitting, ad copy, Click to Ad scripts) call `llmText()` in `src/server/enhance.ts`, with offline fallbacks. Faceless and Explainer names, topics and scripts go through the llm provider itself (`askLlm()` in `src/server/faceless.ts` submits and polls a `text-llm` / `oss-text-llm` job), so they follow the episode's engine. The Explainer also reads PDF and Word sources (`POST /api/explainer/document`, up to 20 MB; `readDocument()` in `faceless.ts`): PDFs through Assist's unpdf reader, `.docx` through `src/server/assist/docx.ts` (`word/document.xml` via the bounded unzip, which skips entries it doesn't need); a document longer than the script writer reads is summarised by the engine's text model first. The file itself isn't kept.+`translateCues()` translates JSON cue lists, SRT and WebVTT (`src/lib/cues.ts`) in numbered batches of 30 (multi-line cues kept together); a batch that comes back merged or short is redone in pieces of 10, then cue by cue through a pool (1 request in flight on Ollama, 4 on Claude). The output keeps `meta.cues`. `write` uses `params.extra.system` when given. Studios that need free text (brand research, the AI Director, storyboard splitting, ad copy, Click to Ad scripts, Content Factory's cloud style brief) call `llmText()` in `src/server/enhance.ts`, with offline fallbacks. Since round 4 part 2 `llmText` also takes pictures (Content Factory's reference frames: Claude image blocks, or `images` for an Ollama vision model; Content Factory asks again with words only when Ollama doesn't answer with the frames), and `llmTextBackend()` says which LLM would answer (Claude is the one that costs money). Faceless and Explainer names, topics and scripts, and Content Factory's episode titles, go through the llm provider itself (`askLlm()` in `src/server/faceless.ts` submits and polls a `text-llm` / `oss-text-llm` job), so they follow the episode's engine. The Explainer also reads PDF and Word sources (`POST /api/explainer/document`, up to 20 MB; `readDocument()` in `faceless.ts`): PDFs through Assist's unpdf reader, `.docx` through `src/server/assist/docx.ts` (`word/document.xml` via the bounded unzip, which skips entries it doesn't need); a document longer than the script writer reads is summarised by the engine's text model first. The file itself isn't kept.## Live updates (`src/server/live.ts`, `src/lib/api.ts`)@@ -160,10 +188,10 @@ Notifications (round 4): `src/components/job-notifications.tsx`, with the decisi## Library: Trash, folders, pins, review, bulk, zip (`src/server/library.ts`)-- **Trash** is the `generation_trash` table (soft delete). Every reader (`listGenerations`, `getGeneration(id, {includeDeleted})`, and through them Assist, MCP, storyboards, studios) leaves trashed rows out; `toGeneration` fills `deletedAt` / `folderId` even for rows read without the join. `trashGenerations` cancels queued and running jobs; `restoreGenerations` brings rows back (to the root when their folder is gone). `deleteForever` / `emptyTrash` call `deleteGeneration`, which removes the row, its trash and folder entries and every output file that `assetInUse()` doesn't find in a table listed in `ASSET_REFS` (in `generations.ts`: generations, elements, trainings, Assist chats with their frozen context and project sources, Cinema, Canvas, Layers with its tools' inputs, Shorts, marketing, image studios, Faceless channels and episodes with their scripts and plans, dub sessions, Katana jobs). Each entry also says what a row is and how to name it, so `assetUses()` can say where a file is used ("2 results and the element “Maya”"). `ASSET_FREE` lists columns that look like file columns but never hold one; a test checks that every `_json`, `_url`, `url` and `_file` column is in one list or the other. When a table starts storing file URLs, add it there. `ensureTrashPurge()` empties what has been in the Trash for 30 days, at startup and then daily.+- **Trash** is the `generation_trash` table (soft delete). Every reader (`listGenerations`, `getGeneration(id, {includeDeleted})`, and through them Assist, MCP, storyboards, studios) leaves trashed rows out; `toGeneration` fills `deletedAt` / `folderId` even for rows read without the join. `trashGenerations` cancels queued and running jobs; `restoreGenerations` brings rows back (to the root when their folder is gone). `deleteForever` / `emptyTrash` call `deleteGeneration`, which removes the row, its trash and folder entries and every output file that `assetInUse()` doesn't find in a table listed in `ASSET_REFS` (in `generations.ts`: generations, elements, trainings, Assist chats with their frozen context and project sources, Cinema, Canvas, Layers with its tools' inputs, Shorts, marketing, image studios, Faceless channels and episodes with their scripts and plans, dub sessions, Katana jobs, and since round 4 part 2 Content Factory series with their reference clip). Each entry also says what a row is and how to name it, so `assetUses()` can say where a file is used ("2 results and the element “Maya”"). `ASSET_FREE` lists columns that look like file columns but never hold one (round 4 part 2 adds `lora_mirrors`' source URL, hosted URL and licence: a LoRA's download and the provider's copy, never Fuobe's files); a test checks that every `_json`, `_url`, `url` and `_file` column is in one list or the other. When a table starts storing file URLs, add it there. `ensureTrashPurge()` empties what has been in the Trash for 30 days, at startup and then daily.- **Folders**: `folders` + `folder_items`, one folder per generation. Since round 4 folders nest (`folders.parent_id`, up to `MAX_FOLDER_DEPTH` = 8 levels); names are unique among siblings, and a move into the folder itself or one of its subfolders is refused. Deleting a folder moves its results and subfolders up to its parent (to the root for a top-level folder). A folder's count and cover leave out the Trash and helper steps. `GET /api/folders/[id]/zip` zips a folder with its subfolders as paths (`?check=1` asks first, `?steps=1` adds helper steps).- **Pins and review**: `pinned_at` on folders (pinned folders list first, in the order they were pinned) and on generations (`pinned=1` lists the most recently pinned first, with the cursor on the pin time; the Library shows them in a Pinned section) and `generations.review` (`in-progress`, `needs-review`, `approved`, `rejected`, or none), set through `PATCH /api/generations/[id]` (`pinned`, `review`) and the bulk route.-- **Helper steps**: a list that names no feature and no batch (the Library, the home feed, Assist's `list_recent`) leaves out chain steps (features ending in `-step`) and the helper features in `HELPER_FEATURES` (`src/lib/library.ts`) unless `steps=1`; studio feeds that name their features still get them, and the facets count them apart.+- **Helper steps**: a list that names no feature and no batch (the Library, the home feed, Assist's `list_recent`) leaves out chain steps (features ending in `-step`) and the helper features in `HELPER_FEATURES` (`src/lib/library.ts`; since round 4 part 2 also `eval`, the evaluation harness's jobs) unless `steps=1`; studio feeds that name their features still get them, and the facets count them apart.- **Lists** take `kinds`, `models`, `statuses`, `since` / `until`, `folder` (or `folders`, a subtree), `trash`, `pinned`, `reviews`, `steps`, `q` (also the request prompt) and a compound cursor `before=<ts>:<id>` (ordered by ts DESC, id DESC; `deletedAt` in the Trash), so rows sharing a timestamp are never skipped. `libraryFacets()` gives the tab counts.- **Bulk**: `POST /api/generations/bulk` (trash | restore | delete | favorite | unfavorite | move | pin | unpin | review), sent in batches of 500.- **Zip**: `GET /api/generations/zip?ids=` streams a stored zip (`zipStream` / `zipSize` in `src/server/zip.ts`: a CRC pass first, flat memory, refused over 4 GB). `zipToFile` writes one to disk from files that arrive one at a time (EXR frames).@@ -177,7 +205,8 @@ Notifications (round 4): `src/components/job-notifications.tsx`, with the decisi- **Cross-site writes** (`crossSite`): non-GET/HEAD/OPTIONS requests get 403 when `Origin` matches neither Host, `X-Forwarded-Host` nor `FUOBE_ALLOWED_ORIGINS`, when it is `null`, or when `Sec-Fetch-Site` is cross-site — with or without a password.- **Login throttle** (`LoginGuard`): 5 misses per client and 20 a minute overall, bounded map, `Retry-After`. Route handlers can't see the socket address, so the client key is the last `X-Forwarded-For` hop only with `FUOBE_TRUST_PROXY=1` (then a 60 s lock per client); otherwise everyone shares a key that is slowed to one attempt every 4 s and never locked.- **Remote fetch** (`fetchRemote`): every caller-supplied URL (references, brand research, product links, YouTube oEmbed, Assist sources) is fetched only from public addresses. The check runs inside the socket lookup (DNS can't change after it) and again on each of at most 5 redirects; it blocks loopback, RFC 1918, link-local / metadata, CGNAT, multicast, ULA and mapped / NAT64 / 6to4 IPv4. 60 s deadline, 200 MB cap. `fetchRemoteToFile` makes the same checks but streams to a file (16 GB cap, 30-minute deadline; a failed download leaves no file); it fetches the extra files a result links to. `FUOBE_ALLOW_PRIVATE_URLS=1` turns both off for LAN installs.-- **Connection tests** (`POST /api/providers/test`, `src/lib/connections.ts`): Settings' Save & test sends the typed, unsaved values; the route runs the provider's `test()` inside `withCandidates()` (an `AsyncLocalStorage` override of `getSetting`, `src/server/settings.ts`) and stores nothing. Testing a different, unsaved ComfyUI address doesn't send the saved token to it (`isCandidate` / `savedSetting`). Like saving an address, a test makes the server fetch the ComfyUI or Ollama address it is given.+- **LoRA links** (round 4 part 2) don't go through `fetchRemote`. `POST /api/generations` takes a LoRA link only over https on huggingface.co, hf.co, civitai.com, fal.media or replicate.delivery, with no credentials in it (`LORA_HOSTS` in `src/app/api/generations/route.ts`), and a file name that stays inside the LoRA folder (`lorasPath` also requires `.safetensors`). The server may download such a file into the LoRA folder before a ComfyUI run. Downloads from huggingface.co and civitai must match a SHA256; a link on hf.co, fal.media or replicate.delivery isn't held to one, so such a file can be kept unchecked, with no size limit and a 60-minute timeout. The civitai key travels only in civitai's download URL and is redacted from messages.+- **Connection tests** (`POST /api/providers/test`, `src/lib/connections.ts`): Settings' Save & test sends the typed, unsaved values; the route runs the provider's `test()` inside `withCandidates()` (an `AsyncLocalStorage` override of `getSetting`, `src/server/settings.ts`) and stores nothing. Testing a different, unsaved ComfyUI address doesn't send the saved token to it (`isCandidate` / `savedSetting`). Like saving an address, a test makes the server fetch the ComfyUI or Ollama address it is given. Since round 4 part 2 the route also tests the civitai key (`{provider: "civitai"}`, civitai's `/me`), which isn't a model provider's.- Uploads up to 200 MB pass the proxy (`experimental.proxyClientMaxBodySize: "210mb"` in `next.config.ts`, room for the multipart overhead). `/api/files` sends `nosniff` and a UTF-8 charset for text. The MCP endpoint refuses a foreign `Origin`. **Real 404s**: the proxy rewrites an unknown `/apps/<id>`, an unknown hub mode (`unknownHubMode`) and a record page whose id isn't stored (`recordForPath` in `src/lib/record-pages.ts`, then `recordExists` in `src/server/records.ts`, one primary-key lookup; a database that can't be read counts as "exists") to the not-found page with a 404, because a page's `loading.tsx` streams a 200 before the page knows. Every `[id]` page also calls `notFound()`.## Studios@@ -188,12 +217,14 @@ Each studio keeps its data and pure planner in `src/lib/`, its server module in|---|---|---|---|---|| **Cinema Studio** (`/cinema`, `/cinema/[id]`) | `catalog/cinema.ts`: research data (genres, eras, 33 camera moves, 50 palettes, 7 lighting presets, Emotion Wheel, 17 Soul Cast fields, grids), `compileDirector` (native Cinema Studio 4.0 fields or prose), `planCinema` (steps with `after`, notes, blocker, cost), `takesClips` (feature-detected from the FieldMap). 3D scenes (round 4): the `scene` and `recompose` actions with `SCENE_MODELS` (cloud `marigold-depth`, open `oss-scene-moge`) and `RECOMPOSE_MODELS` (cloud Nano Banana Pro or Qwen Multiple Angles, open `oss-qwen-edit` with the Multiple-Angles LoRA); `src/lib/scene3d.ts` (lens 18–300 mm and field of view, fly controls, Spectral depth decoding → point cloud, `scenePose`, `recomposePrompt`, capture size) | `cinema.ts` (projects, nested scenes, `cinema_items` with per-take meta: take, tiles, cost, req, removed; spend in SQL; the automatic cover skips depth maps), `cinema-generate.ts` (`generateInProject`: previews every step, checks the cost cap; a recompose take keeps its `camera`), `cinema-director.ts` (AI Director via `llmText`, offline fallback, never generates), `cinema-schemas.ts` (a recompose `capture`: an `/api/files/` URL, lens, aperture, pose) | `/api/cinema/projects[/id[/folders[/folderId] \| /items[/genId/retry \| /tiles] \| /generate \| /director]]` (generate takes `action` `scene` and `recompose`) | `components/cinema/*`: workspace, folder sidebar, feed, prompt bar, Director's Panel, palette editor (`color-math.ts`), grid crops (`grid-math.ts`), Soul builders, autosave; `scene-actions.tsx` (Create 3D scene, priced, asks first), `scene-viewer.tsx` + `scene-engine.ts` (full-screen three.js viewer, loaded only when a scene opens; Capture uploads the framed view and queues a recompose take) || **Canvas** (`/canvas`, `/canvas/[id]`) | `catalog/canvas.ts`: node types and typed ports, `connectionError`, `topoOrder`, `describeNode` (a GenerationRequest validated with `planGeneration` on placeholders), `planCanvas` (run vs reuse by signature, pins), `convertEngine`, the 5 templates (cloud and open); input ports for the round-4 operations, and a keyframe film fed by another node is refused before Run | `canvas.ts`: zod graph, CRUD, `canvasView`, `runCanvas` (one generation per step with `dependsOn`; runs kept in `runs_json`), `graphProblem` | `/api/canvases[/id[/duplicate \| /run]]` | `components/canvas/*` on @xyflow/react: editor store (`canvas-context.tsx`, `useSyncExternalStore`, `DescribeCache`), nodes, palette, phone node list |-| **Layers** (`/layers`, `/layers/[id]`) | `lib/layers.ts`: LayerDoc / LayerNode geometry, export scale, zip naming `layer-z{z}-{slug}.png`, stored zip, Copy JSON, `historyReducer` (same-key edits within 1.2 s are one undo), `layersModelFor`, `MAX_NODES = 200`, `MAX_REVISIONS = 50` | `layers.ts`: projects and versions (autosave into the head, 409 from a stale tab), tool jobs built by `jobSteps` (a cut-out step after edits on transparent layers), "decomposed" derived from applied jobs | `/api/layers[/id[/versions \| /jobs[/jobId]]]`, `/api/layers/renders` (PNG-only "derived" assets) | `components/layers/*`: results measured in the browser (`measure.ts`) and laid out by `applyMeasured` (`apply.ts`), zips and composites rendered with canvas (`render.ts`), WebGL grade |+| **Layers** (`/layers`, `/layers/[id]`) | `lib/layers.ts`: LayerDoc / LayerNode geometry, export scale, zip naming `layer-z{z}-{slug}.png`, stored zip, Copy JSON, `historyReducer` (same-key edits within 1.2 s are one undo), `layersModelFor`, `MAX_NODES = 200`, `MAX_REVISIONS = 50`, `TOOL_MODELS` (each tool's models per engine). Round 4 part 2: Inpaint (`inpaintPrompt`) and the Enhancer (`ENHANCE_LOOKS` Skin, Soft glow, Sharpen and Detail; `ENHANCE_DETAIL_SCALE` makes Detail 2× on every engine), text rows placed from OCR boxes (`placeTextBlocks`), `seeThrough`, `readableBackdrop`, `elementDraft`; `src/lib/ocr.ts` reads an OCR model's answer into lines with 0–1 boxes | `layers.ts`: projects and versions (autosave into the head, 409 from a stale tab), tool jobs built by `jobSteps` (a cut-out step after edits on transparent layers), "decomposed" derived from applied jobs. Round 4 part 2: `text-detect` picks op `ocr` or `text-layers` from the model's routes (cloud Ideogram 3.0 Text Layers or Florence-2 OCR, open OvisOCR3); `inpaint` sends the painted mask (and a red-tinted sketch), and `applySketch` gives mask models the mask and edit models the tinted copy (cloud Nano Banana Pro, FLUX.1 Fill [pro], Z-Image Turbo Inpaint; open FLUX.1 Fill [dev]); `enhance` is an edit with a fixed instruction (Nano Banana Pro, Seedream 5.0 Pro; open Qwen-Image-Edit 2511) or, for Detail, an upscaler (Topaz, SeedVR; open SeedVR2 or ESRGAN) | `/api/layers[/id[/versions \| /jobs[/jobId]]]` (jobs take `inpaint` with `mask` and `sketch`, and `enhance` with `settings.look`), `/api/layers/renders` (PNG-only "derived" assets) | `components/layers/*`: results measured in the browser (`measure.ts`) and laid out by `applyMeasured` (`apply.ts`), zips and composites rendered with canvas (`render.ts`), WebGL grade; paint mode on the stage (`stage.tsx`), Keep transparency on only for layers with see-through pixels (`keep-alpha.ts`), and Save as element (`save-element.tsx`: the layer's trimmed PNG through `POST /api/elements`, as a character, prop or style) || **Shorts Studio** (`/shorts`, `/shorts/[id]`) | `catalog/shorts.ts`: 44 presets, `planCloudSegments` (equal ≤10 s), `planOpenSegments` (4n+1 frames ≤81 at 16 fps), `planTake`, `planStitch`, `planShorts` (with `keepShape` for Genjutsu's restyle: no crop, framing as filmed), `chainState`; `catalog/shorts-models.ts` (what each restyle model takes, read from its v2v routes); `lib/trim-range.ts` | `shorts.ts` (sessions, segments with takes and the primary take, stitches; `probeSource` reads MP4 then WebM via `webm-probe.ts`), `shorts-schemas.ts` (`once(scope, requestId, fn)`: one paid submit per click, 10 min) | `/api/shorts/{probe,estimate,sessions[/id[/segments/i[/primary] \| /stitch]],presets[/id]}` | `components/shorts/*`, the shared `components/studio/video-trimmer.tsx` |-| **Mixed Media** (`/mixed-media`) | `catalog/mixed-media.ts`: 33 presets with settings, frames = floor(s × fps), open render (one `oss-mixed-media` job) and cloud plan (trim → restyle → original sound), preview plan | `mixed-media.ts`: estimate, render, preview, `retryMixed`; no table (History is the feed: features `mixed-media`, `mixed-media-step`, `mixed-media-preview`) | `/api/mixed-media[/preview \| /estimate \| /retry]` | `components/mixed-media/*` |+| **Mixed Media** (`/mixed-media`) | `catalog/mixed-media.ts`: 33 presets with settings, frames = floor(s × fps), open render (one `oss-mixed-media` job), cloud Fast plan (trim → restyle → original sound), preview plan. Round 4 part 2: the cloud Per frame plan (`planMixedFrames`, the cloud default): cut → `extract-frames` (every Nth frame of the clip, `frameSampling`; up to 500 a call) → one Nano Banana 2 or Seedream 5.0 Flash edit per frame (`frameEditParams`: a fixed seed on Nano Banana 2, while Seedream 5.0 Flash takes none; `planMixedFrames` gives each frame the one styled before it as a second picture, in lanes of 12 that start from the approved preview) → `images-to-video` in clips of up to 200 frames → `join-clips` at up to 2048 px (`frameJoinSize`; 4K frames are then drawn at 2K, `frameResolution`) → the cut's own sound; the limits are `FRAME_LIMITS` | `mixed-media.ts`: estimate (adds `mode`, `perFrameUsd`, the sampled `fps`, `providers`, `modelId`), render, preview; `cloudMode` takes `mode` or reads it from the model (a model of the other mode is a 422); `retryMixed` redoes only failed or canceled steps and what follows them (`createPipeline` `existing`, `unfilledRequest`) and cancels the old waiting ones; `framesProgress` names the frame that failed; no table (History is the feed: features `mixed-media`, `mixed-media-step`, `mixed-media-frame-step`, `mixed-media-preview`) | `/api/mixed-media[/preview \| /estimate \| /retry \| /progress?id=]` | `components/mixed-media/*` (the Restyle switch, Per frame or Fast, and the price per frame) || **Image studios** (Color signature, Moodboards, Photodump, Fashion Factory, Character Sheet) | `catalog/palettes.ts` (`applySignature`, `SignatureRecord` in `request.signature`), `catalog/packs.ts` (photo-run planners with `PlanCaps`) | `palettes.ts` (seeded 50 palettes, lock chains), `moodboards.ts` (status derived from the cover job, Recraft style id, style LoRA), `photodump.ts` (runs as one `createPipeline` batch; `retryPhoto`) | `/api/palettes[/id \| /lock]`, `/api/moodboards[/id[/retry \| /train]]`, `/api/photodump[/packs[/id] \| /character \| /fashion \| /retry]` | `components/{palettes,moodboards,photodump,fashion}/*`; k-means in `palettes/extract.worker.ts`; the chips load through `useSignature` in the composer |-| **Marketing** (Marketing Studio, Click to Ad, Ads Studio, Ad Multiplier) | `catalog/marketing.ts`: 84 templates, 11 formats, 9 hooks, 14 settings, 10 ad styles, angles, word budgets, `formatModels`, `UGC_MODELS`, `OPEN_SOUND_JOIN` | `brand.ts` (website scrape, research job, `kitForSite`), `marketing.ts` (`planMarketing`, `planClickToAd`, `planMultiplier` with `referenceFacts` → RunPlan → `createPipeline`; `marketing_runs` keeps the input for Run again and the browser composite), `ads.ts` (batches, creatives, concepts, chat, proposals) | `/api/brands/**`, `/api/products/**`, `/api/marketing/**`, `/api/ads/**` | `components/{marketing,ads,brand}/*`; ad layout math (`ads/layout.ts`) → canvas render with Google fonts (`ads/render.ts`) → stored zip (`ads/zip.ts`); @mention helpers (`ads/mention.ts`) |-| **Faceless Studio / Explainer** (`/faceless`, `/explainer`) | `catalog/faceless.ts`: genres, 22 styles (12 for Faceless), block planning, `buildEpisodeGraph` (steps keyed still / clip / join / narration / music / mix / words / captions), `planRerun`, `planRetry`, `estimateGraph`, `spokenTimes`, `sceneTiming`, `musicLength`, `styleRefLimit`. Round 4: Frame by frame is a Ken Burns move per scene, not a video model (`ENGINE_MODELS.kenBurns`: the cloud's `ken-burns` zooms only, the open `oss-ken-burns` pans and zooms and splits scenes over 10 s; the moves come from the scene's words, `sceneMoves` in `src/lib/av/ken-burns.ts`), joined with `framesJoin` (`oss-join-encoded` on the open engine); `musicPlan` adds a `music-loop` step when the film outlasts the music (open `oss-audio-loop` crossfades up to 600 s, the cloud's `join-audio` repeats whole plays); `staleSteps` / `bedFits` redo kept steps whose model, operation, clip length or music bed no longer fits; the open `upscale` is `oss-upscale-video-esrgan` | `faceless.ts`: channels (avatar job), episodes, scripts written in the background by the llm provider (`askLlm`), `launch()` (stage one: stills, narration, word timings) and `advance()` (scenes cut to the spoken times, then clips, joins, music, mix, subtitles), `settle()`, `ensureFacelessRunner()` (2 s sweep, started at boot); a Motion change that reads as the scene's current camera move answers 422 (`sameCameraMove`); `readDocument()` for PDF and Word sources | `/api/faceless/**`, `/api/explainer[/link \| /document]` | `components/{faceless,explainer}/*` |+| **AI Influencer builder** (`/influencer`; round 4 part 2) | `src/lib/influencer.ts`: the tiers (Average, Bold, Extreme, and six creature types with species and body colour), what each tier shows, pick rules and the two clashes (`togglePick`, `conflictFor`, `setTier`), seeded Shuffle with the researched weights and per-category locks (`shuffleInfluencer`), the prompt compiler (`compileSheetPrompt`, `compileCastPrompt`, `compileDressPrompt`), `faceOfRun` and `planInfluencer` per engine; the option data is generated (`catalog/influencer-options.generated.ts`) | `influencer.ts`: prices with Photodump's helpers (`planCaps`, `previewRun`, `runEngine`) and makes one job or a two-step `createPipeline`. Cloud: one sheet on Nano Banana Pro (16:9, 2K, the default) or Seedream 5.0 Pro, with the photo and clothing as references. Open: the Soul Cast sheet (`oss-zimage-soul-cast`); with a face, a reference or clothing, Qwen-Image-Edit 2511 (`oss-qwen-edit`) then takes the sheet as image 1, the photo and clothing after it (3 images at most), and the sheet becomes a helper step (`influencer-step`). No Higgsfield route. `retryPhoto` (`photodump.ts`) runs both steps again when the sheet failed, and re-chains a pass that never launched | `POST /api/influencer` (`?preview=1` prices it); retries through `POST /api/photodump/retry` | `components/influencer/*` (`influencer-builder.tsx`, `option-panel.tsx`); Save as character reuses `SaveCharacter` from `fashion/character-sheet.tsx` and reads the face from the run itself (`faceOfRun`); linked from Character Sheet, and from the AI Influencer app through `StudioConfig.related` |+| **Marketing** (Marketing Studio, Click to Ad, Ads Studio, Ad Multiplier) | `catalog/marketing.ts`: 84 templates, 11 formats, 9 hooks, 14 settings, 10 ad styles, angles, word budgets, `formatModels`, `UGC_MODELS`, `OPEN_SOUND_JOIN`; since round 4 part 2 the Click to Ad logo end card (`END_CARD`, `END_CARD_MODELS`, `endCardSteps`: cloud [`overlay-image`: the logo on the brand colour →] `ken-burns` → a silent track (`merge-audio-video`) → `join-clips` after the ad; open `oss-append-endcard`, or `oss-still-to-clip` + `oss-join-sound1` for an ad ComfyUI didn't encode) | `brand.ts` (website scrape, research job, `kitForSite`), `marketing.ts` (`planMarketing`, `planClickToAd`, `planMultiplier` with `referenceFacts` → RunPlan → `createPipeline`; `marketing_runs` keeps the input for Run again and the browser composite; `withEndCard` turns the ad's last step into a helper and adds the card, with `adEncoder`, `cardBackground` and `silentWav`), `ads.ts` (batches, creatives, concepts, chat, proposals) | `/api/brands/**`, `/api/products/**`, `/api/marketing/**` (Click to Ad and its estimate take `endCard`), `/api/ads/**` | `components/{marketing,ads,brand}/*`; ad layout math (`ads/layout.ts`) → canvas render with Google fonts (`ads/render.ts`) → stored zip (`ads/zip.ts`); @mention helpers (`ads/mention.ts`); the 9:16 end card drawn in the browser (`marketing/end-card.ts`) and uploaded once per look |+| **Faceless Studio / Explainer** (`/faceless`, `/explainer`) | `catalog/faceless.ts`: genres, 22 styles (12 for Faceless), block planning, `buildEpisodeGraph` (steps keyed still / clip / join / narration / music / mix / words / captions), `planRerun`, `planRetry`, `estimateGraph`, `spokenTimes`, `sceneTiming`, `musicLength`, `styleRefLimit`. Round 4: Frame by frame is a Ken Burns move per scene, not a video model (`ENGINE_MODELS.kenBurns`: the cloud's `ken-burns` zooms only, the open `oss-ken-burns` pans and zooms and splits scenes over 10 s; the moves come from the scene's words, `sceneMoves` in `src/lib/av/ken-burns.ts`), joined with `framesJoin` (`oss-join-encoded` on the open engine); `musicPlan` adds a `music-loop` step when the film outlasts the music (open `oss-audio-loop` crossfades up to 600 s, the cloud's `join-audio` repeats whole plays); `staleSteps` / `bedFits` redo kept steps whose model, operation, clip length or music bed no longer fits; the open `upscale` is `oss-upscale-video-esrgan`. Since round 4 part 2 a channel's `settings.brief` (`BriefLook`, from Content Factory) adds look, camera and music words to the prompts, sets the scene length and the captions' words and position | `faceless.ts`: channels (avatar job), episodes, scripts written in the background by the llm provider (`askLlm`), `launch()` (stage one: stills, narration, word timings) and `advance()` (scenes cut to the spoken times, then clips, joins, music, mix, subtitles), `settle()`, `ensureFacelessRunner()` (2 s sweep, started at boot); a Motion change that reads as the scene's current camera move answers 422 (`sameCameraMove`); `readDocument()` for PDF and Word sources | `/api/faceless/**`, `/api/explainer[/link \| /document]` | `components/{faceless,explainer}/*` |+| **Content Factory** (`/content-factory`, `/content-factory/[id]`; round 4 part 2) | `catalog/content-factory.ts`: the style brief (`StyleBrief`: format, hook, pacing, shots, look, animation, voice, music, captions, topics; `parseBrief` reads an LLM's answer, `offlineBrief` makes one from the clip's shape, length and speech rate), 8 preset styles, 4 animation styles, lengths 30 s to 5 min, up to 10 episodes, the link guard (`referenceLink`: TikTok, Instagram, a direct clip or a web page; YouTube asks for an upload; `pageMedia` finds a page's og:video or `<video>`), episode titles (`parseSeries`, `offlineSeries`), prices (`seriesPrice`, `briefCostUsd`) and the Generate in Claude message (`claudePlan`, `claudeMessage`, `mcpCommand`) | `content-factory.ts`: a series is a `content_series` row whose episodes are ordinary Faceless episodes in a channel of its own (`createChannel` with the brief in its settings, then `createEpisode` per title; nothing is forked). Reading a reference: cloud = `extract-frames` (about a frame a second, JPEG) and Scribe v2 as generations, then `llmText` writes the brief from up to 20 frames (`fitFrames` keeps them within 15 MB) and the transcript; open = one `oss-reference-brief` job (Gemma 4 E4B, the first 30 s). A link is fetched through `fetchRemote`. The brief is written in this process when the series is next read (`seriesView`), and Generate / Next episode hold a one-process claim, so repeated clicks make one series | `/api/content-factory/series[/id[/generate \| /episodes \| /read]]`, `/api/content-factory/{estimate,claude}`; `POST /api/faceless/episodes` takes 30–300 s on a channel whose settings carry a brief | `components/content-factory/*` (`home.tsx`, `series-view.tsx`, `parts.tsx`, `hooks.ts`); the series page is a record page with a real 404 (`series` in `record-pages.ts` / `records.ts`) || **Translate & dub, Transcribe, Captions, Trim, Katana, Image to 3D, Virality** | `lib/av/*.ts` as plain data: `dub.ts` (one-shot and step plans, takes, timeline; since round 4 the cloud step plan splits the soundtrack with Demucs, lowers each background stem by 3 dB with fal's loudnorm, as the open route lowers its background stem, and mixes the new voice over them with compose; a failed split leaves a voice-only dub), `captions.ts` (burner capabilities), `cue-edit.ts`, `katana.ts` (cuts, `stepsToRedo`), `model3d.ts`, `frames.ts`, `timeline.ts`, `virality.ts`, `languages.ts`; Audio → Transcribe is a composer studio (`TRANSCRIBE_STUDIO`) with a spoken-language picker (`src/lib/speech-languages.ts`, sent as `params.sourceLanguage`) | `dub.ts` and `katana.ts` keep generation ids per step in `dub_sessions` / `katana_jobs` (`retryKatana`, `rerunKatana`); deleting stops unfinished steps | `/api/dub[/id[/voice]]` (`?preview=1` prices), `/api/katana[/id[/retry]]` | `components/{dub,captions,katana,model3d,virality,av}/*`; Trim and Ad Multiplier use the shared `video-trimmer.tsx`. Hub tool modes: `ModeSwitchStudio` has a `TOOLS` map (`audio/translate`, `audio/loop`, `audio/join`, `video-tools/remove-object`, `video-tools/captions`, `video-tools/trim`) || **Remove object** (`/video-tools/remove-object`) | `catalog/remove-object.ts`: the erasers per engine and way of pointing (`ERASERS`, `erasersFor`, `chooseEraser`: Type it, Click it, Paint it, and VOID for "Shadows and reflections too"), `targetPhrase` (words → SAM 3.1's target), `klingPrompt`, pieces and windows (above), `planRemoval`, `joinWithSound`, the SAM 3.1 mask preview (`planMaskPreview`) | `remove-object.ts`: `estimateRemoval`, `createRemoval` (one `createPipeline`: feature `remove-object`, its steps `remove-object-step`), `createRemovalPreview` (`remove-object-preview`); Kling O3 edit and LTX clean-plate prices are set here (`EDIT_USD_PER_SECOND`, `MEGAPIXEL_USD`). No table: history is the feed | `/api/remove-object[/estimate \| /preview]`; a repeated `requestId` gets the first run (`once()`) | `components/remove-object/*`: `frame-stage.tsx` (the first frame decoded in the browser, click points or paint), `video-compare.tsx` (before / after wipe) || **Genjutsu** (`/genjutsu`) | `catalog/genjutsu.ts`: modes Motion transfer, Object swap, Restyle, Insert; the models per engine and key (`MAKERS`, `chooseMaker`: Higgsfield Genjutsu / Genjutsu Lite with a Higgsfield key, else Kling, hosted Wan VACE, P-Video Replace; open Wan Animate 2 and Wan VACE), list prices (`MAKER_USD`), `swapTarget`, `makerPrompt`, `planGenjutsu` (reuses Remove object's pieces, windows and `joinWithSound`; Restyle runs Shorts' planner with `keepShape`), Copy / Paste setup codes (`encodeSetup` / `decodeSetup`, `gj1.` + base64url JSON, `/api/files/` URLs only) | `genjutsu.ts`: `estimateGenjutsu`, `createGenjutsu` (one `createPipeline`: `genjutsu`, `genjutsu-step`); `mixProblem` refuses a run that would mix paid and demo steps before anything starts. No table | `/api/genjutsu[/estimate]` (`once()` on `requestId`) | `components/genjutsu/*` (`genjutsu-studio.tsx`, `look-picker.tsx`, `setup-code.tsx`); "Use in Genjutsu" / "Animate with Genjutsu" result actions; `StudioConfig.related` links from Motion control and Edit video |@@ -204,17 +235,17 @@ Each studio keeps its data and pure planner in `src/lib/`, its server module in## ComfyUI workflow library (`workflows/comfyui/`, `scripts/comfy/`)-`manifest.json` lists 139 workflows, all `validated: true`, each with its **bindings** (canonical key → node id + input), outputs (with `stem` and `role`), defaults, limits, required model files with download URLs and sizes, custom node packs, VRAM, licence, notes, `autoDownloads`, and since round 3 `expand` (`captions` or `timeline`: the provider rewrites the graph per request) and `worker: "isolated"`. Round 4 adds `expand: "videos"` / `"audios"` (joins, one loader per clip), model files marked `optional` (FILM beside RIFE; the Workflows page leaves them out of the missing count), and output roles `scene`, `depth`, `mask`, `cutout`, `matte`, `preview`, `frames`, `frame`, `lines`, `splat` and `brief` (the last four from graphs no catalog model uses yet). The pipeline in `scripts/comfy/` exports the official templates through the real ComfyUI frontend (`app.graphToPrompt()`), applies documented transforms (`library.spec.mjs`, `lib/graph.mjs`), builds hand-written API graphs from `hand-built/*.json`, and validates every graph with `POST /prompt` against a live ComfyUI using zero-byte placeholder models.+`manifest.json` lists 139 workflows, all `validated: true`, each with its **bindings** (canonical key → node id + input), outputs (with `stem` and `role`), defaults, limits, required model files with download URLs and sizes, custom node packs, VRAM, licence, notes, `autoDownloads`, and since round 3 `expand` (`captions` or `timeline`: the provider rewrites the graph per request) and `worker: "isolated"`. Round 4 adds `expand: "videos"` / `"audios"` (joins, one loader per clip), model files marked `optional` (FILM beside RIFE; the Workflows page leaves them out of the missing count), and output roles `scene`, `depth`, `mask`, `cutout`, `matte`, `preview`, `frames`, `frame`, `lines`, `splat` and `brief` (`splat` comes from a graph no catalog model uses yet; the graphs with `frame`, `lines` and `brief` got their models in round 4 part 2, for Layers' OCR and Content Factory). The pipeline in `scripts/comfy/` exports the official templates through the real ComfyUI frontend (`app.graphToPrompt()`), applies documented transforms (`library.spec.mjs`, `lib/graph.mjs`), builds hand-written API graphs from `hand-built/*.json`, and validates every graph with `POST /prompt` against a live ComfyUI using zero-byte placeholder models.Round 3 added 42 workflows (73 → 115), all hand-built: the 29 graphs of `comfyui-oss-3` (layers, style references, palette, segments and restyle, Mixed Media, SFX, dub preparation, ASR captions, translation, lip re-sync, 3D, try-on, grids, Soul Cast) plus Fuobe's own `video-mux-audio-replace`, `captions-burnin` (chunked, constant memory) and `selftest-meta-batch`; then `frame-extract`, `v2a-hunyuan-foley`, `product-shot-qwen-edit-2509`, `audio-timeline` and `video-concat-sound{1,2}-{2,3,4}`. `lipsync-latentsync16` and `sfx-thinksound` are **isolated-worker** workflows: their packs change process-wide state or pin old packages, so `scripts/comfy/install-isolated-worker.sh` sets up a second ComfyUI with its own code copy, base directory, `HOME` and virtualenv, sharing the main install's models read-only through `extra_model_paths.yaml` (port 8189). Since round 4 Fuobe routes them there itself (Settings → Isolated worker URL; see Providers). `install-comfyui.sh` installs 15 packs at pinned commits (round 4 added ComfyUI-ToSVG for VTracer); `NC_PACKS=1` adds the non-commercial ComfyUI-Whisper. The manifest names 17 packs in all.-Round 4 added 24 hand-built workflows (115 → 139). Eighteen came first: object removal on Wan 2.1 VACE 14B by name (`video-inpaint-wan-vace`) or by a painted mask (`video-inpaint-wan-vace-painted`, which hands its last tracked mask to the next window), VOID on CogVideoX-5B (`video-erase-void`), VACE swap and insert with a reference image (`video-swap-wan-vace`, `video-insert-wan-vace`), a Ken Burns move over a still (`kenburns-still`), audio loop and join with crossfades (`audio-loop-crossfade`, `audio-join-crossfade`), ProRes / H.265 10-bit / FFV1 and EXR export (`video-export-pro`, `video-export-exr`), `video-sdr-to-hdr`, a MoGe 2 whole-scene mesh (`scene-mesh-moge`), a TripoSplat splat (`image-to-splat-triposplat`), OCR text lines (`ocr-lines-qwen35`), a Gemma 4 reference-video brief (`reference-brief-gemma4`), `still-to-clip`, a logo end card (`video-append-endcard`) and VTracer (`image-vectorize-vtracer`). `wan21-vace-14b-ref2v` swapped the template's CC-BY-NC CausVid LoRA for the Apache-2.0 lightx2v LoRA. Six more finish video in passes or join without re-encoding: `interpolate-rife-fps`, `upscale-video-esrgan-chunked`, `upscale-video-seedvr2-chunked`, `video-export-pro-chunked`, `video-sdr-to-hdr-exr` and `video-concat-encoded`. The chunked graphs use VideoHelperSuite's batch manager, which the provider tags per job. The models moved off `interpolate-rife`, `upscale-video-seedvr2`, `upscale-video-esrgan` and `video-export-pro`, which stay in the library unused, and five graphs have no catalog model on `main` yet: `image-to-splat-triposplat`, `ocr-lines-qwen35`, `reference-brief-gemma4`, `still-to-clip` and `video-append-endcard`.+Round 4 added 24 hand-built workflows (115 → 139). Eighteen came first: object removal on Wan 2.1 VACE 14B by name (`video-inpaint-wan-vace`) or by a painted mask (`video-inpaint-wan-vace-painted`, which hands its last tracked mask to the next window), VOID on CogVideoX-5B (`video-erase-void`), VACE swap and insert with a reference image (`video-swap-wan-vace`, `video-insert-wan-vace`), a Ken Burns move over a still (`kenburns-still`), audio loop and join with crossfades (`audio-loop-crossfade`, `audio-join-crossfade`), ProRes / H.265 10-bit / FFV1 and EXR export (`video-export-pro`, `video-export-exr`), `video-sdr-to-hdr`, a MoGe 2 whole-scene mesh (`scene-mesh-moge`), a TripoSplat splat (`image-to-splat-triposplat`), OCR text lines (`ocr-lines-qwen35`), a Gemma 4 reference-video brief (`reference-brief-gemma4`), `still-to-clip`, a logo end card (`video-append-endcard`) and VTracer (`image-vectorize-vtracer`). `wan21-vace-14b-ref2v` swapped the template's CC-BY-NC CausVid LoRA for the Apache-2.0 lightx2v LoRA. Six more finish video in passes or join without re-encoding: `interpolate-rife-fps`, `upscale-video-esrgan-chunked`, `upscale-video-seedvr2-chunked`, `video-export-pro-chunked`, `video-sdr-to-hdr-exr` and `video-concat-encoded`. The chunked graphs use VideoHelperSuite's batch manager, which the provider tags per job. The models moved off `interpolate-rife`, `upscale-video-seedvr2`, `upscale-video-esrgan` and `video-export-pro`, which stay in the library unused. Round 4 part 2 adds no workflow (still 139) but gives four of them a catalog model: `ocr-lines-qwen35` (Layers), `reference-brief-gemma4` (Content Factory), `still-to-clip` and `video-append-endcard` (the Click to Ad end card). Apart from the four graphs the models moved off (above), `image-to-splat-triposplat` is now the only round-4 graph with no catalog model.-`validated: true` means a live ComfyUI accepted the graph through `POST /prompt`. Graphs that need no model weights also ran on a CPU ComfyUI; the heavy graphs the round-4 tools use (Wan VACE, VOID, Wan Animate 2, chunked SeedVR2, Wan 2.2 keyframe clips, the Qwen-Image-Edit re-render) have not run on a GPU.+`validated: true` means a live ComfyUI accepted the graph through `POST /prompt`. Graphs that need no model weights also ran on a CPU ComfyUI; the heavy graphs the round-4 tools use (Wan VACE, VOID, Wan Animate 2, chunked SeedVR2, Wan 2.2 keyframe clips, the Qwen-Image-Edit re-render) have not run on a GPU. Nor have the graphs round 4 part 2 wires in that need weights (OvisOCR3, the Gemma 4 brief, FLUX.1 Fill [dev], the Soul Cast sheet and Qwen-Image-Edit 2511 for the AI Influencer builder), or any graph with LoRAs. `video-append-endcard` needs no weights and ran twice on a CPU ComfyUI during development (an ad with a sound track and one without); those runs aren't in the test suite.## Training (`src/server/training.ts`)-A `trainings` row per job, polled by the same runner. Higgsfield Soul ID returns a reference id stored on the element; fal's Z-Image trainer gets a zipped dataset with captions and returns a LoRA URL; AI-Toolkit gets a dataset folder and a job through its UI's job API, and the finished LoRA is copied into `COMFYUI_LORAS_DIR`. A style element (moodboards) uses the style preset (`aiToolkitJob({ kind: "style" })`, captions "<trigger> style", 1500 steps). Failed fal jobs (4xx, `FAILED`), a missing AI-Toolkit job, 8 h without a result and uploads cut off by a restart fail the training and settle the element back to ready.+A `trainings` row per job, polled by the same runner. Higgsfield Soul ID returns a reference id stored on the element; fal's Z-Image trainer gets a zipped dataset with captions and returns a LoRA URL; AI-Toolkit gets a dataset folder and a job through its UI's job API, and the finished LoRA is copied into `COMFYUI_LORAS_DIR` (since round 4 part 2 also the folder recipe LoRAs are downloaded into; see LoRAs). A style element (moodboards) uses the style preset (`aiToolkitJob({ kind: "style" })`, captions "<trigger> style", 1500 steps). Failed fal jobs (4xx, `FAILED`), a missing AI-Toolkit job, 8 h without a result and uploads cut off by a restart fail the training and settle the element back to ready.## Assist agent (`src/server/assist/`)@@ -222,16 +253,28 @@ A manual tool-use loop over Claude (adaptive thinking with `block_binding` drop-- **Context.** Each chat's context (date, engine, approval mode, project, sources, memory, skills index, active skills) is built once and frozen in `assist_thread_state`; later changes arrive as role `system` "Context update" messages, saved only after a reply succeeds, so preserved thinking stays valid.- **Tools** (`tools.ts`, `context-tools.ts`, `studio-tools.ts`): `search_models` (kinds image, video, audio, text, model3d), `list_elements`, `list_recent`, `check_generations` (text inline, meta, images attached), `generate` (with `after`: the call becomes one `createPipeline`; not `strict`, zod-validated), `create_storyboard` (the only `strict` tool), `list_skills`, `load_skill`, `remember` (asks first), `read_source`, the studio tools `split_layers`, `restyle_footage`, `dub_video`, `faceless_episode`, `create_ads`, `add_captions`, and `katana`. Gated calls stop the loop with an approval card priced by `previewGeneration`; `PlannedJob.atomic` marks a pipeline's steps and `planRunnable()` keeps Run off while any step has an error. `answerApproval` claims the thread before its first await.-- **Studio tools** resolve through `STUDIO_ROUTES`, which `assist/studio-routes.ts` fills (since round 4) for `split_layers`, `restyle_footage`, `dub_video`, `faceless_episode`, `create_ads` and `add_captions`. Each adapter prices the job with the studio's own estimate and starts it through the studio's server module, so it opens as a Layers project, a Shorts session, a dub to review, a Faceless episode (in an "Assist" channel made once) or an Ads Studio batch, or in the Captions editor. A call the studio can't take runs as a `createPipeline` of catalog models in the Library, and the card, the result and the chat say why. `planFor()` returns where the job opens (`JobPlace`: studio and page), for the approval card and MCP's `estimate_job`. Genjutsu and Remove object have no Assist or MCP tool yet.+- **Studio tools** resolve through `STUDIO_ROUTES`, which `assist/studio-routes.ts` fills (since round 4) for `split_layers`, `restyle_footage`, `dub_video`, `faceless_episode`, `create_ads` and `add_captions`. Each adapter prices the job with the studio's own estimate and starts it through the studio's server module, so it opens as a Layers project, a Shorts session, a dub to review, a Faceless episode (in an "Assist" channel made once) or an Ads Studio batch, or in the Captions editor. A call the studio can't take runs as a `createPipeline` of catalog models in the Library, and the card, the result and the chat say why. `planFor()` returns where the job opens (`JobPlace`: studio and page), for the approval card and MCP's `estimate_job`. Genjutsu, Remove object, Content Factory, the AI Influencer builder and Layers' Inpaint, Enhancer and Save as element have no Assist or MCP tool yet.- History is stored append-only exactly as the API returned it; local images are kept as URLs and converted to base64 per request. The same loop runs on Ollama's tool calling, or with no LLM on a rule-based planner (still → animate, N-shot films, N takes numbered on their tiles and then "animate 2" for the one picked, translations, skill hints, "remember that…").## MCP server (`src/server/mcp.ts`, `/api/mcp`)-Fuobe's MCP server (version 1.2.0; protocol revisions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05) over streamable HTTP, stateless with JSON responses: `initialize`, `ping`, `tools/list`, `tools/call`, `resources/list` (empty), `prompts/list`, `prompts/get`. The tools are Assist's (shared `executeTool`) with read-only hints, plus `estimate_cost` (a generate call priced with `previewGeneration`) and `estimate_job` (a studio tool's plan, with the studio and page it opens in). A studio tool's result carries its job's `href` on this server. `mcp.ts` imports `assist/studio-routes.ts` itself, so the studio adapters are always loaded. The prompts are the enabled skills. Requests from a foreign `Origin` are refused; the proxy applies the same sign-in rules as the REST API.+Fuobe's MCP server (version 1.2.0; protocol revisions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05) over streamable HTTP, stateless with JSON responses: `initialize`, `ping`, `tools/list`, `tools/call`, `resources/list` (empty), `prompts/list`, `prompts/get`. The tools are Assist's (shared `executeTool`) with read-only hints, plus `estimate_cost` (a generate call priced with `previewGeneration`) and `estimate_job` (a studio tool's plan, with the studio and page it opens in). A studio tool's result carries its job's `href` on this server. `mcp.ts` imports `assist/studio-routes.ts` itself, so the studio adapters are always loaded. The prompts are the enabled skills. Requests from a foreign `Origin` are refused; the proxy applies the same sign-in rules as the REST API. Content Factory's Generate in Claude (round 4 part 2) sends nothing itself: its dialog shows the `claude mcp add --transport http fuobe <origin>/api/mcp` line (`mcpCommand`, with a Bearer header when a password is set) and the prompt `POST /api/content-factory/claude` writes for the existing `faceless_episode` tool, on the engine this server's MCP runs on (Settings → Engine mode). That tool takes up to 8 scenes a call, so a longer episode comes out in parts.## Command line (`bin/`)-`fuobe` (round 4) is a client of a Fuobe server, not part of it: plain Node 20+ with no dependencies, `bin/fuobe.mjs` (the `bin` entry in `package.json`) with the logic in `bin/lib/*.mjs` so tests drive it without a terminal. It finds the server and token in `--url` / `--token`, then `FUOBE_URL` / `FUOBE_TOKEN`, then the file `fuobe login` saves (`~/.config/fuobe/config.json`, written 0600; the saved token goes only to the server it was saved for). It uses the same REST API as the browser: `GET /api/models` (`src/app/api/models/route.ts` with `src/lib/model-list.ts`: what this install can run, with `runs` real / demo / refused worked out as `chooseRoute` would, and the studios' default picks), `POST /api/generations` and its `?preview=1` (model, operation, jobs, outputs and cost, nothing created), `POST /api/uploads`, `GET /api/generations[/<id>]`, the Assist skills routes, and `POST /api/mcp` for the studio tools (`fuobe tool`). Skills follow the Agent Skills format, so other agents can install them (`.agents/skills/fuobe` teaches one to drive Fuobe through MCP or the CLI). Commands, options and exit codes: [`docs/cli.md`](cli.md).+`fuobe` (round 4) is a client of a Fuobe server, not part of it: plain Node 20+ with no dependencies, `bin/fuobe.mjs` (the `bin` entry in `package.json`) with the logic in `bin/lib/*.mjs` so tests drive it without a terminal. It finds the server and token in `--url` / `--token`, then `FUOBE_URL` / `FUOBE_TOKEN`, then the file `fuobe login` saves (`~/.config/fuobe/config.json`, written 0600; the saved token goes only to the server it was saved for). It uses the same REST API as the browser: `GET /api/models` (`src/app/api/models/route.ts` with `src/lib/model-list.ts`: what this install can run, with `runs` real / demo / refused worked out as `chooseRoute` would, and the studios' default picks), `POST /api/generations` and its `?preview=1` (model, operation, jobs, outputs and cost, nothing created), `POST /api/uploads`, `GET /api/generations[/<id>]`, the Assist skills routes, and `POST /api/mcp` for the studio tools (`fuobe tool`). Skills follow the Agent Skills format, so other agents can install them (`.agents/skills/fuobe` teaches one to drive Fuobe through MCP or the CLI). Since round 4 part 2, `fuobe eval <command>` is a `passthrough` command (it takes its arguments as they are): it imports the evaluation harness (`scripts/eval/eval.mjs`) from the checkout next to the CLI and refuses to run without one; the harness finds its server and token the same way, so a saved token still goes only to the server it was saved for. Commands, options and exit codes: [`docs/cli.md`](cli.md).++## Evaluation harness (`scripts/eval/`)++Round 4 part 2. A developer tool, not part of the app: it measures the Fuobe Originals (Fuobe's own open-weight versions of Higgsfield's in-house models) so that a recipe (models, LoRAs, settings) becomes a default only after it has been measured, and then only in a commit a person reviews. Like the CLI it is a client of a running Fuobe, in plain Node: `scripts/eval/eval.mjs` (`run`, `report`, `review`, `compare`, `promote`, `covers`, `history`, `validate`, `setup`, `trash`; `pnpm eval:<command>` or `fuobe eval <command>`) with the logic in `scripts/eval/lib/*.mjs`. The full guide is [`scripts/eval/README.md`](../scripts/eval/README.md).++- **Cases** (`cases/*.json`, checked against `case.schema.json`, which `lib/schema.mjs` writes): one suite per Original (`selftest`, `soul`, `soul-id`, `dop`, `genjutsu`, `mixed-media`, `shorts`, `speak`, `cinema`) with model targets per engine (`demo`, `open`, `cloud`), variants (`recipe`, `prompt-only`, `half-strength`, a cloud `partner`…) and inputs from `local/` (git-ignored: photos, clips, voices) or the small synthetic `fixtures/` for demo runs. `soul.json` and `dop.json` are generated by `gen-cases.mjs` from `higgsfield-image-studios.json` (look ids) and `fuobe-originals-recipes-5.json` (recipes, LoRAs, the motion map); `eval:validate` fails when they're out of date.+- **Runner** (`lib/run.mjs`, `plan.mjs`, `recipes.mjs`): every job goes through Fuobe's REST API (`/api/generations` with the recipe's `loras`, `/api/uploads`, `/api/elements`, and studio routes such as `/api/genjutsu` and `/api/mixed-media`) with the feature `eval`, a helper the Library hides. The harness holds no prices: each job is priced by the server's preview or estimate, a cloud job reserves its price under the spend cap (`--max-usd`, default $5), and an unpriced one is skipped unless `--allow-unpriced`. A job whose route (the preview's `route`) or studio estimate (`providers`) goes through Higgsfield's API is skipped. On the open engine it also reads ComfyUI, read-only (`/system_stats`, `/history`, `/object_info/LoraLoader`). Each run is a folder under the git-ignored `scripts/eval/results/` (`run.json`, `jobs.jsonl`, the outputs, `metrics.json`, `summary.json`, `report.html`).+- **Metrics** (`metrics/fuobe_metrics`, Python) run in their own venv, which `pnpm eval:setup` makes with uv from pinned requirements (CPU torch by default); `lib/metrics.mjs` starts `python -m fuobe_metrics.score` from that venv, else through `uv run`. CLIP score, the LAION aesthetic predictor, style against reference images (CLIP or DINOv2), identity (AuraFace with the YuNet face detector, installed with `--identity`), temporal drift and warp error, a lip-sync proxy and shot continuity; every weight is pinned to a Hugging Face revision and its licence is stored with the scores. Without Python, a run keeps its timing and cost.+- **Report, review, compare, promote** (`report.mjs`, `review.mjs`, `compare.mjs`, `covers.mjs`): a contact sheet; a blind A/B page served on 127.0.0.1:4173 (ratings saved next to the run; the key to which side is which is never served); `compare` exits 1 when a guarded metric regresses; `promote` applies the promote rule (licence, at least 3 results, metrics against every alternative, and at least 6 blind ratings of the case's pairs, or every pair when the review offered fewer, with 55 % of the non-tie ones for the candidate) and with `--record` writes its verdicts into `fuobe-originals-recipes-5.json` (`--apply-strengths` also lowers over-cooked LoRA strengths) as a diff to review; `covers` turns promoted renders into preset covers listed in `src/lib/preset-previews.generated.ts`, which `previewFor` shows instead of the procedural preview.+- **Server seams** it relies on: `loras` on `POST /api/generations`, the preview's `route`, `prompt` and `loras {applied, dropped}` (`routeLoras`), and `providers` on the Genjutsu and Mixed Media estimates.++Checked: the self-test ran on a CPU ComfyUI and scored 4 CPU-only jobs, demo runs pass, and the report and review pages are browser-tested (`tests/e2e/eval-review.mjs`). No Original has been measured on a GPU or the cloud, no recipe has been promoted, and `preset-previews.generated.ts` is still empty.## Storage (`src/server/db.ts`, `storage.ts`, `settings.ts`)@@ -256,8 +299,10 @@ SQLite (WAL). Migrations are an append-only list in `db.ts`, applied once each a| 14 | `dub_sessions`, `katana_jobs` || 15 | `skills`, `skill_toggles`, `assist_projects`, `assist_project_sources`, `assist_memory`, `assist_thread_state` || 16 | Library: `folders.parent_id`, `folders.pinned_at`, `generations.pinned_at`, `generations.review` (nested folders, pins, review status) |+| 17 | `lora_mirrors` (every LoRA copy: a download into ComfyUI's folder or a mirror on fal / Replicate, with source, version, SHA256, size and licence snapshot) |+| 18 | `content_series` (a Content Factory series: the reference, its style brief, the planned episodes and settings; the episodes are Faceless episodes in the series' channel) |-Settings (`src/server/settings.ts`) are typed and validated against allowed values; environment variables give the defaults, and a value saved in Settings wins over them (the password is the exception: `FUOBE_PASSWORD` can't be changed from Settings). Secrets are masked before reaching the browser. `engineMode` is enforced server-side; the client reads it from `/api/status`. Round 4 adds `comfyIsolatedUrl` (`COMFYUI_ISOLATED_URL`, the isolated ComfyUI worker) and `onboarded` (key `onboarding.done`, no environment variable): `GET /api/status` sets it the first time something the engine mode generates with is connected, and putting the Get started guide away sets it too. `/api/status` also returns it, and ComfyUI's RAM as `providers.comfyui.ramBytes`. `withCandidates()` runs code as if typed values were saved (connection tests; see Security). Files live in `data/files/{uploads,outputs}/<date>/<id>.<ext>` (content types include .txt / .srt / .vtt / .json / .glb / .aac, and since round 4 .ply / .spz splats, .mkv, .exr and .zip) and are served by `/api/files/...` with HTTP range support. `<data dir>/tmp` is a scratch folder on the same file system (`scratchDir()` in `storage.ts`), never served: EXR zips and downloaded result files are written there, then moved into `files/outputs` by `adoptFile`; a partial file is removed on failure. `FUOBE_DATA_DIR` moves everything.+Settings (`src/server/settings.ts`) are typed and validated against allowed values; environment variables give the defaults, and a value saved in Settings wins over them (the password is the exception: `FUOBE_PASSWORD` can't be changed from Settings). Secrets are masked before reaching the browser. `engineMode` is enforced server-side; the client reads it from `/api/status`. Round 4 adds `comfyIsolatedUrl` (`COMFYUI_ISOLATED_URL`, the isolated ComfyUI worker) and `onboarded` (key `onboarding.done`, no environment variable): `GET /api/status` sets it the first time something the engine mode generates with is connected, and putting the Get started guide away sets it too. `/api/status` also returns it, and ComfyUI's RAM as `providers.comfyui.ramBytes`. Round 4 part 2 adds `civitaiKey` (key `civitai.key`, `CIVITAI_API_KEY`, secret: it downloads civitai LoRAs and is never sent to fal or Replicate), and `comfyLorasDir` (`COMFYUI_LORAS_DIR`) is now also where LoRAs are downloaded before a ComfyUI run, so it must be ComfyUI's `models/loras` folder as this machine sees it, writable by Fuobe. `withCandidates()` runs code as if typed values were saved (connection tests; see Security). Files live in `data/files/{uploads,outputs}/<date>/<id>.<ext>` (content types include .txt / .srt / .vtt / .json / .glb / .aac, and since round 4 .ply / .spz splats, .mkv, .exr and .zip) and are served by `/api/files/...` with HTTP range support. `<data dir>/tmp` is a scratch folder on the same file system (`scratchDir()` in `storage.ts`), never served: EXR zips and downloaded result files are written there, then moved into `files/outputs` by `adoptFile`; a partial file is removed on failure. `<data dir>/loras` holds LoRA files downloaded only to mirror them to fal or Replicate. `FUOBE_DATA_DIR` moves everything.## UI (`src/components/`, `src/app/(studio)/`)@@ -265,14 +310,15 @@ Liner-inspired shell (pale frame, rounded inset sheet, 13px sidebar rows, serif- **Shell (round 4).** "Skip to content" is the first Tab stop, the sidebar is a `<nav aria-label="Main">`, and each page has one `<main>`. Full-screen studios (`fullScreenStudio()` in `nav.ts`: a Cinema, Canvas or Layers project, and every Assist page) fold the sidebar to its icon rail without touching the remembered choice: only `SidebarShell` writes the sidebar cookie, and only when that choice changes (`persistOpen` on `SidebarProvider`). Phones get a header with the menu and Search on gallery and settings pages (`phone-bar.tsx`). `intent-link.tsx` prefetches a link on hover or focus instead of when it appears on screen (rows marked `eager` still prefetch on view). Shortcut labels show ⌘ on Apple devices and Ctrl elsewhere (`src/lib/keys.ts`). Every Copy button goes through `copyText` (`src/lib/clipboard.ts`), so copying works on plain-http LAN addresses.- **Command palette** (`command-palette.tsx`, ⌘K / Ctrl+K, also the sidebar's Search row and the phone header's Search): pages, Settings sections, apps, camera motions, effects, models (filtered by engine mode) and recent creations, ranked with typo tolerance in `src/lib/command-search.ts`. The catalog part is `GET /api/search-index`, a static, prerendered slim index built by `paletteIndex()` in `src/lib/palette-index.ts` and fetched the first time the palette opens. `modelHref()` opens a model where it runs (a studio with `?model=`, a Video tools mode, Image to 3D, an app, Layers, Captions / Trim / Translate), else the Models page filtered by `?q=`; the round-4 tools (Remove object, Genjutsu, FPS Boost, SDR to HDR, Export, the 3D scene) aren't in its lists yet, so their models open the Models page. It replaces `global-shortcuts.tsx` (⌘K used to go Home).-- **Getting started and connections.** `get-started.tsx` is the first-run guide under Home's composer and at the top of Settings (Use paid models, Use your GPU, Just try it), shown until `onboarded` is set (`showFirstRun`, `FIRST_RUN_SCRIPT` in `src/lib/connections.ts`). Every connection field in Settings is a `ConnectField` (`connect-field.tsx`): Save & test sends the typed value to `POST /api/providers/test` (`{provider, value | values, field}`; the old `{provider}` body still works) and saves it only when the test passes, with a "Save anyway" link. `settings-form.tsx` has a status strip with one chip per connection (`connectionSummary`). `/settings/about` (`licences-view.tsx`, `src/lib/licences.ts`) lists each open model's licence from the catalog and the workflow manifest, read at build time.+- **Getting started and connections.** `get-started.tsx` is the first-run guide under Home's composer and at the top of Settings (Use paid models, Use your GPU, Just try it), shown until `onboarded` is set (`showFirstRun`, `FIRST_RUN_SCRIPT` in `src/lib/connections.ts`). Every connection field in Settings is a `ConnectField` (`connect-field.tsx`): Save & test sends the typed value to `POST /api/providers/test` (`{provider, value | values, field}`; the old `{provider}` body still works) and saves it only when the test passes, with a "Save anyway" link. `settings-form.tsx` has a status strip with one chip per connection (`connectionSummary`); since round 4 part 2 it has a LoRAs section (`#loras`, `lora-settings.tsx`: the LoRA folder, the civitai key with Save & test, and the library with licences and Download buttons), which the command palette also lists. `/settings/about` (`licences-view.tsx`, `src/lib/licences.ts`) lists each open model's licence from the catalog and the workflow manifest, read at build time.- **Studio pages** render `<Studio config>` (`src/components/studio/studio.tsx`), a server component that passes `studioCatalog(config)` from `src/lib/studio-catalog.ts`: the studio's models without provider field maps. Inside, `CatalogProvider` / `useCatalog()` resolve models; `loadFullCatalog()` imports `@/lib/catalog` lazily for motions, effects, `?preset=` and unknown ids. Client components under `studio/` must not import `@/lib/catalog` or `@/lib/studios`. `StudioPage` renders the same tree in the static shell and after hydration; hand-off params merge into the draft with `mergeHandoff`. `StudioConfig` (`studio-context.tsx`) gained `pickerOps`, `anyOf`, `signature` and `extraModels`, and in round 4 `frames` (Frames mode), `comfyOnly` (a tool that runs only on ComfyUI, with a note and an alternative) and `related` (a link under the hero). `HandoffSync` in `studio-page.tsx` also runs Home's Start: Home issues a one-time token (`issueStartToken` in `src/lib/composer.ts`, kept in sessionStorage) and opens the studio with `?prompt=…&go=<token>`; the studio submits once if `claimStartToken` accepts it, so a link from elsewhere can't start a run. A `?model=` that names the other engine's model switches the remembered engine. The line under Home's composer prices what Start will run from the catalog (`startQuotes` in `src/lib/starter-prices.ts`, worded by `startLine` in `src/lib/connections.ts`).- **Hubs** (Audio, Video tools, Upscale) have one prerendered path per mode (`src/lib/hubs.ts`, `ModeSwitchStudio` in `mode-switch-studio.tsx`, `[mode]/page.tsx`); old `?mode=` links redirect in `next.config.ts`, and an unknown mode is a real 404. Round 4 adds `/upscale/fps`, `/upscale/hdr`, `/upscale/export`, `/audio/transcribe`, `/audio/loop`, `/audio/join` and `/video-tools/remove-object`.- **Composer** pieces: pure logic in `src/lib/composer.ts` (summary, blockers, `onImageChange`, `fitAttachments`, `firstMissingSlot`; since round 4 `blockerLine` for the phone's blocked-Generate line, `framesRequest` and the Frames strip helpers, the start token), `attachments.ts` (`useAttach`, `useUploadReaper`), `settings-panel.tsx`, `model-picker.tsx` (cmdk), `attach-menu.tsx`, `preset-chips.tsx` (lazy), `radio-keys.ts`, `frames-strip.tsx`. Video finishing reads the attached clip's facts from `POST /api/media/probe` for its "24 → 60 fps · 5 s → 10 s" line and its prices.-- **Feed and results**: running tiles show elapsed time and, once progress has moved, time left (`use-now.ts`; `notePace` / `timeLeft` in `src/lib/format.ts`); the newest single result offers next steps (`nextSteps` in `output-actions.ts`); video tiles get a poster (`videoPoster`); ProRes, FFV1 and clips the browser can't decode show as a file card (`VideoFileCard` in `result-media.tsx`).-- **Galleries** get slim cards (`src/lib/preset-cards.ts`) with procedural previews (`preset-preview.tsx`, `move-glyphs.ts`, `preview-playback.ts`).+- **Feed and results**: running tiles show elapsed time and, once progress has moved, time left (`use-now.ts`; `notePace` / `timeLeft` in `src/lib/format.ts`); the newest single result offers next steps (`nextSteps` in `output-actions.ts`); video tiles get a poster (`videoPoster`); ProRes, FFV1 and clips the browser can't decode show as a file card (`VideoFileCard` in `result-media.tsx`). Since round 4 part 2, `useCreateGeneration` (`src/lib/api.ts`) shows a run's `notes` (LoRAs left out, a length the API rounds) as a warning toast.+- **Galleries** get slim cards (`src/lib/preset-cards.ts`) with procedural previews (`preset-preview.tsx`, `move-glyphs.ts`, `preview-playback.ts`); `previewFor` shows a real cover instead when `src/lib/preset-previews.generated.ts` lists one (written by the evaluation harness's `eval:covers`; empty so far).+- **Sidebar** (round 4 part 2): Studios gains AI Influencer (`/influencer`) and Content Factory (`/content-factory`) in `nav-items.ts`.- Stand-alone views: color grading (`color-grade-view.tsx`, `src/lib/grade.ts`), storyboard, elements + train dialog, library (`library-view.tsx` + `components/library/*`), Assist, About & licences, and the studios above.## Generators (`scripts/`)-`pnpm gen:catalog` runs `gen-cloud-models.py`, `gen-higgsfield-models.py`, `gen-higgsfield-presets.py`, `gen-oss-loras.py` and the icon map. Each reads a research JSON in `docs/research/` and writes a `*.generated.ts` file; the catalog integrity tests catch broken references. `gen-preview-scenes.mjs` draws the gallery preview stills (`public/samples/previews/`), `gen-demo-3d.mjs` the demo GLB and turntable (needs ffmpeg).+`pnpm gen:catalog` runs `gen-cloud-models.py`, `gen-higgsfield-models.py`, `gen-higgsfield-presets.py`, `gen-oss-loras.py`, and since round 4 part 2 `gen-lora-library.py` and `gen-influencer-options.py`, then the icon map. Each reads a research JSON in `docs/research/` and writes a `*.generated.ts` file; the catalog integrity tests catch broken references, and `gen-lora-library.py` itself fails on a missing pin or a licence-rule break. `fetch-lora-pins.py` and `fetch-hosted-schemas.py` refresh the research JSON from the network and aren't part of `gen:catalog`; `scripts/eval/gen-cases.mjs` writes the evaluation harness's generated suites. `gen-preview-scenes.mjs` draws the gallery preview stills (`public/samples/previews/`), `gen-demo-3d.mjs` the demo GLB and turntable (needs ffmpeg).diff --git a/docs/STATUS.md b/docs/STATUS.mdindex e74853e3..e3cc2b4f 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -1,6 +1,6 @@# Fuobe — project status-_Last updated: 2026-10-25 (round 4, part 1). The research behind this is in [`docs/research/`](research/README.md); the Higgsfield inventory it is measured against is [`higgsfield-inventory.md`](research/higgsfield-inventory.md), deepened for round 3 by [`higgsfield-studios.md`](research/higgsfield-studios.md), [`higgsfield-image-studios.md`](research/higgsfield-image-studios.md) and [`higgsfield-marketing-agents.md`](research/higgsfield-marketing-agents.md), and brought up to date for round 4 by [`higgsfield-delta-4.md`](research/higgsfield-delta-4.md), with [`paid-model-apis-4.md`](research/paid-model-apis-4.md), [`comfyui-oss-4.md`](research/comfyui-oss-4.md) and the UX and speed audit [`ux-audit-4.md`](research/ux-audit-4.md). The plan for Fuobe Originals (open-weight versions of Higgsfield's own products) is in [`higgsfield-originals-5.md`](research/higgsfield-originals-5.md) and [`fuobe-originals-recipes-5.md`](research/fuobe-originals-recipes-5.md)._+_Last updated: 2026-10-26 (round 4, part 2). The research behind this is in [`docs/research/`](research/README.md); the Higgsfield inventory it is measured against is [`higgsfield-inventory.md`](research/higgsfield-inventory.md), deepened for round 3 by [`higgsfield-studios.md`](research/higgsfield-studios.md), [`higgsfield-image-studios.md`](research/higgsfield-image-studios.md) and [`higgsfield-marketing-agents.md`](research/higgsfield-marketing-agents.md), and brought up to date for round 4 by [`higgsfield-delta-4.md`](research/higgsfield-delta-4.md), with [`paid-model-apis-4.md`](research/paid-model-apis-4.md), [`comfyui-oss-4.md`](research/comfyui-oss-4.md) and the UX and speed audit [`ux-audit-4.md`](research/ux-audit-4.md). The plan for Fuobe Originals (open-weight versions of Higgsfield's own products) is in [`higgsfield-originals-5.md`](research/higgsfield-originals-5.md) and [`fuobe-originals-recipes-5.md`](research/fuobe-originals-recipes-5.md)._**Legend**@@ -11,20 +11,26 @@ _Last updated: 2026-10-25 (round 4, part 1). The research behind this is in [`do| 🟡 | **Partial**: works, but approximates Higgsfield or misses part of the feature || ⬜ | **Not started** |-**What "verified" can't cover on this machine:** there are no paid API keys and no GPU here. Every cloud model call and every open-source model output is therefore 🟢 at best: request shapes come from the providers' own schemas, and every ComfyUI graph is accepted by a real ComfyUI. The real outputs come from the tools that need no model weights, which ran on a CPU ComfyUI here: joining clips (also the packet-copy join), palette match, trim, cutting a segment, adding a soundtrack (one track, or a voice over a background bed), caption burn-in, the dub voice timeline, joins that keep a clip's sound, extract frame, VHS meta-batch passes, Ken Burns moves, music loops and audio joins with crossfades, VTracer vectorizing, SDR to HDR (HDR10 and EXR frames), pro export (ProRes, H.265 10-bit, FFV1, EXR), and the window, sound and work-size parts of the object-removal graphs. Three model steps also ran on CPU: MoGe 2's 3D scene with its real weights, and FPS Boost (RIFE) and Real-ESRGAN in passes with random-weight stand-ins, so their output quality wasn't judged. App features that need no model (the library, live updates, notifications, sign-in, the Layers editor, browser color grading, the ⌘K palette) are verified in the browser.+**What "verified" can't cover on this machine:** there are no paid API keys and no GPU here. Every cloud model call and every open-source model output is therefore 🟢 at best: request shapes come from the providers' own schemas, and every ComfyUI graph is accepted by a real ComfyUI. The real outputs come from the tools that need no model weights, which ran on a CPU ComfyUI here: joining clips (also the packet-copy join), palette match, trim, cutting a segment, adding a soundtrack (one track, or a voice over a background bed), caption burn-in, the dub voice timeline, joins that keep a clip's sound, extract frame, VHS meta-batch passes, Ken Burns moves, music loops and audio joins with crossfades, VTracer vectorizing, SDR to HDR (HDR10 and EXR frames), pro export (ProRes, H.265 10-bit, FFV1, EXR), the window, sound and work-size parts of the object-removal graphs, and Click to Ad's logo end card on the open engine. Three model steps also ran on CPU: MoGe 2's 3D scene with its real weights, and FPS Boost (RIFE) and Real-ESRGAN in passes with random-weight stand-ins, so their output quality wasn't judged. App features that need no model (the library, live updates, notifications, sign-in, the Layers editor, browser color grading, the ⌘K palette, Settings → LoRAs, the evaluation harness's report and review pages) are verified in the browser, and one LoRA download ran live.## 1. What has been verified-Checks on `main` at a15a060 (round 4, part 1: PR #7 merged). They ran on the PR branch at 987a1f3 merged with the `main` of the time (9fd8154), so what was tested is what landed. The one later commit, d8faa2f, only fixes the clipboard browser check, which was run again afterwards.+Checks for round 4, part 2 (PR #9). They ran on the PR's exact tree, `claude/fuobe-r4-batch-2` at 08352b9 with `main` at a703ba8 (PR #8's docs) merged in, so what was tested is what lands. Rows named after an earlier round, PR or package were run on that earlier state; they are kept because they still hold.| check | result ||---|---|| `pnpm typecheck`, `pnpm lint` | clean. Lint has 0 errors and one old warning (unused `WAN_NEG_EN` in `scripts/comfy/library.spec.mjs`). In a checkout without `.next`, run `pnpm exec next typegen` (or a dev or build run) before `pnpm typecheck` |-| `pnpm test` (Vitest, 116 files, 1,813 tests) | pass. New in round 4: Remove object (planner, estimates, ComfyUI bindings on the real graphs, demo runs end to end), Genjutsu (plans per mode and engine, prices and key mixes, bindings), video finishing (the fps table, upscale tiers, formats, prices by clip length, cloud payloads, bindings, cancel), Frames (with a seeded property test over 4,000 films), 3D scenes (lens, frame, Spectral depth decode, pose), Faceless+ (Ken Burns moves, music loops, the crossfade curve, which steps a change redoes), Audio Loop and Join, the ⌘K palette, Save & test, Home's one-time Start token, the licence list, the `fuobe` CLI (run as a child process against a stand-in server), `GET /api/models` and `?preview=1`, the Library (nested folders, pins, review status, where a file is used), notifications, the isolated worker, Explainer documents, the cloud dub mix and the Assist / MCP studio routes |+| `pnpm test` (Vitest, 133 files, 2,084 tests) | pass. New in round 4, part 2: the evaluation harness (its runner end to end against the real route handlers on the demo provider: spend cap, resume, refusing Higgsfield routes, promote and `--record`; the API seams; its Python metric tests through uv, skipped when uv isn't there), LoRAs (the generated library, fal and Replicate payloads checked against the researched schemas, downloads and hash checks with no network, LoRA nodes added to the real ComfyUI graphs), Content Factory (the link guard and private-address refusal, prices, one series per Generate, Next episode, the Claude message per engine mode, the Gemma 4 binding), the AI Influencer builder (pick and clash rules, Shuffle frequencies over many seeds, the prompt compiler, plans per engine, both retry paths, the two ComfyUI bindings), Layers (the OCR parser, Inpaint and Enhancer plans per model and engine, mask or tinted copy, the OvisOCR3, FLUX Fill, Qwen Edit, SeedVR2 and ESRGAN bindings, Save as element), per-frame Mixed Media (sampling, the 500 / 200 chunks, lanes, joins at 2048 px, a demo render where frame 14 fails and the frames still waiting are dropped unpaid, partial Try again), chains (fan-out and fan-in by output number, a new chain launching with more than 50 older steps waiting) and the Click to Ad end card (steps per engine, the silent track, provider bindings, a demo open run). Round 4, part 1 added, and the suite still runs: Remove object (planner, estimates, ComfyUI bindings on the real graphs, demo runs end to end), Genjutsu (plans per mode and engine, prices and key mixes, bindings), video finishing (the fps table, upscale tiers, formats, prices by clip length, cloud payloads, bindings, cancel), Frames (with a seeded property test over 4,000 films), 3D scenes (lens, frame, Spectral depth decode, pose), Faceless+ (Ken Burns moves, music loops, the crossfade curve, which steps a change redoes), Audio Loop and Join, the ⌘K palette, Save & test, Home's one-time Start token, the licence list, the `fuobe` CLI (run as a child process against a stand-in server), `GET /api/models` and `?preview=1`, the Library (nested folders, pins, review status, where a file is used), notifications, the isolated worker, Explainer documents, the cloud dub mix and the Assist / MCP studio routes |+| `pnpm eval:validate` | valid: the nine case files (`selftest`, `soul` with 139 cases, `soul-id`, `dop` with 69, `genjutsu`, `mixed-media`, `shorts`, `speak`, `cinema`), and the generated suites match the research || `pnpm build` | passes |-| ComfyUI workflow library | ✅ 135 of 139 workflows accepted by `POST /prompt` with no `node_errors` against a live CPU ComfyUI 0.41 with zero-byte placeholder weights. This checks graph structure, input names, types and file references, **not output quality**. The other four need node packs that server doesn't have: `lipsync-latentsync16` and `sfx-thinksound` (validated on a separate isolated worker in round 3), `captions-whisper-burnin` (`NC_PACKS=1`) and `image-vectorize-vtracer` (ComfyUI-ToSVG; validated and run on a CPU ComfyUI with the pack in PR #6). None of their graphs changed in PR #7 (the VTracer entry only lists its ComfyUI-ToSVG pack again) |-| Browser checks (Playwright against the production server, demo mode) | ✅ `shell.mjs`, `no-horizontal-scroll.mjs` (every route at 390 px, light and dark), `composer-flows.mjs`, `library-flows.mjs`, `cinema-shortcuts.mjs`, `notifications.mjs`, `assist-flows.mjs`, `canvas-smoke.mjs` and `clipboard.mjs` (after d8faa2f: the check looked for the old `h3` result title). `cinema-scene.mjs` and `layers.mjs` pass in demo mode while ComfyUI is unreachable. With this machine's ComfyUI reachable they fail, and neither is an app bug: demo stills are SVG placeholders ComfyUI can't read, and the Layers step needs the Qwen-Image-Layered weights (the app names the missing files) |-| Real CPU runs through the production build (`tests/e2e/comfyui-selftest.mjs`) | ✅ passes again on this state of `main`. As in round 3: uploads → `POST /api/generations` → ComfyUI → stored output, each checked with ffprobe: add a soundtrack (one track, and voice over a background bed), trim, cut a resampled segment, caption burn-in and a 3-pass VHS meta-batch, including 20 s 640x360 30 fps clips. Captions are drawn on their cues and absent in the gaps |+| ComfyUI workflow library | ✅ 135 of 139 workflows accepted by `POST /prompt` with no `node_errors` against a live CPU ComfyUI 0.41 with zero-byte placeholder weights. This checks graph structure, input names, types and file references, **not output quality**. The other four need node packs that server doesn't have: `lipsync-latentsync16` and `sfx-thinksound` (validated on a separate isolated worker in round 3), `captions-whisper-burnin` (`NC_PACKS=1`) and `image-vectorize-vtracer` (ComfyUI-ToSVG; validated and run on a CPU ComfyUI with the pack in PR #6). PR #9 changes no workflow: the library is still 139, and the new open routes (OvisOCR3 text detection, the Gemma 4 reference brief, the Click to Ad end card) use graphs that were already in it |+| Browser checks (Playwright against the production server, demo mode, ComfyUI unreachable) | ✅ all 12 pass: `shell.mjs`, `no-horizontal-scroll.mjs` (all 92 routes at 390 px, light and dark), `composer-flows.mjs`, `library-flows.mjs`, `cinema-scene.mjs`, `cinema-shortcuts.mjs`, `notifications.mjs`, `clipboard.mjs`, `layers.mjs`, `assist-flows.mjs`, `canvas-smoke.mjs` and the new `eval-review.mjs` (the harness's report and blind A/B review pages at 1440 and 390 px, light and dark: no sideways scroll, no variant named, ratings by keyboard saved and unblinded). `cinema-scene.mjs` and `layers.mjs` need ComfyUI unreachable: with this machine's ComfyUI reachable they fail, and neither is an app bug (demo stills are SVG placeholders ComfyUI can't read, and the Layers step needs the Qwen-Image-Layered weights; the app names the missing files). `/content-factory/[id]` has no sample in the 390 px sweep, so only its not-found page is checked there |+| Real CPU runs through the production build (`tests/e2e/comfyui-selftest.mjs`) | ✅ passes again on this tree. As in round 3: uploads → `POST /api/generations` → ComfyUI → stored output, each checked with ffprobe: add a soundtrack (one track, and voice over a background bed), trim, cut a resampled segment, caption burn-in and a 3-pass VHS meta-batch, including 20 s 640x360 30 fps clips. Captions are drawn on their cues and absent in the gaps |+| Packages (round 4, part 2) | Each package went through implement → adversarial review → fix before it was merged into the integration branch; typecheck, lint and the full suite ran after every merge |+| LoRA download (round 4, part 2: `o/lora-plumbing`) | ✅ one pinned 85 MB Hugging Face LoRA (`lenovo_z.safetensors`) downloaded live through Settings → LoRAs (`POST /api/loras`) on a dev server; its SHA-256 matched the fingerprint in the library. Settings → LoRAs was checked in the browser at 1440 and 390 px, light and dark: arrow keys, one Tab stop, no sideways scroll, the folder-problem alert. No civitai download (no civitai key here), no mirror on fal or Replicate, and no LoRA has rendered on fal, Replicate or a GPU |+| Click to Ad end card on CPU (round 4, part 2: `r4/marketing-mixed`) | ✅ the open end card (`video-append-endcard`) ran twice on a live CPU ComfyUI 0.41 through the real runner, with a temporary test that isn't committed: an ad with a (silent) AAC sound track plus a 1.5 s card gave 3.5 s with the sound track kept, and the ad's first 50 frames were framemd5-identical; an ad with no sound track gave a video with none. The suite covers the bindings and a demo run, not these live runs. The cloud end card hasn't run with a real key |+| Evaluation harness (round 4, part 2: `o/harness`) | ✅ against a dev server and a CPU ComfyUI: the open self-test made and scored 4 CPU-only jobs (trim, palette lock, join, extract frame), kept them out of the Library, and `eval:trash` moved all 4 to the Trash. In demo mode the self-test made 5 of 5 and a Soul run with 3 variants 9 of 9. A dry run of Soul on the open engine listed 2,085 jobs (1,650 runnable; that ComfyUI lacked 54 LoRAs). Its 23 Python metric tests pass in its own venv. No Original has been measured on a GPU or the cloud, and no recipe has been promoted |+| Demo-mode browser passes (round 4, part 2: each package branch, before the merge; headless Chromium, 1440 and 390 px, light and dark) | ✅ Layers: Edit text on the cloud (Florence-2 and Ideogram) and on the open engine (an OvisOCR3 job, 3 rows with boxes); detection on a see-through Text layer sends a flattened picture; Inpaint on the whole image and on a rotated layer; Clear; the Enhancer's Skin look; Save as element ("Tulip vase" as a prop). Content Factory (14 checks): three Enters made one series of 3 episodes; picking a preset after an upload deleted the draft; the Generate in Claude dialog's notes; an orphaned series page fits and Delete works. Mixed Media and Click to Ad: `/mixed-media` (How it works, History) and `/marketing/click-to-ad` with no sideways scroll; a demo per-frame render with a frame failure injected in the database showed "Frame 14 of 16" in progress and in History, and Try again finished it. AI Influencer: the model picker lists only Nano Banana Pro and Seedream 5.0 Pro; 25 Shuffles with Heavy locked gave no clash; an Add your face run on a phone, then Save as character, kept the run's face and name; no sideways scroll on `/influencer`, `/character-sheet` and the AI Influencer app || Real CPU runs in round 4, part 1 (package branches) | ✅ Faceless+ through Fuobe's API (`tests/e2e/comfyui-faceless-plus.mjs`): an eased Ken Burns push-in at 854x480 (48 frames); a move split into two linear pieces that stays smooth across the seam; a three-clip packet-copy join in 2.2 s with ComfyUI RSS +0.00 GB; a 6 s bed looped to 20 s with 1 s crossfades (a 20.000 s FLAC); 4 + 3 + 5 s joined with 0.5 s crossfades (11.000 s, in order). MoGe 2 with its real weights: a 960x720 still became a 3D mesh and a depth map in about 100 s. Frames: a join of 41-, 25- and 21-frame 16 fps clips gave 87 frames, 5.4375 s. Remove object's model-free parts: the painted mask handed from one window to the next lands on the right frame, and windows are cut frame-exact at 29.97 fps (81, 81, 77) and 24 fps (197). Video finishing: RIFE with random-weight stand-ins (quality not judged) 24 → 60 fps (121 frames), 25 → 30 at 2× slow motion and 30 → 24; with no model needed, ProRes, H.265 Main 10, FFV1, PQ and EXR zips; Real-ESRGAN in passes, also with a stand-in, on 30 s 256x144 → 1080p: 750 frames in 47 passes, 0.87 GB above idle (the old whole-clip graph already held 3.0 GB for 10 s of the same clip at only 1024x576); a ProRes 4444 export cancelled in pass 4 ran nothing afterwards || PR #6 (round 4 research, engine seams, catalog, workflows, Library, CLI) | ✅ the 17 round-4 workflows (132 in the library then) accepted by the live server, and the eight model-free ones run on CPU and checked with ffprobe; the VACE / VOID window, sound and work-size nodes ran on CPU (frame counts, sound lengths, a silent clip, a window at 50 s of a 60 s clip); `image-vectorize-vtracer` validated and run on a CPU ComfyUI. Browser: `library-flows.mjs` 35/35 in demo mode, `notifications.mjs`, `clipboard.mjs`, and Assist's "Open in Captions" hand-off on a production build. The 20 skill playbooks and the agent skill (21 SKILL.md files) pass the Agent Skills reference validator (`skills-ref`), and the skills CLI lists and installs them || Demo-mode browser passes (round 4, part 1: each package branch, before the merge; headless Chromium, 1440 and 390 px, light and dark) | ✅ Remove object: the whole flow on both engines, plus the Remove background and Depth map panels. Genjutsu: all four modes on both engines, references, the look grid, Copy / Paste setup, hand-offs, the missing-key blockers. Video finishing: the five Upscale tabs, the format picker, the no-ComfyUI note and its cloud link, the greyed "already 1080p". Frames: the strip, keys and drag, the model notes and switches, 10 frames on a phone. 3D scenes: `cinema-scene.mjs`. Faceless+: the wizard rendered to the end on both engines, the episode page, Audio Loop and Join. Onboarding: a cross-site link with a `go` token, and a guessed token, made no generation, Home's Start made exactly one, and a live ComfyUI connected through the guide. Shell: axe clean on five pages; on a cold visit (mean of 23 routes), JS fetched after load 525 → 189 KB and RSC requests 38.3 → 11. Flows: axe 0 violations on seven pages; layout shift on a phone in Assist 0.126 → 0.000 and in the Library 0.482 → 0.001, and on desktop in Cinema 0.048 → 0.000 |@@ -32,10 +38,10 @@ Checks on `main` at a15a060 (round 4, part 1: PR #7 merged). They ran on the PR| Live updates (round 3) | ✅ in dev and production: a 3.5 s demo image shows 3.8 s after the POST (was 4.6–5.2 s with polling). One stream per browser, shared by tabs (Web Locks + BroadcastChannel) || Runner and security fixes (round 3) | ✅ each with a regression test: provider timeouts (45 min running, 4 h queued) with poll-before-timeout, cancel during submit, boot-time runner, interrupted-submit sweep, demo/real mix refused, cross-site writes refused, Host allowlist on password-less installs, SSRF-safe remote fetch, login throttle, safe `?next=` redirect, matcher keeping only root SVGs public. The sign-in proxy's body limit is raised to 210 MB so 200 MB uploads pass; that is a config setting with no test (a 15 MB upload was checked live) || Demo-mode browser passes (round 3: each package branch, before the merge; headless Chromium, 1440 and 390 px, light and dark) | ✅ Layers: `tests/e2e/layers.mjs` (5 checks) plus scratch flows (Angles, Edit text, geometry, full-detail export, Compare after Expand, failures). Shorts + Mixed Media: 40 checks (one session per double-click, crop note, take picker keys, retry). Image studios: Photodump retry inside its batch, Fashion retry, signature routing and Reuse, `?create=1`, Save as character once. Marketing: Click to Ad kit progress and brand kit, @mentions, grid order, baked formats, auto-composited open posters. Faceless: channel in 678 ms, topics, script review autosave, render to the end, timeline change + Undo, delete stops 8 steps, Explainer 30 s render. av-tools: 112 page loads (14 pages × both engines × 2 widths × 2 themes), dub review flush, Katana cuts, captions per burner. Assist: 51 checks plus `tests/e2e/assist-flows.mjs` 6/6. Canvas: `tests/e2e/canvas-smoke.mjs` incl. 60 nodes at 19 ms keystroke → paint. Cinema: `tests/e2e/cinema-shortcuts.mjs`. Composer: `tests/e2e/composer-flows.mjs`. Shell: `tests/e2e/shell.mjs`. Phone layout: `tests/e2e/no-horizontal-scroll.mjs` fit 55 routes in light and dark |-| LLM text steps (translate, write) | 🟢 tested against a stand-in Ollama server, a stubbed Claude API and, for open translation without Ollama, a stand-in ComfyUI answering for Qwen3.5 4B. No live Claude, Ollama or Qwen3.5 run |+| LLM text steps (translate, write) | 🟢 tested against a stand-in Ollama server, a stubbed Claude API and, for open translation without Ollama, a stand-in ComfyUI answering for Qwen3.5 4B. Content Factory's brief (frames and a transcript sent to Claude or Ollama) is tested on its request shape and byte budget. No live Claude, Ollama, Qwen3.5 or Gemma 4 run || Assist on Claude | 🟢 the streamed request (adaptive thinking, betas, cached system blocks, max_tokens per effort) is built through the SDK against an SSE fake. **No live Claude call yet**: needs an Anthropic key (a rejected key did reach Anthropic's API through Settings → Save & test) || Assist on Ollama | 🟢 tested against a fake Ollama server (round 2). Model downloads aren't reachable from this environment |-| Cloud providers (fal / Replicate / Higgsfield) | 🟢 192 fal / Replicate / Higgsfield models (193 cloud models with the Claude text model, plus 18 hidden ones: 15 helpers used by chains and studios, and Overlay image, Extract frames and Images to video, which only the API reaches so far) built from the providers' schemas; structured outputs tested on stubbed responses. **No live paid run yet**. The fal and Higgsfield key tests now report a proxy or an outage as "Couldn't check the key", not "Key accepted" |+| Cloud providers (fal / Replicate / Higgsfield) | 🟢 199 fal / Replicate / Higgsfield models (200 cloud models with the Claude text model, plus 18 hidden helpers used by chains and studios; Overlay image, Extract frames and Images to video, which only the API reached before, now serve Click to Ad's end card, per-frame Mixed Media and Content Factory) built from the providers' schemas; structured outputs tested on stubbed responses. Round 4, part 2 adds Seedream 5.0 Flash and six hosted open-weight models that take LoRAs; every field a route sends, LoRA fields included, is checked against the researched schema. **No live paid run yet**. The fal and Higgsfield key tests report a proxy or an outage as "Couldn't check the key", not "Key accepted" || MCP server | ✅ 1.2.0 tools and prompts by unit tests; the round-2 run with the official MCP Inspector CLI (initialize, tools/list, estimate_cost, generate, check_generations) still applies || `fuobe` CLI | ✅ by tests: the CLI runs as a child process against a stand-in of Fuobe's REST API (upload → generate → wait → download, the MCP bridge, skills add, login, the messages for a missing token or server); the two REST routes it added are tested on the real route handlers || AI-Toolkit training | 🟢 the job flow ran end to end against a fake AI-Toolkit job API (round 2); the style-LoRA preset (moodboards) by unit tests. No real training run: it needs a GPU |@@ -49,14 +55,14 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la| Higgsfield feature | Fuobe | Cloud route | Open-source route | Notes ||---|---|---|---|---|-| Create Image (multi-model) | 🟢 | 60 image models: Nano Banana Pro / 2 / 2.1, Seedream 5.0 Pro / Lite, GPT Image 2.5 Flare / Sunburst, FLUX.3, FLUX.2 [pro], Kontext [max], Ideogram 4.5 / 3.0, Recraft V4.1 / Pro, Qwen Image 3, Wan 2.7 Image, Z-Image Turbo, Imagen 4, Grok Imagine Image 2.0, Krea 3, Bria FIBO 2, Ideogram Vector | Z-Image Turbo, Qwen-Image 2512 (+ Lightning), FLUX.2 [dev] (+ Turbo), FLUX.1 Krea / dev / schnell, HiDream, SDXL | Batch ×1–4, aspect ratios, quality tiers, seeds, negative prompts, references. The Image studio lists text-to-image models only; edit tools live in Edit |-| Soul 2.0 / Soul Cinema / Soul v1 | 🟢 cloud · 🟡 open | Higgsfield's own API with the Soul style picker | Each preset's description as a prompt template on any open model | Needs a Higgsfield key for the real look. Soul Cinema has one fixed look and no presets, so a look is described in words there. Fuobe Soul on open weights is planned (§4) |+| Create Image (multi-model) | 🟢 | 65 image models: Nano Banana Pro / 2 / 2.1, Seedream 5.0 Pro / Flash / Lite, GPT Image 2.5 Flare / Sunburst, FLUX.3, FLUX.2 [pro], Kontext [max], Ideogram 4.5 / 3.0, Recraft V4.1 / Pro, Qwen Image 3, Wan 2.7 Image, Z-Image Turbo, Imagen 4, Grok Imagine Image 2.0, Krea 3, Bria FIBO 2, Ideogram Vector, and hosted open-weight models that take LoRAs: Qwen-Image 2512, Qwen-Image-Edit 2511, FLUX.2 [klein] 4B, Wan 2.2 A14B Image | Z-Image Turbo, Qwen-Image 2512 (+ Lightning), FLUX.2 [dev] (+ Turbo), FLUX.1 Krea / dev / schnell, HiDream, SDXL | Batch ×1–4, aspect ratios, quality tiers, seeds, negative prompts, references. The Image studio lists text-to-image models only; edit tools live in Edit |+| Soul 2.0 / Soul Cinema / Soul v1 | 🟢 cloud · 🟡 open | Higgsfield's own API with the Soul style picker | Each preset's description as a prompt template on any open model | Needs a Higgsfield key for the real look. Soul Cinema has one fixed look and no presets, so a look is described in words there. Fuobe Soul on open weights comes in the PR after #9 (§4) || Soul presets (without a key) | 🟢 | `style_id` on the preset's own Soul model; the description in words elsewhere | The description as a prompt template | 106 Soul + 33 Soul 2.0 presets with Higgsfield's ids and categories, generated from the research (`scripts/gen-higgsfield-presets.py`, part of `pnpm gen:catalog`). Used when there is no key, the live list is empty or it fails; live previews are added when a key is set || Soul ID (character training) | 🟢 | Higgsfield Soul ID (Soul 2.0, Soul Cinema) → `custom_reference_id`; fal Z-Image Turbo LoRA trainer | AI-Toolkit job on your GPU → Z-Image Turbo LoRA copied into ComfyUI | Train from an element's photos. A trained element is used when @mentioned on its model || Moodboards | 🟢 | Recraft V4 Styles makes a style from the board's 10 most representative images; the returned `style_id` is reused by "Recraft V4 Styles · saved style". Otherwise the images go as style references on Nano Banana Pro. Curated looks: Soul 2.0 `style_id`. Also Krea 2 Style Reference, FLUX1.1 [pro] (Ultra) Redux | Qwen-Image-Edit Style Reference from 1–2 collages (default), FLUX.2 [klein] / Krea 2 / USO style reference; a Z-Image Turbo style LoRA through AI-Toolkit | `/moodboards` and a Moodboard chip in the Image studio. 5–80 images, ≥256 px, name ≤100 characters, quality meter; status follows the cover job. The `style_id` round trip is tested with a stubbed fal response only || Soul HEX / Color Transfer | 🟢 | Native palettes on Recraft V4.1 / Pro (≤10 colours + background) and Ideogram 3.0; the palette slug on Cinema Studio 4.0; the hex list in the prompt on every other model | Z-Image Turbo · Palette (hex prompt + ColorTransfer lock to a swatch the server renders); other open models get an optional palette-lock step (`oss-palette-image`) | Color signature chip in the Image studio: the 50 Cinema Studio palettes, Upload & Create (k-means over ≤20 photos in a Web Worker), manual editor (≤12 colours, EyeDropper, Use as background). The user's words stay the prompt; Reuse restores the picks || Elements (@characters, locations, props, styles, voices) | ✅ app · 🟢 outputs | Reference images with a legend; video switches to reference-to-video | Same, plus LoRA + trigger word for trained elements | `/elements`; @ menu in every composer and in shots. The mention → reference/LoRA mapping is verified; the outputs need a key or a GPU |-| Create Video (multi-model) | 🟢 | 89 video models in all: Seedance 2.5 / 2.0, Kling 3.0 / O3 / O1 / 2.6 / 2.5, Veo 3.1 (Fast, Lite), Gemini Omni Flash 1.1, Wan 3.0 / Prime / 2.7 / 2.6 / 2.5, MiniMax H3 / H3 Max / Hailuo, FLUX.3 Video, FLUX 3 Max, LTX 2.5, PixVerse V6 / V6 Max, Vidu Q3, Luma Ray 3.2, Cinema Studio 4.0, Grok Imagine Video 1.5 / 1.5 Lite, Happy Horse 1.1, HeyGen Video, Creatify Boreal, P-Video 2 Pro Reference, Pixelcut Looping Video, Genjutsu | Wan 2.2 14B (+ Lightning), Wan 2.2 5B, LTX-2.5 / 2, HunyuanVideo 1.5, Wan VACE | Text, image, start + end frame, references, native audio. Reference clips (`inputs.videos` / `inputs.audios`) go to Seedance 2.5 / 2.0, Cinema Studio 4.0, Wan 3.0, MiniMax H3, and (videos only) Wan 2.7 / 2.6 and Gemini Omni; models that only read images say so |+| Create Video (multi-model) | 🟢 | 91 video models in all: Seedance 2.5 / 2.0, Kling 3.0 / O3 / O1 / 2.6 / 2.5, Veo 3.1 (Fast, Lite), Gemini Omni Flash 1.1, Wan 3.0 / Prime / 2.7 / 2.6 / 2.5, MiniMax H3 / H3 Max / Hailuo, FLUX.3 Video, FLUX 3 Max, LTX 2.5, PixVerse V6 / V6 Max, Vidu Q3, Luma Ray 3.2, Cinema Studio 4.0, Grok Imagine Video 1.5 / 1.5 Lite, Happy Horse 1.1, HeyGen Video, Creatify Boreal, P-Video 2 Pro Reference, Pixelcut Looping Video, Genjutsu, and the hosted open-weight Wan 2.2 A14B and LTX-2.3 22B, which take LoRAs | Wan 2.2 14B (+ Lightning), Wan 2.2 5B, LTX-2.5 / 2, HunyuanVideo 1.5, Wan VACE | Text, image, start + end frame, references, native audio. Reference clips (`inputs.videos` / `inputs.audios`) go to Seedance 2.5 / 2.0, Cinema Studio 4.0, Wan 3.0, MiniMax H3, and (videos only) Wan 2.7 / 2.6 and Gemini Omni; models that only read images say so || Start & end frame | 🟢 | Kling, Veo, Seedance, Wan, MiniMax, PixVerse, FLUX.3, FLUX 3 Max | Wan 2.2 FLF2V | || Frames (keyframes, Kling 4.0) | 🟢 | FLUX 3 Max follows every frame at its time. Start + end frame models (Kling O3, Seedance…) use the first and last, with a note and a "Use FLUX 3 Max" button | Wan 2.2 14B: one 20-step start/end-frame clip per pair of frames, joined into one film, shown as Free. On Wan 2.2 14B Lightning the strip says it is no faster here and offers plain Wan 2.2 14B | Video studio → Frames chip: up to 10 stills on a timeline; drag the markers or use the keyboard; times snap to 0.1 s, and the open engine needs gaps of at least 0.5 s. Kling 4.0 itself can't be called (fal's route is playground-only), so FLUX 3 Max stands in. The open clips are planned and bound in tests; the join ✅ on CPU || Camera motions (DoP presets) | 🟢 | 108 presets on any video model | Wan 2.2 with camera LoRAs on 18 motions, 11 moves via Wan 2.2 Fun Camera, the rest prompt-only | Procedural previews show each move's parallax. Camera motion and effect presets also work with Frames |@@ -76,7 +82,7 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la| Reframe video | 🟢 | Luma Ray 3.2, LTX Reframe, hosted Wan VACE, MiniMax H3 Max Reframe | Wan 2.2 Fun VACE reframe | `/reframe` || Draw to Video | 🟢 | Annotated first frame + instructions on any image-to-video model | Wan-Move: brush strokes become motion paths | Paint tools in the Video studio || Shorts Studio | 🟢 | Gemini Omni Flash (default), Kling O3 4K Edit and Happy Horse Video Edit (both read references), Lucy Edit Pro, Runway Aleph 2, LTX 2.3 Reference Restyle, Wan 2.7. Per segment: trim → centre-crop to 9:16 / 16:9 when needed (fal `scale-video`) → restyle; joined, then the original sound muxed back | Cut a resampled segment (≤81 frames at 16 fps) → restyle its first frame with Qwen-Image-Edit 2511 → Wan 2.2 Fun VACE restyle with depth → join → mux | `/shorts`, `/shorts/[id]`: 44 presets plus custom presets from ≤10 references; MP4 / MOV (WebM headers are read too), 4 s–2 min, ≤200 MB; segments with takes, Regenerate, Stitch again, Download full video or parts; prices per resolution. Cutting, joining and muxing ✅ on CPU; the restyle needs a GPU or a key |-| Mixed Media | 🟡 cloud · 🟢 open | Trim → LTX 2.3 Reference Restyle anchored on a Nano Banana 2 preview still → original sound | Z-Image Turbo img2img + Fun Union ControlNet per frame at 4–24 fps (VHS meta-batch) | `/mixed-media`: 33 presets with per-preset settings, preview frame, History with Try again. The cloud route is a video-to-video restyle, not Higgsfield's per-frame stylization (a per-frame cloud route is on an unmerged branch, §4). Meta-batch passes ✅ on CPU (self-test graph) |+| Mixed Media | 🟢 cloud · 🟢 open | Restyle switch. **Per frame** (default, like Higgsfield): trim → every Nth frame taken (fal extract-nth-frame) → each frame redrawn by Nano Banana 2 (default, fixed seed) or Seedream 5.0 Flash, in lanes of 12 that start from the approved preview → images-to-video → joined when over 200 frames → original sound. **Fast**: trim → one video-to-video pass (LTX 2.3 Reference Restyle by default; Lucy Edit Pro, Gemini Omni Flash, Kling O3 4K edit, Happy Horse video edit, Wan 2.7, Runway Aleph 2) anchored on a Nano Banana 2 preview still → original sound | Z-Image Turbo img2img + Fun Union ControlNet per frame at 4–24 fps (VHS meta-batch); unchanged | `/mixed-media`: 33 presets with per-preset settings, preview frame, History with Try again. Per frame: a frame rate from 4 to 24 FPS and 1K / 2K / 4K (Seedream 5.0 Flash up to 2K; a 4K render of over 200 frames is drawn at 2K), priced as "N frames × $X a frame" before you render (10 s filmed at 30 FPS, at the 8 FPS setting: every 4th frame, 75 frames × $0.08 = $6.00 at 1K). A failed render names the frame ("Frame 14 of 16 failed"), frames still waiting stop before they're paid for, and Try again redraws only what didn't finish (`GET /api/mixed-media/progress?id=`). Meta-batch passes ✅ on CPU (self-test graph); the per-frame chain ran in demo mode only, including an injected frame failure and Try again || Storyboards (Popcorn) | 🟢 | Nano Banana Pro, each frame made from the previous one | Z-Image / Qwen-Image-Edit, then Qwen-Image-Edit + next-scene LoRA | `/storyboard`: up to 8 frames; the board is named after the idea || Storyboard → film | 🟢 | Seedance 2.5 start + end frame per pair, clips joined | Wan 2.2 Lightning start/end frame, joined on ComfyUI | "Make the film" once every frame is done |@@ -86,7 +92,7 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la|---|---|---|---|---|| Edit image (instruction edit) | 🟢 | Any edit model (Nano Banana Pro, Seedream 5.0, GPT Image 2.5, FLUX.2 / Kontext, Qwen Image 3, Krea 3, Bria FIBO 2…): the image plus up to 6 references, within each model's own limit | Qwen-Image-Edit 2511, FLUX.1 Kontext [dev], FLUX.2 [dev] (up to 3 images in all) | `/edit`, with Bria Extract Object. Promptless models (e.g. FASHN) get no prompt suggestions. Ideogram Remove Background is a Layers tool || Inpaint / Draw to Edit | 🟢 | Native mask routes (GPT Image, Ideogram, FLUX Fill [pro], Z-Image) in each API's convention; a red-tinted copy + instructions elsewhere | FLUX.1 Fill [dev] | `/inpaint`, compare slider in the viewer. With a mask-only model (FLUX Fill), Generate asks to paint the area once the image is in |-| Layers | ✅ editor · 🟡 AI tools | Decompose: Seedream 5.0 Layers (default), Seedream 5.0 Flash Layers, Qwen-Image Layered (hosted). Edit text: Ideogram 3.0 Text Layers detects, Nano Banana Pro or Seedream 5.0 Pro edits. Background: BiRefNet, Ideogram. Regional edit: Seedream 5.0 Pro, Nano Banana Pro. Upscale: Topaz, SeedVR2, Recraft Crisp. Relight, Expand: Nano Banana Pro. Angles: Qwen Multiple Angles | Qwen-Image-Layered (a named element runs on Layered-Control), Qwen-Image-Edit 2511 (typed text lines, regional edit, angles), RMBG, FLUX Kontext, ESRGAN / SeedVR2, Qwen relight, FLUX Fill | `/layers`, `/layers/[id]`: canvas (move, resize, rotate, masks), Layers panel, per-layer prompt with revisions, history and versions, Compare, Cropped / Positioned zips and PNG at full detail, Copy JSON, Color grading (WebGL); phones get a read-only view. "Open in Layers" on every image result. The editor and the browser-built downloads ran end to end on demo layers; the AI tools that exist are built against verified schemas and validated graphs. Not built on `main`: open-source text detection, Higgsfield's Inpaint and Enhancer tools, comments, Save as Element (all but comments are on an unmerged branch, §4) |+| Layers | ✅ editor · 🟢 AI tools (cloud and open) · 🟡 Enhancer | Decompose: Seedream 5.0 Layers (default), Seedream 5.0 Flash Layers, Qwen-Image Layered (hosted). Edit text: Ideogram 3.0 Text Layers (default) or Florence-2 OCR detects, Nano Banana Pro or Seedream 5.0 Pro edits. Inpaint: Nano Banana Pro (shown a red-tinted copy), FLUX.1 Fill [pro] or Z-Image Turbo Inpaint (they take the mask). Enhancer: Skin, Soft glow and Sharpen on Nano Banana Pro or Seedream 5.0 Pro; Detail (2×) on Topaz or SeedVR. Background: BiRefNet, Ideogram. Regional edit: Seedream 5.0 Pro, Nano Banana Pro. Upscale: Topaz, SeedVR2, Recraft Crisp. Relight, Expand: Nano Banana Pro. Angles: Qwen Multiple Angles | Qwen-Image-Layered (a named element runs on Layered-Control), OvisOCR3 text detection (~3 GB VRAM), Qwen-Image-Edit 2511 (text edits, regional edit, angles, the Enhancer's looks), FLUX.1 Fill [dev] (Inpaint), RMBG, FLUX Kontext, ESRGAN / SeedVR2 (also the Enhancer's Detail at 2×), Qwen relight, FLUX Fill | `/layers`, `/layers/[id]`: canvas (move, resize, rotate, masks), Layers panel, per-layer prompt with revisions, history and versions, Compare, Cropped / Positioned zips and PNG at full detail, Copy JSON, Color grading (WebGL); phones get a read-only view. "Open in Layers" on every image result. Edit text has a Detector picker on both engines (typing the lines still works); a see-through layer is put on a white or black backdrop first. Inpaint (paint an area, say what goes there) and the Enhancer give a new version or a new layer. Save as element in each layer's menu (Character, Prop or Style, with an `@handle`). "Keep transparency" starts on only when the layer has see-through pixels. The editor and the browser-built downloads ran end to end on demo layers; the new tools were checked in the demo-mode browser on both engines, and no AI tool has run with real keys or on a GPU. The Enhancer is Fuobe's approximation of Higgsfield's single skin-enhancer job. Not built: comments || Color Grading (free, in the browser) | ✅ | — (WebGL in the browser) | same | `/color-grade`: Higgsfield's five looks plus seven film looks, manual controls, PNG / WebM export into the library; looks preview on a bundled sample before an upload || Expand (outpaint), Upscale image | 🟢 | Expand: Nano Banana Pro (Expand Image and Zoom Out apps). Upscale: Topaz, SeedVR2, Recraft Crisp | FLUX Fill outpaint, 4x ESRGAN, SeedVR2 | `/upscale`; the Expand Image and Zoom Out apps. Bria Expand is in the catalog, but no studio page offers it || Upscale video | 🟢 | Topaz Video (Original / 1080p / 1440p / 4K, 24 / 30 / 60 fps; $0.01/s at 720p, $0.02/s at 1080p, $0.06/s above, doubled at 60 fps), Topaz Starlight, ByteDance Upscale (up to 8K), FLUX.3 Upscale, SeedVR2 (to a size, 1080p by default) | SeedVR2 or Real-ESRGAN in passes of a few frames, 720p to 2160p (1080p by default) | `/upscale/video`. A line under the clip says what will come out, and prices use the clip's real length. A size that wouldn't enlarge the clip moves up: a 1080p clip now goes to 1440p on Topaz ($0.06/s), where it used to become 4K at $0.02/s. This applies to every caller, Canvas included. Real-ESRGAN in passes ✅ on CPU with stand-in weights |@@ -110,8 +116,9 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la|---|---|---|---|---|| Soul Cast (AI actor builder) | 🟢 | Soul 2.0, else Nano Banana Pro | Z-Image Turbo · Soul Cast sheet (4 views), Z-Image Turbo | The 17 fields from the research; saved as a character element. In Cinema Studio and Character Sheet || Soul Location | 🟢 | Soul Cinema, Nano Banana Pro, Seedream 5.0 Pro; extra views | Z-Image Turbo, Qwen-Image | Saved as a location element, then @mentioned in shots |-| Character Sheet | 🟢 | From Reference (1–5 photos): Nano Banana Pro. Build from scratch: Soul 2.0 with a key, else Nano Banana Pro. From a description: the AI Influencer app | Qwen-Image-Edit 2511 (≤3 photos); Soul Cast sheet workflow | `/character-sheet`; Save as character. On the open engine the photo's shape is kept (aspect off) |-| AI Influencer Studio | 🟡 | Higgsfield's AI Influencer character sheet | Soul Cast sheet workflow | An app plus Character Sheet's "From a description". Higgsfield's game-style builder (19 categories, blendable creature types) is not on `main` yet (an unmerged branch, §4) |+| Character Sheet | 🟢 | From Reference (1–5 photos): Nano Banana Pro. Build from scratch: Soul 2.0 with a key, else Nano Banana Pro. From a description: the AI Influencer app | Qwen-Image-Edit 2511 (≤3 photos); Soul Cast sheet workflow | `/character-sheet`; Save as character. On the open engine the photo's shape is kept (aspect off). Links to the AI Influencer builder |+| AI Influencer Studio (game-style builder) | 🟢 cloud · 🟢 open | Nano Banana Pro (default, 16:9, 2K) or Seedream 5.0 Pro: one character sheet from the compiled prompt, with your photo and clothing as references. No Higgsfield API, even with a Higgsfield key | Z-Image Turbo · Soul Cast sheet (~14 GB VRAM); with a face, a reference or clothing, then Qwen-Image-Edit 2511 (~24 GB VRAM) puts them on the sheet. Qwen takes 3 images, so with a face or a reference only 1 clothing reference is used (the run says so) | `/influencer` (sidebar → Studios): Character type (Average, Bold or Extreme human, or a creature: insect, frog, cat, dog, rodent or bird, with species and body colour), then 18 trait categories (171 options, from the research); clashing picks are dimmed with a reason; Shuffle with the researched weights and Keep on Shuffle per category; From scratch, From a reference or Add your face, up to 3 clothing references and a Direction; the price first; Save as character saves the sheet as an element. Retrying a failed open face or clothing pass also re-runs a failed sheet. Checked in demo mode; no real generation on either engine. Not built: option preview pictures, a style reference, batches, hand-offs to Genjutsu and 3D |+| AI Influencer app (from a short brief) | 🟢 | Higgsfield's AI Influencer character sheet (still Higgsfield's API) | Soul Cast sheet workflow | An app plus Character Sheet's "From a description"; both link to the builder || Lipsync Studio / talking avatars | 🟢 | Kling Avatar 2.0 / AI Avatar, OmniHuman 2 / 1.5, InfiniteTalk (hosted), Sync Lipsync 3 / 2 Pro, P-Video 2 Pro Avatar | InfiniteTalk (+ Long), Wan 2.2 S2V, InfiniteTalk Lip Re-sync (video, ≤40 s per job), LatentSync 1.6 (on the isolated worker) | `/lipsync`: "Add a portrait or a video". LatentSync 1.6 runs only on a second ComfyUI (Settings → Isolated worker URL); the picker says so, and it has lip-movement and steps sliders || Text to speech + voice picker | 🟢 | ElevenLabs v3 / v4 / v4 Turbo / Multilingual v2 (21 premade voices), Inworld TTS 1.5 Max (113 voices), MiniMax Speech 2.8 HD, Seed Audio 1.0, HeyGen Voice Turbo, Gemini 3.8 Flash TTS | Chatterbox Multilingual (23 languages), IndexTTS-2 | Sliders per model || Voice cloning | 🟢 | Chatterbox and IndexTTS-2 (hosted) | Chatterbox, IndexTTS-2 | From a mic recording or an upload; saved as Voice elements |@@ -131,10 +138,11 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la|---|---|---|---|---|| Brand kit + products | 🟢 | Website research needs no model; Claude fills the soft fields (tone, audience, selling points) | Ollama, or offline heuristics | Reads HTML meta, OpenGraph, JSON-LD, Shopify `/products.json`, CSS colours, Google fonts, logo, hero images and socials through the SSRF-safe fetch; 14 rotating research labels, Cancel / Retry. Manual path with k-means colours. Products from a link or an upload. The scraper ran against local fixture shops, not real sites || Marketing Studio | 🟢 | Per format: Bria Product Shot / Nano Banana Pro / GPT Image 2.5 / Product Photography (product shots), GPT Image 2.5 / Ideogram 4.5 / 3.0 / Recraft V4.1 (ads, posters, listings), Marketing Studio Image (Higgsfield, with a key), Seedance 2.5 / Kling O3 / Gemini Omni (motion), OmniHuman 2 / Kling Avatar (UGC). UGC chain: ElevenLabs v4 → Nano Banana Pro still → OmniHuman 2 presenter → Auto Subtitle → Seedance 2.5 hook and b-roll → joined | Qwen-Image / Qwen-Image-Edit stills (words set in the browser), Wan 2.2 Lightning motion; UGC: Chatterbox (voice sample needed) → Qwen-Image-Edit → InfiniteTalk → caption burn-in → joins that keep the voice | `/marketing`: 84 Fuobe templates in 11 formats with procedural previews, 9 hooks and 14 settings, product / avatar / reference slots, brand kit chip, live price, Run again. The composer stays slim until a template is picked or something is added. Higgsfield's library has 1,074 templates; Fuobe ships its own set |-| Click to Ad / Link to Video Ad | 🟢 | Same UGC models, or product-only shots; 9:16, ≤12 s, voiceover and captions | Same open UGC chain | `/marketing/click-to-ad`: link → "Building your product kit" → 10 styles → script (Claude, Ollama or an offline writer within the word budget). The product joins its site's brand kit, so logo and colours persist. The two old parity apps now open this flow. No logo end card in the video on `main` (it is on an unmerged branch, §4) |+| Click to Ad / Link to Video Ad | 🟢 · end card ✅ open (CPU), 🟢 cloud | Same UGC models, or product-only shots; 9:16, ≤12 s, voiceover and captions. End card: the card drawn in the browser becomes a 2.5 s zoom (fal's Ken Burns) with a silent track, joined after the ad (fal merge-videos); an API call with no drawn card gets the kit's logo on its accent colour (fal overlay-image) | Same open UGC chain. End card: `video-append-endcard` on core nodes (CPU, no model download); still-to-clip plus a sound-keeping join when ComfyUI didn't encode the ad | `/marketing/click-to-ad`: link → "Building your product kit" → 10 styles → script (Claude, Ollama or an offline writer within the word budget). The product joins its site's brand kit, so logo and colours persist. The two old parity apps now open this flow. **End card** switch with a live 9:16 preview: accent colour, logo (or brand name), product, an editable call to action ("Shop now") and the shop's web address; on by default when the product kit has a logo; adds 2.5 s, included in the price. The open end card ran twice on a CPU ComfyUI (§1); the cloud one hasn't run with a real key || Ads Studio | 🟢 | Higgsfield Ads Studio one-shot (with a key), or Fuobe: Claude copy (angle, headline, body, CTA) + Nano Banana Pro visual + compositing in the browser | Qwen-Image-Edit / Qwen-Image visual + the same compositing; Ollama or rule-based copy | `/ads`, `/ads/[brandId]`: brands, up to 10 products × up to 20 ads, 1:1 / 4:5 / 9:16 with logo, colours and Google fonts, editor, Download all (zip built in the browser), brand chat with @product mentions and priced proposals || Ad Multiplier | 🟢 | Seedance 2.5 edit (Higgsfield), Kling O3 edit, Gemini Omni Flash. Hook / CTA: first or last frame → image-to-video → joined around the original | Wan 2.2 Animate + the original sound muxed back; hook / CTA on Wan 2.2 Lightning, joined keeping the reference's sound | `/ads/multiplier`: 4–30 s reference picked with the shared trimmer, up to 20 @image_N, Prompt or Change hook / Change CTA, 480p / 720p / 1080p (open ≤720p), 1–4 versions, live estimate |-| Faceless Studio | 🟢 | Nano Banana Pro stills, Gemini Omni Flash clips (Seedance 2.5 in Advanced); Frame by frame: fal's Ken Burns zoom (no video model, list price $0.001 a request); ElevenLabs v4 / Multilingual v2 or a Chatterbox clone, ElevenLabs forced alignment, Sonilo music (played again for long films) levelled to −28 LUFS and mixed by fal FFmpeg compose, Auto Subtitle; Upscale to 1080p with SeedVR2 | Z-Image Turbo or Qwen-Image-Edit Style Reference stills, Wan 2.2 Lightning; Frame by frame: a Ken Burns pan and zoom on core nodes (no GPU needed for the motion), joined by packet copy; Chatterbox (voice sample needed), ACE-Step (≤240 s, looped with crossfades up to 600 s) mixed by the soundtrack workflow, Qwen3-ASR timings + caption burn-in; Upscale to 1080p with Real-ESRGAN in passes, free | `/faceless`: channels (genre, idea, YouTube reference, saved look and sound, avatar), topics, 1–5 min, 12 styles or 3 style references, narrator, script review, then a two-stage render (stills + narration + word timings, then each scene cut to where its lines are spoken). Frame by frame aims each move at what the scene's words name. Timeline editor: change a scene's picture, motion (camera moves only in Frame by frame) or the narration, see the price, Undo. Deleting stops the render. The open upscale is tested through the API in demo mode only |+| Faceless Studio | 🟢 | Nano Banana Pro stills, Gemini Omni Flash clips (Seedance 2.5 in Advanced); Frame by frame: fal's Ken Burns zoom (no video model, list price $0.001 a request); ElevenLabs v4 / Multilingual v2 or a Chatterbox clone, ElevenLabs forced alignment, Sonilo music (played again for long films) levelled to −28 LUFS and mixed by fal FFmpeg compose, Auto Subtitle; Upscale to 1080p with SeedVR2 | Z-Image Turbo or Qwen-Image-Edit Style Reference stills, Wan 2.2 Lightning; Frame by frame: a Ken Burns pan and zoom on core nodes (no GPU needed for the motion), joined by packet copy; Chatterbox (voice sample needed), ACE-Step (≤240 s, looped with crossfades up to 600 s) mixed by the soundtrack workflow, Qwen3-ASR timings + caption burn-in; Upscale to 1080p with Real-ESRGAN in passes, free | `/faceless`: channels (genre, idea, YouTube reference, saved look and sound, avatar), topics, 1–5 min, 12 styles or 3 style references, narrator, script review, then a two-stage render (stills + narration + word timings, then each scene cut to where its lines are spoken). Frame by frame aims each move at what the scene's words name. Timeline editor: change a scene's picture, motion (camera moves only in Frame by frame) or the narration, see the price, Undo. Deleting stops the render. The open upscale is tested through the API in demo mode only. A channel with a style brief (only Content Factory makes them) follows it: the brief's look, camera and music words go into the prompts, scenes are paced by it, captions take its words per caption and position, and episodes can be 30 s long |+| Content Factory (faceless series from a reference) | 🟢 cloud · 🟢 open | Reading the reference: frames (fal extract-frames, about one a second) and a transcript (ElevenLabs Scribe v2), written into a brief by Claude (up to 20 frames) or Ollama (Settings → Prompt enhancement; a text-only Ollama model uses only the transcript). Episodes: Faceless Studio's cloud pipeline | Reading: Gemma 4 E4B on ComfyUI reads the first 30 s with their sound (`reference-brief-gemma4`, ~12 GB VRAM, needs ComfyUI-VideoHelperSuite). Episodes: Faceless Studio's open pipeline | `/content-factory`, `/content-factory/[id]` (sidebar → Studios): upload a clip (MP4, MOV, WebM), paste a TikTok, Instagram or web-page link (YouTube links and pages with no video ask for an upload), or pick one of 8 preset styles. The editable brief covers format, hook, pacing, look, music and narrator; in demo mode, with the Offline rewriter, or when the LLM doesn't answer, a simpler offline brief is used and marked as such. Compose: topic, 30 s to 5 min, 1–10 episodes, animation style, genre, 9:16 or 16:9, narrator, optional script review; the whole series' price first. **Generate here** makes a Faceless channel that carries the brief, starts one episode per title and opens the series page (episodes, brief, Next episode, Delete series). **Generate in Claude** gives a `claude mcp add` line and a prompt for Claude Code, which uses the existing `faceless_episode` MCP tool; nothing is sent. Checked in demo mode; no real fal, Scribe or Claude call and no Gemma 4 run || Higgsfield Explainer | 🟢 | Same pipeline as Faceless | Same; stills drawn from your source images with Qwen-Image-Edit | `/explainer`: 22 styles, up to 3 sources (images, .txt / .md, PDF and Word .docx up to 20 MB, a summarised link), Auto / 20 s–10 min / Manual 15–600 s, History. A long document is summarised by the engine's text model, and a long PDF says how many of its pages were read; .doc, scanned PDFs and damaged files get a clear message || Katana | 🟢 | Per segment: cut → first frame → your subject put in (Nano Banana Pro) → motion with Kling O3 edit, Genjutsu Motion Transfer or Kling 3.0 Motion Control; joined at the original cut times over the original soundtrack | Same chain with Qwen-Image-Edit, Wan 2.2 Animate / Fun Control | `/katana` plus a `katana` Assist / MCP tool and a skill. Scene cuts found in the browser and refined to a frame; Retry failed steps; Run again || Virality Predictor | 🟡 | — | — | `/virality` runs a clearly labelled heuristic check of the first 3 seconds in the browser and shows no score. Higgsfield's output matches Meta's TRIBE v2 (CC BY-NC); its worker contract is in [`docs/workers/tribe-v2.md`](workers/tribe-v2.md), but Fuobe doesn't host it |@@ -150,20 +158,22 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la| Assist skills | ✅ app · 🟢 with an LLM | Loaded into Claude's context with `/name` or `load_skill` | Same on Ollama; the offline planner uses their hints | 20 built-in SKILL.md playbooks in `skills/`, in the Agent Skills format; their studio links open the real studios. Create, edit, duplicate, download, turn on / off, upload .md / .zip / .skill (bounded unzip). Also offered as MCP prompts || Assist projects | ✅ app · 🟢 with an LLM | — | — | Instructions, colour, up to 20 sources (links and PDFs fetched safely, files with PDF text, elements, notes), project skills, chats per project, an Assets tab || Assist memory | ✅ app · 🟢 with an LLM | — | — | 8 categories, add / edit / delete, import from other assistants, per project or across all chats; the `remember` tool asks first |-| Studio jobs from Assist and MCP | 🟢 | `split_layers`, `restyle_footage`, `dub_video`, `faceless_episode`, `create_ads`, `add_captions`, `katana` | Same on the open engine (`faceless_episode` needs a voice sample there) | Each is priced by its studio's own estimate and opens that studio: a Layers project, a Shorts session, a dub to review, a Faceless episode (in an "Assist" channel), an Ads Studio batch, the Captions editor; the chat shows an "Open in <Studio>" card and MCP's `estimate_job` returns the studio and its page. A call a studio can't take runs as a pipeline in the Library, and the card says why. Genjutsu and Remove object have no Assist / MCP tool yet |+| Studio jobs from Assist and MCP | 🟢 | `split_layers`, `restyle_footage`, `dub_video`, `faceless_episode`, `create_ads`, `add_captions`, `katana` | Same on the open engine (`faceless_episode` needs a voice sample there) | Each is priced by its studio's own estimate and opens that studio: a Layers project, a Shorts session, a dub to review, a Faceless episode (in an "Assist" channel), an Ads Studio batch, the Captions editor; the chat shows an "Open in <Studio>" card and MCP's `estimate_job` returns the studio and its page. A call a studio can't take runs as a pipeline in the Library, and the card says why. Content Factory's "Generate in Claude" uses `faceless_episode`. Genjutsu, Remove object, Content Factory itself, the AI Influencer builder and Layers' Inpaint, Enhancer and Save as element have no Assist / MCP tool yet || AI Employees, Apps builder, Websites, Games, 3D Jutsu, connectors (Slack, Drive, Notion…) | ⬜ | — | — | || MCP (other agents use the studio) | ✅ | — | — | `/api/mcp` 1.2.0: search_models, estimate_cost, estimate_job, generate, create_storyboard, check_generations, list_recent, list_elements, list_skills, load_skill, read_source, remember and the studio tools; `katana` is named in the instructions; prompts built from the enabled skills |-| CLI + skills (`npx skills add …`), ChatGPT plugin | ✅ CLI and skills · ⬜ ChatGPT plugin | — | — | `fuobe` ([`docs/cli.md`](cli.md)): plain Node 20+, no dependencies. models, estimate, generate (`--wait`, `--out`), status, wait, download, cancel, list, upload, skills, tools / tool (MCP tools), mcp (prints the `claude mcp add` line), login / logout; `--json` on every command. `npx skills add workingprototype/Fuobe` installs the playbooks, plus an agent skill that drives Fuobe through MCP or the CLI, in other agents. No ChatGPT app |+| CLI + skills (`npx skills add …`), ChatGPT plugin | ✅ CLI and skills · ⬜ ChatGPT plugin | — | — | `fuobe` ([`docs/cli.md`](cli.md)): plain Node 20+, no dependencies. models, estimate, generate (`--wait`, `--out`), status, wait, download, cancel, list, upload, skills, tools / tool (MCP tools), mcp (prints the `claude mcp add` line), login / logout, and eval (the evaluation harness, from a Fuobe checkout); `--json` on every command. `npx skills add workingprototype/Fuobe` installs the playbooks, plus an agent skill that drives Fuobe through MCP or the CLI, in other agents. No ChatGPT app || Plugins (Photoshop, Figma, Blender, After Effects, DaVinci) | ⬜ | — | — | |-| Assets library | ✅ | — | — | `/library`: Square / Masonry / List, Fit / Fill, card size, split by date; tabs All / Images / Videos / Audio / Text / 3D / Favorites / Uploads / Trash; filters by model, date, status and review status; batch stacks; select mode with a bulk bar (zip, like, pin, review, move, delete), Select all (N), a Select per day and Ctrl/⌘+A; nested folders with breadcrumbs, colours, drag and drop, a Move to tree and folder zips with their subfolders; pins and a Pinned section; review status (In progress, Needs review, Approved, Rejected); helper steps hidden unless Show steps; an upload is deleted only when nothing uses it (otherwise it says where it is used); Reuse, hand-offs (Animate, Extend, Lipsync, Open in Layers…) and downloads. `tests/e2e/library-flows.mjs`. Missing: projects in the library |+| Assets library | ✅ | — | — | `/library`: Square / Masonry / List, Fit / Fill, card size, split by date; tabs All / Images / Videos / Audio / Text / 3D / Favorites / Uploads / Trash; filters by model, date, status and review status; batch stacks; select mode with a bulk bar (zip, like, pin, review, move, delete), Select all (N), a Select per day and Ctrl/⌘+A; nested folders with breadcrumbs, colours, drag and drop, a Move to tree and folder zips with their subfolders; pins and a Pinned section; review status (In progress, Needs review, Approved, Rejected); helper steps (and evaluation jobs) hidden unless Show steps; an upload is deleted only when nothing uses it (otherwise it says where it is used); Reuse, hand-offs (Animate, Extend, Lipsync, Open in Layers…) and downloads. `tests/e2e/library-flows.mjs`. Missing: projects in the library || Trash | ✅ | — | — | Delete moves to the Trash with Undo (feed, viewer, Library, Cinema); 30 days, Restore, Delete forever (asks first), Empty trash; purged at startup and then daily; files still used elsewhere are kept. The Trash lists helper steps too || Live progress, cancel, retry, failure messages | ✅ | — | — | Results arrive over one server-sent-events stream per browser; polling slows to every 10 s while it's connected (1.5 s without it). Running tiles show the time spent and, once progress has moved, the time left; the newest single result offers next steps (Animate, Upscale, Edit for an image; Extend, Upscale, Add sound for a video; Lipsync, Voice change for audio) || Browser notifications | ✅ | — | — | Opt-in per browser (Settings → Notifications, with Send a test), plus a one-time offer once a job has run about 20 s. A job that finishes or fails while no Fuobe tab is on screen notifies once, from the live stream's leader tab; clicking it opens the result. The tab title counts running jobs. `tests/e2e/notifications.mjs` || Text, 3D and layer results | ✅ | — | — | Shown in the feed, viewer and Library: text with cue timings (copy, .txt / .srt / .vtt), .glb in `@google/model-viewer` (loaded on demand), layers as a composite with a named list, SVG as SVG, EXR frames as a .zip, and ProRes or FFV1 (which browsers don't play) as a file card || Studio UI (composer, model picker, viewer, galleries, navigation) | ✅ | — | — | Compact composer ("+" for upload / paste / library, one settings chip, Cmd/Ctrl+Enter), cmdk model picker with Recent / Starred / Best for this studio, typing before hydration kept, blockers that name the missing slot (on phones a line under the composer says why Generate is blocked); viewer with a phone bottom bar, drawer and swipe; procedural previews on the app, motion and effect galleries; one prerendered page per hub mode; a skip link, one `<main>` per page, a shorter sidebar (Studios and Engine start folded), full-screen studios that fold it, a phone header with Search, links that prefetch on hover; branded 404 and error pages (unknown ids and hub modes answer a real 404), loading skeletons. Checked by `composer-flows.mjs`, `shell.mjs` and the 390 px sweep |-| Search (⌘K / Ctrl+K palette) | ✅ | — | — | Searches pages, settings, apps, motions, effects, models (filtered to the engine mode) and recent creations, forgiving typos; a model opens where it runs, on its own engine. 33 models still open the filtered Models page (§3). Checked by `shell.mjs` |-| Getting started and connections | ✅ app · 🟢 key tests | Save & test for the fal.ai, Replicate, Higgsfield and Anthropic keys | Save & test for the ComfyUI address, its auth token, the isolated worker, and Ollama (with its model) | A Get started card on Home and Settings: Use paid models, Use your GPU, or Just try it (the demo). Every connection field tests what you typed before saving it and gives the reason on failure; a status strip shows each connection. Home's Start runs the job in Image, Video or Edit, and the line under the box says first what will run and what it costs. Settings → About & licences (`/settings/about`) lists every open model's licence. A live ComfyUI connected through the guide; no accepted key and no running Ollama were tested |+| Search (⌘K / Ctrl+K palette) | ✅ | — | — | Searches pages, settings, apps, motions, effects, models (filtered to the engine mode) and recent creations, forgiving typos; a model opens where it runs, on its own engine. 32 models still open the filtered Models page (§3). Checked by `shell.mjs` |+| Getting started and connections | ✅ app · 🟢 key tests | Save & test for the fal.ai, Replicate, Higgsfield and Anthropic keys, and the civitai key (Settings → LoRAs) | Save & test for the ComfyUI address, its auth token, the isolated worker, and Ollama (with its model) | A Get started card on Home and Settings: Use paid models, Use your GPU, or Just try it (the demo). Every connection field tests what you typed before saving it and gives the reason on failure; a status strip shows each connection. Home's Start runs the job in Image, Video or Edit, and the line under the box says first what will run and what it costs. Settings → About & licences (`/settings/about`) lists every open model's licence. A live ComfyUI connected through the guide; no accepted key and no running Ollama were tested || Engine choice (open only, paid only, both) | ✅ | — | — | Settings → Engine mode, or `FUOBE_ENGINE_MODE` |+| LoRAs on both engines (Settings → LoRAs) | ✅ settings page and one Hugging Face download · 🟢 civitai downloads and mirrors · 🟢 open runs · 🟢 cloud runs | Seven hosted open-weight models take LoRAs: six new ones, Qwen-Image 2512, Qwen-Image-Edit 2511, FLUX.2 [klein] 4B, Wan 2.2 A14B image and video, LTX-2.3 22B (on fal; Qwen-Image-Edit 2511 and Wan 2.2 video also on Replicate), and Z-Image Turbo (hosted), which now takes any LoRA on fal and on a new Replicate route (before, only a trained character's LoRA, on fal). LoRAs a run can't take (licensed for your own GPU only, a gated Hugging Face file, more than the model accepts) are left out with a warning. A civitai file is copied ("mirrored") once to fal or Replicate storage, only while its licence allows hosting. When a model runs on both providers, Fuobe picks the one that takes every LoRA and the clip length asked, even over the preferred provider | A LoRA ComfyUI lacks is downloaded into the LoRA folder before the run and checked against its SHA-256 fingerprint. This also covers the existing open camera motions and effects and trained @character LoRAs. With no folder set, the run stops and says what to do; a graph with no model loader refuses LoRAs instead of dropping them | Settings → LoRAs (also in the ⌘K palette): the LoRA folder (`COMFYUI_LORAS_DIR`), a civitai API key (`CIVITAI_API_KEY`) with Save & test, and a library of 114 researched LoRAs (67 looks, 23 motions, 24 effects) with licence, source and a Download button: 40 Hugging Face files pinned to a commit, 72 on civitai (they need the key) and 2 gated Hugging Face files placed by hand. An @character's trained LoRA comes before a look's; a preset at strength 0 drops its LoRA and trigger word. No preset or Soul look takes its LoRAs from the library yet (O2 and O4 will). One 85 MB LoRA was downloaded live and matched its fingerprint (§1); no LoRA has run on fal, Replicate or a GPU, and civitai downloads and mirrors haven't run live |+| Originals evaluation harness (developer tool) | ✅ demo and CPU self-test · 🟢 open and cloud measurement | Jobs go through Fuobe's own API to hosted models, priced first, under a spend cap (default $5); a job routed through Higgsfield is skipped, not measured | Jobs go through Fuobe's API to your ComfyUI; it also reads ComfyUI's memory peak and timings | `scripts/eval` ([README](../scripts/eval/README.md)): `pnpm eval:run --suite <selftest\|soul\|soul-id\|dop\|genjutsu\|mixed-media\|shorts\|speak\|cinema> --engine demo\|open\|cloud` (or `fuobe eval`), plus report, a blind A/B review page, compare, promote, covers, history, validate, setup and trash. It scores each Original's recipe (models, LoRAs, settings) with pinned open models (CLIP, an aesthetic score; DINOv2 and AuraFace identity optional) in its own Python venv (`pnpm eval:setup`, needs uv), and its jobs stay hidden in the Library unless Show steps is on. Nothing changes in the app. No Original has been measured on a GPU or the cloud, no recipe has been promoted, and there are no preset covers yet || Credits / pricing | 🟡 | — | — | Bring your own key: live cost estimates per run, per pipeline step, per Assist plan; prices per resolution and per input + output second where the API bills that way, and by the clip's real length for the finishing tools; a cost cap per Cinema project; "Free" for open source. No billing, credits or Unlimited mode || Sign-in and security | ✅ | — | — | Optional password (`FUOBE_PASSWORD`) and API tokens; cross-site writes refused; Host allowlist on password-less installs (`FUOBE_ALLOWED_ORIGINS`); remote URLs fetched only from public addresses (`FUOBE_ALLOW_PRIVATE_URLS=1` for a LAN); login throttle (`FUOBE_TRUST_PROXY=1` behind a proxy) || Accounts, teams, sharing, community feed, contests, Academy | ⬜ | — | — | Single-user and self-hosted today |@@ -175,26 +185,31 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are laMost important first.**Not run for real (no keys, no GPU)**-- **Paid providers are untested with real keys.** That includes round 3's response shapes (Seedream layer boxes, Recraft's returned `style_id`, transcript cues, 3D files, Demucs stems, the fal FFmpeg tools) and round 4's routes: Topaz Video by size, Starlight, ByteDance and FLUX.3 Upscale, Topaz FPS Boost and SDR to HDR, LTX 2.3 HDR's EXR zip, the Bria erasers, VOID, LTX clean plate, SAM 3.1 masks, hosted VACE, P-Video Replace, Genjutsu and Genjutsu Lite, FLUX 3 Max keyframes, Marigold V2, fal's Ken Burns and merge-audios, and the cloud dub's split, loudnorm and mix. Prices are list prices; ByteDance's 6K and 8K prices are extrapolated from 4K, and Genjutsu's 50% promotion is mentioned, not subtracted. Assumptions from the docs: fal compose cuts an audio keyframe at its `duration` and renders an audio-only timeline over a still; cloud `join-clips` keeps each clip's audio.-- **Open-source quality is unverified.** Round 3 added about 165 GB of model files (plus about 9 GB that nodes download on first use) that have never run here. Round 4's heavy open workflows were only accepted by ComfyUI, not run: Wan 2.1 VACE (remove, swap, insert), VOID, Wan Animate 2, SeedVR2 in passes, Frames films, the Qwen-Image-Edit 2511 + Multiple-Angles re-render and a full open Faceless render. Whole open chains (a UGC presenter film, a Faceless episode, a dub with lip re-sync, a Shorts restyle) ran only on the demo provider.+- **Paid providers are untested with real keys.** That includes round 3's response shapes (Seedream layer boxes, Recraft's returned `style_id`, transcript cues, 3D files, Demucs stems, the fal FFmpeg tools) and round 4, part 1's routes: Topaz Video by size, Starlight, ByteDance and FLUX.3 Upscale, Topaz FPS Boost and SDR to HDR, LTX 2.3 HDR's EXR zip, the Bria erasers, VOID, LTX clean plate, SAM 3.1 masks, hosted VACE, P-Video Replace, Genjutsu and Genjutsu Lite, FLUX 3 Max keyframes, Marigold V2, fal's Ken Burns and merge-audios, and the cloud dub's split, loudnorm and mix. Round 4, part 2 adds: per-frame Mixed Media (how many frames extract-nth-frame returns and in what order, Nano Banana 2 edits with two images, images-to-video at a fractional fps such as 7.5, merge-videos with a set size), the cloud end card (whether merge-videos keeps the ad's voiceover next to the card's silent track, how overlay-image scales a very large logo), Florence-2 OCR (its box units, pixels assumed, and its real price; the $0.001 shown is a placeholder), the Inpaint and Enhancer models, Content Factory's reading (fal frames, Scribe v2, Claude with frames), the AI Influencer sheets, the six hosted LoRA models and every LoRA payload, and civitai downloads and mirrors (mirror lifetimes of 7 days on fal and 1 day on Replicate are guesses). Prices are list prices; ByteDance's 6K and 8K prices are extrapolated from 4K, and Genjutsu's 50% promotion is mentioned, not subtracted. Assumptions from the docs: fal compose cuts an audio keyframe at its `duration` and renders an audio-only timeline over a still; cloud `join-clips` keeps each clip's audio.+- **Open-source quality is unverified.** Round 3 added about 165 GB of model files (plus about 9 GB that nodes download on first use) that have never run here. Round 4, part 1's heavy open workflows were only accepted by ComfyUI, not run: Wan 2.1 VACE (remove, swap, insert), VOID, Wan Animate 2, SeedVR2 in passes, Frames films, the Qwen-Image-Edit 2511 + Multiple-Angles re-render and a full open Faceless render. Round 4, part 2's open models haven't run through Fuobe either: OvisOCR3 (it ran only during the research, directly on a CPU ComfyUI: two test posters, 161–194 s each; its weight isn't installed here, and the parser is checked only against the answer formats recorded there), the Gemma 4 E4B brief, FLUX.1 Fill [dev] Inpaint, the Enhancer's looks and its Detail at 2× (bindings only), and the AI Influencer's Soul Cast sheet + Qwen-Image-Edit chain. No LoRA has rendered on a GPU. Whole open chains (a UGC presenter film, a Faceless episode, a dub with lip re-sync, a Shorts restyle, a Content Factory series) ran only on the demo provider.+- **No Fuobe Original has been measured.** The evaluation harness ran on the demo provider and on CPU-only tools; no recipe has been promoted, and the preset covers it can make (`src/lib/preset-previews.generated.ts`) are still empty.- **Assist hasn't talked to a live model.** The streamed Claude call is tested against an SSE fake and Ollama against a fake server. Skills, projects and memory work end to end with the offline planner only. Small local models follow tool instructions less reliably.**Gaps that change what a user gets**- **Home's Start spends money.** Start (or Enter) on Home now runs the job; with a saved key for the default model that is a paid run (for example a Seedance 2.5 clip). The line under the box, which says what will run and what it costs, is the only warning. A link from elsewhere can't start a run.- **Remove object:** seams between pieces (cloud) and windows (open) are untested, and open typed windows are joined with hard cuts. Click it and Paint it need the browser to decode the first frame (not ProRes, for example), and there is no server-side fallback. Click it is cloud only. On the open engine SAM 3.1 tracks at most 4 objects. Erasers that work in 4- or 8-frame steps (VACE, VOID, LTX) leave out up to 7 frames at the end (the estimate says so). Try again uses the form as it is now, not the run's own request.- **Genjutsu:** with only a Higgsfield key, only a whole clip ≤15 s (≤30 s on High) can run; there is no Higgsfield-side cut or join. The references panel counts to 10, though no model uses more than 8, and open swap and insert use only the first. Clips over 30 fps aren't resampled for the hosted VACE. Higgsfield's batch, community presets and Recreate aren't built, and Katana still uses the full Genjutsu Motion Transfer, not Lite. Assist and MCP can't run Genjutsu or Remove object yet.-- **The Higgsfield provider is still in use.** The Originals research records a decision to drop the Higgsfield API; `main` doesn't act on it yet: Genjutsu still defaults to Higgsfield when a key is set, and Soul, Cinema Studio 4.0 and the other Higgsfield models still call Higgsfield's API (§4, O7).+- **The Higgsfield provider is still in use.** The Originals research records a decision to drop the Higgsfield API; `main` doesn't act on it yet: Genjutsu still defaults to Higgsfield when a key is set, and Soul, Cinema Studio 4.0, the AI Influencer app and the other Higgsfield models still call Higgsfield's API (§4, O7). An install with only a Higgsfield key still runs Z-Image Turbo (hosted) through Higgsfield, without its LoRAs. The AI Influencer builder has no Higgsfield route, and the evaluation harness skips any job routed through Higgsfield.- **FPS Boost, SDR to HDR and Export on the open engine:** FPS Boost, SDR to HDR and EXR still load the whole clip; Generate is greyed when a clip needs more than half of ComfyUI's RAM (5 s of 1080p at 24 → 60 fps is refused on a 32 GB ComfyUI). HDR is H.264 High 10 (core ComfyUI has no H.265 encoder; H.265 HDR10 is cloud only). "ProRes 422 HQ" carries 4:4:4 samples. SeedVR2 restores each 33-frame pass on its own, so seams are possible (not measured). A cancelled or failed pass leaves an idle ffmpeg and a partial .mov in ComfyUI's output folder.- **Frames:** in an open film each still is on screen for two video frames (about 1/8 s). Ten stills mean nine or ten 20-step Wan clips on your GPU: free, but slow. On Lightning the stretch after the last frame is a 4-step clip next to 20-step pairs. Reuse on an open Frames film brings back the join step, not the frames.- **3D scenes:** the open MoGe mesh drops sky and far-away areas, leaving empty space for the re-render to fill. Every cloud scene depends on Marigold returning the Spectral colour map of fal's example output, the only thing the decoder was checked against. The open re-render is told the LoRA's reference pose with the capture as image 1; that is untested on a GPU.-- **Some models are in the catalog but no studio page offers them.** Gemma 4 speech translate and the cloud Overlay image, Extract frames and Images to video are hidden (API only; no chain uses the last three on `main` yet). SAM 3D Objects, Meshy 7.1 Multi-view, Tripo H3.1 Text to 3D, TripoSplat, Florence-2 OCR, Bria Expand and Image to SVG (VTracer, hosted) run from a Canvas model node or the API; Meshy Rigging only through the API. In the ⌘K palette, 33 models, those of Remove object, Genjutsu, FPS Boost / SDR to HDR / Export and the 3D scene among them, open the filtered Models page instead of their own studio.-- **Mixed Media on the cloud is a video-to-video restyle**, not Higgsfield's per-frame pipeline (the per-frame route is on an unmerged branch, §4).+- **Some models are in the catalog but no studio page offers them.** Gemma 4 speech translate is hidden and nothing uses it yet (API only). SAM 3D Objects, Meshy 7.1 Multi-view, Tripo H3.1 Text to 3D, TripoSplat, Bria Expand and Image to SVG (VTracer, hosted) run from a Canvas model node or the API; Meshy Rigging only through the API. In the ⌘K palette, 32 models, those of Remove object, Genjutsu, FPS Boost / SDR to HDR / Export and the 3D scene among them, open the filtered Models page instead of their own studio.+- **Mixed Media Per frame (cloud):** the look can shift slightly every 12 frames, because each lane of 12 starts from the approved preview, not from the frame before it. Seedream 5.0 Flash takes no fixed seed, so its frames may vary more than Nano Banana 2's. Per frame is the default and costs more than Fast (about $6 for 10 s at 1K, where Fast was one call); an API call with no model and no mode now gets Per frame, and a model sent for the wrong mode gets a 422. Every frame is downloaded to Fuobe's storage and uploaded again.+- **LoRAs:** a civitai LoRA sent to the cloud without a civitai key fails the run instead of being left out. The composer's price ignores the LoRA endpoint's price (the server's estimate uses it), and Replicate's LoRA models are priced at fal's base rate. The warning about a left-out LoRA is gone after a reload. The video-to-video estimate bills the length picked, while LTX-2.3 follows the input clip's length. Fuobe writes LoRA files itself, so the LoRA folder must be one the Fuobe machine can write to (ComfyUI on the same PC, or its `models/loras` shared); otherwise place files by hand, as for the two gated Hugging Face LoRAs (there is no Hugging Face token setting).+- **Content Factory:** TikTok and Instagram links work only when the page exposes the video (YouTube always asks for an upload). The paid brief call starts when the series page is next opened, not in the background. A pasted link downloads while you wait (up to 200 MB). Through Generate in Claude, an episode over 8 scenes comes out as separate videos to join in Video tools → Join clips, and runs use Settings → Engine mode, not the composer's switch (the dialog says so). The preset grid is 8 local styles with no view counts; Explore and My presets tabs, and saving a brief as a preset, aren't built. Every series makes an ordinary Faceless channel, and deleting the series deletes that channel. The Generate lock and the brief writer live in one server process, and old drafts and orphaned series are cleared only when a new series is made.+- **AI Influencer builder:** picks are lost on reload (finished sheets come back from the feed). The two clash messages are copied word for word from the Higgsfield research (worth a copy check). Not built yet: option preview pictures, a style reference, batches, hand-offs to Genjutsu and 3D.+- **Evaluation harness:** 87 of the 139 looks in its Soul test set use civitai LoRAs, which it keeps off cloud runs for now. Its Mixed Media test set measures Fast, not Per frame. A DoP case with few clips can be promoted on 2 blind ratings (otherwise 6). Variants that target an Original skip until that Original is in the catalog.- **Open-engine limits.** ACE-Step makes up to 240 s of music; Faceless loops it with crossfades up to 600 s, and loops (Faceless and Audio → Loop) stop at 600 s on both engines. The joins that keep a clip's sound hold every frame in RAM at 25 fps (about 1 GB per 8 s at 480x848). InfiniteTalk lip re-sync is capped at 40 s per job (for dubs, the whole source length). Whisper captions refuse clips that need more than half the server's RAM (the estimate isn't measured).- **Qwen-Image-Edit keeps the first image's shape** on the open engine. Photodump, Fashion Factory and Character Sheet turn the aspect picker off and say so; the open Character Sheet asks for a landscape photo first.-- **Layers:** text detection is cloud only on `main` (no open OCR model; on the open engine you type the lines to change). A decomposition that finishes while the editor is closed is laid out only when the project is opened (the server can't decode PNG alpha). Upscale doesn't resize the document; downloads use the layers' detail instead.+- **Layers:** the editor stays read-only on phones, and Assist and MCP can't reach Inpaint, the Enhancer or Save as element. Inpaint and edits on see-through layers run a background cut-out afterwards instead of reusing the layer's own transparency; whether that gives clean text layers with real models is unchecked. A decomposition that finishes while the editor is closed is laid out only when the project is opened (the server can't decode PNG alpha). Upscale doesn't resize the document; downloads use the layers' detail instead.- **Cinema Studio:** Cinema Studio 4.0 runs at up to 720p through the public API. Open routes take no reference clips. Collaboration and community publishing are out of scope. Spend uses the estimate stored at creation for takes deleted for good, so it can be slightly over-counted.- **Shorts Studio:** the 9:16 crop is a plain centre crop (no subject tracking). Kling O3 4K's 720 px minimum input isn't checked. The one-submit-per-click guard (`requestId`) is in memory, so a restart forgets it.-- **Marketing:** Click to Ad videos have no logo end card on `main` (the logo is used by the Ads Studio compositor and the brand line in prompts). Brand kits are matched by host and port, so one site on two ports gets two kits. An Ad Multiplier reference whose header Fuobe can't read gets a picture-only join.+- **Marketing:** Click to Ad now ends on a logo card by default when the product kit has a logo (2.5 s longer, priced in); switch End card off for the old ads. The open end card needs the card drawn on the page, so an API call without one is refused on the open engine; the cloud's own card (for an API call with no drawn card) skips SVG logos. The cloud end card, with its silent sound step, hasn't run through Generate in the browser (unit tests and the estimate only). Brand kits are matched by host and port, so one site on two ports gets two kits. An Ad Multiplier reference whose header Fuobe can't read gets a picture-only join.- **Faceless / Explainer:** one narration take per episode, re-timed to the scenes; stage two waits for it, so a first render takes a few seconds longer and a narration change takes two passes. Every new channel draws an avatar (about $0.15 on the cloud). Scripts over 64 KB are flushed without keepalive, so the last edit may not survive closing the tab. The first change, retime or Retry of an older Frame by frame episode re-makes all its clips as Ken Burns moves. The cloud Ken Burns zooms only (no pan; it always starts or ends on the whole picture). A plain open ACE-Step bed (no loop) is still cut off when the film gets shorter. Upscale to 1080p is still offered on an episode that is already 1080p (it stops with "already 1080p").- **Audio Loop and Join on the cloud:** whole plays (a loop can come out longer than asked; the result says its real length) and hard cuts only.- **Clips whose header neither reader knows** (MP4 / MOV and WebM / Matroska are read) fall back to coarse defaults: caption windows to the millisecond, InfiniteTalk at 16:9 and its frame cap, a mux bed as long as the longest known track.@@ -202,7 +217,8 @@ Most important first.**Library, data and security**- "Move to" and "new folder" in the Library's selection bar still act on the whole selection, including results hidden by a search or filter; the count and the other actions follow the shown results.- Without Web Locks (plain `http://` on a LAN IP) each visible tab reads its own live stream; six or more visible windows on one host could hit the browser's connection limit.-- **Sign-in is off by default.** Without a password Fuobe answers only on local addresses and names in `FUOBE_ALLOWED_ORIGINS`, but anyone who can reach it can use it (and your keys). With a password, a page that rebinds DNS can still post password guesses; the throttle caps that at roughly 15–20 a minute. Without `FUOBE_TRUST_PROXY=1` behind a reverse proxy, all visitors share one throttle (slowed, never locked out). `comfyLorasDir` and `aiToolkitDatasetDir` make the server write files where you point them. Save & test lets a signed-in caller make the server fetch a ComfyUI or Ollama address without saving it (saving it already allowed the same).+- **Sign-in is off by default.** Without a password Fuobe answers only on local addresses and names in `FUOBE_ALLOWED_ORIGINS`, but anyone who can reach it can use it (and your keys). With a password, a page that rebinds DNS can still post password guesses; the throttle caps that at roughly 15–20 a minute. Without `FUOBE_TRUST_PROXY=1` behind a reverse proxy, all visitors share one throttle (slowed, never locked out). `comfyLorasDir` (now also where LoRAs are downloaded) and `aiToolkitDatasetDir` make the server write files where you point them. Save & test lets a signed-in caller make the server fetch a ComfyUI or Ollama address without saving it (saving it already allowed the same).+- **LoRA downloads through the API:** anyone with a Fuobe API token can name a LoRA link in `POST /api/generations` (at most 8; only links on huggingface.co, hf.co, civitai.com, fal.media and replicate.delivery) and make the server download it into the LoRA folder. Links on hf.co, fal.media and replicate.delivery aren't fingerprint-checked and have no size limit (60-minute timeout).- `MAX_INLINE_TEXT` caps a result's inline text at 64,000 characters; `meta.cues` of a very long transcript stays inline.- The first routing check after the Ollama or ComfyUI URL changes can hold a request for up to 1.5 s when the host doesn't answer.@@ -214,35 +230,31 @@ Most important first.- When Assist asks which still to animate, a length given earlier ("for 5 seconds") isn't carried over to the bare-number reply.- In Frames mode, reference images left in the draft still count in the folded "N attached" chip but aren't sent.- The Faceless wizard can show several `<main>` elements after a client-side navigation, and its phone footer price line wraps between the two buttons.+- `/mixed-media`'s phone bottom bar always says "Add a clip", even with a clip loaded.- `shell.mjs`'s last step ("Show more focuses the first new card") is timing-sensitive on a cold dev server.- The files route logged "ReadableStream is already closed" once when a crashed test browser dropped its connections; not reproduced.**Environment and licences**-- **Licences:** FLUX.1 / FLUX.2 [dev], inswapper (ReActor), MMAudio weights, USO's FLUX.1 base, ComfyUI-Whisper (opt-in with `NC_PACKS=1`) and TRIBE v2 are non-commercial. VOID's weights are Apache-2.0, but its CogVideoX-5B base is under the CogVideoX licence: commercial use only after registering, and at most 1 million service visits a month without a further licence. HunyuanVideo-Foley and Hunyuan3D 2.1 exclude the EU, UK and South Korea. Stable Audio 3 uses the Stability Community licence (free under US$1M revenue); Krea 2 has its own community licence. Settings → About & licences lists each open model's licence (a guide, not legal advice). See `research/comfyui-oss.md`, `-2.md`, `-3.md` and `-4.md`.-- **GPU sizes** (from the manifest, not measured): Remove object and Genjutsu swap / insert on Wan 2.1 VACE 14B need 24 GB (a 34.68 GB fp16 file); VOID 24–40 GB; SeedVR2 in passes 16 GB.-- **Node packs:** open video upscaling and FPS Boost now need ComfyUI-VideoHelperSuite (core ComfyUI was enough before), and open Vectorize needs ComfyUI-ToSVG. `scripts/comfy/install-comfyui.sh` installs both; on ComfyUI set up another way (for example ComfyUI Desktop), install them yourself. LatentSync 1.6 and ThinkSound run only on the isolated worker (Settings → Isolated worker URL, or `COMFYUI_ISOLATED_URL`); without it those jobs fail with a message naming the setting.+- **Licences:** FLUX.1 / FLUX.2 [dev], inswapper (ReActor), MMAudio weights, USO's FLUX.1 base, ComfyUI-Whisper (opt-in with `NC_PACKS=1`) and TRIBE v2 are non-commercial. VOID's weights are Apache-2.0, but its CogVideoX-5B base is under the CogVideoX licence: commercial use only after registering, and at most 1 million service visits a month without a further licence. HunyuanVideo-Foley and Hunyuan3D 2.1 exclude the EU, UK and South Korea. Stable Audio 3 uses the Stability Community licence (free under US$1M revenue); Krea 2 has its own community licence. Settings → About & licences lists each open model's licence (a guide, not legal advice). See `research/comfyui-oss.md`, `-2.md`, `-3.md` and `-4.md`. **LoRAs:** each library entry carries a licence snapshot, shown in Settings → LoRAs ("Commercial · GPU and cloud", "Commercial · your GPU only", "Non-commercial"). A LoRA licensed for your own GPU only is never sent to fal or Replicate, and a civitai file is copied there only while civitai lists hosting as allowed (checked again before every copy; no answer means no copy). The BTS motion LoRA is on licence hold, so BTS stays a prompt-only motion. 72 of the 114 library LoRAs need a civitai key.+- **GPU sizes** (from the manifest, not measured): Remove object and Genjutsu swap / insert on Wan 2.1 VACE 14B need 24 GB (a 34.68 GB fp16 file); VOID 24–40 GB; SeedVR2 in passes 16 GB. Round 4, part 2: OvisOCR3 for Layers' text detection about 3 GB (a 1.71 GB file); Gemma 4 E4B for Content Factory's reading about 12 GB (a 9.06 GB file); the AI Influencer's open sheet (Z-Image Turbo) about 14 GB, and its face and clothing step (Qwen-Image-Edit 2511) about 24 GB; FLUX.1 Fill [dev] Inpaint 24 GB. The end card needs no GPU.+- **Node packs:** open video upscaling and FPS Boost now need ComfyUI-VideoHelperSuite (core ComfyUI was enough before), as does Content Factory's open reading, and open Vectorize needs ComfyUI-ToSVG. `scripts/comfy/install-comfyui.sh` installs both; on ComfyUI set up another way (for example ComfyUI Desktop), install them yourself. LatentSync 1.6 and ThinkSound run only on the isolated worker (Settings → Isolated worker URL, or `COMFYUI_ISOLATED_URL`); without it those jobs fail with a message naming the setting.- **Wan 2.1 LoRAs on Wan 2.2:** most viral-effect LoRAs were trained for Wan 2.1 I2V; some may need a lower strength or only the low-noise expert.- **Sunsets:** Sora 2's API was retired (2026-09-24), so it isn't offered; Veo 3.1 on fal ends 2026-11-17 (the Replicate route stays). Kling 4.0's fal routes are playground-only, so it isn't offered.- **Headless Chromium has no H.264**, so video checks here used WebM and demo MP4 thumbnails look blank in screenshots; for the same reason Remove object and Genjutsu showed their first-frame fallbacks in the browser checks. MP4 playback is unaffected in normal browsers.+- **Python for the evaluation harness:** `pnpm eval:setup` builds its own venv with uv (CPU torch) and downloads pinned metric weights on first use. `pnpm test` also tries the harness's Python metric tests through that venv or uv, which may download numpy, Pillow and pytest once; without either, that test is skipped.- **Dev server:** after adding routes, or after an edit to `globals.css`, Turbopack's cache can get stuck or serve stale styles. `pnpm dev:clean` clears `.next` and restarts. Without `.next`, `pnpm typecheck` fails on the route type globals until `pnpm exec next typegen` (or a dev or build run) has made them.## 4. What's next (prioritized)-1. **Finish and merge the round-4 packages in flight.** They are built on branches, not on `main`:- - **Layers OCR** (`layers-ocr`; reviewed and fixed): text detection on both engines (OvisOCR3 on ComfyUI; Florence-2 as a cheaper cloud detector next to Ideogram 3.0), Higgsfield's Inpaint and Enhancer tools, and Save as Element.- - **Content Factory** (`content-factory`; reviewed and fixed): `/content-factory`, a series of Faceless episodes styled after a reference clip, a link or a preset, with "Generate in Claude" for the MCP route.- - **Mixed Media per frame and the Click to Ad end card** (`marketing-mixed`; reviewed, the fix stage hasn't run): cloud Mixed Media redrawing each frame, and a logo end card on both engines.- - **AI Influencer builder** (`influencer-builder`; review and fix haven't run): `/influencer`, Higgsfield's game-style builder (19 categories, 180 options) generated from the research.- - **Originals O1, LoRA plumbing** (reviewed and fixed): LoRA stacks on both engines, a generated library of 114 LoRAs with pinned versions, hashes and licence snapshots, downloads checked before a ComfyUI run, and copies to fal or Replicate only where the licence allows hosting.- - **Originals O8, the evaluation harness** (`fuobe eval`, metrics, blind A/B review, promote, preset covers): merged into the integration branch `claude/fuobe-parity-4` only.-2. **The rest of round 4**, not started: `3d-plus`, `canvas-plus`, `share-links` and `assist-connectors`.-3. **Fuobe Originals**, open-weight versions of Higgsfield's own products ([`fuobe-originals-recipes-5.md`](research/fuobe-originals-recipes-5.md)): O2 Fuobe Soul (Soul v1, Soul 2.0, Soul Cinema and HEX on Z-Image Turbo with LoRAs), O3 Soul ID and personal moodboards (training), O4 DoP (camera motions, Mix and effects), O5 Genjutsu, O6 Cinema Studio and Soul Cast / Location, then O7, removing the Higgsfield provider. After that: O9 Mixed Media and Shorts on hosted open models, O10 Marketing, Ads, AI Influencer, Photodump and Fashion on Originals, O11 the rebranded open tools, Speak and finishing, O12 Fuobe's own LoRAs and the motion library, O13 Popcorn, Evolution and Effects 2.0. No Original counts as verified until the harness has measured it on a GPU or with a paid key.-4. **Live-key smoke test** of the riskiest cloud routes: round 3's (Seedream 5.0 Layers, Recraft V4 Styles, FASHN, Mirelo SFX / Sonilo, Scribe v2, Auto Subtitle / VEED, Hunyuan3D 3.1, Gemini Omni Flash edit, the fal FFmpeg tools, HeyGen / ElevenLabs dubbing, Cinema Studio 4.0 with reference clips, Ads Studio, Soul 2.0 + Soul ID) and round 4's (Topaz Video by size, ByteDance / Starlight / FLUX.3 Upscale, Topaz FPS Boost and SDR to HDR, the Bria erasers, VOID, SAM 3.1, hosted VACE, Genjutsu Lite, FLUX 3 Max keyframes, Marigold V2, fal's Ken Burns and merge-audios, the cloud dub mix); then a first real Assist conversation on Claude and on Ollama, with a skill and a project. Fix any schema surprises.-5. **GPU run** of the open sets: round 3's (Qwen-Image-Layered, Qwen-Image-Edit Style Reference, Z-Image Turbo · Palette, Wan 2.2 Fun VACE restyle, Z-Image Mixed Media, Stable Audio 3, MelBand + Qwen3-ASR, Chatterbox, InfiniteTalk lip re-sync, TRELLIS.2, the FLUX.2 [klein] try-on) and round 4's (Wan 2.1 VACE remove / swap / insert, VOID, Wan Animate 2, SeedVR2 in passes and its seams, a Frames film, the MoGe → Qwen re-render, a full open Faceless render); then one whole open UGC film, Faceless episode and dub. Record VRAM and timings and tune defaults.-6. **Round-4 follow-ups:** palette entries for the new studios (`MODEL_STUDIOS` / `TOOL_PAGES` in `src/lib/palette-index.ts`); Assist / MCP tools for Genjutsu and Remove object; an open crossfade join for Remove object's windows; FPS Boost, SDR to HDR and EXR in passes; "Move to" on the shown selection only.+1. **The PR after #9: Fuobe Soul and 3D+.** Both are finished and were merged into the integration branch `claude/fuobe-parity-4` after PR #9's branch was frozen, so they come in the next PR: Fuobe Soul (O2: 139 looks, Soul HD, Soul Cinema and Soul HEX on open weights) and 3D+ (text to 3D, multi-image to 3D, rigging, splats).+2. **Fuobe Originals**, open-weight versions of Higgsfield's own products ([`fuobe-originals-recipes-5.md`](research/fuobe-originals-recipes-5.md)). Done in round 4, part 2 (PR #9): O1, LoRAs on both engines, and O8, the evaluation harness. O2 Fuobe Soul comes in the PR after #9, and O4 DoP (camera motions, Mix and effects) is being built; O2 and O4 are where presets and looks start taking LoRAs from the library. Still to come: O3 Soul ID and personal moodboards (training), O5 Genjutsu, O6 Cinema Studio and Soul Cast / Location, then O7, removing the Higgsfield provider. After that: O9 Mixed Media and Shorts on hosted open models, O10 Marketing, Ads, AI Influencer, Photodump and Fashion on Originals, O11 the rebranded open tools, Speak and finishing, O12 Fuobe's own LoRAs and the motion library, O13 Popcorn, Evolution and Effects 2.0. No Original counts as verified until the harness has measured it on a GPU or with a paid key.+3. **The rest of round 4**, still to build: `canvas-plus`, `share-links` and `assist-connectors`.+4. **Live-key smoke test** of the riskiest cloud routes: round 3's (Seedream 5.0 Layers, Recraft V4 Styles, FASHN, Mirelo SFX / Sonilo, Scribe v2, Auto Subtitle / VEED, Hunyuan3D 3.1, Gemini Omni Flash edit, the fal FFmpeg tools, HeyGen / ElevenLabs dubbing, Cinema Studio 4.0 with reference clips, Ads Studio, Soul 2.0 + Soul ID), round 4, part 1's (Topaz Video by size, ByteDance / Starlight / FLUX.3 Upscale, Topaz FPS Boost and SDR to HDR, the Bria erasers, VOID, SAM 3.1, hosted VACE, Genjutsu Lite, FLUX 3 Max keyframes, Marigold V2, fal's Ken Burns and merge-audios, the cloud dub mix) and part 2's (per-frame Mixed Media, the cloud end card, Florence-2 OCR, the Inpaint and Enhancer models, Content Factory's reading, the AI Influencer sheets, the hosted LoRA models, a civitai download and a mirror); then a first real Assist conversation on Claude and on Ollama, with a skill and a project. Fix any schema surprises.+5. **GPU run** of the open sets: round 3's (Qwen-Image-Layered, Qwen-Image-Edit Style Reference, Z-Image Turbo · Palette, Wan 2.2 Fun VACE restyle, Z-Image Mixed Media, Stable Audio 3, MelBand + Qwen3-ASR, Chatterbox, InfiniteTalk lip re-sync, TRELLIS.2, the FLUX.2 [klein] try-on), round 4, part 1's (Wan 2.1 VACE remove / swap / insert, VOID, Wan Animate 2, SeedVR2 in passes and its seams, a Frames film, the MoGe → Qwen re-render, a full open Faceless render) and part 2's (OvisOCR3, the Gemma 4 brief, FLUX.1 Fill [dev] Inpaint, the Enhancer, the AI Influencer chain, runs with LoRAs); then one whole open UGC film, Faceless episode and dub, and the harness on the Originals. Record VRAM and timings and tune defaults.+6. **Round-4 follow-ups:** palette entries for the new studios (`MODEL_STUDIOS` / `TOOL_PAGES` in `src/lib/palette-index.ts`); Assist / MCP tools for Genjutsu, Remove object, Content Factory, the AI Influencer builder and Layers' new tools; an open crossfade join for Remove object's windows; FPS Boost, SDR to HDR and EXR in passes; "Move to" on the shown selection only; a fingerprint check or size limit for LoRA links on hf.co, fal.media and replicate.delivery; a civitai LoRA without a key left out with a note instead of failing; the composer's price with LoRAs; the harness measuring per-frame Mixed Media.7. **Virality Predictor:** an optional, clearly non-commercial TRIBE v2 worker (`docs/workers/tribe-v2.md`).8. **Accounts:** several users with their own libraries and a community feed.-9. **Real preview media** for apps, motions, effects and studio presets (the previews are procedural today); once the O8 harness is merged, it can turn reviewed GPU or cloud renders into covers.+9. **Real preview media** for apps, motions, effects and studio presets (the previews are procedural today); the O8 harness (`pnpm eval:covers`) can turn promoted, reviewed GPU or cloud renders into covers once there are some.## 5. How to reproduce the checks@@ -269,6 +281,16 @@ node tests/e2e/assist-flows.mjs http://localhost:3000 # skills menu, remembe`layers.mjs` and `cinema-scene.mjs` expect their open-engine step to run as a demo: run them while no ComfyUI is reachable. Demo stills are SVG placeholders a real ComfyUI can't read, and the Layers step needs the Qwen-Image-Layered weights.+The evaluation harness ([`scripts/eval/README.md`](../scripts/eval/README.md)):++```bash+pnpm eval:validate # every case file, and that the generated suites match the research+node tests/e2e/eval-review.mjs # the report and blind A/B review pages at 1440 and 390 px, light and dark; builds a small run from fixtures, no app needed (or pass scripts/eval/results/<runId>)+pnpm eval:run --suite selftest --engine demo # about 30 s, free: against a running Fuobe (http://localhost:3000, or --url / FUOBE_URL) with Settings → Demo mode on Auto or On+```++Scoring needs the metrics venv (`pnpm eval:setup`, needs uv) or uv itself; `--no-metrics` skips it. `--engine open` needs a live ComfyUI with the recipe's LoRAs (a GPU for anything but the self-test), and `--engine cloud` a fal or Replicate key, under a spend cap.+The open-source engine against a live ComfyUI (no model weights needed):```bash@@ -291,4 +313,4 @@ COMFYUI_URL=http://127.0.0.1:8189 COMFYUI_MODELS_DIR=$HOME/ComfyUI/models node vThe `fuobe` CLI is covered by `pnpm test`; to use it against a running server, see [`docs/cli.md`](cli.md) (`npm link`, or `node bin/fuobe.mjs …`).-`node scripts/gen-demo-3d.mjs` regenerates the demo GLB and turntable (needs ffmpeg); `pnpm gen:catalog` regenerates the catalog from `docs/research/*.json`.+`node scripts/gen-demo-3d.mjs` regenerates the demo GLB and turntable (needs ffmpeg); `pnpm gen:catalog` regenerates the catalog from `docs/research/*.json`, now including the LoRA library and the AI Influencer options.diff --git a/docs/research/README.md b/docs/research/README.mdindex 0fc99e99..3ef325df 100644--- a/docs/research/README.md+++ b/docs/research/README.md@@ -9,19 +9,19 @@ Everything Fuobe's catalog is built from. JSON files are machine-readable and fe| [`higgsfield-api.md`](higgsfield-api.md) / [`.json`](higgsfield-api.json) | Higgsfield's public API: auth, the request lifecycle, uploads, 103 endpoint records (Soul, Soul ID, Genjutsu, Cinema Studio, Marketing Studio, DoP and the hosted third-party models, plus the two Genjutsu Lite records (titled "Genjutsu Light" on the API) copied in round 4 from `paid-model-apis-4.json`) with full inputs and prices; documentation-derived, no live call | `src/server/providers/higgsfield.ts`, `scripts/gen-higgsfield-models.py` → `src/lib/catalog/higgsfield-models.generated.ts` || [`paid-model-apis-2.md`](paid-model-apis-2.md) / [`.json`](paid-model-apis-2.json) | Part 2: 202 fal / Replicate endpoints for multi-shot, draft mode, extend, reframe, relight, inpaint, voices, dialogue, voice change, dubbing, LoRA training, draw-to-video and storyboards; the ElevenLabs premade voices | `scripts/gen-cloud-models.py` (merged with part 1), training targets in `src/lib/catalog/training.ts` || [`paid-model-apis-3.md`](paid-model-apis-3.md) / [`.json`](paid-model-apis-3.json) | Part 3: 206 fal / Replicate endpoints (197 new, 9 re-verified for palette/style fields) for Layers (Seedream layerize with boxes, Qwen-Image-Layered, Ideogram text layers, OCR, vectorize), moodboards and palettes (Recraft Styles, Ideogram 3 color_palette, Krea style, Redux), video restyle (HappyHorse, Lucy Edit, Aleph 2, Kling O3 4K, LTX IC-LoRA, Recast), ffmpeg/trim/frame utilities, transcription and burned captions, SFX and music (Mirelo, Sonilo, Stable Audio 3, Beatoven, CassetteAI, Lyria, Seed Audio), lipsync, product shots, image-to-3D, try-on, multi-angle/next-scene grids, explainer/UGC; output schemas as `outputFields`; per-feature recommendations; Higgsfield API re-check | `scripts/gen-cloud-models.py` (merged with parts 1 and 2: round 3 grew the generated catalog from 86 to 147 cloud models, 59 of the 61 new ones on part-3 endpoints), the hidden fal tools in `src/lib/catalog/models.ts`, `src/lib/catalog/shorts-models.ts`, `src/lib/layers.ts`, `tests/cloud-catalog.test.ts`, `tests/cloud-catalog-fixes.test.ts`, `tests/outputs.test.ts` |-| [`paid-model-apis-4.md`](paid-model-apis-4.md) / [`.json`](paid-model-apis-4.json) | Part 4 (2026-10-22): 114 endpoint records (89 fal, 22 Replicate, 2 Higgsfield, 1 World Labs; 100 new, 14 re-verified) for the round-4 features: erasing an object from a video, swapping or inserting one from a reference image, FPS boost and slow motion, SDR to HDR, pro codecs, FFmpeg compose (Ken Burns, slideshows, end cards, audio loops), OCR with boxes for Layers, Cinema Studio's 3D scene and recomposition, and the models released 2026-09-15 to 2026-10-22; recommended defaults, adapter quirks, gaps; schemas and prices only, no paid call | `scripts/gen-cloud-models.py` (merged with parts 1–3: round 4 grew the generated catalog from 147 to 191 cloud models, 40 of the 44 new ones on part-4 endpoints), Remove object (`src/lib/catalog/remove-object.ts`, `src/server/remove-object.ts`), Genjutsu (`src/lib/catalog/genjutsu.ts`), the 3D scene (`src/lib/scene3d.ts`, `src/lib/catalog/cinema.ts`), `tests/cloud-catalog.test.ts`, `tests/cloud-catalog-4.test.ts`, `tests/outputs.test.ts` |+| [`paid-model-apis-4.md`](paid-model-apis-4.md) / [`.json`](paid-model-apis-4.json) | Part 4 (2026-10-22): 114 endpoint records (89 fal, 22 Replicate, 2 Higgsfield, 1 World Labs; 100 new, 14 re-verified) for the round-4 features: erasing an object from a video, swapping or inserting one from a reference image, FPS boost and slow motion, SDR to HDR, pro codecs, FFmpeg compose (Ken Burns, slideshows, end cards, audio loops), OCR with boxes for Layers, Cinema Studio's 3D scene and recomposition, and the models released 2026-09-15 to 2026-10-22; recommended defaults, adapter quirks, gaps; schemas and prices only, no paid call | `scripts/gen-cloud-models.py` (merged with parts 1–3: round 4's first part grew the generated catalog from 147 to 191 cloud models, 40 of the 44 new ones on part-4 endpoints; its second part added 7, none on part-4 endpoints), Remove object (`src/lib/catalog/remove-object.ts`, `src/server/remove-object.ts`), Genjutsu (`src/lib/catalog/genjutsu.ts`), the 3D scene (`src/lib/scene3d.ts`, `src/lib/catalog/cinema.ts`), Layers' cloud text detection with Florence-2 (`src/lib/layers.ts`), Click to Ad's cloud end card (overlay image and zoom clip, `src/lib/catalog/marketing.ts`), `tests/cloud-catalog.test.ts`, `tests/cloud-catalog-4.test.ts`, `tests/outputs.test.ts` || [`comfyui-oss.md`](comfyui-oss.md) / [`.json`](comfyui-oss.json) | Best open-weight model per capability (23 capabilities, 122 ranked options) with files, URLs, settings, VRAM, licenses; 170 LoRAs (camera, VFX, style, speed) with triggers; ComfyUI API notes | Open model choices in `src/lib/catalog/models.ts`, `scripts/gen-oss-loras.py` → `src/lib/catalog/oss-loras.generated.ts` || [`comfyui-oss-2.md`](comfyui-oss-2.md) / [`.json`](comfyui-oss-2.json) | Open-weight answers to the remaining gaps: Chatterbox / IndexTTS-2 voice cloning and dialogue, voice conversion, VACE extend/reframe, Wan-Move, relight, video matte and depth, multi-shot concat, next-scene storyboards, AI-Toolkit character LoRAs; full graphs validated against a live ComfyUI with pinned node packs | The 20 workflows it added (`scripts/comfy/library.spec.mjs`, `scripts/comfy/build-library.mjs`), open models in `src/lib/catalog/models.ts`, `aiToolkitJob` in `src/lib/catalog/training.ts`, pins in `scripts/comfy/install-comfyui.sh` || [`comfyui-oss-3.md`](comfyui-oss-3.md) / [`.json`](comfyui-oss-3.json) | Part 3: open-weight ComfyUI routes for the round-3 features — Qwen-Image-Layered (+ Layered-Control), style references for moodboards, a Z-Image hex-palette graph, segment cutting and Wan 2.2 Fun VACE restyle, per-frame Mixed Media, Stable Audio 3 / Foley / ThinkSound SFX, MelBand + Qwen3-ASR dub preparation, ASR captions and burn-in, Qwen3.5 / Gemma 4 translation, InfiniteTalk / LatentSync lip re-sync, TRELLIS.2 / Hunyuan3D 2.1, FLUX.2 [klein] try-on, contact-sheet grids and Soul Cast sheets; 29 graphs validated on a live ComfyUI with pinned packs, real CPU runs of segments and burn-in, licences, weights and risks | The 29 hand-built graphs of the "comfyui-oss-3" section of `scripts/comfy/library.spec.mjs` (`scripts/comfy/hand-built/`), `scripts/comfy/build-library.mjs`, pack pins in `scripts/comfy/install-comfyui.sh` and `scripts/comfy/install-isolated-worker.sh`, the round-3 open models in `src/lib/catalog/models.ts`, `tests/open-engine.test.ts` |-| [`comfyui-oss-4.md`](comfyui-oss-4.md) / [`.json`](comfyui-oss-4.json) | Part 4 (2026-10-22): open-weight ComfyUI routes for round 4 — text lines with boxes for Layers (OvisOCR3 / Qwen3.5 through core `TextGenerate`), erasing an object from a video (Wan 2.1 VACE 14B + SAM 3.1, by name or painted; Netflix VOID for shadows and reflections), swap and insert (the Genjutsu equivalents), Ken Burns over a still, audio loops and joins with crossfades, FPS boost and pro output formats, still to clip and a logo end card, new open models 2026-09-15 to 2026-10-22, and the critic's additions (a MoGe scene mesh for Cinema's 3D scene, subject splats, reference-video briefs); 14 researched graphs plus the critic's 3, all accepted by a live CPU ComfyUI with no new node packs, 10 run for real on CPU (the 8 model-free ones, OCR and the critic's MoGe scene mesh); licences, VRAM, weights and risks | The 17 hand-built graphs of the "comfyui-oss-4" section of `scripts/comfy/library.spec.mjs` (`scripts/comfy/hand-built/`), `scripts/comfy/build-library.mjs`, the Remove object and Genjutsu open models in `src/lib/catalog/models.ts`, `src/lib/catalog/remove-object.ts`, `src/lib/catalog/genjutsu.ts`, the 3D scene (`src/lib/scene3d.ts`, `src/lib/catalog/cinema.ts`), Ken Burns, crossfades and FPS Boost maths (`src/lib/av/ken-burns.ts`, `crossfade.ts`, `fps.ts`), `tests/comfy-library-4.test.ts`, `tests/video-finish.test.ts` |+| [`comfyui-oss-4.md`](comfyui-oss-4.md) / [`.json`](comfyui-oss-4.json) | Part 4 (2026-10-22): open-weight ComfyUI routes for round 4 — text lines with boxes for Layers (OvisOCR3 / Qwen3.5 through core `TextGenerate`), erasing an object from a video (Wan 2.1 VACE 14B + SAM 3.1, by name or painted; Netflix VOID for shadows and reflections), swap and insert (the Genjutsu equivalents), Ken Burns over a still, audio loops and joins with crossfades, FPS boost and pro output formats, still to clip and a logo end card, new open models 2026-09-15 to 2026-10-22, and the critic's additions (a MoGe scene mesh for Cinema's 3D scene, subject splats, reference-video briefs); 14 researched graphs plus the critic's 3, all accepted by a live CPU ComfyUI with no new node packs, 10 run for real on CPU (the 8 model-free ones, OCR and the critic's MoGe scene mesh); licences, VRAM, weights and risks | The 17 hand-built graphs of the "comfyui-oss-4" section of `scripts/comfy/library.spec.mjs` (`scripts/comfy/hand-built/`), `scripts/comfy/build-library.mjs`, the Remove object and Genjutsu open models in `src/lib/catalog/models.ts`, `src/lib/catalog/remove-object.ts`, `src/lib/catalog/genjutsu.ts`, the 3D scene (`src/lib/scene3d.ts`, `src/lib/catalog/cinema.ts`), Ken Burns, crossfades and FPS Boost maths (`src/lib/av/ken-burns.ts`, `crossfade.ts`, `fps.ts`), Layers' open text detection (`oss-ocr-lines` in `src/lib/catalog/models.ts`, `src/lib/ocr.ts`), Content Factory's open reading of a reference clip (`oss-reference-brief`, `src/lib/catalog/content-factory.ts`, `src/server/content-factory.ts`), Click to Ad's open end card (`oss-append-endcard`, `oss-still-to-clip`, `src/lib/catalog/marketing.ts`), `tests/comfy-library-4.test.ts`, `tests/video-finish.test.ts`, `tests/ocr.test.ts` || [`comfyui-workflow-library.md`](comfyui-workflow-library.md) | The ComfyUI library as of round 2 (73 workflows, incl. the 20 comfyui-oss-2 additions), plus the 17 comfyui-oss-4 workflows of round 4 (its section 11): sources, validation results, bindings, models and sizes, custom nodes, quirks. The library now has 139 workflows. Of the 42 added in round 3 (115 then), 31 are described in [`scripts/comfy/README.md`](../../scripts/comfy/README.md) ("Round-3 workflows"); the other 11 (`selftest-meta-batch`, `frame-extract`, `v2a-hunyuan-foley`, `product-shot-qwen-edit-2509`, `audio-timeline` and the six `video-concat-sound{1,2}-{2,3,4}` joins) only in their manifest notes and `scripts/comfy/library.spec.mjs`. Of the other 7 added in round 4, the five video-finishing graphs (`interpolate-rife-fps`, `upscale-video-esrgan-chunked`, `upscale-video-seedvr2-chunked`, `video-export-pro-chunked`, `video-sdr-to-hdr-exr`) are in `scripts/comfy/README.md` ("Round-4 video finishing"); `image-vectorize-vtracer` and `video-concat-encoded` only in their manifest notes and `scripts/comfy/library.spec.mjs` | `workflows/comfyui/manifest.json`, `src/server/providers/comfyui.ts`, `scripts/comfy/library.spec.mjs` || [`higgsfield-studios.md`](higgsfield-studios.md) / [`.json`](higgsfield-studios.json) | Screen-level research for Cinema Studio 4.0 (workspace, Director's Panel with all 50 palettes + hex, 7 lighting presets, 33 camera moves, Emotion Wheel, Soul Cast fields, image grid/3D, video modes, limits, validation copy, credit costs), Shorts Studio (44 presets), Mixed Media (33 presets), Instadump; Fuobe build plan per feature | Cinema Studio (`src/lib/catalog/cinema.ts`, `tests/cinema.test.ts`), Shorts Studio (`src/lib/catalog/shorts.ts`), Mixed Media (`src/lib/catalog/mixed-media.ts`) |-| [`higgsfield-image-studios.md`](higgsfield-image-studios.md) / [`.json`](higgsfield-image-studios.json) | Screen-level UX of Layers (decomposition settings and cost, 11 editor tools, Edit text, exact zip exports), Photodump / Instadump (packs with photo counts), Fashion Factory (6 templates, 5 steps), Moodboards (5–80 images, 33 curated), Soul HEX (50 palettes with exact hex, manual editor rules), all 106 Soul v1 + 33 Soul 2.0 presets with ids and categories, Character Sheet / Soul Cast options, Soul Location; open and cloud routes and a Fuobe build plan | `scripts/gen-higgsfield-presets.py` → `src/lib/catalog/higgsfield-presets.generated.ts`; `src/lib/catalog/palettes.ts` (Soul HEX), `src/lib/catalog/packs.ts` (Photodump, Fashion Factory, Character Sheet), Soul Cast / Location in `src/lib/catalog/cinema.ts`, `src/components/photodump/subject.tsx`, the Layers studio (`src/lib/layers.ts`) |+| [`higgsfield-image-studios.md`](higgsfield-image-studios.md) / [`.json`](higgsfield-image-studios.json) | Screen-level UX of Layers (decomposition settings and cost, 11 editor tools, Edit text, exact zip exports), Photodump / Instadump (packs with photo counts), Fashion Factory (6 templates, 5 steps), Moodboards (5–80 images, 33 curated), Soul HEX (50 palettes with exact hex, manual editor rules), all 106 Soul v1 + 33 Soul 2.0 presets with ids and categories, Character Sheet / Soul Cast options, Soul Location; open and cloud routes and a Fuobe build plan | `scripts/gen-higgsfield-presets.py` → `src/lib/catalog/higgsfield-presets.generated.ts`; `src/lib/catalog/palettes.ts` (Soul HEX), `src/lib/catalog/packs.ts` (Photodump, Fashion Factory, Character Sheet), Soul Cast / Location in `src/lib/catalog/cinema.ts`, `src/components/photodump/subject.tsx`, the Layers studio (`src/lib/layers.ts`), the evaluation harness's Soul suite (`scripts/eval/gen-cases.mjs` and `scripts/eval/lib/recipes.mjs` read the look ids) || [`higgsfield-marketing-agents.md`](higgsfield-marketing-agents.md) / [`.json`](higgsfield-marketing-agents.json) | Marketing Studio (7 categories, 17 formats, 1,074 templates, 9 UGC hooks, 14 settings, the job builders and limits), Brand Kit and products, Ads Studio, Ad Multiplier, Click to Ad, Faceless Studio and Explainer (styles, genres, lengths, costs), Canvas (node menu, templates), Katana, Virality Predictor (output fields, TRIBE v2), the Assets library, and Supercomputer's Skills, Projects and Memory; a Fuobe build plan | `src/lib/catalog/marketing.ts` (Marketing Studio, Ads Studio, Ad Multiplier, Click to Ad), `src/lib/catalog/faceless.ts` and `tests/faceless.test.ts` (Faceless, Explainer), Canvas (`src/lib/catalog/canvas.ts`), Katana (`src/lib/av/katana.ts`), Virality (`src/lib/av/virality.ts`, `docs/workers/tribe-v2.md`), the Library (`src/server/library.ts`), Assist skills, projects and memory (`skills/`, `src/server/skills.ts`, `src/server/assist/projects.ts`, `src/server/assist/memory.ts`) |-| [`higgsfield-delta-4.md`](higgsfield-delta-4.md) / [`.json`](higgsfield-delta-4.json) | What changed at Higgsfield between the round-3 inventory and 2026-10-22, read from the changelog, the production web bundle, its i18n catalogs and public endpoints (logged-in screens not observed): new changelog entries, unannounced studios found in the bundle (Content Factory, 3D Jutsu, Evolution…), new models, a prioritized table of 22 gaps, and screen-level detail for Remove object, Genjutsu and Genjutsu Lite, the Upscale and video-tools menu (FPS Boost, SDR to HDR, codecs, Depth Map and Remove Background options), Cinema Studio's 3D scene, the AI Influencer builder, Content Factory, Canvas extras, per-frame Mixed Media, the Assets library and Community, notifications, Higgsfield's CLI and skills; verified plan prices | The round-4 work and the [STATUS](../STATUS.md) gap list: Remove object (`src/lib/catalog/remove-object.ts`), Genjutsu (`src/lib/catalog/genjutsu.ts`), Higgsfield's four video upscalers in `scripts/gen-cloud-models.py`, the Remove background and Depth map options (`tests/video-tool-options.test.ts`), the 3D scene and its viewer (`src/lib/scene3d.ts`, `src/lib/catalog/cinema.ts`, `src/components/cinema/scene-viewer.tsx`) |+| [`higgsfield-delta-4.md`](higgsfield-delta-4.md) / [`.json`](higgsfield-delta-4.json) | What changed at Higgsfield between the round-3 inventory and 2026-10-22, read from the changelog, the production web bundle, its i18n catalogs and public endpoints (logged-in screens not observed): new changelog entries, unannounced studios found in the bundle (Content Factory, 3D Jutsu, Evolution…), new models, a prioritized table of 22 gaps, and screen-level detail for Remove object, Genjutsu and Genjutsu Lite, the Upscale and video-tools menu (FPS Boost, SDR to HDR, codecs, Depth Map and Remove Background options), Cinema Studio's 3D scene, the AI Influencer builder, Content Factory, Canvas extras, per-frame Mixed Media, the Assets library and Community, notifications, Higgsfield's CLI and skills; verified plan prices | The round-4 work and the [STATUS](../STATUS.md) gap list: Remove object (`src/lib/catalog/remove-object.ts`), Genjutsu (`src/lib/catalog/genjutsu.ts`), Higgsfield's four video upscalers in `scripts/gen-cloud-models.py`, the Remove background and Depth map options (`tests/video-tool-options.test.ts`), the 3D scene and its viewer (`src/lib/scene3d.ts`, `src/lib/catalog/cinema.ts`, `src/components/cinema/scene-viewer.tsx`), Content Factory (`src/lib/catalog/content-factory.ts`), the AI Influencer builder (`scripts/gen-influencer-options.py` → `src/lib/catalog/influencer-options.generated.ts`, `src/lib/influencer.ts`, `tests/influencer.test.ts`) || [`higgsfield-originals-5.md`](higgsfield-originals-5.md) / [`.json`](higgsfield-originals-5.json) | What each of Higgsfield's 22 in-house products is built on, with 101 evidence items rated confirmed, likely, speculative or unknown (help center, blog, changelog, the production web client, public cost endpoints, price fingerprints). The answer is partly yes: some are open models with public LoRAs under a Higgsfield name (Angles, Animate / Recast, Infinite Talk, Depth Map, Remove Background), some are partner models with Higgsfield's prompts and UI (Cinema Studio 4.0 on Seedance 2.5, Shorts on Gemini Omni Flash, Marketing Studio Image and Ads Studio on GPT Image 2.5), and Soul, Soul ID and DoP are self-hosted bases with LoRA presets. Also the rule from Higgsfield's Terms of Use: Fuobe never trains on Higgsfield outputs or preview media | Not used by code yet: planning research for the Fuobe Originals series (see [STATUS](../STATUS.md), "What's next") |-| [`fuobe-originals-recipes-5.md`](fuobe-originals-recipes-5.md) / [`.json`](fuobe-originals-recipes-5.json) | Open-weight recipes to rebuild each of those products as a Fuobe Original, on ComfyUI and on hosted open models: 45 hosted LoRA endpoints (37 fal, 8 Replicate) with fields, limits and prices, trainers, the licence rule (Apache/MIT bases or LTX-2.x only), Fuobe Soul (Z-Image Turbo with three LoRA slots), all 139 Soul presets mapped (16 should get a Fuobe-trained LoRA), motions and effects, studio recipes (Genjutsu, Mixed Media, Cinema Studio, Upscale, Speak and others), what replaces each Higgsfield model when the provider is removed, and a 14-package build plan (O0 to O13). Nothing was run on a GPU or a paid API, so none of it is a quality result | Not used by code yet: planning research for the Fuobe Originals series. It records a decision to stop calling Higgsfield, which the code doesn't act on yet: the Higgsfield provider is still used |+| [`fuobe-originals-recipes-5.md`](fuobe-originals-recipes-5.md) / [`.json`](fuobe-originals-recipes-5.json) | Open-weight recipes to rebuild each of those products as a Fuobe Original, on ComfyUI and on hosted open models: 45 hosted LoRA endpoints (37 fal, 8 Replicate) with fields, limits and prices (13 now with their full input schemas, plus the plain endpoints of LTX-2.3 22B and FLUX.2 [klein] 4B, read by `scripts/fetch-hosted-schemas.py`), trainers, the licence rule (Apache/MIT bases or LTX-2.x only), every LoRA it uses (not the rejected ones) pinned to exact bytes (SHA-256 and size, plus the commit for Hugging Face files, read by `scripts/fetch-lora-pins.py`), Fuobe Soul (Z-Image Turbo with three LoRA slots), all 139 Soul presets mapped (16 should get a Fuobe-trained LoRA), motions and effects (the BTS motion LoRA is on licence hold), studio recipes (Genjutsu, Mixed Media, Cinema Studio, Upscale, Speak and others), what replaces each Higgsfield model when the provider is removed, and a 14-package build plan (O0 to O13). Nothing was run on a GPU or a paid API, and the evaluation harness hasn't written any results to it yet, so none of it is a quality result | `scripts/gen-lora-library.py` → `src/lib/catalog/lora-library.generated.ts` (Settings → LoRAs and the pinned downloads in `src/server/loras.ts`; no preset takes its LoRAs from it yet), `scripts/gen-cloud-models.py` (`hostedLoraEndpoints` and `hostedBaseEndpoints`: the LoRA fields and schemas of seven hosted open models: Z-Image Turbo and the six added in round 4's second part, which with Seedream 5.0 Flash grew the generated catalog from 191 to 198), the evaluation harness (`scripts/eval/lib/recipes.mjs`, `scripts/eval/gen-cases.mjs`: the Soul and DoP recipes and cases; `pnpm eval:promote --record` can write verdicts back), `tests/lora-library.test.ts`, `tests/cloud-catalog.test.ts`, `tests/eval-harness.test.ts`. It records a decision to stop calling Higgsfield, which the code doesn't act on yet: the Higgsfield provider is still used, and only the evaluation harness skips jobs that would go through Higgsfield || [`ux-audit-4.md`](ux-audit-4.md) | UX and speed audit of Fuobe at `d781de1` (round 3), measured against Liner's design language and Higgsfield's flows: cold loads, route changes and interactions at 1440 px and 390 px (CPU slowed 4x), JavaScript per route, axe accessibility results, layout shift, what already works, and ranked findings (P0 to P3), each with its route, component, evidence and fix; no code changed | Round 4's onboarding, shell and flow work: Save & test and the Get started card (`src/components/settings-form.tsx`, `src/components/get-started.tsx`, `src/lib/connections.ts`, `tests/connections.test.ts`), the Assist offline planner (`src/server/assist/agent.ts`, `tests/assist-suggestions.test.ts`), Home's Start (`src/components/home-view.tsx`), the skip link, landmarks and ⌘K palette (`src/components/app-sidebar.tsx`, `src/components/command-palette.tsx`) || [`liner-ui.md`](liner-ui.md) | Liner's (liner.com — liner.app itself is a parked domain) design language: tokens, layout, composer, microcopy; the Fuobe theme derived from it | `src/app/globals.css`, `src/components/studio/` |-To refresh: re-run the research, then `pnpm gen:catalog` (cloud models, Higgsfield models and presets, LoRA map) and `pnpm test` (catalog integrity tests catch broken references). Workflow changes go through `scripts/comfy` (`npm run build -- <ids>` and `node validate-workflows.mjs <ids>` against a live ComfyUI).+To refresh: re-run the research, then `pnpm gen:catalog` (cloud models, Higgsfield models and presets, LoRA map, LoRA library, AI Influencer options) and `pnpm test` (catalog integrity tests catch broken references), and `pnpm eval:validate` (the evaluation harness's generated suites must match the research). New or changed LoRAs in `fuobe-originals-recipes-5.json` are pinned with `python3 scripts/fetch-lora-pins.py`, and new hosted LoRA endpoints read with `python3 scripts/fetch-hosted-schemas.py` (both need the network and aren't part of `gen:catalog`). Workflow changes go through `scripts/comfy` (`npm run build -- <ids>` and `node validate-workflows.mjs <ids>` against a live ComfyUI).