Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Workflows: a graph that passed its ComfyUI check shows a Checked mark

Adarsh0f94a7550343
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 3e6594cc..b725df7c 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -26,7 +26,7 @@ Earlier, round 5, part 1's checks (PR #14) ran twice on the PR's branch, `claude
| `pnpm test` (Vitest, 224 files, 3,462 tests) | all 3,462 pass in PR #15's final run (at 620ba67), with no unhandled errors. The run sets `FUOBE_ACCOUNT_DISK_FREE_GB=1`: this disk has less free space than main's floor for accounts, and without it `gpu-api`'s 409 test gets 503, on `main` too. PR #15 also fixes five of main's tests that failed on this machine (test files only: `settings-links`, `local-llm`, `recipes`, `account-uploads`, and the notifications browser check) and three bugs already on main that the checks hit (each its own commit: `/settings`' hydration error, remote-fetch's "Controller is already closed", and file responses opening files before their body is read). New in round 5, part 2: Split soundtrack (`split-soundtrack`: the model and channels a run gets, the plan, the mixer, the audio-tools routes in demo mode and the export in parts; `comfy-dbs`, 17: the manifest entry, the install script, the bindings, which DBS models the host has, a finished job's outputs, the licences), MOSS-Image (`moss-image`, 12: fal and your GPU, the models that read layouts, the Settings rows; `layout-prompt`, 29: the layout compiler and its checks; `comfy-library-7`, 7: the graph and its bindings), the fly path (`camera-path` and `cinema-path`, 50: presets, editing a path, H3 Max's trajectory, per-frame cameras, the plan on both engines, Film this path through Cinema's API in demo mode), the turnaround (`turnaround`, 23, and `turnaround-api`, 9: views, what a sheet or a character offers, Frames mode's chain, the camera route's words, the cloud payloads, a Soul Cast take), launch prices (`launch-prices`, 11: the catalog keeps both prices, the server prices a run on its day, the browser shows that day's price and none while a page prerenders), the PR's routes under public sign-up (`public-signup-tools`, 12) and the data-folder repair (`dropped-branch-migrations`, 5); `media-probe`, `webm`, `chains`, `canvas`, `outputs` and a few others gained cases. PR #15 also fixes three of main's tests (test files only; they failed on `main` in this container too): `settings-links` ignores other apps' "Settings →" text, `local-llm` also accepts `UND_ERR_SOCKET`, and `recipes`' fake Ollama lists its models. Earlier, in PR #14's run, 176 files and 2,884 tests passed. The local merge adds `local-llm` (29), `model3d-finish` (16), `model3d-runner` (4), `model3d-webm` (2), `covers-from-masters` (5) and `preset-covers` (6: the real covers manifest against `public/previews`, its importers and its cache header); `preview-media.test.ts` is gone with the old card media. On Windows, 41 tests and 66 temp-folder cleanups (EPERM) fail, all of them on `origin/main` too: POSIX paths, CRLF checkouts, `python3` and Ctrl+C. Round 5, part 1 added, and the suite still runs: skills that run by themselves (`recipes`, 21 tests: 3 CSV rows giving 3 batches and one bad row starting nothing, a studio-tool run with each row stamped, the plan check on both engines, a dry run with Demo mode off and no keys, re-checks after a retired, switched-off or repriced model, the 409 when a recipe changes during a check, the 422 for a header-only CSV, look judging against a fake Ollama; `recipe`, 28: the format itself, with parsing, placeholder and graph refusals, fill and compile, CSV rows, the .zip export that never carries checks, and the Run it section), the skill builder (`recipe-builder`, 23: a cut-out → edit → image-to-video chain as 3 steps, an upload used twice as one input, the refusals by studio, the Translate & dub, Katana and Captions lifts, a draft checked and saved with Demo mode off and no keys, 409 for a taken name, 422 for a failing plan), the open tools (`open-tools`, 25: Fuobe Angles' words, size and camera-at-rest refusal, old Angles runs planning again, Speak priced on the voice and re-priced at submit, the cut-voice note, the GPU's 40 s refusal, the face mosaic's steps, pixels and fallbacks, the HDR LoRA endpoint, VDA Large not the default), Marketing on Originals (`originals-marketing`, 21: routes per engine, the product-shot graph swap, the fal LoRA payload, no LoRA node loaded twice, refusal while the try-on LoRA is off, every step pinned to the studio's engine, the Fashion fallbacks, the casting look on the Soul Cast graph), Mixed Media and Shorts on Originals (`mixed-shorts-originals`, 21: defaults, the 14 look LoRAs, frame counts and per-megapixel prices, both engines' plans, Smooth, frames ÷ 16 billing, `preprocess: true` and no duplicate first frame in Fuobe Shorts' payload, DoP's 32 Mixed Media effects, a civitai LoRA left out without a key, the 17-frame and 5 fps refusals), Evolution (`evolution` 16, `evolution-api` 7, `evolution-comfy` 5: the intensities, the fal payload and price, plans on both engines, demo runs through the mock provider, refusals, a planned segment bound into the graph, and the graph's own schedule worked out for each intensity), Popcorn looks (`popcorn-looks`, 9: both engines, the partner switch, the next-scene LoRA in the fal payload, prices, a 21:9 look board's film at 21:9), Effects 2.0 chains (`effect-chains`, 2) and Fixes 5 (`ollama-reach`, 10, against a stand-in Ollama; `comfy-install`, 5: the H3 install commands run twice against local git repos; `edit-video-pricing`, 3: Happy Horse priced on the clip, re-priced from $1.40 to $3.36 on the server and a 40 s clip refused, with fal stubbed; `settings-links`, 3: every `/settings#…` link and every "Settings → …" text names a real section). The Assist fix adds a test that declines a memory on a real thread. Round 4, part 5 added, and the suite still runs: the Character Swap Studio (`swap-studio`, 48 tests: shots, segments and continuation, prompts, masks, takes, assembly and prices; `swap-studio-edit`, 17; `swap-studio-api`, 9: the demo provider end to end through the server on both engines, a continuation waiting for its take, jobs stopped when a clip is removed, a 404 after delete; `comfy-swap-studio`, 14: the two new graphs rewritten per job through the real provider on the library files, the LoRA download, the master's tail, mask splices and the memory refusal), AVI headers (`avi-probe`, 3), ComfyUI reachability (`comfy-reach`, 10: busy, refused, a silent port, shared checks, chain steps waiting, a cloud step not waiting, an old address's check not overwriting a new one; against a stand-in HTTP server, a silent socket, closed ports and a fetch that times out) and the O7 guard (`no-higgsfield`, 28: it scans `src`, `scripts`, `bin`, `skills`, `workflows`, `package.json` and the README outside its upgrade notes for the provider's id, key, env vars, identifiers and copy that offers it, and for retired model ids in code; it also checks the catalog and settings without it, REPLACED_BY and the moved operations, Cinema Studio's Director fields as prompt words, retired ids resolving in the API, retries, waiting steps, Canvas, Assist and the Library, the failed in-flight job and the migration on seeded rows). `higgsfield.test.ts` is gone. Round 4, part 4 added, and the suite still runs: Fuobe Cinema (fal payloads through the adapter with fetch stubbed: the plain endpoint, `camera_lora`, prompt expansion off, frames and sizes, the LoRA endpoint only with a LoRA, the backward-extend prequel and the edit body; prices per megapixel for each tier and shape; the Fun Camera pose and LoRA injection on the open graphs; the Soul Cast sheet's LoRA chain; the editor picked from the take; all 33 moves on both engines; a 30 s take plus an extend, Soul Cast, Soul Location and Reverse angle through the API in demo mode), Genjutsu and Character swap (prompts, canvas sizes, click mapping, windows, limits and licences; the real library graphs bound, Relay included, with expected values taken from the pack's sources; model and install pins; the first-frame step failing and Retry on the real chain runner; estimates with fal and Replicate keys and in demo mode; Describe against a fake Ollama server; H3 Person Removal), Soul ID (every trainer's request and the AI-Toolkit configs, a demo never replacing a real Soul ID, the background LoRA copy, a remote AI-Toolkit, a retired Soul ID training, every open model of a family taking the LoRA; all against a fake network), Models & licences (switches, fallbacks, chains refused before anything is queued, the 422 naming the switch, the settings API round trip, the studio menus), share links (hashed tokens, expiry, files limited to one share, 404 when revoked, expired or trashed, hidden prompts, the paths the proxy opens, the wrong-token guard) and the metadata cleaner, and Assist (time zones across clock changes, every rule and the cap; a fake-clock sweep with no double run, one catch-up after downtime, pause on project delete, Ask first and auto-run within the cap, Run now; connector URL rules, masking, the allow-list and the MCP request built through the real SDK against an SSE fake). Round 4, part 3 added, and the suite still runs: Fuobe Soul (the look generator and its licence, trigger and size rules, legacy ids, fal and Replicate payloads, the ComfyUI text-to-image and image-to-image graphs, prices per megapixel, picking the engine, `engine` on the REST route, the finish route, the Soul HEX lock, one test per review finding), Fuobe DoP (fal payloads through the adapter with fetch stubbed, when the Replicate fallback is picked and how it is priced, LoRA injection, sizing from the start frame and the end-frame node on the ComfyUI graphs, prices, the relight chain, the grade and its next step, the partner routes, Focus Change, the preset → LoRA map's licence, expert and alias rules, a Mix dry run in the harness), Image to 3D (38 tests: a plan per mode and engine, the blockers, the SAM 3D, Meshy multi-view, Tripo text, TripoSplat and rig payloads, the rig price, extra formats stored against a local HTTP server, the multi-view bindings with sides cut out, the open text-to-3D chain in demo mode) and Canvas (the new ports and node plans on both engines, a 30-clip concatenator folded into joins of at most 24, groups, tables and row re-runs, pages and the 409 at 20 pages, the silent track, the `video-fit-clip` binding). Round 4, part 2 added, and the suite still runs: the evaluation harness (its runner end to end against the real route handlers on the demo provider: spend cap, resume, 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 17 case files (`selftest` with 5 cases, `soul` with 139, `soul-cinema` with 6, `soul-hex` with 3, `soul-id` with 5, `dop` with 89, `dop-mix` with 5, `genjutsu` with 7, `mixed-media` with 7, `shorts` with 2, `speak` with 1, `cinema` with 9, and new in round 5, part 1: `marketing` with 7, `evolution` with 4, `popcorn` with 4, `angles` with 1; new in round 5, part 2: `turnaround` with 4), and the generated suites match the research. Round 5, part 1 points `mixed-media` and `shorts` at their Originals, with partner variants to compare (`shorts` gains a case through `/api/shorts/sessions`), and `eval validate` now refuses a case whose route body names an input the case doesn't have. Round 4, part 4 points `cinema` at Fuobe Cinema and `genjutsu` at the Genjutsu Originals, Character swap included, and `soul-id` now trains a character, a look and one case per family |
| `pnpm build` | passes at 620ba67 (348 of 348 static pages), with no Turbopack "dynamic filesystem access" tracing warnings. Since PR #15 no page reads a launch price while it prerenders: pages built by `pnpm build` show none until the browser has loaded them (`launch-prices` checks it). At 5774180 it had 2 ("causes tracing of the whole project"), from Fixes 5's AI-Toolkit photos-folder check; at 5404d20 that check carries the same `turbopackIgnore` hint as Fuobe's other data folders, and build, typecheck and the training tests were re-run with 0 warnings. PR #12 had 4; since PR #13 Soul ID's LoRA copy (`src/server/loras.ts`, `src/server/training.ts`) tells Turbopack not to trace its runtime paths, and Settings → About & licences reads only `package.json` and the workflow manifest |
-| ComfyUI workflow library | ✅ 148 of 158 workflows accepted by `POST /prompt` with no `node_errors` against a live CPU ComfyUI 0.41 with zero-byte placeholder weights in PR #15's final run (the manifest records 153 as validated). This checks graph structure, input names, types and file references, **not output quality**. PR #15 adds three graphs: `moss-image-t2i` (MOSS-Image on built-in nodes only, with Standard, Best and Fast settings; about 13 GB of files) and `wan21-i2v-uni3c-path` (the fly path: Wan 2.1 I2V 14B + Uni3C on built-in nodes; 48 GB, the library's highest), both accepted here; and `separate-soundtrack-dbs` (Split soundtrack, on the new ComfyUI-DBS pack; runs on a CPU), which this server can't load because it lacks the pack. That makes ten that fail here: it was accepted, and ran real splits, on a separate CPU ComfyUI with the pack (row below). In PR #14's run: 145 of 154, every workflow new in PR #14 included. PR #14 adds four graphs, none with a new node pack: `qwen-image-edit-2509-angles` (Fuobe Angles: Qwen-Image-Edit 2509 with the Lightning LoRA and dx8152's Multiple-angles LoRA; 24 GB), `image-face-mosaic-sam3` (the PixeletedFace look's face mosaic, core nodes and SAM 3.1; 4 GB), `video-depth-vda-large` (Video Depth Anything large; 8 GB) and `video-evolution-wan22-fun-vace` (Fuobe Evolution; 24 GB, the restyle graph's weights), and rebuilds `infinitetalk-wanwrapper` by hand with settings for Fuobe Speak and an optional FusioniX LoRA (its defaults stay the fast pass). The other nine, the same as in PR #13, 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` (ComfyUI-Whisper) and `image-vectorize-vtracer` (ComfyUI-ToSVG; validated and run on a CPU ComfyUI with the pack in PR #6), PR #12's three MiniMax H3 graphs: `video-character-swap-h3` (Akatz Labs' `h3_character_swap` pack), `video-character-swap-h3-relay` and `video-person-remove-h3-relay` (H3 Relay), and PR #13's two H3 Relay graphs for the Character Swap Studio: `video-character-swap-h3-segment` (one H3 Relay 2.0 pass with the approved mask, an anchor and the take before's FFV1 master as history; 24 GB) and `video-mask-h3-relay` (a SAM 3.1 person mask on any frame of a shot; 6 GB). These five were built and submitted to the CPU ComfyUI, which answered `missing_node_type`; they are recorded `validated: false` (before PR #12 every entry was validated; now 153 of 158 are), and the Workflows page shows them as unverified. `install-comfyui.sh` installs `h3_character_swap` by default and H3 Relay with `H3_RELAY=1`; neither is installed on this machine. Their core node classes are in `object_info.subset.json`, which lists 311 (306 in PR #14, 276 before PR #12). PR #10 added six graphs, none with a node pack: `z-image-turbo-i2i` (Fuobe Soul's image to image), `ltx23-i2v-lora`, `ltx23-flf2v-lora` and `ltx23-t2v-lora` (Fuobe DoP · LTX; nothing uses the text-to-video one yet), `image-to-3d-trellis2-multiview` (TRELLIS.2 Multi-view) and `video-fit-clip` (the Canvas concatenator) |
+| ComfyUI workflow library | ✅ 148 of 158 workflows accepted by `POST /prompt` with no `node_errors` against a live CPU ComfyUI 0.41 with zero-byte placeholder weights in PR #15's final run (the manifest records 153 as validated). This checks graph structure, input names, types and file references, **not output quality**. PR #15 adds three graphs: `moss-image-t2i` (MOSS-Image on built-in nodes only, with Standard, Best and Fast settings; about 13 GB of files) and `wan21-i2v-uni3c-path` (the fly path: Wan 2.1 I2V 14B + Uni3C on built-in nodes; 48 GB, the library's highest), both accepted here; and `separate-soundtrack-dbs` (Split soundtrack, on the new ComfyUI-DBS pack; runs on a CPU), which this server can't load because it lacks the pack. That makes ten that fail here: it was accepted, and ran real splits, on a separate CPU ComfyUI with the pack (row below). In PR #14's run: 145 of 154, every workflow new in PR #14 included. PR #14 adds four graphs, none with a new node pack: `qwen-image-edit-2509-angles` (Fuobe Angles: Qwen-Image-Edit 2509 with the Lightning LoRA and dx8152's Multiple-angles LoRA; 24 GB), `image-face-mosaic-sam3` (the PixeletedFace look's face mosaic, core nodes and SAM 3.1; 4 GB), `video-depth-vda-large` (Video Depth Anything large; 8 GB) and `video-evolution-wan22-fun-vace` (Fuobe Evolution; 24 GB, the restyle graph's weights), and rebuilds `infinitetalk-wanwrapper` by hand with settings for Fuobe Speak and an optional FusioniX LoRA (its defaults stay the fast pass). The other nine, the same as in PR #13, 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` (ComfyUI-Whisper) and `image-vectorize-vtracer` (ComfyUI-ToSVG; validated and run on a CPU ComfyUI with the pack in PR #6), PR #12's three MiniMax H3 graphs: `video-character-swap-h3` (Akatz Labs' `h3_character_swap` pack), `video-character-swap-h3-relay` and `video-person-remove-h3-relay` (H3 Relay), and PR #13's two H3 Relay graphs for the Character Swap Studio: `video-character-swap-h3-segment` (one H3 Relay 2.0 pass with the approved mask, an anchor and the take before's FFV1 master as history; 24 GB) and `video-mask-h3-relay` (a SAM 3.1 person mask on any frame of a shot; 6 GB). These five were built and submitted to the CPU ComfyUI, which answered `missing_node_type`; they are recorded `validated: false` (before PR #12 every entry was validated; now 153 of 158 are). `install-comfyui.sh` installs `h3_character_swap` by default and H3 Relay with `H3_RELAY=1`; neither is installed on this machine. Their core node classes are in `object_info.subset.json`, which lists 311 (306 in PR #14, 276 before PR #12). PR #10 added six graphs, none with a node pack: `z-image-turbo-i2i` (Fuobe Soul's image to image), `ltx23-i2v-lora`, `ltx23-flf2v-lora` and `ltx23-t2v-lora` (Fuobe DoP · LTX; nothing uses the text-to-video one yet), `image-to-3d-trellis2-multiview` (TRELLIS.2 Multi-view) and `video-fit-clip` (the Canvas concatenator) |
| Browser checks (Playwright against the production server, demo mode, ComfyUI and Ollama unreachable, one shared data folder) | ✅ all 29 pass in PR #15's final run (at 620ba67): PR #14's 25 and four new ones. `moss-image.mjs` also passes on a server with a fake fal key ($0.05 shown, nothing sent) and against the live CPU ComfyUI (Free on your GPU), and no server logged an uncaught exception. New, each at 1440 and 390 px, light and dark, with a sideways-scroll check: `split-soundtrack.mjs` (55 checks in demo mode: the empty tool, the cloud engine's "runs on your GPU" note, the open engine's preselected model, stereo stems and price; `--live` runs one split per source kind on a ComfyUI with ComfyUI-DBS, row below), `cinema-path.mjs` (the Path strip, + Keyframe and K, a move, Preview, Film on the cloud as an H3 Max take; on the open engine the path recorded in the browser, a real 81-frame 832x464 WebM, and the Uni3C take; the Path sheet and a finger drag at 390 px), `turnaround.mjs` (91 checks: the dialog from a finished Character Sheet, Fly around on a character's page with the three cloud routes and the consent line, Soul Cast's take in Cinema, a demo run to the film) and `moss-image.mjs` (the model menu on both engines from the keyboard, Options → Quality, the two Settings rows and their licence facts, the LoRA run's unknown price). **What failed:** `moss-image.mjs` failed 10 of its 110 checks. The run gave it no fal key and no ComfyUI, so its six price checks (two through the API) found demo prices, and "Best picked from the keyboard" failed at all four sizes (the setting still read Standard); it passed in full on its package branch, on a dev server with a fake fal key, and wasn't re-run that way here. `notifications.mjs`: its "Send a test" button also matches main's newer "Send a test message" button, so the click can't be placed (a test problem; this PR changes neither file). `skills-builder.mjs` passed every check but exits 1 on a page error, React's hydration error #418; it wasn't looked into. `open-tools.mjs` also passed on a second server with `FAL_KEY=anything`, and `no-horizontal-scroll.mjs` found 101 routes, `/audio/split` and `/connect` among them, all fitting 390 px in light and dark |
| Browser checks in round 5, part 1 (PR #14's runs, the same way) | ✅ all 25 pass in the second full run: PR #13's 18 and seven new ones. Each new one checks its pages for sideways scroll at 1440 and 390 px, light and dark; some flows run at one size only, as noted: `mixed-shorts-original.mjs` (Mixed Media on Fuobe Mixed Media by default, Per frame and Smooth on both engines and Fast in the cloud only, the partner frame editors still in the menu, the preview's "drawn like this" line, a demo render that finishes; Shorts on Fuobe Shorts with Gemini Omni Flash still a choice, and a demo session; then, with a fake fal key, dollar prices before anything runs), `marketing-originals.mjs` (flows at 1440 light: Marketing's model menu, Ads' "Pictures by" and its price, the AI Influencer default, Photodump's chips, Fashion's outfit and photoset steps and the next model when the try-on LoRA is switched off, the try-on LoRA in Settings), `open-tools.mjs` (the Angles app on its old recipe and old Angles runs planning again; Fuobe Angles' controls, prices, the GPU plan's LoRA words, the camera-at-rest refusal and a demo run; Fuobe Speak and Speak · Motion priced on the voice; VDA Large's non-commercial note; PixeletedFace as two demo steps; the new Settings rows), `popcorn-evolution.mjs` (Evolution end to end with the offline writer, the cut-direction note, a finished run with before/after and the GPU's 480p; Storyboard's No look chip, the Fuobe / Nano Banana Pro switch, a look, the price and a demo board; Canvas' Effects 2.0 chains opening Agamemnon), `skills-run.mjs` (the free check, one run and 3 CSV rows checked over the API, a bad row marked, the amber re-check, ⌘K's Run a skill, the switched-off notice, the full-screen form on a phone), `skills-builder.mjs` (3 results in the Library → Make a skill → 3 steps, a prompt set to Varies and a word input, Check it, Save, the prefilled Run form and a run with new words, at 1440 light and 390 dark; the ⋯ menu and layout at all four; the ⌘K viewer at 1440 light) and `fixes-5.mjs` (at 1440 light: Settings → Training against a stand-in AI-Toolkit, the H3 install commands read from the clipboard, Edit video's ≈ $3.36 for a 12 s Happy Horse clip and a 40 s clip blocked; its sideways check covers Settings and `/workflows`, so Edit video at 390 px and in dark is checked only by `no-horizontal-scroll.mjs`). `open-tools.mjs` also passed on a second server holding `FAL_KEY=anything`: cloud prices show before a run ($1.00 for Fuobe Speak's default 5 s, $2.40 for a 12 s voice, $0.018 for a Soul picture with its face-mosaic step), and nothing is sent to fal. PR #13's checks: `shell.mjs`, `no-horizontal-scroll.mjs` (every route at 390 px, light and dark: 99 routes in this run, now with a skill's Run form at `/assist/skills?run=<name>`; it finds new studio pages such as `/assist/scheduled` and `/settings/models` itself, but not the public `/s/<token>` page), `composer-flows.mjs`, `library-flows.mjs`, `cinema-scene.mjs`, `cinema-shortcuts.mjs`, `notifications.mjs`, `clipboard.mjs`, `layers.mjs`, `assist-flows.mjs`, `canvas-smoke.mjs`, `canvas-board.mjs` (20 checks), `canvas-open-dub.mjs` (9 checks, with Settings → Engine mode set to open source only for the run), `dop-flows.mjs` (its 2 cloud price checks need a fal key and were skipped), `eval-review.mjs` (the harness's report and blind A/B review pages), PR #12's `cinema-original.mjs` and `genjutsu-original.mjs`, and PR #13's `character-swap-studio.mjs`. `cinema-original.mjs` (1440 and 390 px, light and dark): Fuobe Cinema first in the model menu as an Original, with what runs on each engine; no Higgsfield in the menu or the project's context; Dolly In on LTX-2.3's camera LoRA, and a demo take that asked for it; 30 s shown as 30 s; no move badges for a partner model; the price before running; a still on Fuobe Soul Cinema cropped to 21:9 and graded in the feed; the open-engine menu (Fuobe Cinema, LTX-2.5, Wan 2.2 14B); Soul Cast on Fuobe Soul's Realistic look and Soul Location on its Movie look, with the grade applied. In PR #12's first full run it failed once at 390 px (the Soul Location button was swapped out mid-click while the folded Director panel re-rendered); that failure was never reproduced. Since PR #13 it and `genjutsu-original.mjs` wait for closing dialogs, sheets, menus and select lists to settle before the next click, which removes the likely cause; both passed in PR #13's run and in both of PR #14's full runs. `genjutsu-original.mjs` (1440 and 390 px, light and dark): Character swap's controls, limits and licence lines; each model's source badge; the swap LoRA's choices per engine and partners' resolutions; a demo run to the result; Describe my character, and its message without a text model; Use the clip's words; on the open engine Click them, the GPU line, SAM's detection numbers, the window and History lists and the mask switch on the Original's graph only; Motion and Restyle list the Originals first, Restyle has Soul looks, and no Higgsfield anywhere. `character-swap-studio.mjs` (58 checks): the whole flow in demo mode on the cloud engine (a project, the character, a clip, Detect edits, a cut at the playhead and Keep original, the transcript and Build shot prompts, a click on a frame and Track shot, a mask and a scene anchor approved, two segments with the second continuing from the first, takes compared and reviewed, Export decisions, the assembly with a download, and Finish shown as not available), then every stage at 1440 and 390 px, light and dark, with no sideways scroll; a GPU project's 24 fps copy, an AVI's browser copy on the cloud, the sidebar link, Genjutsu's hand-off making a project with its clip and character, and a 404 for an unknown project. `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). The Cinema, Genjutsu and Character Swap Studio checks also expect demo mode with ComfyUI unreachable, and so do PR #14's, except `open-tools.mjs` (it reads whether the app reaches ComfyUI and expects "Free" or "Demo · free" to match) and `fixes-5.mjs` (demo mode only); `popcorn-evolution.mjs` expects Ollama unreachable too, for the offline writer. `/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 in PR #15's run, as in both of PR #14's full runs. 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 |
diff --git a/src/app/api/comfyui/route.ts b/src/app/api/comfyui/route.ts
index 303f93ac..c902d381 100644
--- a/src/app/api/comfyui/route.ts
+++ b/src/app/api/comfyui/route.ts
@@ -1,4 +1,5 @@
import { connection } from "next/server";
+import type { ManifestWorkflow } from "@/lib/comfy";
import { basename } from "@/lib/gpu/requirements";
import { requestViewer } from "@/server/auth";
import { runnerFacts } from "@/server/computer/tasks";
@@ -46,8 +47,13 @@ export async function GET(request?: Request) {
generatedAt: manifest.generatedAt,
comfyuiCommit: manifest.comfyuiCommit,
workflows: manifest.workflows.map((w) => ({
- ...w,
+ ...(visitor ? forVisitor(w) : w),
models: w.models.map((m) => ({ ...m, present: inventory ? present.has(m.file) : null })),
})),
});
}
+
+/** A workflow as anyone but the owner gets it: `validated` only on a checked one (its mark on the Workflows page). */
+function forVisitor({ validated, ...w }: ManifestWorkflow): Omit<ManifestWorkflow, "validated"> & { validated?: true } {
+ return validated ? { ...w, validated } : w;
+}
diff --git a/src/components/workflows-view.tsx b/src/components/workflows-view.tsx
index 727228e5..9bb4d46e 100644
--- a/src/components/workflows-view.tsx
+++ b/src/components/workflows-view.tsx
@@ -19,7 +19,7 @@ import { modelCardOf } from "@/lib/licences";
import { cn } from "@/lib/utils";
import { capabilityGroup, usedByIndex, WORKFLOW_GROUPS, type ComfyRoute } from "@/lib/workflow-usage";
-type WF = Omit<ManifestWorkflow, "models"> & { models: (ManifestWorkflow["models"][number] & { present: boolean | null })[] };
+type WF = Omit<ManifestWorkflow, "models" | "validated"> & { validated?: boolean; models: (ManifestWorkflow["models"][number] & { present: boolean | null })[] };
interface ComfyStatus {
/** null: a visitor, who isn't told about the studio's own ComfyUI (their own is on /connect). */
@@ -118,7 +118,8 @@ async function downloadGraph(raw: string, name: string) {
}
}
-function WorkflowCard({ wf, usedBy }: { wf: WF; usedBy: string[] }) {
+/** `owner`: the studio's owner is looking (their badge names the graph's ComfyUI check either way). */
+function WorkflowCard({ wf, usedBy, owner }: { wf: WF; usedBy: string[]; owner: boolean }) {
const missing = wf.models.filter((m) => m.present === false && !m.optional).length;
const total = wf.models.reduce((a, m) => a + (m.optional ? 0 : (m.sizeGb ?? 0)), 0);
const source = workflowSource(wf.file);
@@ -134,13 +135,20 @@ function WorkflowCard({ wf, usedBy }: { wf: WF; usedBy: string[] }) {
<Badge variant="secondary" className="rounded-[4px] text-[11px]">
{wf.capability}
</Badge>
- {/* Not a warning: a graph the library's own check hasn't passed yet may still run (several made the site's previews). */}
- <Badge
- title={wf.validated ? "Passed the library's own ComfyUI check" : "This graph hasn't passed the library's own ComfyUI check yet"}
- className={cn("rounded-[4px] text-[11px]", wf.validated ? "bg-success/15 text-success" : "bg-muted text-muted-foreground")}
- >
- {wf.validated ? "validated" : "not yet checked"}
- </Badge>
+ {owner ? (
+ <Badge
+ title={wf.validated ? "Passed the library's own ComfyUI check" : "This graph hasn't passed the library's own ComfyUI check yet"}
+ className={cn("rounded-[4px] text-[11px]", wf.validated ? "bg-success/15 text-success" : "bg-muted text-muted-foreground")}
+ >
+ {wf.validated ? "validated" : "not yet checked"}
+ </Badge>
+ ) : (
+ wf.validated && (
+ <Badge title="Accepted by a real ComfyUI" className="rounded-[4px] bg-success/15 text-[11px] text-success">
+ <CheckCircle2 aria-hidden /> Checked
+ </Badge>
+ )
+ )}
</div>
</div>
<p className="text-[12px] break-words text-muted-foreground">
@@ -287,6 +295,8 @@ export function WorkflowsView({ routes = [] }: { routes?: ComfyRoute[] }) {
);
const data = q.data;
+ // The server answers `reachable: null` to anyone but the studio's owner (src/app/api/comfyui/route.ts).
+ const owner = data.reachable !== null;
const validated = workflows.filter((w) => w.validated).length;
return (
<div className="space-y-6">
@@ -315,7 +325,8 @@ export function WorkflowsView({ routes = [] }: { routes?: ComfyRoute[] }) {
/>
</div>
<span className="text-[12px] text-muted-foreground tabular-nums sm:ml-auto" aria-live="polite">
- {list.length === workflows.length ? `${workflows.length} workflows` : `${list.length} of ${workflows.length}`} · {validated} validated
+ {list.length === workflows.length ? `${workflows.length} workflows` : `${list.length} of ${workflows.length}`}
+ {owner && ` · ${validated} validated`}
</span>
</div>
)}
@@ -348,7 +359,7 @@ export function WorkflowsView({ routes = [] }: { routes?: ComfyRoute[] }) {
<>
<div ref={grid} className="grid grid-cols-[minmax(0,1fr)] gap-3 lg:grid-cols-2">
{list.slice(0, shown).map((wf) => (
- <WorkflowCard key={wf.id} wf={wf} usedBy={usedBy(wf.id)} />
+ <WorkflowCard key={wf.id} wf={wf} usedBy={usedBy(wf.id)} owner={owner} />
))}
</div>
{hasMore && (
diff --git a/tests/workflows-page-marks.test.ts b/tests/workflows-page-marks.test.ts
new file mode 100644
index 00000000..b6a59af8
--- /dev/null
+++ b/tests/workflows-page-marks.test.ts
@@ -0,0 +1,69 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
+
+// The Workflows page's marks come from GET /api/comfyui: the studio's owner gets each graph's `validated` as it is;
+// anyone else gets it on the graphs that passed, and the page shows those a Checked mark.
+
+vi.mock("next/server", async (importOriginal) => ({ ...(await importOriginal<typeof import("next/server")>()), connection: async () => {} }));
+
+const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-workflow-marks-"));
+process.env.FUOBE_DATA_DIR = dir;
+process.env.COMFYUI_URL = "http://127.0.0.1:9";
+process.env.FUOBE_PUBLIC_SIGNUP = "1";
+delete process.env.FUOBE_PASSWORD;
+
+const realFetch = globalThis.fetch;
+globalThis.fetch = (async () => new Response("not reachable in this test", { status: 599 })) as typeof fetch;
+
+const auth = await import("@/server/auth");
+const comfyuiRoute = await import("@/app/api/comfyui/route");
+const { loadManifest } = await import("@/server/providers/comfyui");
+
+const HOST = "localhost:3000";
+let owner = "";
+let account = "";
+beforeAll(() => {
+ auth.setPassword("install password");
+ owner = `${auth.SESSION_COOKIE}=${auth.createSession().value}`;
+ account = `${auth.SESSION_COOKIE}=${auth.createSession(auth.createAccount("[email protected]", "long enough").id).value}`;
+});
+afterAll(() => {
+ globalThis.fetch = realFetch;
+ try {
+ fs.rmSync(dir, { recursive: true, force: true });
+ } catch {}
+});
+
+type Listed = { id: string; validated?: unknown };
+const library = async (cookie?: string) =>
+ (await (await comfyuiRoute.GET(new Request(`http://${HOST}/api/comfyui`, { headers: { host: HOST, ...(cookie && { cookie }) } }))).json()) as {
+ reachable: boolean | null;
+ workflows: Listed[];
+ };
+
+describe("GET /api/comfyui", () => {
+ const manifest = loadManifest();
+ const passed = new Map(manifest.workflows.map((w) => [w.id, w.validated]));
+
+ it("gives the owner every graph's validated as the manifest has it", async () => {
+ const body = await library(owner);
+ expect(body.reachable).not.toBeNull();
+ expect(body.workflows.map((w) => [w.id, w.validated])).toEqual(manifest.workflows.map((w) => [w.id, w.validated]));
+ });
+
+ it.each([
+ ["a guest", undefined],
+ ["an account", "account"],
+ ])("gives %s validated on the graphs that passed, and on no other", async (_who, as) => {
+ const body = await library(as ? account : undefined);
+ expect(body.reachable).toBeNull();
+ expect(body.workflows).toHaveLength(manifest.workflows.length);
+ for (const w of body.workflows) {
+ if (passed.get(w.id)) expect(w.validated, w.id).toBe(true);
+ else expect("validated" in w, w.id).toBe(false);
+ }
+ expect(body.workflows.some((w) => w.validated === true)).toBe(true);
+ });
+});