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.

Faceless polish from the browser pass

Clauded88f8b19614c
diff --git a/src/components/explainer/explainer-studio.tsx b/src/components/explainer/explainer-studio.tsx
index a746d64b..0b8f602f 100644
--- a/src/components/explainer/explainer-studio.tsx
+++ b/src/components/explainer/explainer-studio.tsx
@@ -353,7 +353,7 @@ export function ExplainerStudio({ picker }: { picker: PickerData }) {
</div>
</div>
- <ol className="mt-6 grid gap-2 sm:grid-cols-3 lg:grid-cols-1 xl:grid-cols-3" aria-label="How it works">
+ <ol className="mt-6 grid gap-2 sm:grid-cols-3 lg:grid-cols-1" aria-label="How it works">
{STEPS.map((s, i) => (
<li key={s.title} className="flex gap-2.5 rounded-2xl bg-muted/50 p-3">
<span className="grid size-8 shrink-0 place-items-center rounded-lg bg-background text-brand-text shadow-soft">
diff --git a/src/components/faceless/cards.tsx b/src/components/faceless/cards.tsx
index 2e0ade34..9f876270 100644
--- a/src/components/faceless/cards.tsx
+++ b/src/components/faceless/cards.tsx
@@ -40,7 +40,7 @@ export function ChannelAvatar({ channel, className }: { channel: Pick<FacelessCh
}
export function ChannelCard({ channel }: { channel: FacelessChannel }) {
- const cover = channel.cover?.outputs.find((o) => o.kind === "video" || o.kind === "image");
+ const cover = channel.cover?.outputs.find((o) => o.kind === "image");
return (
<Link href={`/faceless/${channel.id}`} className="group/card block animate-fade-up rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring">
<div className="relative aspect-video overflow-hidden rounded-xl bg-muted">
@@ -71,14 +71,18 @@ const STATUS: Record<Card["status"], string> = {
/** An episode in a channel's list or the Explainer history. */
export function EpisodeTile({ ep, href, onLike }: { ep: Card; href: string; onLike?: () => void }) {
- const poster = ep.poster?.outputs.find((o) => o.kind === "video" || o.kind === "image");
+ // The first scene's picture shows everywhere (and before the film is done); the film plays on hover.
+ const picture = ep.still?.outputs.find((o) => o.kind === "image");
+ const film = ep.poster?.outputs.find((o) => o.kind === "video");
const vertical = ep.aspect === "9:16";
return (
<div className="group/card relative min-w-0 animate-fade-up">
<Link href={href} className="block rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" aria-label={`Open ${ep.title}`}>
<div className={cn("relative overflow-hidden rounded-xl bg-muted", vertical ? "aspect-[4/5]" : "aspect-video")}>
- {poster ? (
- <MediaThumb output={poster} className={cn("transition-transform duration-300 ease-move group-hover/card:scale-[1.02]", ep.status !== "done" && "opacity-70")} />
+ {picture ? (
+ <MediaThumb output={picture} className={cn("transition-transform duration-300 ease-move group-hover/card:scale-[1.02]", ep.status !== "done" && "opacity-70")} />
+ ) : film ? (
+ <MediaThumb output={film} />
) : (
<StyleArt styleId={ep.styleId} className="opacity-80" />
)}
@@ -91,7 +95,7 @@ export function EpisodeTile({ ep, href, onLike }: { ep: Card; href: string; onLi
) : (
<AlertTriangle className="size-3.5" />
)}
- <span className="truncate">{STATUS[ep.status]}</span>
+ <span className="truncate">{ep.updating ? "Updating a scene" : STATUS[ep.status]}</span>
{ep.status === "rendering" && <span className="ml-auto font-mono tabular-nums">{Math.round(ep.progress * 100)}%</span>}
</div>
)}
diff --git a/src/components/faceless/controls.tsx b/src/components/faceless/controls.tsx
index 08551d17..19975114 100644
--- a/src/components/faceless/controls.tsx
+++ b/src/components/faceless/controls.tsx
@@ -84,9 +84,9 @@ export function EstimateLine({ data, loading, engine, className }: { data: Estim
<div className={cn("flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1", className)}>
<Popover>
<PopoverTrigger asChild>
- <button type="button" className="inline-flex items-center gap-1 rounded-full font-mono text-[12px] text-foreground tabular-nums hover:underline">
+ <button type="button" className={cn("inline-flex items-center gap-1 rounded-full font-mono text-[12px] text-foreground tabular-nums transition-opacity hover:underline", loading && "opacity-60")}>
{price}
- <Info className="size-3 text-muted-foreground" />
+ {loading ? <Loader2 className="size-3 animate-spin text-muted-foreground" /> : <Info className="size-3 text-muted-foreground" />}
</button>
</PopoverTrigger>
<PopoverContent className="w-72 p-3 text-[13px]" collisionPadding={12}>
diff --git a/src/components/faceless/episode-view.tsx b/src/components/faceless/episode-view.tsx
index 4d1b1f60..4407b8f3 100644
--- a/src/components/faceless/episode-view.tsx
+++ b/src/components/faceless/episode-view.tsx
@@ -200,6 +200,12 @@ function TailSteps({ steps, onOpen }: { steps: StepView[]; onOpen: (g: Generatio
);
}
+/** "picture, clip, joining the scenes, voice-over, subtitles" from the steps a change re-runs. */
+const stepWords = (labels: string[]) =>
+ [...new Set(labels.map((l) => l.replace(/^Scene \d+ · /, "").replace(/^Joining scenes.*$/, "Joining the scenes").replace(/ \d+ of \d+$/, "")))]
+ .map((l) => l.charAt(0).toLowerCase() + l.slice(1))
+ .join(", ");
+
const PART_OPTIONS: { value: ChangePart; label: string }[] = [
{ value: "picture", label: "Picture" },
{ value: "motion", label: "Motion" },
@@ -213,7 +219,9 @@ function SceneEditor({ view, scenes, onClose, onOpen }: { view: View; scenes: Sc
const [instruction, setInstruction] = useState("");
const [lines, setLines] = useState<string[]>(() => scenes.map((s) => s.narration));
const apply = useApplyChange(ep.id);
+ const retry = useEpisodeAction(ep.id);
const ids = scenes.map((s) => s.id);
+ const failedStep = scenes.flatMap((s) => [s.still, ...s.clips]).find((x) => broken(x?.generation));
const draft: ChangeDraft | null =
part === "narration"
? lines.some((l, i) => l.trim() && l.trim() !== scenes[i].narration)
@@ -272,6 +280,22 @@ function SceneEditor({ view, scenes, onClose, onOpen }: { view: View; scenes: Sc
<p className="text-[13px] leading-relaxed text-muted-foreground">“{one.narration}”</p>
</div>
)}
+ {failedStep && (
+ <div role="alert" className="mt-3 flex flex-wrap items-center gap-2 rounded-xl border border-destructive/30 bg-destructive/5 px-3 py-2 text-[13px]">
+ <AlertTriangle className="size-4 shrink-0 text-destructive" />
+ <span className="min-w-0 flex-1">
+ {failedStep.label} didn&apos;t finish{failedStep.generation?.error ? `: ${failedStep.generation.error}` : ""}
+ </span>
+ <Button
+ size="sm"
+ variant="outline"
+ disabled={retry.isPending || busy}
+ onClick={() => retry.mutate("retry", { onSuccess: () => toast.success("Retrying what failed"), onError: (e) => toast.error((e as Error).message) })}
+ >
+ <RotateCcw /> Retry
+ </Button>
+ </div>
+ )}
<div className="mt-4 space-y-3">
<Segmented label="What to change" value={part} options={PART_OPTIONS} onChange={setPart} />
{part === "narration" ? (
@@ -315,7 +339,7 @@ function SceneEditor({ view, scenes, onClose, onOpen }: { view: View; scenes: Sc
: preview.isError
? (preview.error as Error).message
: preview.data
- ? `Re-renders ${preview.data.labels.length} step${preview.data.labels.length === 1 ? "" : "s"} (${[...new Set(preview.data.labels.map((l) => l.replace(/^Scene \d+ · /, "")))].slice(0, 4).join(", ")}) · ${preview.data.demo ? "Demo · free" : ep.settings.engine === "open" ? "Free · your GPU" : preview.data.costUsd === null ? "price unknown" : `≈ ${usd(preview.data.costUsd)}`}`
+ ? `Re-renders ${preview.data.labels.length} step${preview.data.labels.length === 1 ? "" : "s"} (${stepWords(preview.data.labels)}) · ${preview.data.demo ? "Demo · free" : ep.settings.engine === "open" ? "Free · your GPU" : preview.data.costUsd === null ? "price unknown" : `≈ ${usd(preview.data.costUsd)}`}`
: "Pricing…"}
</p>
<Button variant="ghost" onClick={discard} disabled={!draft}>
diff --git a/src/components/faceless/hooks.ts b/src/components/faceless/hooks.ts
index 1d28c059..6fca0d84 100644
--- a/src/components/faceless/hooks.ts
+++ b/src/components/faceless/hooks.ts
@@ -199,7 +199,7 @@ export function useDebounced<T>(value: T, ms: number): T {
export function useEstimate(input: { kind: "faceless" | "explainer"; settings: EpisodeSettings; blocks?: ScriptBlock[]; genre?: FacelessGenre } | null) {
const key = input && JSON.stringify(input);
const debounced = useDebounced(key, 350);
- return useQuery({
+ const q = useQuery({
queryKey: ["faceless", "estimate", debounced],
enabled: !!debounced,
queryFn: async () => send<EstimateResult>("/api/faceless/estimate", "POST", JSON.parse(debounced!)),
@@ -207,6 +207,8 @@ export function useEstimate(input: { kind: "faceless" | "explainer"; settings: E
staleTime: 20_000,
retry: false,
});
+ // Still showing the last settings' estimate: the new one is on its way.
+ return { data: q.data, isFetching: q.isFetching || key !== debounced };
}
export const voicePreview = (id: string) => send<Generation>("/api/faceless/voices/preview", "POST", { id });
diff --git a/src/components/faceless/narrator.tsx b/src/components/faceless/narrator.tsx
index 6cad5d8a..28534dba 100644
--- a/src/components/faceless/narrator.tsx
+++ b/src/components/faceless/narrator.tsx
@@ -35,7 +35,8 @@ function usePlayer() {
a.onpause = () => setPlaying((p) => (p === key ? "" : p));
void a.play().then(
() => setPlaying(key),
- () => toast.error("Couldn't play that sample"),
+ // A sample that took a while to make may not autoplay any more: it's cached, the next press plays it.
+ (e: Error) => (e.name === "NotAllowedError" ? toast("Sample ready — press play to listen", { id: "voice-sample" }) : toast.error("Couldn't play that sample", { id: "voice-sample" })),
);
};
const toggle = async (key: string, load: () => Promise<string | null>) => {
diff --git a/src/components/faceless/style-art.tsx b/src/components/faceless/style-art.tsx
index 33e2f84a..d2eb1946 100644
--- a/src/components/faceless/style-art.tsx
+++ b/src/components/faceless/style-art.tsx
@@ -11,7 +11,7 @@ import { cn } from "@/lib/utils";
* clay — tinted with the style's hue.
*/
-type Motif = "graphics" | "lines" | "paper" | "solid3d" | "paint" | "flat" | "pixel" | "clay" | "iso" | "poly";
+type Motif = "graphics" | "lines" | "sketch" | "paper" | "collage" | "fold" | "solid3d" | "figure" | "mix" | "paint" | "flat" | "pixel" | "clay" | "toy" | "iso" | "poly";
const MOTIF: Record<string, Motif> = {
"editorial-motion-graphics": "graphics",
@@ -21,21 +21,21 @@ const MOTIF: Record<string, Motif> = {
"paper-diorama": "paper",
"pastel-flat-2d": "flat",
"colorful-3d": "solid3d",
- "hand-drawn": "lines",
+ "hand-drawn": "sketch",
"poster-vector": "flat",
- mannequin: "solid3d",
+ mannequin: "figure",
"whiteboard-doodle": "lines",
- "3d-papercraft": "paper",
+ "3d-papercraft": "fold",
"mixed-media": "graphics",
"low-poly": "poly",
"2d-illustrator": "flat",
"pixel-art": "pixel",
claymotion: "clay",
"isometric-flat-vector": "iso",
- "3d-mix": "solid3d",
+ "3d-mix": "mix",
"studio-3d": "solid3d",
- "fluffy-toy": "clay",
- "paper-collage": "paper",
+ "fluffy-toy": "toy",
+ "paper-collage": "collage",
};
const c = (l: number, ch: number, h: number) => `oklch(${l} ${ch} ${h % 360})`;
@@ -118,6 +118,97 @@ function Motif({ style, u }: { style: VisualStyle; u: string }) {
}
return <>{cells}</>;
}
+ case "sketch":
+ return (
+ <>
+ <rect width="160" height="100" fill={c(0.96, 0.02, h + 40)} />
+ <g fill="none" stroke={c(0.3, 0.03, h)} strokeLinecap="round" strokeLinejoin="round">
+ <path d="M6 78 Q40 58 76 72 T154 66" strokeWidth="2" />
+ <path d="M10 84 Q44 66 80 78 T150 74" strokeWidth="1" opacity="0.6" />
+ <path d="M44 74 L44 46 M44 46 Q34 40 38 30 Q44 20 52 30 Q58 40 44 46" strokeWidth="2" />
+ <circle cx="118" cy="26" r="11" strokeWidth="1.6" />
+ <path d="M18 34 L30 30 M22 40 L34 36 M26 46 L38 42" strokeWidth="1" opacity="0.5" />
+ </g>
+ <circle cx="118" cy="26" r="10" fill={c(0.86, 0.1, h + 60)} opacity="0.6" />
+ <path d="M60 86 Q90 76 120 86 L120 92 Q90 84 60 92Z" fill={c(0.72, 0.1, h + 140)} opacity="0.55" />
+ </>
+ );
+ case "collage":
+ return (
+ <>
+ <rect width="160" height="100" fill={c(0.84, 0.05, h + 30)} />
+ <path d="M8 14 L70 8 L74 52 L12 58Z" fill={c(0.62, 0.13, h)} transform="rotate(-3 40 30)" filter={`url(#${u}pshadow)`} />
+ <path d="M80 20 L150 16 L148 70 L84 74Z" fill={c(0.92, 0.03, h + 60)} transform="rotate(4 115 45)" filter={`url(#${u}pshadow)`} />
+ <circle cx="114" cy="42" r="16" fill={c(0.55, 0.15, h + 120)} />
+ <path d="M20 62 L96 58 L94 94 L16 92Z" fill={c(0.74, 0.11, h + 200)} filter={`url(#${u}pshadow)`} />
+ <rect x="60" y="4" width="22" height="7" fill="white" opacity="0.7" transform="rotate(8 70 8)" />
+ <g fill={c(0.35, 0.05, h)} opacity="0.35">
+ {[0, 1, 2, 3, 4, 5].map((i) => (
+ <circle key={i} cx={28 + i * 10} cy={76} r={2.2} />
+ ))}
+ </g>
+ </>
+ );
+ case "fold":
+ return (
+ <>
+ <rect width="160" height="100" fill={c(0.92, 0.03, h)} />
+ <path d="M80 18 L112 50 L80 82 L48 50Z" fill={c(0.74, 0.1, h)} />
+ <path d="M80 18 L112 50 L80 50Z" fill={c(0.84, 0.08, h)} />
+ <path d="M48 50 L80 50 L80 82Z" fill={c(0.6, 0.1, h)} />
+ <path d="M118 62 L140 40 L150 70Z" fill={c(0.7, 0.12, h + 120)} />
+ <path d="M118 62 L140 40 L134 64Z" fill={c(0.8, 0.1, h + 120)} />
+ <path d="M14 76 L34 52 L48 80Z" fill={c(0.66, 0.1, h + 60)} />
+ </>
+ );
+ case "figure":
+ return (
+ <>
+ <rect width="160" height="100" fill={c(0.9, 0.01, h)} />
+ <ellipse cx="80" cy="88" rx="62" ry="6" fill="black" opacity="0.1" />
+ {[
+ [56, 0],
+ [104, 6],
+ ].map(([x, dy]) => (
+ <g key={x} fill={c(0.8, 0.02, h + 30)} stroke={c(0.62, 0.02, h + 30)} strokeWidth="1">
+ <ellipse cx={x} cy={22 + dy} rx="7" ry="8" />
+ <rect x={x - 8} y={31 + dy} width="16" height="26" rx="7" />
+ <rect x={x - 15} y={33 + dy} width="6" height="22" rx="3" transform={`rotate(14 ${x - 12} ${33 + dy})`} />
+ <rect x={x + 9} y={33 + dy} width="6" height="22" rx="3" transform={`rotate(-14 ${x + 12} ${33 + dy})`} />
+ <rect x={x - 7} y={56 + dy} width="6" height="28" rx="3" />
+ <rect x={x + 1} y={56 + dy} width="6" height="28" rx="3" />
+ </g>
+ ))}
+ </>
+ );
+ case "mix":
+ return (
+ <>
+ <rect width="160" height="100" fill={c(0.88, 0.05, h + 20)} />
+ <ellipse cx="80" cy="84" rx="58" ry="8" fill="black" opacity="0.1" />
+ <path d="M40 80 L58 40 L76 80Z" fill={c(0.66, 0.14, h + 40)} />
+ <circle cx="96" cy="64" r="16" fill={`url(#${u}ball)`} />
+ <rect x="112" y="46" width="26" height="30" rx="2" fill={c(0.92, 0.04, h + 90)} filter={`url(#${u}pshadow)`} />
+ </>
+ );
+ case "toy":
+ return (
+ <>
+ <rect width="160" height="100" fill={c(0.9, 0.05, h)} />
+ <ellipse cx="80" cy="86" rx="58" ry="8" fill={c(0.78, 0.07, h)} />
+ <g filter={`url(#${u}pshadow)`}>
+ <circle cx="60" cy="30" r="9" fill={c(0.8, 0.1, h)} />
+ <circle cx="96" cy="30" r="9" fill={c(0.8, 0.1, h)} />
+ <ellipse cx="78" cy="56" rx="30" ry="28" fill={c(0.86, 0.08, h)} />
+ </g>
+ <circle cx="68" cy="52" r="3" fill="#222" />
+ <circle cx="88" cy="52" r="3" fill="#222" />
+ <ellipse cx="78" cy="62" rx="6" ry="4" fill={c(0.7, 0.12, h + 20)} />
+ <g stroke="white" strokeOpacity="0.5" strokeWidth="1">
+ <path d="M54 46 l3 2 M98 70 l3 -1 M60 74 l2 3 M96 40 l3 1" />
+ </g>
+ </>
+ );
case "clay":
return (
<>
diff --git a/src/lib/catalog/faceless.ts b/src/lib/catalog/faceless.ts
index b428ed09..1db72ba1 100644
--- a/src/lib/catalog/faceless.ts
+++ b/src/lib/catalog/faceless.ts
@@ -1193,7 +1193,9 @@ export function subjectOf(idea: string): string {
.replace(/^(a |an |my )?(youtube )?channel\s+(about|with|on|for|of)\s+/i, "")
.replace(/^(please\s+)?(explain|describe|tell (me|us) about|show (me|us)|teach (me|us)( about)?)\s+(to (me|us|kids)\s+)?/i, "")
.replace(/^(about|on)\s+/i, "")
- .trim();
+ .trim()
+ // "The untold beginning of …" reads as a noun phrase mid-sentence.
+ .replace(/^(The|A|An) /, (m) => m.toLowerCase());
return s || "your subject";
}
@@ -1250,7 +1252,10 @@ const fill = (t: string, s: string) => t.replaceAll("{S}", capital(s)).replaceAl
/** Topic suggestions without an LLM: templates per genre around the channel's subject. */
export function offlineTopics(idea: string, genre: FacelessGenre, count = 5, skip = 0): TopicIdea[] {
const s = subjectOf(idea);
- const list = OFFLINE_TOPICS[genre] ?? OFFLINE_TOPICS.education;
+ // "The rise and fall of {s}" for a channel about the rise and fall of empires would say it twice.
+ const lead = (t: string) => t.split("{")[0].replace(/^the\s+/i, "").trim().toLowerCase();
+ const all = OFFLINE_TOPICS[genre] ?? OFFLINE_TOPICS.education;
+ const list = all.filter(([t]) => !lead(t) || !s.toLowerCase().includes(lead(t)));
return Array.from({ length: Math.min(count, list.length) }, (_, i) => {
const [title, hook] = list[(i + skip) % list.length];
return { title: fill(title, s), hook };
@@ -1584,7 +1589,12 @@ export interface EpisodeCard {
aspect: EpisodeAspect;
seconds: number;
favorite: boolean;
+ /** The finished film (hover plays it). */
poster: Generation | null;
+ /** The first scene's picture: the card's image (stills show everywhere, before the film is done too). */
+ still: Generation | null;
+ /** Rendering a change: an earlier version is finished. */
+ updating: boolean;
progress: number;
createdAt: number;
}
diff --git a/src/server/faceless.ts b/src/server/faceless.ts
index 46730304..3b3f292d 100644
--- a/src/server/faceless.ts
+++ b/src/server/faceless.ts
@@ -220,8 +220,11 @@ export function listChannels(): FacelessChannel[] {
);
return rows.map((r) => {
const c = toChannel(r);
- const done = db().prepare("SELECT * FROM faceless_episodes WHERE channel_id = ? AND status = 'done' ORDER BY updated_at DESC LIMIT 1").get(r.id) as EpisodeRow | undefined;
- return { ...c, episodes: counts.get(r.id) ?? 0, cover: done ? finalOf(toEpisode(done)) : null };
+ // The newest episode with a finished picture: its first scene is the cover.
+ const latest = db().prepare("SELECT * FROM faceless_episodes WHERE channel_id = ? AND plan_json IS NOT NULL ORDER BY created_at DESC LIMIT 1").get(r.id) as EpisodeRow | undefined;
+ const ep = latest && toEpisode(latest);
+ const still = ep?.plan ? getGeneration(ep.plan.ids[`still-${ep.script.blocks[0]?.id}`] ?? "") : null;
+ return { ...c, episodes: counts.get(r.id) ?? 0, cover: still?.status === "succeeded" ? still : null };
});
}
@@ -852,9 +855,7 @@ function toCard(r: EpisodeRow): EpisodeCard {
const gens = new Map(ids.map((id) => [id, getGeneration(id)] as const));
const status = ep.plan ? settle(ep, gens) : settle(ep, new Map());
const final = ep.plan ? (gens.get(ep.plan.ids.captions ?? ep.plan.ids.mix ?? "") ?? null) : null;
- // A still from the first scene stands in until the film is done.
const firstStill = ep.plan ? (gens.get(ep.plan.ids[`still-${ep.script.blocks[0]?.id}`] ?? "") ?? null) : null;
- const poster = final?.status === "succeeded" ? final : firstStill?.status === "succeeded" ? firstStill : null;
return {
id: ep.id,
channelId: ep.channelId,
@@ -865,7 +866,9 @@ function toCard(r: EpisodeRow): EpisodeCard {
aspect: ep.settings.aspect,
seconds: totalSeconds(ep.script.blocks) || ep.settings.length,
favorite: ep.favorite,
- poster,
+ poster: final?.status === "succeeded" ? final : null,
+ still: firstStill?.status === "succeeded" ? firstStill : null,
+ updating: status === "rendering" && !!ep.plan?.lastFinal,
progress: ids.length ? [...gens.values()].reduce((n, g) => n + stepProgress(g ?? null), 0) / ids.length : 0,
createdAt: ep.createdAt,
};
diff --git a/tests/faceless.test.ts b/tests/faceless.test.ts
index 86f8a561..c9b86cf2 100644
--- a/tests/faceless.test.ts
+++ b/tests/faceless.test.ts
@@ -313,6 +313,12 @@ describe("writing", () => {
expect(topics).toHaveLength(5);
expect(topics[0].title).toMatch(/ancient civilizations/);
expect(new Set(offlineTopics("x", "kids", 5, 5).map((t) => t.title)).size).toBe(5);
+ // A template that would repeat the channel's own words is skipped.
+ const empires = offlineTopics("Channel about the rise and fall of empires", "history", 5);
+ expect(empires).toHaveLength(5);
+ expect(empires.some((t) => /rise and fall of the rise and fall/i.test(t.title))).toBe(false);
+ expect(subjectOf("The untold beginning of Rome")).toBe("the untold beginning of Rome");
+ expect(subjectOf("Explain how dinosaurs went extinct, for kids")).toBe("how dinosaurs went extinct, for kids");
const script = offlineScript("how volcanoes erupt", "education", 6);
expect(script).toHaveLength(6);
expect(script.every((b) => b.seconds <= 10 && b.narration && b.visual)).toBe(true);