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.

Labels say what happens: free test runs, paid runs and saves are named plainly

Adarsh45db5a1d9ce8
diff --git a/bin/lib/commands.mjs b/bin/lib/commands.mjs
index 056e3cb5..02c86ec9 100644
--- a/bin/lib/commands.mjs
+++ b/bin/lib/commands.mjs
@@ -733,11 +733,11 @@ async function skillRequest(ctx, view) {
/** A skill not checked on this engine gets its free plan check first (it prices every step; nothing runs). */
async function checkSkill(ctx, view, engine) {
- if (!ctx.values.json) ctx.note(`Checking /${view.name} on ${engineWords(engine)} first (free: it prices each step, nothing runs)…`);
+ if (!ctx.values.json) ctx.note(`Pricing /${view.name} on ${engineWords(engine)} first (free: nothing runs)…`);
const r = await ctx.client.request("POST", `/api/assist/skills/${enc(view.name)}/verify`, { json: { level: "plan", engine } });
if (r.ok) return;
const why = r.engines.flatMap((e) => e.plan.errors)[0];
- throw new ApiError(`/${view.name} doesn't run on ${engineWords(engine)} as it is${why ? `: ${why}` : ""}. Check it in Assist → Skills.`);
+ throw new ApiError(`/${view.name} doesn't run on ${engineWords(engine)} as it is${why ? `: ${why}` : ""}. Give it a free test run in Assist → Skills (nothing runs for real).`);
}
const priceSkill = (ctx, view, engine, body) => ctx.client.request("POST", `/api/assist/skills/${enc(view.name)}/estimate`, { json: { ...body, engine } });
@@ -765,7 +765,7 @@ async function skillsEstimate(ctx, name) {
return est.runnable ? EXIT.ok : EXIT.failed;
}
for (const line of estimateLines(est, view.title, { rows: req.rows, lineOf: req.lineOf })) ctx.print(line);
- if (est.runnable && !view.ready.includes(engine)) ctx.note(`Not checked on ${engineWords(engine)} yet: fuobe skills run checks it first, for free.`);
+ if (est.runnable && !view.ready.includes(engine)) ctx.note(`Not priced on ${engineWords(engine)} yet: fuobe skills run prices every step first, for free (nothing runs).`);
return est.runnable ? EXIT.ok : EXIT.failed;
}
diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md
index 3d1e7945..5b492186 100644
--- a/docs/DEVELOPMENT.md
+++ b/docs/DEVELOPMENT.md
@@ -51,7 +51,7 @@ node tests/e2e/mixed-shorts-original.mjs [url] # Mixed Media and Shorts on their
node tests/e2e/marketing-originals.mjs [url] # Marketing Studio, Ads Studio, the AI Influencer builder, Photodump and Fashion Factory start on the Originals, partners stay choices, the try-on LoRA's switch
node tests/e2e/open-tools.mjs [url] # the Angles and Fuobe Angles apps, Fuobe Speak in Lipsync priced on the voice, Depth map's large model, PixeletedFace's face mosaic, the new LoRA rows
node tests/e2e/popcorn-evolution.mjs [url] # Video tools → Evolution (direction, price, a demo run with before/after), Storyboard's looks and price, Canvas's Effects 2.0 chains
-node tests/e2e/skills-run.mjs [url] # a skill with a recipe: the free check, a run from the form and three from CSV rows, re-check, a switched-off skill, ⌘K
+node tests/e2e/skills-run.mjs [url] # a skill with a recipe: the free test run, a run from the form and three from CSV rows, Test again, a switched-off skill, ⌘K
node tests/e2e/skills-builder.mjs [url] # a 3-step chain made in the composer, turned into a skill from the Library, checked, saved and run with new words
node tests/e2e/fixes-5.mjs [url] # Settings → Training against a stand-in AI-Toolkit, the H3 packs' install commands, Edit video's clip price and window
node tests/e2e/split-soundtrack.mjs [url] [outDir] [--live] # Audio → Split soundtrack: the cloud engine's "runs on your GPU" note, the open engine's options and price, then a split of an audio file and a video: the stem tiles, the mixer, a preset, Export mix and Put back on the video; needs ffmpeg
diff --git a/docs/FEATURES.md b/docs/FEATURES.md
index 307585c4..6af1c4d9 100644
--- a/docs/FEATURES.md
+++ b/docs/FEATURES.md
@@ -35,7 +35,7 @@ Fuobe is a complete creative studio you can run yourself: 108 camera motions, 25
## Assist, skills, MCP and the command line
- **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**. **Scheduled tasks** run a request daily, weekly, every 1–168 hours or once, in your time zone; each run is a new chat that asks before it generates, or runs on its own within a cost cap ($2 a run by default). Your own **MCP connectors** (remote MCP servers, added in Settings → Assist · connectors) give Claude chats another app's tools: Anthropic's servers call them, so a local one needs a public tunnel, and their tools run without asking Fuobe, so each connector's Allowed tools list is the safeguard. Runs on Claude, a local model (Ollama, LM Studio, Unsloth Studio or another OpenAI-compatible server), or an offline planner (connectors need Claude)
-- **Skills that run by themselves:** **Make a skill from this…** (the ⋯ menu on a result) or **Make a skill** (the Library's selection bar) turns the steps behind your results, Edit and Animate chains made by hand included, into a skill of your own: pick the inputs that change next time, check it for free, save it. In **Assist → Skills**, a skill with a recipe (`recipe.json`: its steps and inputs) says "Runs by itself" and gets a **Run…** form: typed inputs, the price before it starts, the steps, and a Many tab for up to 50 CSV rows. No chat or AI is involved. A skill must pass a free check on an engine before it runs there, and asks for a new check when a model it uses is retired, switched off or repriced. ⌘K has "Run a skill", and a skill downloads as a .zip with its files. Translate & dub, Katana and Captions results can become skills; results from other studios are refused for now, naming the studio
+- **Skills that run by themselves:** **Make a skill from this…** (the ⋯ menu on a result) or **Make a skill** (the Library's selection bar) turns the steps behind your results, Edit and Animate chains made by hand included, into a skill of your own: pick the inputs that change next time, give it a free **Test run**, save it. In **Assist → Skills**, a skill with a recipe (`recipe.json`: its steps and inputs) says "Runs by itself" and gets a **Run…** form: typed inputs, the price before it starts, the steps, and a Many tab for up to 50 CSV rows. No chat or AI is involved. A skill must be priced on an engine (part of the free **Test run**) before it runs there; the test run then runs every step once with placeholder results, so nothing runs for real and nothing is spent. It asks for a new test run (**Test again**) when a model it uses is retired, switched off or repriced. ⌘K has "Run a skill", and a skill downloads as a .zip with its files. Translate & dub, Katana and Captions results can become skills; results from other studios are refused for now, naming the studio
- **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, the Character Swap Studio, Remove object, Content Factory, the AI Influencer builder, Evolution 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`](cli.md). `--engine` also picks an Original's engine, and `--look` a Fuobe Soul look (`fuobe generate --help` lists it; cli.md doesn't yet)
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 8ac42b36..c83f3388 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -189,7 +189,7 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la
|---|---|---|---|---|
| Supercomputer / Assist agent | 🟢 | Claude (claude-opus-5-5 by default; Manual offers claude-sonnet-5-5, claude-haiku-5-5 and claude-fable-5-1 with an effort level) | A local model's tool calling (Ollama, LM Studio, Unsloth Studio or another OpenAI-compatible server), or the offline rule-based planner | `/assist`: plans, prices, asks first (or auto-runs), chains steps with `after`. Modes Free / Smart / Manual; each chat's context is frozen when it starts and later changes arrive as "Context update" messages. The offline planner can make several takes and animate the one you pick ("animate 2"). `search_models` describes the Fuobe Originals as running on both engines, and a generate job can name a Soul `look` and an `engine` (without one it follows the user's engine). Models switched off in Settings → Models & licences leave `search_models` and the offline planner's picks. A plan naming a retired model runs on its replacement. Scheduled tasks and connectors: next rows |
| Assist skills | ✅ app · 🟢 with an LLM | Loaded into Claude's context with `/name` or `load_skill` | Same on a local model; 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 (SKILL.md, or since round 5, part 1 a .zip with the skill's files), turn on / off, upload .md / .zip / .skill (bounded unzip). Also offered as MCP prompts. A user skill can now carry a recipe and run by itself (next row) |
-| Skills that run by themselves, and the skill builder (Fuobe's own: Work2Skill W1 and W2) | ✅ app in demo mode (tests, browser) · 🟢 with real keys or a GPU | Each step runs the catalog model it names, on fal or Replicate, priced first; Translate & dub, Katana and Captions steps run their Assist tool | Each step runs on your ComfyUI through the graphs its model already uses; a step never moves to the other engine | Round 5, part 1. A user skill whose files hold a `recipe.json` (its steps and typed inputs) gets a **Runs by itself** chip in Assist → Skills and a **Run…** form (`/assist/skills?run=<name>`, also ⌘K → Run a skill; full screen on phones): fields from the inputs (media from the Library, a number, a choice, an @element, text), an engine switch for the engines its check passed, a live price, the steps under What runs, and a **Many** tab for up to 50 pasted or uploaded CSV / TSV rows (with a template; bad rows are marked). Each run is one Library batch named after the skill. No chat or AI is involved. A skill must first pass a free **check** on an engine: every step planned and priced, and a dry run on demo mode's mock provider (hidden, then moved to the Trash), even with Demo mode off and no keys; a retired, switched-off or repriced model asks for a re-check, in amber. Only user skills are checked (duplicate a built-in first); an uploaded recipe starts unchecked, and a .zip leaves out examples, sources and checks. **Make a skill from this…** (⋯ menu on any result, in the Library, studio feeds and the viewer) and **Make a skill** (the Library's bulk bar) turn the steps behind results into a draft, hand-made Edit → Animate chains included (linked by their files): each input Fixed or Varies, words in a prompt made into an input, **Check it** (a price per engine and a free dry run), **Save**, then the Run form with the original inputs. Translate & dub, Katana and Captions results become their Assist tool (`dub_video`, `katana`, `add_captions`); other studios are refused by name. Optional name suggestions from Claude or Ollama. Checked in demo mode (`skills-run.mjs`, `skills-builder.mjs`); no skill has run with a real key, on a GPU or with a live LLM, and Assist and MCP can't run a skill yet (W3, §4) |
+| Skills that run by themselves, and the skill builder (Fuobe's own: Work2Skill W1 and W2) | ✅ app in demo mode (tests, browser) · 🟢 with real keys or a GPU | Each step runs the catalog model it names, on fal or Replicate, priced first; Translate & dub, Katana and Captions steps run their Assist tool | Each step runs on your ComfyUI through the graphs its model already uses; a step never moves to the other engine | Round 5, part 1. A user skill whose files hold a `recipe.json` (its steps and typed inputs) gets a **Runs by itself** chip in Assist → Skills and a **Run…** form (`/assist/skills?run=<name>`, also ⌘K → Run a skill; full screen on phones): fields from the inputs (media from the Library, a number, a choice, an @element, text), an engine switch for the engines its check passed, a live price, the steps under What runs, and a **Many** tab for up to 50 pasted or uploaded CSV / TSV rows (with a template; bad rows are marked). Each run is one Library batch named after the skill. No chat or AI is involved. A skill must first pass a free **Test run** on an engine: every step planned and priced, and one run with placeholder results (hidden, then moved to the Trash), even with Demo mode off and no keys, so nothing runs for real; a retired, switched-off or repriced model asks for a new test run (**Test again**), in amber. Only user skills are checked (duplicate a built-in first); an uploaded recipe starts unchecked, and a .zip leaves out examples, sources and checks. **Make a skill from this…** (⋯ menu on any result, in the Library, studio feeds and the viewer) and **Make a skill** (the Library's bulk bar) turn the steps behind results into a draft, hand-made Edit → Animate chains included (linked by their files): each input Fixed or Varies, words in a prompt made into an input, **Test run (free)** (a price per engine and a free placeholder run), **Save**, then the Run form with the original inputs. Translate & dub, Katana and Captions results become their Assist tool (`dub_video`, `katana`, `add_captions`); other studios are refused by name. Optional name suggestions from Claude or Ollama. Checked in demo mode (`skills-run.mjs`, `skills-builder.mjs`); no skill has run with a real key, on a GPU or with a live LLM, and Assist and MCP can't run a skill yet (W3, §4) |
| 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. Its "Remember this?" card says "Saves to memory for future chats" while it asks, "Saved to memory for future chats" once you agree and "Not saved to memory" after Not now (round 5, part 1: it said "Saved" before you answered) |
| Assist scheduled tasks | ✅ app (demo mode) · 🟢 with an LLM | Claude plans (with your Anthropic key); generations are priced at fal / Replicate prices and counted against the run's cap | A local model or the offline planner; open-engine jobs are $0 | `/assist/scheduled` and a Scheduled tab in each project; a chat's Schedule button opens the dialog with its first request, files, project, engine and mode. Daily, weekly (any days), every 1–168 hours or once, in a time zone you pick, with the next run shown. Ask me first (the plan waits as an approval card; nothing is generated until you approve) or Run on its own within a cap (default $2, at most $500 a run; a plan over it waits). Each run is a new chat in the task's project. Run now, Edit, Pause / Resume, Delete; deleting a project pauses its tasks and says why. A sweep every 30 s starts at boot; a run missed while Fuobe was off happens once after the next start. Ran in demo mode only |
@@ -362,8 +362,8 @@ node tests/e2e/mixed-shorts-original.mjs http://localhost:3000 # Mixed Media and
node tests/e2e/marketing-originals.mjs http://localhost:3000 # Marketing, Ads ("Pictures by" and its price), the AI Influencer, Photodump and Fashion Factory on their Originals, the try-on LoRA switched off and its row in Settings → Models & licences (--shots dir)
node tests/e2e/open-tools.mjs http://localhost:3000 # the Angles app and Fuobe Angles, Fuobe Speak and Speak · Motion priced on the voice, VDA Large's note, PixeletedFace as two steps, the new Settings rows; start the app with FAL_KEY=anything to check the cloud prices too (nothing is sent) (--shots dir)
node tests/e2e/popcorn-evolution.mjs http://localhost:3000 # Video tools → Evolution with the offline writer, the Storyboard's look chip, price and a look board, Canvas' Effects 2.0 chains (--shots dir)
-node tests/e2e/skills-run.mjs http://localhost:3000 # a skill with a recipe: the free check, the Run form, 3 CSV rows, the amber re-check, ⌘K's Run a skill, the full-screen form on a phone (--shots dir)
-node tests/e2e/skills-builder.mjs http://localhost:3000 # 3 results in the Library → Make a skill → an input set to Varies and words made an input → Check it → Save → the Run form with new words; the ⋯ menu and the ⌘K viewer (--shots dir)
+node tests/e2e/skills-run.mjs http://localhost:3000 # a skill with a recipe: the free test run, the Run form, 3 CSV rows, the amber Test again, ⌘K's Run a skill, the full-screen form on a phone (--shots dir)
+node tests/e2e/skills-builder.mjs http://localhost:3000 # 3 results in the Library → Make a skill → an input set to Varies and words made an input → Test run → Save → the Run form with new words; the ⋯ menu and the ⌘K viewer (--shots dir)
node tests/e2e/fixes-5.mjs http://localhost:3000 # Settings → Training against a stand-in AI-Toolkit, the H3 install commands read from the clipboard, Edit video's Happy Horse price for a 12 s clip and a 40 s clip blocked (--shots dir)
node tests/e2e/split-soundtrack.mjs http://localhost:3000 # Audio → Split soundtrack in demo mode: the empty tool, the cloud engine's note, the open engine's model and stereo stems, no sideways scroll; --live runs one split per source kind (mixer, a preset, Export mix, Put back on the video) on a ComfyUI with ComfyUI-DBS and its weights
node tests/e2e/moss-image.mjs http://localhost:3000 # MOSS-Image in the Image studio's menu on both engines, Options → Quality from the keyboard, its Settings rows, the LoRA run's unknown price (--shots dir); start the app with FAL_KEY=anything for the cloud price (nothing is sent)
diff --git a/docs/cli.md b/docs/cli.md
index facfbacd..8331f234 100644
--- a/docs/cli.md
+++ b/docs/cli.md
@@ -195,8 +195,9 @@ else `skills/`, `.agents/skills/`, `.claude/skills/` and the folders right under
levels), else any `SKILL.md` a few levels down; skills marked `metadata.internal: true` are left out
unless named with `--skill`. Each skill is uploaded as a zip with its text files (binaries and
dot-files are left out, and listed). Git sources need `git`. A skill's `recipe.json` (a skill that runs
-by itself; see `skills/README.md`) goes up with it but starts unchecked: `skills run` checks it for free
-before its first run, or check it in **Assist → Skills**.
+by itself; see `skills/README.md`) goes up with it but starts untested: `skills run` prices every step
+for free before its first run (nothing runs), or give it a free **Test run** in **Assist → Skills**
+(every step priced and run once with placeholder results; nothing runs for real).
#### Running a skill that runs by itself
@@ -224,7 +225,7 @@ fuobe skills export weekly-promo --out weekly-promo.zip # SKILL.md and its fil
your files are uploaded it prices them again (a clip is priced by its length): when that's more, it
asks again with the new price, or stops without a terminal.
- `--engine open|cloud` picks where it runs, among the engines its steps run on (by default: where it
- was checked). A skill not yet checked on that engine gets its free plan check first.
+ was tested). A skill not yet priced on that engine has every step priced first, for free (nothing runs).
- `--wait` and `--out <dir>` wait for the results and save them, as `fuobe generate` does; without them,
`run` prints the ids to pass to `fuobe wait` or `fuobe download`. When a row didn't start (a studio
tool's run can refuse one row and start the rest), it says which by its line in your file and exits 1;
diff --git a/skills/README.md b/skills/README.md
index e38d2635..68691a13 100644
--- a/skills/README.md
+++ b/skills/README.md
@@ -58,9 +58,10 @@ AI. The format is in `src/lib/recipe.ts` (and `docs/research/work2skill-7.md`):
The easiest way to write one is not to: **Make a skill from this…** on a result, or **Make a skill**
in the Library, builds the recipe from the steps behind your results, and you pick which inputs change.
-A recipe runs on an engine only after a free check has passed there: Fuobe plans and prices every
-step. The check also does a dry run on demo mode's mock provider (not for a studio tool step), but a
-run doesn't wait for it. A retired, switched-off or repriced model asks for a new check. Fuobe
+A recipe runs on an engine only after a free **Test run** has passed there: Fuobe plans and prices
+every step. The test run also runs it once with placeholder results (not for a studio tool step), so
+nothing runs for real and nothing is spent; a run doesn't wait for that part. A retired, switched-off
+or repriced model asks for a new test run (**Test again**). Fuobe
writes the `verified` dates itself: an uploaded `recipe.json` loses them and starts unchecked, and a
downloaded `.zip` leaves out this install's checks (and, unless you ask, the examples and where the
recipe came from). The built-in skills here carry no recipe and can't be checked: duplicate one
diff --git a/src/components/ads/creative-grid.tsx b/src/components/ads/creative-grid.tsx
index 262e1eb3..e165428a 100644
--- a/src/components/ads/creative-grid.tsx
+++ b/src/components/ads/creative-grid.tsx
@@ -56,7 +56,7 @@ function CreativeCard({ c, brand, ratio, product, n, onEdit }: { c: AdCreative;
type="button"
onClick={() => retry.mutate(c.id, { onError: (e) => toastError(e) })}
className="mt-2 inline-flex h-7 items-center gap-1.5 rounded-full bg-secondary px-2.5 text-[12px] font-medium hover:bg-accent"
- title="Retry uses credits again"
+ title="A retry is a new run: priced and billed again"
>
{retry.isPending ? <Loader2 className="size-3 animate-spin" /> : <RotateCcw className="size-3" />} Retry
</button>
diff --git a/src/components/ads/new-ads.tsx b/src/components/ads/new-ads.tsx
index 9c194bd4..63ed318c 100644
--- a/src/components/ads/new-ads.tsx
+++ b/src/components/ads/new-ads.tsx
@@ -86,7 +86,7 @@ export function NewAds({ brand, products, engine, onCreated }: { brand: BrandKit
onError: (e) => toastError(e),
});
};
- const price = est.data ? (est.data.demo ? "Placeholder · free" : est.data.costUsd == null ? "price unknown" : est.data.costUsd === 0 ? "Free" : `≈ ${formatCost(est.data.costUsd)}`) : "";
+ const price = est.data ? (est.data.demo ? "Placeholder · free" : est.data.costUsd == null ? "price unknown" : est.data.costUsd === 0 ? (engine === "open" ? "Free · your GPU" : "Free") : `≈ ${formatCost(est.data.costUsd)}`) : "";
return (
<div className="space-y-6">
<section className="rounded-2xl border bg-background p-4 sm:p-5">
diff --git a/src/components/any-angle/any-angle-tool.tsx b/src/components/any-angle/any-angle-tool.tsx
index aaa5528b..86250af7 100644
--- a/src/components/any-angle/any-angle-tool.tsx
+++ b/src/components/any-angle/any-angle-tool.tsx
@@ -11,7 +11,7 @@ import { Panel, ToolHero, ToolShell } from "@/components/av/tool-shell";
import { useGeneration, useGenerationList } from "@/components/av/use-generation";
import { ACCEPT, LibraryGrid } from "@/components/studio/media-slot";
import { loadModelViewer } from "@/components/model3d/model-viewer";
-import { askToSignUp, uploadFile, useAskBeforeUpload, useCreateGeneration, useEngine, useGenerations, useIsGuest, useIsOwner } from "@/lib/api";
+import { askToSignUp, uploadFile, useAskBeforeUpload, useCreateGeneration, useEngine, useGenerations, useIsGuest, useIsOwner, useStatus } from "@/lib/api";
import { ACTIVE_RUNS_CODE } from "@/lib/guest-access";
import {
ANY_ANGLE,
@@ -39,6 +39,7 @@ import type { Generation, GenerationRequest } from "@/lib/catalog/types";
import { downloadHref } from "@/lib/library";
import { presetCover } from "@/lib/preset-covers";
import { toastError } from "@/lib/refusals";
+import { againWhere, placeholdersOn } from "@/lib/demo-mode";
import { cn } from "@/lib/utils";
/**
@@ -313,6 +314,7 @@ function DragView({ view, onUse }: { view: AnyAngleView; onUse: (a: CustomAngle)
/** One angle: its picture when it is done, the original a tap away, and what to do next. */
function ShotCard({ g, original, onAgain }: { g: Generation; original: string; onAgain: (g: Generation) => void }) {
const [before, setBefore] = useState(false);
+ const placeholders = placeholdersOn(useStatus().data?.demoMode);
const out = g.status === "succeeded" ? g.outputs.find((o) => o.kind === "image") : undefined;
const label = g.prompt || "New angle";
return (
@@ -346,6 +348,7 @@ function ShotCard({ g, original, onAgain }: { g: Generation; original: string; o
{(out || g.status === "failed") && (
<Button variant="outline" size="sm" className="rounded-full" onClick={() => onAgain(g)}>
<RefreshCw className="size-3.5" /> {out ? "Make another" : "Try again"}
+ {againWhere(g, { placeholders })}
</Button>
)}
{out && (
diff --git a/src/components/assist/hooks.ts b/src/components/assist/hooks.ts
index f1300da6..8e58adf5 100644
--- a/src/components/assist/hooks.ts
+++ b/src/components/assist/hooks.ts
@@ -215,7 +215,7 @@ export function useRecipeActions() {
return {
estimate: (name: string, body: RecipeBody) => recipeCall<RecipeEstimate>(`/api/assist/skills/${name}/estimate`, body),
run: (name: string, body: RecipeBody) => recipeCall<{ engine: Engine; runs: RecipeRun[]; demo: boolean }>(`/api/assist/skills/${name}/run`, body),
- /** Check it (plan + the free dry run by default); the skill's status is refreshed with the result. */
+ /** Test run (the plan + the free placeholder run by default); the skill's status is refreshed with the result. */
verify: async (name: string, body: { level?: "plan" | "demo" | "real"; engine?: Engine; confirm?: boolean } = {}) => {
try {
const r = await recipeCall<VerifyResult>(`/api/assist/skills/${name}/verify`, { level: "demo", ...body });
@@ -265,7 +265,7 @@ export function useSkillDraft(source: DraftSource) {
export function useDraftActions() {
const qc = useQueryClient();
return {
- /** Price it on each engine (`plan`), or add the free dry run (`demo`). */
+ /** Price it on each engine (`plan`), or add the free placeholder run (`demo`): the builder's Test run. */
check: (recipe: unknown, level: "plan" | "demo", title?: string) => recipeCall<DraftCheckResult>("/api/assist/skills/draft/check", { recipe, level, title }),
/** The optional naming pass (null: no LLM, or its answer didn't fit). */
name: async (source: DraftSource) => (await recipeCall<{ naming: Naming | null }>("/api/assist/skills/draft/name", source)).naming,
diff --git a/src/components/assist/run-skill-dialog.tsx b/src/components/assist/run-skill-dialog.tsx
index f935b435..e86caf8f 100644
--- a/src/components/assist/run-skill-dialog.tsx
+++ b/src/components/assist/run-skill-dialog.tsx
@@ -20,7 +20,7 @@ import { radioKeys, radioTab } from "@/components/studio/radio-keys";
import { useElements } from "@/lib/api";
import type { Engine } from "@/lib/catalog/types";
import { formatCost } from "@/lib/format";
-import { checkValues, isMediaType, parseRows, RECIPE_LIMITS, type RecipeEstimate, type RecipeParam, type RecipeView } from "@/lib/recipe";
+import { checkValues, isMediaType, parseRows, RECIPE_LIMITS, TEST_RUN_DONE, TEST_RUN_NOTE, type RecipeEstimate, type RecipeParam, type RecipeView } from "@/lib/recipe";
import { DEMO_NOTE } from "@/lib/recipe-builder";
import { cn } from "@/lib/utils";
import { refusalShown, toastError } from "@/lib/refusals";
@@ -134,11 +134,11 @@ function Loaded({ view, onClose, examples, intro, csv: rowsCsv }: { view: Recipe
try {
const r = await actions.verify(name);
const passed = r.engines.filter((e) => e.plan.ok && (e.dryRun?.ok ?? true)).map((e) => (e.engine === "cloud" ? "Cloud" : "your GPU"));
- if (r.ok) toast.success(`Checked — it runs on ${passed.join(" and ")}`, { description: "Priced, and run once on the demo provider for free." });
+ if (r.ok) toast.success(`Test run passed — it runs on ${passed.join(" and ")}`, { description: TEST_RUN_DONE });
else {
const why = r.engines.flatMap((e) => [...e.plan.errors, ...(e.dryRun?.problems ?? [])]);
setProblems(why);
- toast.error(passed.length ? `It runs on ${passed.join(" and ")} only` : "The check didn't pass", { description: why[0] });
+ toast.error(passed.length ? `It runs on ${passed.join(" and ")} only` : "The test run didn't pass", { description: why[0] });
}
const next = r.view.ready;
if (next.length && !next.includes(engine)) setEngine(next[0]);
@@ -184,7 +184,7 @@ function Loaded({ view, onClose, examples, intro, csv: rowsCsv }: { view: Recipe
: staged?.waiting?.length
? `${staged.waiting.join(", ")} start${staged.waiting.length === 1 ? "s" : ""} when the step before is done`
: r.demo
- ? "A demo run — no provider connected"
+ ? "Placeholder results, free — placeholders are on in Settings"
: `${view.title}: same steps, new take`,
action: staged ? { label: "See its steps", onClick: () => router.push(`/assist/skills?skill=${encodeURIComponent(name)}`) } : { label: `Open in ${studio}`, onClick: () => router.push(href) },
});
@@ -227,15 +227,15 @@ function Loaded({ view, onClose, examples, intro, csv: rowsCsv }: { view: Recipe
<div className="flex flex-col gap-3 rounded-xl bg-muted/60 px-4 py-3 sm:flex-row sm:items-center">
<ShieldCheck className="size-5 shrink-0 text-brand-text" />
<p className="min-w-0 flex-1 text-[13px]">
- <span className="font-medium">Check it once first — it&apos;s free.</span> <span className="text-muted-foreground">Fuobe prices every step and runs it on the demo provider, so you know it works before you spend anything.</span>
+ <span className="font-medium">Do a free test run first.</span> <span className="text-muted-foreground">{TEST_RUN_NOTE}</span>
</p>
<Button size="sm" onClick={() => void check()} disabled={busy !== null}>
- {busy === "check" ? <Loader2 className="animate-spin" /> : <ShieldCheck />} Check it (free)
+ {busy === "check" ? <Loader2 className="animate-spin" /> : <ShieldCheck />} Test run (free)
</Button>
</div>
) : recheck?.length ? (
- <Notice tone="warn" action={<Button size="sm" variant="outline" onClick={() => void check()} disabled={busy !== null}>{busy === "check" ? <Loader2 className="animate-spin" /> : null} Re-check</Button>}>
- Needs a re-check: {recheck[0]}
+ <Notice tone="warn" action={<Button size="sm" variant="outline" onClick={() => void check()} disabled={busy !== null}>{busy === "check" ? <Loader2 className="animate-spin" /> : null} Test again (free)</Button>}>
+ Needs a new test run: {recheck[0]}
</Notice>
) : null}
{recipe.source?.demo && !Object.values(recipe.verified ?? {}).some((v) => v?.real) && <Notice tone="info">{DEMO_NOTE}.</Notice>}
@@ -321,7 +321,7 @@ function Loaded({ view, onClose, examples, intro, csv: rowsCsv }: { view: Recipe
</div>
<DialogFooter className="mx-0 mb-0 flex-col gap-2 border-t px-5 py-3 sm:flex-row sm:items-center sm:justify-between">
<p className={cn("min-w-0 text-[13px] break-words", estError ? "text-destructive" : "text-muted-foreground")} aria-live="polite">
- {!view.enabled ? "Switched off" : !ready ? "Check it first to see the price" : estError ?? (canPrice ? price : tab === "one" ? (tried ? Object.values(checked.errors)[0] : "Fill in the inputs to see the price") : rows ? (rows.errors[0] ?? "Fix the rows marked below") : "Paste rows to see the total")}
+ {!view.enabled ? "Switched off" : !ready ? "Do a test run first to see the price" : estError ?? (canPrice ? price : tab === "one" ? (tried ? Object.values(checked.errors)[0] : "Fill in the inputs to see the price") : rows ? (rows.errors[0] ?? "Fix the rows marked below") : "Paste rows to see the total")}
</p>
<div className="flex shrink-0 gap-1.5 max-sm:w-full">
<Button variant="ghost" size="sm" onClick={onClose} className="max-sm:flex-1">
@@ -330,7 +330,14 @@ function Loaded({ view, onClose, examples, intro, csv: rowsCsv }: { view: Recipe
<Button size="sm" onClick={() => void run()} disabled={busy !== null || !view.enabled || !ready || (canPrice && (!fresh || estimate.isFetching)) || (tried && !runnable)} className="max-sm:flex-[2]">
{busy === "run" ? <Loader2 className="animate-spin" /> : <Play />}
{runs > 1 ? `Run ${runs}` : "Run"}
- {runnable && est && !est.demo && est.total ? ` · ${formatCost(est.total)}` : ""}
+ {runnable && est && !est.demo && est.total
+ ? ` · ${formatCost(est.total)}`
+ : runnable && est && !est.demo && est.engine === "open"
+ ? " on your GPU"
+ : // Some Cloud prices vary (the footer says so): still a paid run, said before the tap.
+ runnable && est && !est.demo && est.total === null && est.engine === "cloud"
+ ? " · paid"
+ : ""}
</Button>
</div>
</DialogFooter>
diff --git a/src/components/assist/schedule-dialog.tsx b/src/components/assist/schedule-dialog.tsx
index 2346d82b..b7059c58 100644
--- a/src/components/assist/schedule-dialog.tsx
+++ b/src/components/assist/schedule-dialog.tsx
@@ -454,7 +454,7 @@ function Form({ schedule, seed, onDone }: { schedule?: ScheduleView; seed?: Sche
<span className="pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-[13px] text-muted-foreground">$</span>
<Input id={ids.cap} type="number" inputMode="decimal" min={0} max={MAX_SCHEDULE_CAP_USD} step={0.5} value={cap} onChange={(e) => setCap(e.target.value)} aria-invalid={capBad} className="pl-6" />
</div>
- <span className="text-[13px] text-muted-foreground">per run on its own. Demo runs and open-source models are free.</span>
+ <span className="text-[13px] text-muted-foreground">per run on its own. Runs on your GPU and placeholder runs are free.</span>
</div>
)}
</fieldset>
diff --git a/src/components/assist/schedule-skill.tsx b/src/components/assist/schedule-skill.tsx
index 9fbbab9a..e4310468 100644
--- a/src/components/assist/schedule-skill.tsx
+++ b/src/components/assist/schedule-skill.tsx
@@ -104,9 +104,9 @@ function useDebounced<T>(value: T, ms: number): T {
return v;
}
-/** "About $0.62 a run on Cloud", "Free on your GPU", "Free: a demo run". */
+/** "About $0.62 a run on Cloud", "Free on your GPU", "Placeholder results, free". */
function priceText(e: RecipeEstimate): string {
- if (e.demo) return "Free: a demo run, since nothing is connected for these steps yet";
+ if (e.demo) return "Placeholder results, free: placeholders are on in Settings";
if (e.total === null) return "Some prices vary";
const where = e.engine === "open" ? "on your GPU" : "on Cloud";
return e.total === 0 ? `Free ${where}` : `About ${formatCost(e.total)} a run ${where}`;
diff --git a/src/components/assist/scheduled-view.tsx b/src/components/assist/scheduled-view.tsx
index 9ba3b6e4..828bc6ad 100644
--- a/src/components/assist/scheduled-view.tsx
+++ b/src/components/assist/scheduled-view.tsx
@@ -227,7 +227,7 @@ function TaskRow({ s, showProject }: { s: ScheduleView; showProject: boolean })
<dt className="text-muted-foreground">Next run</dt>
<dd className="font-medium">{s.paused ? "Paused" : s.nextRunAt ? `${formatWhen(s.nextRunAt, s.tz)} (${untilText(s.nextRunAt, now)})` : "None — it ran"}</dd>
<dd className="text-muted-foreground">
- {s.approval === "ask" ? "Asks before generating" : s.capUsd ? `Runs on its own up to ${formatCost(s.capUsd)} a run` : "Runs free plans on its own"}
+ {s.approval === "ask" ? "Asks before generating" : s.capUsd ? `Runs on its own up to ${formatCost(s.capUsd)} a run` : "Runs on its own only when it's free; asks before anything paid"}
{s.connectors ? " · uses your connectors" : ""}
</dd>
</div>
diff --git a/src/components/assist/skill-insights.tsx b/src/components/assist/skill-insights.tsx
index 61d13709..75553a5f 100644
--- a/src/components/assist/skill-insights.tsx
+++ b/src/components/assist/skill-insights.tsx
@@ -135,7 +135,7 @@ export function SkillHistorySection({ name }: { name: string }) {
<div className="min-w-0 flex-1 text-[12px]">
<p className="flex items-center gap-1.5 font-medium">
<StatusDot status={r.status} /> {STATUS_WORDS[r.status]}
- {r.demo && <span className="font-normal text-muted-foreground">· demo</span>}
+ {r.demo && <span className="font-normal text-muted-foreground">· placeholder</span>}
</p>
<p className="text-muted-foreground">
{day(r.at)} · {r.costUsd === null ? "price unknown" : formatCost(r.costUsd)} · {r.steps} result{r.steps === 1 ? "" : "s"}
@@ -168,11 +168,11 @@ export function FixPanel({ name, onClose }: { name: string; onClose: () => void
await fetch(`/api/assist/skills/${encodeURIComponent(name)}/fixes`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ step, modelId }) }),
);
if (r.ok) {
- toast.success("Fixed and checked", { description: "The step uses the new model; the skill was priced and run once for free." });
+ toast.success("Fixed and tested", { description: "The step uses the new model. A free test run priced it and ran it once with placeholder results." });
void qc.invalidateQueries({ queryKey: ["assist-recipe", name] });
void qc.invalidateQueries({ queryKey: ["assist-skill-fixes", name] });
onClose();
- } else toast.error("That model doesn't pass the check, so nothing changed", { description: r.problems[0] });
+ } else toast.error("That model didn't pass the test run, so nothing changed", { description: r.problems[0] });
} catch (e) {
const f = e as RecipeFailure;
if (!refusalShown(f)) toast.error(f.message);
@@ -193,7 +193,7 @@ export function FixPanel({ name, onClose }: { name: string; onClose: () => void
) : !q.data ? (
<Skeleton className="mt-2 h-16" />
) : !q.data.steps.length ? (
- <p className="mt-1 text-muted-foreground">Every step looks fine. Re-check it to price it again.</p>
+ <p className="mt-1 text-muted-foreground">Every step looks fine. Test it again (free) to see its price today.</p>
) : (
<ul className="mt-2 space-y-3">
{q.data.steps.map((s) => (
diff --git a/src/components/assist/skills-view.tsx b/src/components/assist/skills-view.tsx
index d12308ee..cb08aa13 100644
--- a/src/components/assist/skills-view.tsx
+++ b/src/components/assist/skills-view.tsx
@@ -30,6 +30,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Textarea } from "@/components/ui/textarea";
import { useIsOwner, useIsVisitor } from "@/lib/api";
import { SKILL_LIMITS, SKILL_NAME_RE, skillSlug, type Skill, type SkillSummary } from "@/lib/assist";
+import { TEST_RUN_DONE } from "@/lib/recipe";
import { cn } from "@/lib/utils";
import { refusalShown, toastError } from "@/lib/refusals";
import { radioKeys } from "@/components/studio/radio-keys";
@@ -281,8 +282,8 @@ function SkillGrid({ list, loading, onOpen, onToggle, empty }: { list: SkillSumm
}
/**
- * Under a recipe skill's description: where it was checked ("Checked 29 Oct · Cloud ✓ · GPU not checked"), or in amber
- * why it needs a re-check, with Re-check (the plan and the free dry run).
+ * Under a recipe skill's description: where it was tested ("Tested 29 Oct · Cloud ✓ · Your GPU not tested yet"), or in
+ * amber why it needs a new test run, with Test again (the plan and the free placeholder run).
*/
function RecipeStatus({ skill, owner }: { skill: Skill; owner: boolean }) {
const recipe = useRecipe(skill.name, !!skill.recipe);
@@ -299,8 +300,8 @@ function RecipeStatus({ skill, owner }: { skill: Skill; owner: boolean }) {
setBusy(true);
try {
const r = await actions.verify(skill.name);
- if (r.ok) toast.success("Checked — it still runs", { description: "Priced, and run once on the demo provider for free." });
- else toast.error("The check didn't pass", { description: r.engines.flatMap((e) => [...e.plan.errors, ...(e.dryRun?.problems ?? [])])[0] });
+ if (r.ok) toast.success("Test run passed — it still runs", { description: TEST_RUN_DONE });
+ else toast.error("The test run didn't pass", { description: r.engines.flatMap((e) => [...e.plan.errors, ...(e.dryRun?.problems ?? [])])[0] });
} catch (e) {
const f = e as RecipeFailure;
if (!refusalShown(f)) toast.error(f.message, { description: f.problems?.slice(1).join("; ") || undefined });
@@ -314,10 +315,10 @@ function RecipeStatus({ skill, owner }: { skill: Skill; owner: boolean }) {
<>
<div className={cn("mt-2 flex flex-wrap items-center gap-x-2 gap-y-1 text-[12px]", recheck.length || v.why ? "text-amber-700 dark:text-amber-300" : "text-muted-foreground")}>
{recheck.length || v.why ? <AlertTriangle className="size-3.5 shrink-0" aria-hidden /> : <ShieldCheck className="size-3.5 shrink-0" aria-hidden />}
- <span className="min-w-0 break-words">{v.why ?? (recheck.length ? `Needs a re-check: ${recheck[0]}` : v.line)}</span>
+ <span className="min-w-0 break-words">{v.why ?? (recheck.length ? `Needs a new test run: ${recheck[0]}` : v.line)}</span>
{canCheck && !v.why && (recheck.length > 0 || !v.ready.length) && (
<Button variant="outline" size="xs" className="h-6 rounded-full px-2 text-[12px]" onClick={() => void recheckNow()} disabled={busy}>
- {busy && <Loader2 className="animate-spin" />} {v.ready.length ? "Re-check" : "Check it (free)"}
+ {busy && <Loader2 className="animate-spin" />} {v.ready.length ? "Test again (free)" : "Test run (free)"}
</Button>
)}
{canFix && recheck.length > 0 && !fixing && (
diff --git a/src/components/audio-tools/audio-tools.tsx b/src/components/audio-tools/audio-tools.tsx
index a391391c..bcb59152 100644
--- a/src/components/audio-tools/audio-tools.tsx
+++ b/src/components/audio-tools/audio-tools.tsx
@@ -43,7 +43,7 @@ type Curve = "equal-power" | "linear";
type Clip = SlotValue & { duration?: number };
const money = (p: AudioToolPreview, engine: Engine) =>
- p.demo ? "Placeholder · free" : engine === "open" ? "Free" : p.costUsd === null ? "Price unknown" : p.costUsd < 0.01 ? "Under $0.01" : `≈ $${p.costUsd.toFixed(2)}`;
+ p.demo ? "Placeholder · free" : engine === "open" ? "Free · your GPU" : p.costUsd === null ? "Price unknown" : p.costUsd < 0.01 ? "Under $0.01" : `≈ $${p.costUsd.toFixed(2)}`;
const nameOf = (c: Clip) => (c.name ?? "Audio clip").replace(/\.[a-z0-9]{2,4}$/i, "");
diff --git a/src/components/audio-tools/clean-voice-tool.tsx b/src/components/audio-tools/clean-voice-tool.tsx
index e425fb5a..a5452f35 100644
--- a/src/components/audio-tools/clean-voice-tool.tsx
+++ b/src/components/audio-tools/clean-voice-tool.tsx
@@ -63,7 +63,7 @@ const TOOL_SUBTITLE =
type Source = SlotValue & { kind: "audio" | "video"; duration?: number; channels?: number };
const baseName = (s: { name?: string }) => (s.name ?? "Recording").replace(/\.[a-z0-9]{2,4}$/i, "");
-const money = (p: AudioToolPreview) => (p.demo ? "Demo · free" : "Free · runs on your ComfyUI");
+const money = (p: AudioToolPreview) => (p.demo ? "Placeholder · free" : "Free · runs on your GPU");
const onDevice = (device?: string) => (device === "cuda" ? "on your GPU" : device ? "on your CPU" : "on a CPU");
/** ?audio= / ?video= from a Library result's "Clean up voice" (or Split's "Clean the dialogue", with background=keep), read once after hydration. */
diff --git a/src/components/audio-tools/split-tool.tsx b/src/components/audio-tools/split-tool.tsx
index ae0f92ee..2fd857d9 100644
--- a/src/components/audio-tools/split-tool.tsx
+++ b/src/components/audio-tools/split-tool.tsx
@@ -590,7 +590,7 @@ function Mixer({ stems, source, engine, initial = ORIGINAL_MIX }: { stems: Stem[
}
return backgroundLowered(peak);
}, [bed]);
- const remuxCost = remuxPrice.data ? (remuxPrice.data.demo ? "Placeholder · free" : engine === "open" ? "Free" : remuxPrice.data.costUsd !== null && remuxPrice.data.costUsd < 0.01 ? "under $0.01" : `≈ $${remuxPrice.data.costUsd?.toFixed(2)}`) : null;
+ const remuxCost = remuxPrice.data ? (remuxPrice.data.demo ? "Placeholder · free" : engine === "open" ? "Free · your GPU" : remuxPrice.data.costUsd !== null && remuxPrice.data.costUsd < 0.01 ? "under $0.01" : `≈ $${remuxPrice.data.costUsd?.toFixed(2)}`) : null;
return (
<section aria-labelledby="mixer" className="space-y-3">
diff --git a/src/components/cinema/blockout-panel.tsx b/src/components/cinema/blockout-panel.tsx
index 7cdf8ec6..7f57a55b 100644
--- a/src/components/cinema/blockout-panel.tsx
+++ b/src/components/cinema/blockout-panel.tsx
@@ -204,7 +204,7 @@ export function BlockoutPanel(props: BlockoutPanelProps) {
const seconds = s?.seconds ?? 0;
const set = (patch: Partial<BlockoutDraft>) => setDraft((d) => ({ ...d, ...patch }));
const cost = plan.costUsd;
- const price = demo ? "Placeholder · free" : cost === 0 ? "Free" : cost != null ? `≈ ${formatCost(cost)}` : "Price unknown";
+ const price = demo ? "Placeholder · free" : cost === 0 ? (engine === "open" ? "Free · your GPU" : "Free") : cost != null ? `≈ ${formatCost(cost)}` : "Price unknown";
const model = getModel(engine === "cloud" ? draft.modelId : BLOCKOUT_MODELS.open);
const resolutions = engine === "cloud" ? (getModel(draft.modelId)?.options.resolutions ?? []) : ["480p", "720p"];
const resolution = draft.resolution && resolutions.some((r) => r.toLowerCase() === draft.resolution!.toLowerCase()) ? draft.resolution : (engine === "cloud" ? getModel(draft.modelId)?.defaults?.resolution : "480p");
diff --git a/src/components/cinema/cinema-feed.tsx b/src/components/cinema/cinema-feed.tsx
index 1b7ec07b..6b665461 100644
--- a/src/components/cinema/cinema-feed.tsx
+++ b/src/components/cinema/cinema-feed.tsx
@@ -182,10 +182,10 @@ export interface FeedHandlers {
scenePrice: string;
}
-/** A grid contact sheet and its tiles are one take: deleting any of them deletes the lot. */
+/** A grid contact sheet and its tiles are one take: moving any of them to the Trash moves the lot. */
export function deleteLabel(g: CinemaGeneration): string {
const tiles = g.tiles?.length ?? (g.feature === "cinema-grid" && g.outputs.length > 1 ? g.outputs.length - 1 : 0);
- return tiles ? `Delete grid (sheet + ${tiles} tiles)` : "Delete take";
+ return tiles ? `Move grid to Trash (sheet + ${tiles} tiles)` : "Move take to Trash";
}
function TileMenu({ u, folders, projectId, handlers, onDelete }: { u: Unit; folders: CinemaFolder[]; projectId: string; handlers: FeedHandlers; onDelete: (ids: string[]) => void }) {
@@ -766,7 +766,7 @@ export function CinemaFeed({
</DropdownMenu>
)}
<button type="button" onClick={() => void del(live)} className="inline-flex h-8 items-center gap-1.5 rounded-full px-3 text-[12.5px] font-medium text-destructive hover:bg-destructive/10">
- <Trash2 className="size-3.5" /> Delete
+ <Trash2 className="size-3.5" /> Move to Trash
</button>
</div>
)}
diff --git a/src/components/cinema/prompt-bar.tsx b/src/components/cinema/prompt-bar.tsx
index 87822c99..c48c1d49 100644
--- a/src/components/cinema/prompt-bar.tsx
+++ b/src/components/cinema/prompt-bar.tsx
@@ -549,8 +549,8 @@ export function PromptBar(props: PromptBarProps) {
.filter(Boolean)
.join(" · ");
// The live cost sits next to Generate at every width (short on narrow bars).
- const costShort = demo ? "Placeholder" : cost === 0 ? "Free" : cost != null ? `≈ ${formatCost(cost)}` : "≈ ?";
- const costLong = demo ? "Placeholder · free" : cost === 0 ? "Free" : cost != null ? `≈ ${formatCost(cost)}` : "Price unknown";
+ const costShort = demo ? "Placeholder" : cost === 0 ? (engine === "open" ? "Free · GPU" : "Free") : cost != null ? `≈ ${formatCost(cost)}` : "≈ ?";
+ const costLong = demo ? "Placeholder · free" : cost === 0 ? (engine === "open" ? "Free · your GPU" : "Free") : cost != null ? `≈ ${formatCost(cost)}` : "Price unknown";
// The Director's Panel chips: their own row from sm up; on phones one "Director" chip opens them in a sheet.
const directorChips = (
@@ -918,7 +918,7 @@ export function PromptBar(props: PromptBarProps) {
</p>
)}
<span className="sr-only" aria-live="polite">
- {cost != null ? `Estimated cost ${demo ? "free in demo mode" : formatCost(cost)}` : ""}
+ {cost != null ? `Estimated cost ${demo ? "free: placeholder results" : cost === 0 && engine === "open" ? "free, on your GPU" : formatCost(cost)}` : ""}
</span>
</div>
);
diff --git a/src/components/cinema/side-panel.tsx b/src/components/cinema/side-panel.tsx
index fd4e29aa..1f26ec1c 100644
--- a/src/components/cinema/side-panel.tsx
+++ b/src/components/cinema/side-panel.tsx
@@ -163,7 +163,7 @@ function DirectorChat({ projectId, onLoadShot, onBrief, promptText }: { projectI
</Button>
</div>
</div>
- <p className="px-1 pt-1.5 text-[10.5px] text-muted-foreground">LLMs can make mistakes. The Director only proposes; generating costs credits when you press Generate.</p>
+ <p className="px-1 pt-1.5 text-[10.5px] text-muted-foreground">LLMs can make mistakes. The Director only proposes: nothing runs and nothing is spent until you press Generate.</p>
</div>
</div>
);
diff --git a/src/components/content-factory/home.tsx b/src/components/content-factory/home.tsx
index bf2291da..35e07a27 100644
--- a/src/components/content-factory/home.tsx
+++ b/src/components/content-factory/home.tsx
@@ -313,7 +313,7 @@ export function ContentFactoryHome({ voices, starters: given = [], fills: givenF
<Sparkles className="size-3.5" /> Presets
</a>
<span className="text-[12px] text-muted-foreground">
- {engine === "open" ? (visitor ? "We study the clip's pacing and look" : "Reading a clip is free (Gemma 4 on your ComfyUI)") : perMinute > 0 ? `Reading a clip costs about ${usd(perMinute)} a minute` : "Reading a clip runs as a free demo"}
+ {engine === "open" ? (visitor ? "We study the clip's pacing and look" : "Reading a clip is free (Gemma 4 on your ComfyUI)") : perMinute > 0 ? `Reading a clip costs about ${usd(perMinute)} a minute` : "Reading a clip makes a free placeholder"}
</span>
<input ref={file} type="file" accept="video/mp4,video/quicktime,video/webm,.mp4,.mov,.m4v,.webm" hidden onChange={(e) => (void onFile(e.target.files?.[0]), (e.target.value = ""))} />
</div>
diff --git a/src/components/faceless/episode-view.tsx b/src/components/faceless/episode-view.tsx
index 71e4c1b6..13a25c4c 100644
--- a/src/components/faceless/episode-view.tsx
+++ b/src/components/faceless/episode-view.tsx
@@ -359,7 +359,7 @@ function SceneEditor({ view, scenes, onClose, onOpen }: { view: View; scenes: Sc
{apply.isPending ? <Loader2 className="animate-spin" /> : <Wand2 />} Apply
</Button>
</div>
- <p className="text-[11px] text-muted-foreground">Applying re-renders this change and publishes it when it&apos;s done; Undo brings the version before back. Spent credits aren&apos;t refunded.</p>
+ <p className="text-[11px] text-muted-foreground">Applying re-renders this change and publishes it when it&apos;s done; Undo brings the version before back. What it already spent isn&apos;t refunded.</p>
</div>
</section>
);
diff --git a/src/components/genjutsu/genjutsu-studio.tsx b/src/components/genjutsu/genjutsu-studio.tsx
index e2d4a7c9..193a1b79 100644
--- a/src/components/genjutsu/genjutsu-studio.tsx
+++ b/src/components/genjutsu/genjutsu-studio.tsx
@@ -27,7 +27,7 @@ import { openInStudio } from "@/components/swap-studio/hooks";
import { SelfHostNote } from "@/components/self-host-note";
import { ExampleRow } from "@/components/studio/example-row";
import { useEdgeFade } from "@/components/studio/use-edge-fade";
-import { useEngine, useGenerations, useIsOwner, useLikelyVisitor, useModelAccess, useSoundLive } from "@/lib/api";
+import { useEngine, useGenerations, useIsOwner, useLikelyVisitor, useModelAccess, useSoundLive, useStatus } from "@/lib/api";
import { CHARACTER_SWAP, cutsInPart, cutWarning, partWords, seedProblem, type CharacterChoice, type CharacterOptions } from "@/lib/catalog/character-swap";
import {
chooseMaker,
@@ -65,6 +65,7 @@ import type { Generation, PixelPoint } from "@/lib/catalog/types";
import { downloadHref, downloadName } from "@/lib/library";
import { keepOffered, offered } from "@/lib/model-access";
import type { ExampleRowData } from "@/lib/examples/types";
+import { againWhere, placeholdersOn } from "@/lib/demo-mode";
import { cn } from "@/lib/utils";
import { refusalShown, toastError } from "@/lib/refusals";
import { CharacterControls, CharacterFacts, qualityOff } from "./character-panel";
@@ -1282,6 +1283,7 @@ function RunPanel({ run, onAgain, finish = [], onFinish }: { run: Run; onAgain:
const list = useGenerationList(run.ids).data;
const byId = useMemo(() => new Map((list ?? []).map((g) => [g.id, g])), [list]);
const final = byId.get(run.final);
+ const placeholders = placeholdersOn(useStatus().data?.demoMode);
const rows: StepRow[] = run.ids.map((id) => {
const g = byId.get(id);
return { key: id, label: g?.request.step?.label ?? "A step", g };
@@ -1313,6 +1315,7 @@ function RunPanel({ run, onAgain, finish = [], onFinish }: { run: Run; onAgain:
{(out || state.status === "failed") && (
<Button size="sm" variant="outline" className="rounded-full" onClick={onAgain}>
<RotateCcw className="size-3.5" /> {state.status === "failed" ? "Try again" : "Run again"}
+ {againWhere(final, { placeholders })}
</Button>
)}
</div>
diff --git a/src/components/katana/katana-studio.tsx b/src/components/katana/katana-studio.tsx
index deaa97be..8d53338b 100644
--- a/src/components/katana/katana-studio.tsx
+++ b/src/components/katana/katana-studio.tsx
@@ -20,7 +20,8 @@ import { StepList, type StepRow } from "@/components/av/step-list";
import { Panel, ToolHero, ToolShell } from "@/components/av/tool-shell";
import { SelfHostNote } from "@/components/self-host-note";
import { ExampleRow } from "@/components/studio/example-row";
-import { useEngine, useLikelyVisitor, useModelAccess } from "@/lib/api";
+import { useEngine, useLikelyVisitor, useModelAccess, useStatus } from "@/lib/api";
+import { againWhere, placeholdersOn } from "@/lib/demo-mode";
import { formatCueTime } from "@/lib/av/cue-edit";
import { detectCutIndices, KATANA_LIMITS, katanaProgress, katanaStage, motionModel, MOTION_MODELS, nearestAspect, OPEN_KEYFRAME_PHOTOS, planSegments, refineCut, refineTimes, type KatanaJobView, type Segment } from "@/lib/av/katana";
import { keepOffered, offered } from "@/lib/model-access";
@@ -353,6 +354,9 @@ function stepRows(j: KatanaJobView): { segment: number; rows: StepRow[] }[] {
function Runs({ jobs, loading }: { jobs?: KatanaJobView[]; loading: boolean }) {
const { remove, retry } = useKatanaActions();
+ // A run again is a new run: where it runs (or that it's paid) is said on the button before the tap.
+ const placeholders = placeholdersOn(useStatus().data?.demoMode);
+ const where = (j: KatanaJobView) => againWhere(j, { placeholders });
const again = (id: string, all: boolean) =>
retry.mutate(
{ id, all },
@@ -397,6 +401,7 @@ function Runs({ jobs, loading }: { jobs?: KatanaJobView[]; loading: boolean }) {
{stage !== "running" && (
<Button variant="ghost" size="sm" className="rounded-full" disabled={retry.isPending} onClick={() => again(j.id, stage === "done")}>
<RotateCcw className="size-3.5" /> {stage === "failed" ? "Retry failed steps" : "Run again"}
+ {where(j)}
</Button>
)}
<AlertDialog>
diff --git a/src/components/library-view.tsx b/src/components/library-view.tsx
index 2ae92f06..02df1317 100644
--- a/src/components/library-view.tsx
+++ b/src/components/library-view.tsx
@@ -910,7 +910,7 @@ function Inner() {
</DropdownMenu>
<BarButton
icon={Trash2}
- label="Delete"
+ label="Move to Trash"
destructive
disabled={!selectedGens.length}
onClick={() => {
diff --git a/src/components/mixed-media/settings.tsx b/src/components/mixed-media/settings.tsx
index 0e3bb1b6..3df792d7 100644
--- a/src/components/mixed-media/settings.tsx
+++ b/src/components/mixed-media/settings.tsx
@@ -203,7 +203,7 @@ export function AdvancedSettings({ preset, values, onChange }: { preset: MixedPr
<div className="rounded-xl border">
<button type="button" onClick={() => setOpen((o) => !o)} aria-expanded={open} className="flex w-full items-center justify-between gap-2 px-3 py-2.5 text-left">
<span className="text-[13px] font-medium">Advanced settings</span>
- <span className="text-[11px] text-muted-foreground">{isSaved ? "Saved" : isDefault ? "Preset defaults" : "Not saved"}</span>
+ <span className="text-[11px] text-muted-foreground">{isSaved ? "Saved in this browser" : isDefault ? "Preset defaults" : "Not saved"}</span>
</button>
{open && (
<div className="space-y-3 border-t px-3 pt-3 pb-3">
@@ -227,7 +227,7 @@ export function AdvancedSettings({ preset, values, onChange }: { preset: MixedPr
disabled={isSaved}
className="inline-flex h-8 items-center gap-1.5 rounded-full border bg-background px-3 text-[12px] font-medium hover:bg-accent disabled:opacity-50"
>
- <Save className="size-3.5" /> Save
+ <Save className="size-3.5" /> Save in this browser
</button>
<button
type="button"
diff --git a/src/components/photodump/results.tsx b/src/components/photodump/results.tsx
index 0225682d..94c5e101 100644
--- a/src/components/photodump/results.tsx
+++ b/src/components/photodump/results.tsx
@@ -160,7 +160,7 @@ export function ResultsGrid({
{onPick && <IconLink label="View" icon={Maximize2} onClick={() => setOpen(idx)} />}
<IconLink href={`/video?image=${encodeURIComponent(url)}`} label="Animate" icon={Film} />
<IconLink href={`/edit?image=${encodeURIComponent(url)}`} label="Edit" icon={Pencil} />
- <IconLink label="Delete" icon={Trash2} onClick={() => void trash([t.g])} />
+ <IconLink label="Move to Trash" icon={Trash2} onClick={() => void trash([t.g])} />
</div>
{t.g.request.step && <span className="pointer-events-none absolute bottom-2 left-2 rounded-full bg-background/85 px-2 py-0.5 text-[11px] font-medium">{t.g.request.step.label}</span>}
</div>
diff --git a/src/components/skills/skill-builder.tsx b/src/components/skills/skill-builder.tsx
index 45b68e98..f48e22c8 100644
--- a/src/components/skills/skill-builder.tsx
+++ b/src/components/skills/skill-builder.tsx
@@ -15,15 +15,15 @@ import { Skeleton } from "@/components/ui/skeleton";
import { Textarea } from "@/components/ui/textarea";
import { SKILL_LIMITS, SKILL_NAME_RE } from "@/lib/assist";
import { formatCost } from "@/lib/format";
-import { isMediaType, recipeProblems, RECIPE_LIMITS, type ParamType } from "@/lib/recipe";
+import { isMediaType, recipeProblems, RECIPE_LIMITS, TEST_RUN_NOTE, type ParamType } from "@/lib/recipe";
import { buildRecipe, paramIdFrom, skillBody, slugify, type DraftCandidate, type DraftRefusal, type DraftStep, type Naming, type SkillDraft, type Slot } from "@/lib/recipe-builder";
import { refusalShown } from "@/lib/refusals";
import { cn } from "@/lib/utils";
/**
* Make a skill from results already made (package W2): the steps behind them, rebuilt by the server from their exact
- * requests; what changes next time (every input starts Fixed); a free check (the plan on each engine, then a dry run on
- * the demo provider); then Save, which opens the Run form with the inputs it was made from ("Try it with new inputs").
+ * requests; what changes next time (every input starts Fixed); a free test run (the plan on each engine, then one run
+ * with placeholder results); then Save, which opens the Run form with the inputs it was made from ("Try it with new inputs").
* A tall dialog on a desktop, the whole screen on a phone.
*/
export function SkillBuilder({ source, onClose }: { source: DraftSource; onClose: () => void }) {
@@ -364,7 +364,7 @@ function Review({ draft, refusals, source, onClose, onSaved, header }: { draft:
Cancel
</Button>
<Button variant={planOk ? "outline" : "default"} size="sm" onClick={() => void runCheck()} disabled={busy !== null || own.length > 0} className="max-sm:flex-1">
- {busy === "check" ? <Loader2 className="animate-spin" /> : <ShieldCheck />} {current?.plan ? "Check again" : "Check it"}
+ {busy === "check" ? <Loader2 className="animate-spin" /> : <ShieldCheck />} {current?.plan ? "Test again (free)" : "Test run (free)"}
</Button>
<Button size="sm" onClick={() => void save()} disabled={busy !== null || !planOk || own.length > 0} className="max-sm:flex-[1.4]">
{busy === "save" ? <Loader2 className="animate-spin" /> : <Check />} Save skill
@@ -378,13 +378,13 @@ function Review({ draft, refusals, source, onClose, onSaved, header }: { draft:
/** The line above the footer's buttons: what to do next, or what the check found. */
function statusLine(c: CheckState | null, busy: "check" | "save" | null, own: string[]): string {
- if (own.length) return "Fix what's marked to check it";
- if (busy === "check") return "Checking: pricing every step on each engine…";
+ if (own.length) return "Fix what's marked to test it";
+ if (busy === "check") return "Test run: pricing every step on each engine…";
if (busy === "save") return "Saving…";
- if (!c?.plan) return "Check it first — it's free: Fuobe prices every step and runs it once on the demo provider.";
+ if (!c?.plan) return `Do a free test run first. ${TEST_RUN_NOTE}`;
if (!c.plan.ready.length) return "It doesn't run as it is: see what's marked";
const where = c.plan.ready.map((e) => ENGINE_WORD[e]).join(" and ");
- return `It runs on ${where}. Save it now; the free dry run finishes on its own.`;
+ return `It runs on ${where}. Save it now; the placeholder run finishes on its own.`;
}
function priceOf(e: DraftCheckResult["engines"][number]): string {
@@ -410,21 +410,21 @@ function CheckBadges({ check }: { check: CheckState }) {
))}
{demo === "running" && (
<span className="inline-flex h-6 items-center gap-1 rounded-full bg-muted px-2 text-[12px] text-muted-foreground">
- <Loader2 className="size-3 animate-spin" /> Dry run…
+ <Loader2 className="size-3 animate-spin" /> Placeholder run…
</span>
)}
{demo && demo !== "running" && skipped && (
// A studio step's dry run would make a record you'd see (a demo dub): its plan is its check, and nothing ran.
<span className="inline-flex h-6 items-center gap-1 rounded-full bg-muted px-2 text-[12px] text-muted-foreground" title={skipped}>
- <Info className="size-3" /> No dry run: a studio step is checked by its plan
+ <Info className="size-3" /> Priced only: a studio step isn&apos;t test-run
</span>
)}
{demo && demo !== "running" && !skipped && (
<span className={cn("inline-flex h-6 items-center gap-1 rounded-full px-2 text-[12px] font-medium", demo.ok ? "bg-brand-faint text-brand-text" : "bg-destructive/10 text-destructive")} title={demo.ok ? undefined : demo.engines.flatMap((e) => e.dryRun?.problems ?? []).join("; ")}>
- {demo.ok ? <Check className="size-3" /> : <X className="size-3" />} Dry run {demo.ok ? "passed" : "failed"}
+ {demo.ok ? <Check className="size-3" /> : <X className="size-3" />} Placeholder run {demo.ok ? "passed" : "failed"}
</span>
)}
- {check.error && <span className="inline-flex h-6 items-center rounded-full bg-destructive/10 px-2 text-[12px] text-destructive">Dry run: {check.error}</span>}
+ {check.error && <span className="inline-flex h-6 items-center rounded-full bg-destructive/10 px-2 text-[12px] text-destructive">Placeholder run: {check.error}</span>}
</div>
);
}
diff --git a/src/components/skills/skill-suggestions.tsx b/src/components/skills/skill-suggestions.tsx
index df41a830..1057347c 100644
--- a/src/components/skills/skill-suggestions.tsx
+++ b/src/components/skills/skill-suggestions.tsx
@@ -43,7 +43,7 @@ export function SkillSuggestions() {
You&apos;ve made “{s.words}” {s.count} times. Save it as a skill?
</p>
<p className="text-[12px] text-muted-foreground">
- {s.demo ? "From demo results: check it on your engine once it's saved. " : ""}A skill runs the same steps again with new inputs, priced first.
+ {s.demo ? "Made from placeholder results: it hasn't made a real result yet. " : ""}A skill runs the same steps again with new inputs, priced first.
</p>
</div>
<div className="flex flex-wrap items-center gap-1.5">
diff --git a/src/components/storyboard-view.tsx b/src/components/storyboard-view.tsx
index 42958205..c37c36f2 100644
--- a/src/components/storyboard-view.tsx
+++ b/src/components/storyboard-view.tsx
@@ -302,11 +302,11 @@ function Board({
variant="ghost"
size="sm"
className="text-muted-foreground hover:text-destructive"
- aria-label="Delete storyboard"
+ aria-label="Move storyboard to Trash"
// One bulk call, and the shared toast with Undo (the frames go to the Trash).
onClick={() => void trash([...frames, ...film], "Storyboard moved to Trash")}
>
- <Trash2 /> <span className="hidden sm:inline">Delete</span>
+ <Trash2 /> <span className="hidden sm:inline">Move to Trash</span>
</Button>
</div>
</header>
diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsx
index 8e098d2a..971f40e4 100644
--- a/src/components/studio/composer.tsx
+++ b/src/components/studio/composer.tsx
@@ -76,6 +76,7 @@ import {
prestepCost,
pushRecent,
routeParams,
+ saysYourGpu,
untouchedParams,
settingsShape,
showsPrompt,
@@ -874,7 +875,9 @@ export function Composer({ docked }: { docked: boolean }) {
const alternativeHref = alternative && `${alternative.href}${video?.startsWith("/api/files/") ? `&video=${encodeURIComponent(video)}` : ""}`;
const demo = !!(model && placeholdersOn(status?.demoMode));
// On the open engine every run is free on the GPU: said even before the run can be planned (no voice sample, no clip yet).
- const ownCostText = costLabel({ demo, cost: cost ?? (engine === "open" && model ? 0 : null), unknown: loraPriceUnknown }, formatCost);
+ // Said with "your GPU" only off a hosted studio: there the run may use the studio's GPUs, and the chip or hint says where.
+ const gpuRun = saysYourGpu(engine, hostedHere);
+ const ownCostText = costLabel({ demo, cost: cost ?? (engine === "open" && model ? 0 : null), unknown: loraPriceUnknown, gpu: gpuRun }, formatCost);
// An account's paid run is billed to its own provider account (Your keys), or still needs that key.
const payer = paidThrough(model, status);
const missingKey = needsKey(model, status)?.[0];
@@ -1567,7 +1570,7 @@ export function Composer({ docked }: { docked: boolean }) {
<Tooltip>
<TooltipTrigger asChild>
<span className="shrink-0 text-[12px] font-medium text-muted-foreground tabular-nums">
- <span className="sm:hidden">{exactPrice ? fly.compactPrice : poolPrice ? costText : costLabel({ demo, cost, compact: true, unknown: loraPriceUnknown }, formatCost)}</span>
+ <span className="sm:hidden">{exactPrice ? fly.compactPrice : poolPrice ? costText : costLabel({ demo, cost: cost ?? (engine === "open" && model ? 0 : null), compact: true, unknown: loraPriceUnknown, gpu: gpuRun }, formatCost)}</span>
<span className="hidden sm:inline">
{costText}
{payerText}
diff --git a/src/components/studio/feed.tsx b/src/components/studio/feed.tsx
index 34506871..dd150ac1 100644
--- a/src/components/studio/feed.tsx
+++ b/src/components/studio/feed.tsx
@@ -16,11 +16,12 @@ import {
} from "@/components/ui/dropdown-menu";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
import { OPERATION_LABELS, type Generation } from "@/lib/catalog/types";
-import { useCreateGeneration, useGenerationActions } from "@/lib/api";
+import { useCreateGeneration, useGenerationActions, useStatus } from "@/lib/api";
+import { placeholdersOn } from "@/lib/demo-mode";
import { useSoulFinish } from "./soul-finish";
import { elapsed, formatCost, leftLabel, notePace, ratioValue, timeAgo, timeLeft } from "@/lib/format";
import { downloadHref, downloadName, userTitle } from "@/lib/library";
-import { isLayered, shownOutputs } from "@/lib/output-actions";
+import { draftRenderPaid, isLayered, shownOutputs } from "@/lib/output-actions";
import { cn } from "@/lib/utils";
import { copyWithToast } from "@/lib/clipboard";
import { toastError } from "@/lib/refusals";
@@ -186,6 +187,7 @@ function useFeed(): FeedApi {
function DraftButton({ g, draftId }: { g: Generation; draftId: string }) {
const finalize = useFinalizeDraft();
+ const placeholders = placeholdersOn(useStatus().data?.demoMode);
return (
<button
onClick={(e) => {
@@ -194,7 +196,7 @@ function DraftButton({ g, draftId }: { g: Generation; draftId: string }) {
}}
className="absolute top-2 left-2 inline-flex h-7 items-center gap-1 rounded-full bg-black/55 pr-2.5 pl-2 text-[12px] font-medium text-white backdrop-blur transition-colors hover:bg-black/75"
>
- <Sparkles className="size-3.5" /> Draft · render 1080p
+ <Sparkles className="size-3.5" /> Draft · render 1080p{draftRenderPaid(placeholders)}
</button>
);
}
diff --git a/src/components/studio/result-actions.tsx b/src/components/studio/result-actions.tsx
index 327fc767..982d5a6b 100644
--- a/src/components/studio/result-actions.tsx
+++ b/src/components/studio/result-actions.tsx
@@ -74,7 +74,8 @@ import { useShare } from "@/components/share/share-provider";
import { useSkillBuilder } from "@/components/skills/skill-builder-provider";
import { Popover, PopoverAnchor, PopoverContent } from "@/components/ui/popover";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
-import { useCreateGeneration, useEngineMode, useGenerationActions, useLikelyVisitor, useSaveElement } from "@/lib/api";
+import { useCreateGeneration, useEngineMode, useGenerationActions, useLikelyVisitor, useSaveElement, useStatus } from "@/lib/api";
+import { placeholdersOn } from "@/lib/demo-mode";
import { ELEMENT_KINDS, type ElementKind } from "@/lib/catalog/elements";
import { OPERATION_LABELS, type Generation, type OutputFile } from "@/lib/catalog/types";
import { downloadName, userTitle } from "@/lib/library";
@@ -416,7 +417,8 @@ export function TileActions({
const run = useActionRunner(opts);
const engineMode = useEngineMode();
const visitor = useLikelyVisitor();
- const list = useMemo(() => outputActions(g, index, { ...ctx, engineMode, visitor }), [g, index, ctx, engineMode, visitor]);
+ const placeholders = placeholdersOn(useStatus().data?.demoMode);
+ const list = useMemo(() => outputActions(g, index, { ...ctx, engineMode, visitor, placeholders }), [g, index, ctx, engineMode, visitor, placeholders]);
const [saving, setSaving] = useState(false);
const strip = useRef<HTMLDivElement>(null);
const [narrow, setNarrow] = useState(false);
diff --git a/src/components/studio/viewer.tsx b/src/components/studio/viewer.tsx
index d9b623c5..c251dd3a 100644
--- a/src/components/studio/viewer.tsx
+++ b/src/components/studio/viewer.tsx
@@ -13,7 +13,8 @@ import { formatCost, timeAgo } from "@/lib/format";
import { PRESETS as GRADE_PRESETS } from "@/lib/grade";
import { trashDaysLeft, userTitle } from "@/lib/library";
import { editOnlyFormat, isLayered, layerInfo, outputActions, type OutputAction } from "@/lib/output-actions";
-import { useEngineMode, useLikelyVisitor } from "@/lib/api";
+import { useEngineMode, useLikelyVisitor, useStatus } from "@/lib/api";
+import { placeholdersOn } from "@/lib/demo-mode";
import { cn } from "@/lib/utils";
import { copyWithToast } from "@/lib/clipboard";
import { CompareSlider } from "./compare-slider";
@@ -169,7 +170,8 @@ export function Viewer({
const run = useActionRunner({ onReuse: onReuse && ((x) => (onReuse(x), onClose())), onCompare: () => setComparing((v) => !v), onDeleted: onClose });
const engineMode = useEngineMode();
const visitor = useLikelyVisitor();
- const list = useMemo(() => outputActions(g, index, { reuse: !!onReuse, compare: !!source, inViewer: true, engineMode, visitor }), [g, index, onReuse, source, engineMode, visitor]);
+ const placeholders = placeholdersOn(useStatus().data?.demoMode);
+ const list = useMemo(() => outputActions(g, index, { reuse: !!onReuse, compare: !!source, inViewer: true, engineMode, visitor, placeholders }), [g, index, onReuse, source, engineMode, visitor, placeholders]);
// Read the latest values from the key handler without re-subscribing on every render.
const latest = useRef({ list, run, g, index, onPrev, onNext, source });
diff --git a/src/lib/composer.ts b/src/lib/composer.ts
index 051ea777..17abba2f 100644
--- a/src/lib/composer.ts
+++ b/src/lib/composer.ts
@@ -1274,14 +1274,25 @@ export function toggleIn(list: string[], id: string): string[] {
// ---------------------------------------------------------------------------
// Cost hint
-export function costLabel(s: { demo: boolean; cost: number | null; compact?: boolean; unknown?: boolean }, format: (usd: number) => string): string {
+/**
+ * The price beside Generate. `gpu`: it runs on the person's own GPU, said with "Free" so a free run never reads as
+ * free of anything (the run still takes their GPU's time).
+ */
+export function costLabel(s: { demo: boolean; cost: number | null; compact?: boolean; unknown?: boolean; gpu?: boolean }, format: (usd: number) => string): string {
if (s.demo) return s.compact ? "Placeholder" : "Placeholder · free";
- if (s.cost === 0) return "Free";
+ if (s.cost === 0) return s.gpu ? (s.compact ? "Free · GPU" : "Free · your GPU") : "Free";
if (s.cost != null) return `≈ ${format(s.cost)}`;
// A price the provider hasn't published (fal's MOSS-Image with LoRAs): said, never shown as free.
return s.unknown ? "Price unknown" : "";
}
+/**
+ * Whether the price says "your GPU": an open-engine run on the person's own GPU. On a hosted studio an open run may go
+ * to the studio's GPUs instead, and the "Your GPU" / "This studio's GPUs" chip or the price's hint says where, so the
+ * price never claims the person's GPU there.
+ */
+export const saysYourGpu = (engine: string | undefined, hostedHere: boolean): boolean => engine === "open" && !hostedHere;
+
/** Prompts with an @mention: spellcheck would underline every handle. */
export const hasMention = (text: string) => /(^|\s)@[\p{L}\p{N}_-]+/u.test(text);
diff --git a/src/lib/demo-mode.ts b/src/lib/demo-mode.ts
index 698355e2..0886d5c0 100644
--- a/src/lib/demo-mode.ts
+++ b/src/lib/demo-mode.ts
@@ -28,6 +28,18 @@ export const PLACEHOLDER_ACTION_LABELS: Record<PlaceholderAction, string> = {
/** A result the demo provider made (a placeholder, not the real thing). */
export const isPlaceholder = (g: { provider?: string | null } | null | undefined): boolean => g?.provider === "mock";
+/**
+ * What a one-tap "Run again" adds to its label, so a new run never starts unannounced: " on your GPU", " on the
+ * studio's GPUs" (a hosted run) or " · paid" (a cloud run is billed), nothing before the run is known. The new run
+ * follows the placeholder switch as it is now (`now.placeholders`, from the status), not the old result: nothing while
+ * placeholders are on, even after a real result, and a real run's words after an old placeholder once they're off.
+ */
+export function againWhere(g: { engine: string; place?: "pool" } | null | undefined, now: { placeholders: boolean }): string {
+ if (!g || now.placeholders) return "";
+ if (g.place === "pool") return " on the studio's GPUs";
+ return g.engine === "open" ? " on your GPU" : " · paid";
+}
+
/** Whether the owner's runs make placeholders now: only with the switch on ("on"; anything else is off). */
export const placeholdersOn = (demoMode: string | undefined): boolean => demoMode === "on";
diff --git a/src/lib/output-actions.ts b/src/lib/output-actions.ts
index db5d9fe5..f51a3220 100644
--- a/src/lib/output-actions.ts
+++ b/src/lib/output-actions.ts
@@ -95,8 +95,13 @@ export interface ActionContext {
engineMode?: "both" | "open" | "cloud";
/** A guest or an account: hand-offs to the tools that run on a self-hosted Fuobe only are left out. */
visitor?: boolean;
+ /** Placeholder results are on (Settings): a new render is a free stand-in, so "paid" is left out. */
+ placeholders?: boolean;
}
+/** A draft's one-tap 1080p render: a new paid run, said before the tap (left out while placeholders are on). */
+export const draftRenderPaid = (placeholders: boolean | undefined): string => (placeholders ? "" : " · paid");
+
/** Hand-offs to tools a guest or an account can't open (they run on a self-hosted Fuobe only). */
const OWNER_ONLY_ACTIONS: ReadonlySet<OutputActionId> = new Set<OutputActionId>(["restore-video", "remove-dialogue", "remove-person", "clean-dialogue"]);
@@ -218,10 +223,10 @@ export function outputActions(g: Generation, index: number, ctx: ActionContext =
if (g.feature === "upload") {
// An upload's Regenerate (it has no words of its own) sits with its other hand-offs.
if (REGEN_OFFERED && o.kind === "video" && ctx.engineMode !== "cloud") link("regenerate", "Regenerate in 2K", regenerateHref(o.url));
- return [...out.filter((a) => a.id !== "favorite"), { id: "delete-upload", label: "Delete", placement: "menu", destructive: true }];
+ return [...out.filter((a) => a.id !== "favorite"), { id: "delete-upload", label: "Delete for good…", placement: "menu", destructive: true }];
}
if (g.outputs.length > 1) out.push({ id: "download-all", label: `Download all ${g.outputs.length} (.zip)`, placement: "menu", href: `/api/generations/zip?ids=${g.id}`, download: "" });
- if (o.draftId) out.push({ id: "finalize", label: "Render this draft in 1080p", placement: "menu" });
+ if (o.draftId) out.push({ id: "finalize", label: `Render this draft in 1080p${ctx.placeholders ? "" : " · a new paid render"}`, placement: "menu" });
// Finishing in 2K beside it: a fal H3 result renders again at 2K on the same hosted model (a new render, priced); a clip
// made on your GPU (or uploaded) opens Upscale → Video on Open-H3 Regenerate, which runs on your GPU only. Other cloud
// results keep their upscalers in Upscale.
@@ -238,7 +243,8 @@ export function outputActions(g: Generation, index: number, ctx: ActionContext =
if (g.status === "succeeded" && g.outputs.some((x) => storedPath(x.url))) out.push({ id: "share", label: "Share link…", placement: "menu" });
// Library: pinned results stay at the top of their view; the review status is a sub-menu of its own.
out.push({ id: "pin", label: g.pinnedAt ? "Unpin" : "Pin to top", placement: "menu" }, { id: "review", label: "Review status", placement: "menu" });
- out.push({ id: "delete", label: "Delete", placement: "menu", destructive: true });
+ // It goes to the Trash (restorable for 30 days), so it says so; a run still going is canceled first.
+ out.push({ id: "delete", label: "Move to Trash", placement: "menu", destructive: true });
return out;
}
diff --git a/src/lib/recipe-builder.ts b/src/lib/recipe-builder.ts
index 4ac65b8f..d84269c2 100644
--- a/src/lib/recipe-builder.ts
+++ b/src/lib/recipe-builder.ts
@@ -79,7 +79,7 @@ export interface SkillDraft {
title: string;
description: string;
whenToUse: string;
- /** Made from results the demo provider made: check it on a real engine before trusting it. */
+ /** Made from results the demo provider made: nothing shows it works on a real engine yet. */
demo: boolean;
/** What the review screen says once (a model that moved, a step left as a fixed input). */
notes: string[];
@@ -94,7 +94,7 @@ export interface DraftRefusal {
reason: string;
}
-export const DEMO_NOTE = "Made from demo results: check it on your engine before trusting it";
+export const DEMO_NOTE = "Made from placeholder results: it hasn't made a real result yet";
export const STEPS_REFUSAL = "This was made in steps from one request: open it, press Reuse settings, run it again, then make the skill";
// ---------------------------------------------------------------------------
@@ -135,7 +135,7 @@ const STUDIOS: [RegExp, StudioInfo][] = [
[/^audio-(loop|join)$/, { name: "Audio tools" }],
[/^moodboard$/, { name: "Moodboards" }],
[/^eval$/, { name: "the evaluation harness" }],
- [/^skill-check$/, { name: "a skill's check" }],
+ [/^skill-check$/, { name: "a skill's test run" }],
];
/**
diff --git a/src/lib/recipe.ts b/src/lib/recipe.ts
index 3bacc5b2..99778aaa 100644
--- a/src/lib/recipe.ts
+++ b/src/lib/recipe.ts
@@ -981,19 +981,27 @@ export const shortDay = (day: string): string => {
/** The day a check passed, for `verified` (UTC, so every install agrees). */
export const today = (now = Date.now()): string => new Date(now).toISOString().slice(0, 10);
-export const ENGINE_WORDS: Record<RecipeEngine, string> = { cloud: "Cloud", open: "GPU" };
+export const ENGINE_WORDS: Record<RecipeEngine, string> = { cloud: "Cloud", open: "Your GPU" };
+
+/** What the free test run does: every step priced on each engine, then one run with placeholder results. */
+export const TEST_RUN_NOTE = "Fuobe prices every step and runs it once with placeholder results. Nothing runs for real and nothing is spent.";
+
+/** The same, once a test run passed. */
+export const TEST_RUN_DONE = "Every step priced and run once with placeholder results. Nothing ran for real and nothing was spent.";
/**
- * "Checked 29 Oct · Cloud ✓ · GPU not checked": the line under a recipe skill's description. `engines` are the ones
- * its steps allow on this install.
+ * "Tested 29 Oct · Cloud ✓ · Your GPU not tested yet": the line under a recipe skill's description. `engines` are the
+ * ones its steps allow on this install. "✓": its placeholder run passed there; "priced": only its plan was checked.
*/
export function verifiedLine(recipe: Pick<Recipe, "verified">, engines: RecipeEngine[]): string {
const v = recipe.verified ?? {};
const days = engines.map((e) => v[e]?.dryRun ?? v[e]?.plan).filter((d): d is string => !!d);
- if (!days.length) return "Not checked yet — check it once (free) before the first run";
+ if (!days.length) return "Not tested yet · a test run is free and runs nothing for real";
const last = days.sort().at(-1)!;
- const parts = engines.map((e) => (v[e]?.dryRun ? `${ENGINE_WORDS[e]} ✓` : v[e]?.plan ? `${ENGINE_WORDS[e]} priced` : `${ENGINE_WORDS[e]} not checked`));
- return [`Checked ${shortDay(last)}`, ...parts].join(" · ");
+ const parts = engines.map((e) => (v[e]?.dryRun ? `${ENGINE_WORDS[e]} ✓` : v[e]?.plan ? `${ENGINE_WORDS[e]} priced` : `${ENGINE_WORDS[e]} not tested yet`));
+ // "Tested" only when a placeholder run passed somewhere; a skill only priced (by the CLI or Assist) says "Priced".
+ const verb = engines.some((e) => v[e]?.dryRun) ? "Tested" : "Priced";
+ return [`${verb} ${shortDay(last)}`, ...parts].join(" · ");
}
// ---------------------------------------------------------------------------
@@ -1019,9 +1027,9 @@ export interface RecipeView {
engines: RecipeEngine[];
/** Engines it may run on now: its plan check passed there. */
ready: RecipeEngine[];
- /** Why it needs a re-check, per engine checked before. */
+ /** Why it needs a new test run, per engine tested before. */
recheck: Partial<Record<RecipeEngine, string[]>>;
- /** "Checked 29 Oct · Cloud ✓ · GPU not checked". */
+ /** "Tested 29 Oct · Cloud ✓ · Your GPU not tested yet". */
line: string;
/** Why it runs nowhere on this install. */
why?: string;
diff --git a/src/server/assist/skill-tools.ts b/src/server/assist/skill-tools.ts
index e8f7913e..d70e5c72 100644
--- a/src/server/assist/skill-tools.ts
+++ b/src/server/assist/skill-tools.ts
@@ -145,7 +145,7 @@ async function runFound(input: RunSkill, ctx: ToolContext, found: { recipe: Reci
const engine = asked ?? recipeEngines(recipe)[0];
if (engine && !recipe.verified?.[engine]?.plan && skill.source === "user") {
const check = await verifyRecipe(found.name, "plan", engine).catch((e: Error) => ({ ok: false, why: e.message }));
- if (!check.ok) return { content: JSON.stringify({ error: `/${found.name} doesn't run on ${ENGINE_WORDS[engine]} as it is: check it on the Skills page` }), isError: true };
+ if (!check.ok) return { content: JSON.stringify({ error: `/${found.name} doesn't run on ${ENGINE_WORDS[engine]} as it is: give it a free test run in Assist → Skills (nothing runs for real)` }), isError: true };
}
const out = await runRecipe(found.name, body, asked);
const ids = out.runs.flatMap((r) => r.ids);
diff --git a/src/server/recipes.ts b/src/server/recipes.ts
index b3171336..28918cab 100644
--- a/src/server/recipes.ts
+++ b/src/server/recipes.ts
@@ -9,6 +9,7 @@ import { dualEngine } from "@/lib/catalog/engines";
import { currentModelId, replacedBy } from "@/lib/catalog/replaced";
import type { ChainSlot, Engine, Generation, GenerationRequest, MediaKind } from "@/lib/catalog/types";
import { probeMedia, type MediaInfo } from "@/lib/media-probe";
+import { studioForTool } from "@/lib/recipe-builder";
import {
checkOutputs,
checkValues,
@@ -109,7 +110,7 @@ function serverProblems(recipe: Recipe): string[] {
}
if (out.length) return out;
try {
- compileRun({ name: "check", title: "Check" }, recipe, valuesForCheck(recipe), "cloud", { run: "check" });
+ compileRun({ name: "check", title: "Test run" }, recipe, valuesForCheck(recipe), "cloud", { run: "check" });
} catch (e) {
out.push((e as Error).message);
}
@@ -505,10 +506,10 @@ export function needsRecheck(recipe: Recipe, engines: Engine[] = recipeEngines(r
}
if (!reasons.length) {
try {
- const c = compileRun({ name: "check", title: "Check" }, recipe, valuesForCheck(recipe), e, { run: "check" });
+ const c = compileRun({ name: "check", title: "Test run" }, recipe, valuesForCheck(recipe), e, { run: "check" });
const plan = planCheck(c, e);
if (plan.errors.length) reasons.push(plan.errors[0]);
- else if (v.catalog && planHash(c, e) !== v.catalog) reasons.push("The models, routes or prices it uses changed since it was checked");
+ else if (v.catalog && planHash(c, e) !== v.catalog) reasons.push("The models, routes or prices it uses changed since its last test run");
} catch (err) {
reasons.push((err as Error).message);
}
@@ -619,7 +620,7 @@ export async function runRecipe(name: string, input: RunInput, asked?: Engine):
const { skill, recipe } = getRecipe(name);
mustBeOn(skill);
const engine = engineFor(recipe, asked);
- if (!recipe.verified?.[engine]?.plan) throw new SkillError(`Check this skill on ${ENGINE_NAME[engine]} first — the check is free`, 409);
+ if (!recipe.verified?.[engine]?.plan) throw new SkillError(`Give this skill a free test run on ${ENGINE_NAME[engine]} first — nothing runs for real`, 409);
const { rows, errors } = rowsOf(recipe, input);
if (errors.length) throw new RecipeError(errors);
if (!rows.length) throw new RecipeError(["Add a row to run"]);
@@ -733,7 +734,7 @@ async function dryRun(skill: { name: string; title: string }, recipe: Recipe, en
// studio made for it (a dub session, a Layers project…) is deleted and its rows go to the Trash.
if (c.kind === "staged") return stagedDryRun(skill, c.steps, engine, valuesForCheck(recipe, true), DRY_RUN_MS);
// A studio step would make a record the user sees (a demo dub, a Layers project): its plan is its check in W1.
- if (c.kind === "tool") return { ok: true, problems: [], skipped: `A studio step (${c.tool}) is checked by its plan only` };
+ if (c.kind === "tool") return { ok: true, problems: [], skipped: `A ${studioForTool(c.tool) ?? "studio"} step is priced only, not test-run` };
const p = createPipeline(c.steps, { batchId: nanoid(10) });
const ids = p.items.map((g) => g.id);
try {
@@ -809,7 +810,7 @@ async function realRun(skill: { name: string; title: string }, recipe: Recipe, e
let made: Generation[];
let byKey: Record<string, string> = {};
// A run in stages is checked by its plan and its dry run; a real test of one isn't offered yet.
- if (c.kind === "staged") return { ok: true, problems: [], notes: ["A real test of a skill whose steps wait across studios isn't offered yet: its plan and its dry run check it"], demo: false };
+ if (c.kind === "staged") return { ok: true, problems: [], notes: ["A real test of a skill whose steps wait across studios isn't offered yet: its price and its placeholder run test it"], demo: false };
if (c.kind === "tool") {
const out = await executeTool(c.tool, c.input, { engine });
if (out.isError) return { ok: false, problems: [typeof out.content === "string" ? out.content : "The tool couldn't start"], notes, demo: false };
@@ -823,7 +824,7 @@ async function realRun(skill: { name: string; title: string }, recipe: Recipe, e
byKey = Object.fromEntries(Object.entries(p.byKey).map(([k, g]) => [k, g.id]));
}
const demo = made.length > 0 && made.every((g) => g.provider === "mock");
- if (demo) notes.push(`It ran as a demo (no provider connected for ${ENGINE_NAME[engine]}): connect one in Settings for a real test`);
+ if (demo) notes.push(`It ran with placeholder results on ${ENGINE_NAME[engine]} (placeholders are on in Settings): turn placeholders off in Settings for a real test`);
const byId = new Map(made.map((g) => [g.id, g]));
for (const [key, check] of Object.entries(c.checks)) {
const g = byId.get(byKey[key]);
@@ -917,7 +918,7 @@ const allPassed = (checks: EngineCheck[]) => checks.every((c) => c.plan.ok && (c
export async function verifyRecipe(name: string, level: VerifyLevel, asked?: Engine, o: { confirm?: boolean } = {}): Promise<VerifyResult> {
const found = getRecipe(name);
const { skill } = found;
- if (skill.source === "builtin") throw new SkillError("Built-in skills can't be changed — Duplicate it first, then check your copy", 403);
+ if (skill.source === "builtin") throw new SkillError("Built-in skills can't be changed — Duplicate it first, then test your copy", 403);
// A step that names a model Fuobe retired runs on what replaced it (as every run does): the re-check writes that down.
const recipe = asRunsNow(found.recipe);
const problems = allProblems(recipe);
@@ -931,7 +932,7 @@ export async function verifyRecipe(name: string, level: VerifyLevel, asked?: Eng
// A check takes a while (a dry run, a real test): a recipe saved or uploaded meanwhile is never overwritten, and what
// was checked is never written onto it. Checks of other engines that finished meanwhile are kept.
const now = getRecipe(name).recipe;
- if (!sameRecipe(now, found.recipe)) throw new SkillError("The recipe changed while it was being checked — check it again", 409);
+ if (!sameRecipe(now, found.recipe)) throw new SkillError("The recipe changed during its test run: test it again", 409);
const merged: NonNullable<Recipe["verified"]> = { ...now.verified, ...Object.fromEntries(engines.map((e) => [e, verified[e] ?? null])) };
saveRecipe(name, { ...recipe, verified: merged }, { keepVerified: true });
return { ok: allPassed(checks), engines: checks, view: recipeView(name) };
@@ -1018,11 +1019,11 @@ function adoptChecks(name: string, recipe: Recipe, verified: NonNullable<Recipe[
}
/**
- * Check a draft's recipe before it is saved (the review screen's Check it): `plan` prices it on each engine its steps
+ * Check a draft's recipe before it is saved (the review screen's Test run): `plan` prices it on each engine its steps
* allow (free, quick); `demo` adds the free dry run on the demo provider. What passed is kept for the save; a draft saved
* while its dry run was going gets the result when it ends.
*/
-export async function checkDraft(input: unknown, level: "plan" | "demo", title = "Skill check"): Promise<DraftCheck> {
+export async function checkDraft(input: unknown, level: "plan" | "demo", title = "Skill test run"): Promise<DraftCheck> {
const recipe = draftRecipe(input);
const engines = recipeEngines(recipe);
if (!engines.length) return { ok: false, engines: [], ready: [], why: noEngine(recipe) };
diff --git a/src/server/skill-runs.ts b/src/server/skill-runs.ts
index 9e00f040..4f9c3a50 100644
--- a/src/server/skill-runs.ts
+++ b/src/server/skill-runs.ts
@@ -380,7 +380,7 @@ export async function stagedDryRun(skill: { name: string; title: string }, steps
const problems = (r?.state.steps ?? []).filter((s) => s.status === "failed").map((s) => `Step “${s.key}”: ${s.error ?? "it failed"}`);
return { ok: status === "done", problems };
}
- if (Date.now() > until) return { ok: false, problems: ["The dry run took too long"] };
+ if (Date.now() > until) return { ok: false, problems: ["The test run took too long"] };
await new Promise((res) => setTimeout(res, 300));
}
});
diff --git a/tests/again-where.test.ts b/tests/again-where.test.ts
new file mode 100644
index 00000000..dd4f378f
--- /dev/null
+++ b/tests/again-where.test.ts
@@ -0,0 +1,33 @@
+import { describe, expect, it } from "vitest";
+import { againWhere } from "@/lib/demo-mode";
+import { draftRenderPaid } from "@/lib/output-actions";
+
+describe("a one-tap Run again says what it spends", () => {
+ const off = { placeholders: false };
+ const on = { placeholders: true };
+
+ it("on your GPU, on the studio's GPUs, paid in the cloud", () => {
+ expect(againWhere({ engine: "open" }, off)).toBe(" on your GPU");
+ expect(againWhere({ engine: "open", place: "pool" }, off)).toBe(" on the studio's GPUs");
+ expect(againWhere({ engine: "cloud" }, off)).toBe(" · paid");
+ });
+
+ it("follows the placeholder switch as it is now, not the old result", () => {
+ // An old placeholder result, placeholders now off: the rerun is real and says so.
+ expect(againWhere({ engine: "cloud", provider: "mock" } as { engine: string }, off)).toBe(" · paid");
+ // An old real result, placeholders now on: the rerun is a free stand-in, so nothing is added.
+ expect(againWhere({ engine: "cloud", provider: "fal" } as { engine: string }, on)).toBe("");
+ expect(againWhere({ engine: "open" }, on)).toBe("");
+ });
+
+ it("adds nothing before the run is known", () => {
+ expect(againWhere(undefined, off)).toBe("");
+ expect(againWhere(null, off)).toBe("");
+ });
+
+ it("marks a draft's 1080p render as paid unless placeholders are on", () => {
+ expect(draftRenderPaid(false)).toBe(" · paid");
+ expect(draftRenderPaid(undefined)).toBe(" · paid");
+ expect(draftRenderPaid(true)).toBe("");
+ });
+});
diff --git a/tests/cli-run.test.ts b/tests/cli-run.test.ts
index cc0ea35b..65ca6d2d 100644
--- a/tests/cli-run.test.ts
+++ b/tests/cli-run.test.ts
@@ -449,7 +449,7 @@ describe("fuobe skills: a skill that runs by itself", () => {
expect(engine.stderr).toMatch(/^\/weekly-promo runs on the cloud only: leave out --engine/);
});
- it("run won't spend without a yes; with --yes it checks the skill, uploads the file, runs, waits and saves", async () => {
+ it("run won't spend without a yes; with --yes it prices the skill, uploads the file, runs, waits and saves", async () => {
fs.writeFileSync(path.join(tmp, "lamp.png"), PNG);
const asked = await run(["skills", "run", "weekly-promo", "-p", "product=lamp.png", "-p", "name=Lumen"]);
expect(asked.code).toBe(2);
@@ -458,7 +458,7 @@ describe("fuobe skills: a skill that runs by itself", () => {
seen = [];
const r = await run(["skills", "run", "weekly-promo", "-p", "product=lamp.png", "-p", "name=Lumen", "--yes", "--out", "promo", "--interval", "0.2"]);
expect(r.code).toBe(0);
- expect(r.stderr).toContain("Checking /weekly-promo on the cloud first (free: it prices each step, nothing runs)…");
+ expect(r.stderr).toContain("Pricing /weekly-promo on the cloud first (free: nothing runs)…");
expect(r.stdout).toMatch(/^Saved promo\/gen1\.png \(1 KB\)$/m);
// Priced with a stand-in, checked, then the file went up once and the run used its URL.
expect(seen.filter((s) => s.method === "POST").map((s) => s.path)).toEqual([
diff --git a/tests/composer.test.ts b/tests/composer.test.ts
index 069bfcdb..cfb948f5 100644
--- a/tests/composer.test.ts
+++ b/tests/composer.test.ts
@@ -8,6 +8,7 @@ import {
blockerLine,
slotCaption,
costLabel,
+ saysYourGpu,
filterModels,
firstMissingSlot,
groupModels,
@@ -306,12 +307,22 @@ describe("cost and mentions", () => {
expect(costLabel({ demo: true, cost: 0.4 }, fmt)).toBe("Placeholder · free");
expect(costLabel({ demo: true, cost: 0.4, compact: true }, fmt)).toBe("Placeholder");
expect(costLabel({ demo: false, cost: 0 }, fmt)).toBe("Free");
+ expect(costLabel({ demo: false, cost: 0, gpu: true }, fmt)).toBe("Free · your GPU");
+ expect(costLabel({ demo: false, cost: 0, gpu: true, compact: true }, fmt)).toBe("Free · GPU");
+ expect(costLabel({ demo: true, cost: 0, gpu: true }, fmt)).toBe("Placeholder · free");
expect(costLabel({ demo: false, cost: 0.4 }, fmt)).toBe("≈ $0.40");
expect(costLabel({ demo: false, cost: null }, fmt)).toBe("");
// A price the provider hasn't published (fal's MOSS-Image with LoRAs) is said, never shown as free.
expect(costLabel({ demo: false, cost: null, unknown: true }, fmt)).toBe("Price unknown");
expect(costLabel({ demo: false, cost: null, unknown: true, compact: true }, fmt)).toBe("Price unknown");
});
+ it("says \"your GPU\" only where the run surely uses it", () => {
+ expect(saysYourGpu("open", false)).toBe(true);
+ // A hosted studio: an account with no GPU connected runs on the studio's GPUs, so never "Free · your GPU".
+ expect(saysYourGpu("open", true)).toBe(false);
+ expect(costLabel({ demo: false, cost: 0, gpu: saysYourGpu("open", true) }, fmt)).toBe("Free");
+ expect(saysYourGpu("cloud", false)).toBe(false);
+ });
it("spots @mentions (spellcheck off)", () => {
expect(hasMention("@Koi_Pond_Night at dusk")).toBe(true);
expect(hasMention("a shot of @Maya")).toBe(true);
diff --git a/tests/e2e/assist-flows.mjs b/tests/e2e/assist-flows.mjs
index d5335308..a8d5094e 100644
--- a/tests/e2e/assist-flows.mjs
+++ b/tests/e2e/assist-flows.mjs
@@ -211,7 +211,7 @@ await step("save a chat as a skill, then /skill plus an attachment runs it on on
await dialog.getByRole("radiogroup", { name: /^Image: fixed or varies/ }).getByRole("radio", { name: "Varies" }).click();
await page.locator("#sb-name").fill(savedSkill);
await shot(page, "flow-save-skill");
- await dialog.getByRole("button", { name: "Check it" }).click();
+ await dialog.getByRole("button", { name: "Test run (free)" }).click();
await dialog.getByText(/^It runs on /).waitFor({ timeout: 60_000 });
await dialog.getByRole("button", { name: "Save skill" }).click();
await page.getByRole("dialog").getByText(/Try it with new inputs/).waitFor({ timeout: 30_000 });
diff --git a/tests/e2e/library-flows.mjs b/tests/e2e/library-flows.mjs
index fe43fe04..72fd0f7c 100644
--- a/tests/e2e/library-flows.mjs
+++ b/tests/e2e/library-flows.mjs
@@ -255,14 +255,14 @@ try {
await page.waitForTimeout(500);
await uploadCard("used").hover();
await uploadCard("used").getByRole("button", { name: "More actions" }).click();
- await page.getByRole("menuitem", { name: "Delete" }).click();
+ await page.getByRole("menuitem", { name: "Delete for good…" }).click();
await page.getByText(/still in use/).waitFor({ timeout: 20_000 }).catch(() => {});
const said = (await page.getByRole("alertdialog").innerText()).replace(/\s+/g, " ");
check("an upload in use says where", /still in use/.test(said) && /1 result/.test(said), said);
await page.getByRole("button", { name: "OK" }).click();
await uploadCard("free").hover();
await uploadCard("free").getByRole("button", { name: "More actions" }).click();
- await page.getByRole("menuitem", { name: "Delete" }).click();
+ await page.getByRole("menuitem", { name: "Delete for good…" }).click();
await page.getByRole("button", { name: "Delete upload" }).click({ timeout: 20_000 });
await page.waitForTimeout(1200);
const left = (await call("/api/assets?source=upload&limit=200")).items.map((a) => a.id);
diff --git a/tests/e2e/skills-builder.mjs b/tests/e2e/skills-builder.mjs
index b84e5a20..7431caaf 100644
--- a/tests/e2e/skills-builder.mjs
+++ b/tests/e2e/skills-builder.mjs
@@ -2,7 +2,7 @@
// picture (Image), an edit of it (Edit, with a photo of the product too) and a clip of the edit (Video) — then selected
// in the Library and turned into a skill with the bulk bar's "Make a skill": the review screen shows the 3 steps,
// waiting for each other; one input is switched to Varies and words selected in a prompt become an input of their own;
-// Check it prices it and dry-runs it for free; Save opens the
+// Test run (free) prices it and runs it once with placeholder results; Save opens the
// Run form ("Try it with new inputs"), which runs it with new words. That whole flow runs at 1440 px light (words picked
// with the mouse) and at 390 px dark (on a phone, the words typed: the keyboard's way). The result ⋯ menu offers "Make a
// skill from this…" too, and so does a creation opened from ⌘K (a viewer outside the page). At 1440 and 390 px, light
@@ -110,7 +110,7 @@ try {
check(`${tagLine}: Make a skill opens the review screen`, await seen(dialog.getByRole("heading", { name: "Make a skill" })));
check(`${tagLine}: it shows the 3 steps behind them`, await seen(dialog.getByText("What changes next time"), 30_000) && (await dialog.locator("ol > li").count()) === 3);
check(`${tagLine}: each waits for the one before`, (await dialog.getByText(/^waits for /).count()) === 2);
- check(`${tagLine}: it says they were demo results`, await seen(dialog.getByText(/Made from demo results/)));
+ check(`${tagLine}: it says they were placeholder results`, await seen(dialog.getByText(/Made from placeholder results/)));
check(`${tagLine}: every input starts Fixed`, (await dialog.getByRole("radio", { name: "Varies", checked: true }).count()) === 0);
// 3. One input varies: the picture's words. And two words of the edit's prompt become an input of their own
// (selected in the text), which every prompt that has them shares.
@@ -145,10 +145,11 @@ try {
await editRow.getByRole("button", { name: "Make it an input" }).click();
check(`${tagLine}: selected words become an input, marked in the text`, (await dialog.locator("mark", { hasText: "brass desk lamp" }).count()) >= 1 && (await dialog.getByText("2 inputs for the Run form").count()) === 1);
await shot(page, `builder-${width}-${scheme}`);
- // 4. Check it: priced on each engine, then a free dry run in the background.
- await dialog.getByRole("button", { name: "Check it" }).click();
- check(`${tagLine}: Check it passes the plan`, await seen(dialog.getByText(/^It runs on /), 60_000), (await dialog.locator("[aria-live=polite]").last().innerText().catch(() => "")).slice(0, 120));
- check(`${tagLine}: the dry run passes (free, on the demo provider)`, await seen(dialog.getByText("Dry run passed"), 120_000));
+ // 4. Test run: priced on each engine, then a free placeholder run in the background.
+ check(`${tagLine}: it says the test run runs nothing for real`, await seen(dialog.getByText(/Nothing runs for real and nothing is spent/)));
+ await dialog.getByRole("button", { name: "Test run (free)" }).click();
+ check(`${tagLine}: Test run passes the plan`, await seen(dialog.getByText(/^It runs on /), 60_000), (await dialog.locator("[aria-live=polite]").last().innerText().catch(() => "")).slice(0, 120));
+ check(`${tagLine}: the placeholder run passes (free)`, await seen(dialog.getByText("Placeholder run passed"), 120_000));
// 5. Save: the Run form opens with the inputs it was made from.
const title = await dialog.getByLabel("Title").inputValue();
const skillName = await page.locator("#sb-name").inputValue();
diff --git a/tests/e2e/skills-run.mjs b/tests/e2e/skills-run.mjs
index 243dc79b..2a7dda60 100644
--- a/tests/e2e/skills-run.mjs
+++ b/tests/e2e/skills-run.mjs
@@ -1,8 +1,8 @@
// Skills W1 in a real browser (demo mode: no keys, ComfyUI unreachable). A skill with a recipe is seeded over the API;
-// its card says "Runs by itself"; /assist/skills?run=<name> opens the Run form, which asks for a free check first,
+// its card says "Runs by itself"; /assist/skills?run=<name> opens the Run form, which asks for a free test run first,
// then runs it once from the form (a photo, a name, a shape) and three times from pasted CSV rows, each priced first
// ("Placeholder · free" here); a switched-off skill's form says so and switches it back on; the skill's dialog says where it was
-// checked, and in amber that it needs a re-check after its route changed, and Re-check clears it. ⌘K lists
+// tested, and in amber that it needs a new test run after its route changed, and Test again clears it. ⌘K lists
// "Run <skill>…". At 1440 and 390 px, light and dark: nothing scrolls sideways, and on a phone the form fills the screen.
// Usage: node tests/e2e/skills-run.mjs [appUrl] [--shots <dir>] (app running in demo mode). Exits 1 on a failed check.
import fs from "node:fs";
@@ -92,16 +92,17 @@ try {
const dialog = page.getByRole("dialog");
check(`${tag}: ?run= opens the Run form`, await seen(dialog.getByRole("heading", { name: "Run E2E Poster" })));
if (!flowsDone) {
- // 1. Unchecked: the form asks for the free check first.
- check(`${tag}: it asks for a free check first`, await seen(dialog.getByText("Check it once first")));
- await dialog.getByRole("button", { name: "Check it (free)" }).click();
+ // 1. Untested: the form asks for the free test run first, and says nothing runs for real.
+ check(`${tag}: it asks for a free test run first`, await seen(dialog.getByText("Do a free test run first.")));
+ check(`${tag}: …and says nothing runs for real`, await seen(dialog.getByText(/Nothing runs for real and nothing is spent/)));
+ await dialog.getByRole("button", { name: "Test run (free)" }).click();
const checked = await page
- .getByText(/Checked — it runs on Cloud/)
+ .getByText(/Test run passed — it runs on Cloud/)
.first()
.waitFor({ timeout: 90_000 })
.then(() => true)
.catch(() => false);
- check(`${tag}: the check passes (plan + a free dry run)`, checked);
+ check(`${tag}: the test run passes (plan + a free placeholder run)`, checked);
// 2. One run: a photo, a name, a shape; the price before it starts.
await dialog.locator('input[type="file"][accept^="image"]').first().setInputFiles(path.join(root, photoFile));
await dialog.getByLabel("Product name").fill("Arc floor lamp");
@@ -162,26 +163,26 @@ try {
check(`${tag}: …and its Run button is off`, await dialog.getByRole("button", { name: /^Run/ }).isDisabled());
await dialog.getByRole("button", { name: "Switch it on" }).click();
check(`${tag}: Switch it on brings the form back`, await seen(dialog.getByText("Runs in the cloud")));
- // 4. Re-check: a different route than the one checked (Replicate preferred) needs a re-check, and Re-check clears it.
+ // 4. Test again: a different route than the one tested (Replicate preferred) needs a new test run, and Test again clears it.
await send("PUT", "/api/settings", { cloudProvider: "replicate" });
await openRoute(page, `${app}/assist/skills?skill=${NAME}`);
const amber = await page
- .getByText(/Needs a re-check:/)
+ .getByText(/Needs a new test run:/)
.first()
.waitFor({ timeout: 15_000 })
.then(() => true)
.catch(() => false);
- check(`${tag}: the skill says it needs a re-check after its route changed`, amber);
+ check(`${tag}: the skill says it needs a new test run after its route changed`, amber);
await shot(page, `recheck-${width}-${scheme}`);
if (amber) {
- await page.getByRole("button", { name: "Re-check" }).click();
+ await page.getByRole("button", { name: "Test again (free)" }).click();
const ok = await page
- .getByText(/Checked — it still runs/)
+ .getByText(/Test run passed — it still runs/)
.first()
.waitFor({ timeout: 90_000 })
.then(() => true)
.catch(() => false);
- check(`${tag}: Re-check passes and clears it`, ok && (await seen(page.getByText(/Checked \d+ \w+ · Cloud ✓/).first())));
+ check(`${tag}: Test again passes and clears it`, ok && (await seen(page.getByText(/Tested \d+ \w+ · Cloud ✓/).first())));
}
await send("PUT", "/api/settings", { cloudProvider: "auto" });
await send("POST", `/api/assist/skills/${NAME}/verify`, { level: "demo" });
@@ -204,7 +205,7 @@ try {
await openRoute(page, `${app}/assist/skills?run=${NAME}`);
}
// Layout: ready to run, at this size and scheme.
- check(`${tag}: the form is ready to run (checked on Cloud)`, await seen(dialog.getByText("Runs in the cloud")));
+ check(`${tag}: the form is ready to run (tested on Cloud)`, await seen(dialog.getByText("Runs in the cloud")));
const box = await dialog.boundingBox();
check(`${tag}: the dialog fits the screen`, !!box && box.width <= width + 1 && box.x >= -1, box ? `${Math.round(box.width)}×${Math.round(box.height)}` : "");
if (width < 500) check(`${tag}: on a phone it fills the screen`, !!box && box.height >= height - 2);
diff --git a/tests/placeholder-results.test.ts b/tests/placeholder-results.test.ts
index a9973ba6..cec8356c 100644
--- a/tests/placeholder-results.test.ts
+++ b/tests/placeholder-results.test.ts
@@ -10,6 +10,7 @@ import { afterAll, afterEach, describe, expect, it } from "vitest";
*/
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-placeholders-"));
+
process.env.FUOBE_DATA_DIR = dir;
process.env.COMFYUI_URL = "http://127.0.0.1:9"; // nothing listens here
delete process.env.FUOBE_DEMO_MODE;
diff --git a/tests/recipe.test.ts b/tests/recipe.test.ts
index d9621bd4..78ff12b5 100644
--- a/tests/recipe.test.ts
+++ b/tests/recipe.test.ts
@@ -391,7 +391,12 @@ describe("sharing and reading", () => {
});
it("says when and where it was checked", () => {
- expect(verifiedLine(lamp(), ["cloud", "open"])).toBe("Checked 29 Oct · Cloud ✓ · GPU not checked");
- expect(verifiedLine({}, ["cloud"])).toMatch(/Not checked yet/);
+ expect(verifiedLine(lamp(), ["cloud", "open"])).toBe("Tested 29 Oct · Cloud ✓ · Your GPU not tested yet");
+ expect(verifiedLine({}, ["cloud"])).toMatch(/Not tested yet · a test run is free and runs nothing for real/);
+ });
+
+ it("says Priced, not Tested, when only the plan was checked", () => {
+ const planOnly = { verified: { cloud: { plan: "2026-10-29", dryRun: null, real: null, catalog: "sha256:abc" }, open: null } } as Pick<Recipe, "verified">;
+ expect(verifiedLine(planOnly, ["cloud", "open"])).toBe("Priced 29 Oct · Cloud priced · Your GPU not tested yet");
});
});
diff --git a/tests/recipes.test.ts b/tests/recipes.test.ts
index 89128acd..cbb77484 100644
--- a/tests/recipes.test.ts
+++ b/tests/recipes.test.ts
@@ -149,8 +149,8 @@ describe("saving a recipe", () => {
describe("running a recipe", () => {
it("runs only on an engine where it was checked", async () => {
makeSkill("lamp-unchecked", lamp());
- await expect(recipes.runRecipe("lamp-unchecked", { values: { product: photo, name: "Lamp" } })).rejects.toThrow(/Check this skill on the cloud first/);
- expect(recipes.recipeView("lamp-unchecked")).toMatchObject({ engines: ["cloud"], ready: [], line: expect.stringMatching(/Not checked yet/) });
+ await expect(recipes.runRecipe("lamp-unchecked", { values: { product: photo, name: "Lamp" } })).rejects.toThrow(/Give this skill a free test run on the cloud first/);
+ expect(recipes.recipeView("lamp-unchecked")).toMatchObject({ engines: ["cloud"], ready: [], line: expect.stringMatching(/Not tested yet/) });
});
it("a 3-step recipe makes one batch of 3 rows with the skill stamp", async () => {
@@ -218,7 +218,7 @@ describe("running a recipe", () => {
const check = await recipes.verifyRecipe("caption-it", "demo");
expect(check.ok).toBe(true);
// A studio step gets the plan check only in W1 (its dry run would make a record the user sees).
- expect(check.engines.map((e) => e.dryRun?.skipped)).toEqual([expect.stringContaining("checked by its plan only"), expect.stringContaining("checked by its plan only")]);
+ expect(check.engines.map((e) => e.dryRun?.skipped)).toEqual([expect.stringContaining("priced only, not test-run"), expect.stringContaining("priced only, not test-run")]);
const out = await recipes.runRecipe("caption-it", { values: { video: clip, lang: "German" } }, "open");
expect(out.runs).toHaveLength(1);
expect(out.runs[0].href).toMatch(/^\/video-tools\/captions\?video=/);
@@ -250,7 +250,7 @@ describe("running a recipe", () => {
expect(out.engine).toBe("open");
expect(gens.getGeneration(out.runs[0].ids[0])).toMatchObject({ engine: "open" });
// Asked for the cloud, it still says to check it there first.
- await expect(recipes.runRecipe("gpu-only", { values: { subject: "a potter" } }, "cloud")).rejects.toThrow(/Check this skill on the cloud first/);
+ await expect(recipes.runRecipe("gpu-only", { values: { subject: "a potter" } }, "cloud")).rejects.toThrow(/Give this skill a free test run on the cloud first/);
});
it("a skill switched off doesn't run until it's switched on", async () => {
@@ -341,7 +341,7 @@ describe("checking a recipe", () => {
const file = JSON.parse(skills.skillFile("lamp", "recipe.json")!);
file.steps[1].request.modelId = "seedream-5-pro";
skills.setSkillFile("lamp", "recipe.json", JSON.stringify(file));
- expect(recipes.recipeView("lamp").recheck.cloud).toEqual(["The models, routes or prices it uses changed since it was checked"]);
+ expect(recipes.recipeView("lamp").recheck.cloud).toEqual(["The models, routes or prices it uses changed since its last test run"]);
});
it("never writes a check over a recipe saved while it ran, and keeps checks that finished meanwhile", async () => {
@@ -350,7 +350,7 @@ describe("checking a recipe", () => {
const checking = recipes.verifyRecipe("race", "demo", "open");
const edited = { ...soul(), params: [{ ...soul().params[0], example: "a baker at dawn" }] };
recipes.saveRecipe("race", edited);
- await expect(checking).rejects.toThrow(/changed while it was being checked/);
+ await expect(checking).rejects.toThrow(/changed during its test run/);
const stored = JSON.parse(skills.skillFile("race", "recipe.json")!);
expect(stored.params[0].example).toBe("a baker at dawn");
expect(stored.verified).toBeUndefined();
@@ -417,7 +417,7 @@ describe("checking a recipe", () => {
const r = await recipes.verifyRecipe("lamp-unchecked", "real", undefined, { confirm: true });
const [cloud] = r.engines;
// No key: it ran as a demo, so it isn't recorded as a real test, and says so.
- expect(cloud.real).toMatchObject({ ok: true, demo: true, notes: [expect.stringContaining("ran as a demo")] });
+ expect(cloud.real).toMatchObject({ ok: true, demo: true, notes: [expect.stringContaining("ran with placeholder results")] });
expect(r.view.recipe.verified?.cloud?.real).toBeNull();
});
});