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.

verify.sh: MOSS-Image's prices on the fal-key and live servers too

Claudea0c6e49f70ea
diff --git a/docs/handoff/verify.sh b/docs/handoff/verify.sh
index ec1c35b7..d1d1e76e 100755
--- a/docs/handoff/verify.sh
+++ b/docs/handoff/verify.sh
@@ -58,12 +58,13 @@ done
step e2e-eval-review timeout 600 node tests/e2e/eval-review.mjs
stop_port 3399
-# Hosted prices with a fake fal key (estimates only; nothing is sent to fal).
+# Hosted prices with a fake fal key (estimates only; nothing is sent to fal), MOSS-Image's $0.05 among them.
rm -rf "$S/data-fal"; mkdir -p "$S/data-fal"
stop_port 3401
FAL_KEY=anything COMFYUI_URL=http://127.0.0.1:1 FUOBE_DATA_DIR=$S/data-fal NEXT_TELEMETRY_DISABLED=1 pnpm start -p 3401 > "$L/server-fal.log" 2>&1 &
wait_up http://localhost:3401/ && echo "fal-price server up" >> "$SUM"
step e2e-open-tools-fal-prices timeout 1200 node tests/e2e/open-tools.mjs http://localhost:3401
+step e2e-moss-image-fal-prices timeout 1200 node tests/e2e/moss-image.mjs http://localhost:3401 --fal
stop_port 3401
# The live CPU ComfyUI: weight-free workflows through the app's own API.
@@ -74,6 +75,8 @@ wait_up http://localhost:3400/ && echo "live server up" >> "$SUM"
step e2e-comfyui-selftest timeout 2400 node tests/e2e/comfyui-selftest.mjs http://localhost:3400
step e2e-comfyui-canvas-concat timeout 2400 node tests/e2e/comfyui-canvas-concat.mjs http://localhost:3400
step e2e-comfyui-faceless-plus timeout 2400 node tests/e2e/comfyui-faceless-plus.mjs http://localhost:3400
+# MOSS-Image on the open engine with ComfyUI reachable: Free, not a demo (nothing is run).
+step e2e-moss-image-live timeout 1200 node tests/e2e/moss-image.mjs http://localhost:3400 --live
stop_port 3400
# Every workflow in the library posted to the live ComfyUI (never run); packs this server lacks show as failures.
diff --git a/tests/e2e/moss-image.mjs b/tests/e2e/moss-image.mjs
index 81332954..137f5fb3 100644
--- a/tests/e2e/moss-image.mjs
+++ b/tests/e2e/moss-image.mjs
@@ -6,8 +6,10 @@
// free (the preview API: no picker attaches a LoRA to MOSS yet). Each page at 1440 and 390 px, light and dark, without
// sideways scroll. The prices follow the server, as /api/status says it runs: without a fal key the cloud runs are free
// demos, and without a reachable ComfyUI so are the open engine's (both "Demo · free", as every model in demo mode).
-// Usage: node tests/e2e/moss-image.mjs [appUrl] [--shots <dir>] against the demo server (verify.sh), or with
-// FAL_KEY=anything and a reachable ComfyUI for the hosted price ($0.05, unknown with a LoRA) and Free on your GPU.
+// Usage: node tests/e2e/moss-image.mjs [appUrl] [--shots <dir>] [--fal] [--live] verify.sh runs it on each of its three
+// servers: demo mode, FAL_KEY=anything with --fal for the hosted price ($0.05, unknown with a LoRA), and the live ComfyUI
+// with --live for Free on your GPU. --fal and --live each fail the run when the server lacks a fal key or can't reach
+// ComfyUI, so those prices are never skipped unseen.
// Nothing is sent: Generate is never pressed. Exits 1 on a failed check.
import fs from "node:fs";
import path from "node:path";
@@ -31,6 +33,8 @@ const comfy = !!status.providers?.comfyui?.configured;
const demo = status.demoMode !== "off";
if (!fal) console.log('note: no fal key on this server: the cloud composer shows "Demo · free" (start it with FAL_KEY=anything for the hosted price)');
if (!comfy) console.log('note: ComfyUI is unreachable from this server: the open engine shows "Demo · free" too (Free once it is reachable)');
+if (argv.includes("--fal")) check("server: a fal key is set (--fal), so the hosted price is checked", fal);
+if (argv.includes("--live")) check("server: ComfyUI is reachable (--live), so Free on your GPU is checked", comfy);
const browser = await launch();
const contextFor = async (engine, width = 1440, colorScheme = "light") => {