The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Chat takes in Assist's pages: making chats, skills, memory, scheduled tasks and projects
Adarsh1889c5319f26
diff --git a/next.config.ts b/next.config.tsindex 79f8d493..7d3dfff1 100644--- a/next.config.ts+++ b/next.config.ts@@ -65,14 +65,19 @@ const nextConfig: NextConfig = {{ source: "/settings/about", destination: "/settings", permanent: true },// The product-link ad apps open the Click to Ad flow (src/lib/catalog/apps.ts).{ source: "/apps/:id(app-click-to-ad|app-link-to-video-ad)", destination: "/marketing/click-to-ad", permanent: false },- // Chat is the one place to talk to Fuobe: a bare /assist opens it. A link to an Assist chat (?c=), a skill- // (?skill=), a ready-made starter (?starter=) or a request to plan (?prompt=) still opens Assist, where it runs.+ // Assist is Chat's making side now. A bare /assist opens Chat; a link to one of its chats (?c=), a skill (?skill=),+ // a ready-made starter (?starter=) or a request to plan (?prompt=) opens the same thing under /chat/make (the query+ // goes along); its pages keep their names under /chat.{source: "/assist",missing: ["c", "skill", "starter", "prompt"].map((key) => ({ type: "query" as const, key })),destination: "/chat",permanent: false,},+ { source: "/assist", destination: "/chat/make", permanent: false },+ { source: "/assist/start/:id", destination: "/chat/make/start/:id", permanent: false },+ { source: "/assist/:page(skills|memory|scheduled)", destination: "/chat/:page", permanent: false },+ { source: "/assist/projects/:id", destination: "/chat/projects/:id", permanent: false },// The Virality Predictor app became the /virality page (its frame step is the Hook Frame app).{ source: "/apps/app-virality-predictor", destination: "/virality", permanent: true },// Studio hubs have one path per mode (src/lib/hubs.ts). Old `?mode=` links go to it in src/proxy.ts (hubModeLink),diff --git a/src/app/(studio)/assist/loading.tsx b/src/app/(studio)/assist/loading.tsxdeleted file mode 100644index cec96360..00000000--- a/src/app/(studio)/assist/loading.tsx+++ /dev/null@@ -1 +0,0 @@-export { default } from "@/components/studio/route-loading";diff --git a/src/app/(studio)/assist/layout.tsx b/src/app/(studio)/chat/(make)/layout.tsxsimilarity index 58%rename from src/app/(studio)/assist/layout.tsxrename to src/app/(studio)/chat/(make)/layout.tsxindex 6bc03779..72ef7b71 100644--- a/src/app/(studio)/assist/layout.tsx+++ b/src/app/(studio)/chat/(make)/layout.tsx@@ -1,6 +1,6 @@import { AssistShell } from "@/components/assist/shell";-/** Assist's own sidebar (chats, projects, skills, memory) beside every Assist page. */-export default function AssistLayout({ children }: LayoutProps<"/assist">) {+/** The making side of Chat: its sidebar (making chats, projects, skills, memory) beside each of its pages. */+export default function AssistLayout({ children }: LayoutProps<"/chat">) {return <AssistShell>{children}</AssistShell>;}diff --git a/src/app/(studio)/assist/page.tsx b/src/app/(studio)/chat/(make)/make/page.tsxsimilarity index 89%rename from src/app/(studio)/assist/page.tsxrename to src/app/(studio)/chat/(make)/make/page.tsxindex 800120cf..589c60a0 100644--- a/src/app/(studio)/assist/page.tsx+++ b/src/app/(studio)/chat/(make)/make/page.tsx@@ -3,7 +3,7 @@ import { Suspense } from "react";import { AssistView } from "@/components/assist-view";import { starterCards, starterFills } from "@/lib/starters/catalog";-export const metadata: Metadata = { title: "Assist" };+export const metadata: Metadata = { title: "Make" };export default function Page() {return (diff --git a/src/app/(studio)/assist/start/[id]/page.tsx b/src/app/(studio)/chat/(make)/make/start/[id]/page.tsxsimilarity index 64%rename from src/app/(studio)/assist/start/[id]/page.tsxrename to src/app/(studio)/chat/(make)/make/start/[id]/page.tsxindex 3130ffbc..28bea0bc 100644--- a/src/app/(studio)/assist/start/[id]/page.tsx+++ b/src/app/(studio)/chat/(make)/make/start/[id]/page.tsx@@ -5,10 +5,10 @@ export function generateStaticParams() {return starterParams("assist");}-export function generateMetadata({ params }: PageProps<"/assist/start/[id]">): Promise<Metadata> {+export function generateMetadata({ params }: PageProps<"/chat/make/start/[id]">): Promise<Metadata> {return starterMetadata("assist", params);}-export default function Page({ params }: PageProps<"/assist/start/[id]">) {+export default function Page({ params }: PageProps<"/chat/make/start/[id]">) {return <StarterRoute surface="assist" params={params} />;}diff --git a/src/app/(studio)/assist/memory/page.tsx b/src/app/(studio)/chat/(make)/memory/page.tsxsimilarity index 100%rename from src/app/(studio)/assist/memory/page.tsxrename to src/app/(studio)/chat/(make)/memory/page.tsxdiff --git a/src/app/(studio)/assist/projects/[id]/page.tsx b/src/app/(studio)/chat/(make)/projects/[id]/page.tsxsimilarity index 75%rename from src/app/(studio)/assist/projects/[id]/page.tsxrename to src/app/(studio)/chat/(make)/projects/[id]/page.tsxindex 64082a93..3986caa4 100644--- a/src/app/(studio)/assist/projects/[id]/page.tsx+++ b/src/app/(studio)/chat/(make)/projects/[id]/page.tsx@@ -6,13 +6,13 @@ import { recordExists } from "@/server/records";export const metadata: Metadata = { title: "Project" };-async function Project({ params }: { params: PageProps<"/assist/projects/[id]">["params"] }) {+async function Project({ params }: { params: PageProps<"/chat/projects/[id]">["params"] }) {const { id } = await params;if (!recordExists({ kind: "assist-project", ids: [id] })) notFound();return <ProjectView id={id} />;}-export default function Page({ params }: PageProps<"/assist/projects/[id]">) {+export default function Page({ params }: PageProps<"/chat/projects/[id]">) {return (<Suspense fallback={null}><Project params={params} />diff --git a/src/app/(studio)/assist/scheduled/page.tsx b/src/app/(studio)/chat/(make)/scheduled/page.tsxsimilarity index 100%rename from src/app/(studio)/assist/scheduled/page.tsxrename to src/app/(studio)/chat/(make)/scheduled/page.tsxdiff --git a/src/app/(studio)/assist/skills/page.tsx b/src/app/(studio)/chat/(make)/skills/page.tsxsimilarity index 100%rename from src/app/(studio)/assist/skills/page.tsxrename to src/app/(studio)/chat/(make)/skills/page.tsxdiff --git a/src/app/(studio)/page.tsx b/src/app/(studio)/page.tsxindex 9dd28838..a581ec43 100644--- a/src/app/(studio)/page.tsx+++ b/src/app/(studio)/page.tsx@@ -41,7 +41,7 @@ export default async function Page() {<HomeViewopenModels={roundedDown(home.facts.openModels)}chips={HOME_TRY}- assist={{ label: "Plan a perfume ad with Assist", href: `/assist?prompt=${encodeURIComponent(ASSIST_SUGGESTIONS[0])}` }}+ assist={{ label: "Plan a perfume ad with Assist", href: `/chat/make?prompt=${encodeURIComponent(ASSIST_SUGGESTIONS[0])}` }}goals={<GoalRow names={goalTapNames()} />}bento={<HomeBento bento={home.bento} />}prices={starterPriceLine()}diff --git a/src/components/assist-view.tsx b/src/components/assist-view.tsxindex 7fb1bc24..37ddd80c 100644--- a/src/components/assist-view.tsx+++ b/src/components/assist-view.tsx@@ -92,7 +92,7 @@ export function NewChatControls({/*** starters: the ready jobs under the composer (the covered ones, from the page; the owner's view loads the rest);- * fills: what each one types into the composer ("/skill words"), by id, also for /assist?starter=<id>.+ * fills: what each one types into the composer ("/skill words"), by id, also for /chat/make?starter=<id>.*/export function AssistView({ starters: given = [], fills: givenFills = {} }: { starters?: StarterCardData[]; fills?: Record<string, StarterFill> } = {}) {const { owner, starters, fills } = useStarters("assist", given, givenFills);@@ -102,11 +102,11 @@ export function AssistView({ starters: given = [], fills: givenFills = {} }: { sconst [engine, setEngine] = useEngine();const [askFirst, setAskFirst] = useState(true);const [open, setOpen] = useState<{ g: Generation; i: number } | null>(null);- // "Use in a new chat" on a skill opens /assist?skill=<name>: the composer starts with "/name ". Home's examples open- // /assist?prompt=<text>: the composer starts with the text. Neither sends anything.+ // "Use in a new chat" on a skill opens /chat/make?skill=<name>: the composer starts with "/name ". Home's examples open+ // /chat/make?prompt=<text>: the composer starts with the text. Neither sends anything.const skillParam = params.get("skill");const [draft, setDraft] = useState(() => ({ key: 0, text: assistDraft(skillParam, params.get("prompt")) }));- // A ready job (its card here, or /assist?starter=<id>) types its skill and words in: one this viewer may see only.+ // A ready job (its card here, or /chat/make?starter=<id>) types its skill and words in: one this viewer may see only.const fillStarter = (sid: string) => {const f = Object.hasOwn(fills, sid) ? fills[sid] : undefined;if (f?.kind !== "assist") return false;@@ -127,7 +127,7 @@ export function AssistView({ starters: given = [], fills: givenFills = {} }: { sconst [scheduling, setScheduling] = useState(false);const builder = useSkillBuilder();- const go = (next: string | null) => router.replace(next ? `/assist?c=${next}` : "/assist", { scroll: false });+ const go = (next: string | null) => router.replace(next ? `/chat/make?c=${next}` : "/chat/make", { scroll: false });const thread = view.data?.thread;const project = thread?.projectId ? projects.data?.find((p) => p.id === thread.projectId) : null;const available = chatSkills(skills.data, project);@@ -174,13 +174,13 @@ export function AssistView({ starters: given = [], fills: givenFills = {} }: { s<RailButton /><div className="flex min-w-0 flex-1 items-center gap-2">{project && (- <Link href={`/assist/projects/${project.id}`} className="hidden min-w-0 shrink items-center gap-1.5 text-[13px] text-muted-foreground hover:text-foreground sm:inline-flex">+ <Link href={`/chat/projects/${project.id}`} className="hidden min-w-0 shrink items-center gap-1.5 text-[13px] text-muted-foreground hover:text-foreground sm:inline-flex"><ProjectDot project={project} /><span className="truncate">{project.name}</span><span aria-hidden>/</span></Link>)}- <h1 className="min-w-0 truncate font-heading text-[22px] leading-none">{thread?.title ?? "Assist"}</h1>+ <h1 className="min-w-0 truncate font-heading text-[22px] leading-none">{thread?.title ?? "Make"}</h1></div><div className="flex shrink-0 items-center gap-1">{agentBadge}@@ -219,7 +219,7 @@ export function AssistView({ starters: given = [], fills: givenFills = {} }: { s<div className="w-full max-w-[760px]"><div className="mb-6 text-center"><h2 className="font-heading text-display text-balance">What are we creating today?</h2>- <p className="mt-2 text-[14px] text-pretty text-muted-foreground">Describe the whole job. Assist picks the models, shows you the plan and cost, then runs every step. Type / to use a skill.</p>+ <p className="mt-2 text-[14px] text-pretty text-muted-foreground">Describe the whole job. Chat picks the models, shows you the plan and cost, then runs every step. Type / to use a skill.</p></div><AssistVisitorNote className="mb-4" /><AssistComposer@@ -388,7 +388,7 @@ export function SkillStarters({<p className="text-[12px] font-medium text-muted-foreground">Start with a skill</p><span className="flex items-center gap-3">{extra}- <Link href="/assist/skills" className="text-[12px] text-brand-text hover:underline">+ <Link href="/chat/skills" className="text-[12px] text-brand-text hover:underline">All skills</Link></span>diff --git a/src/components/assist/project-view.tsx b/src/components/assist/project-view.tsxindex d2b32cab..8ef1c9d3 100644--- a/src/components/assist/project-view.tsx+++ b/src/components/assist/project-view.tsx@@ -138,7 +138,7 @@ function Project({ p }: { p: AssistProject }) {onSend={async (text, attachments) => {const t = await actions.start({ text, attachments, engine, autoApprove: !askFirst, projectId: p.id, mode: choice ?? undefined });if (t.note) toast(t.note);- router.push(`/assist?c=${t.id}`);+ router.push(`/chat/make?c=${t.id}`);}}footer={<NewChatControls choice={choice} setChoice={setChoice} can={can} engine={engine} setEngine={setEngine} askFirst={askFirst} setAskFirst={setAskFirst} />}/>@@ -171,7 +171,7 @@ function Project({ p }: { p: AssistProject }) {<ul className="divide-y rounded-2xl border bg-background">{chats.data.threads.map((t) => (<li key={t.id} className="relative">- <Link href={`/assist?c=${t.id}`} className="flex items-center gap-3 py-3 pr-12 pl-4 transition-colors hover:bg-accent">+ <Link href={`/chat/make?c=${t.id}`} className="flex items-center gap-3 py-3 pr-12 pl-4 transition-colors hover:bg-accent"><span className="min-w-0 flex-1 truncate text-[14px]">{t.title}</span><span className="shrink-0 text-[12px] text-muted-foreground">{t.status === "running" ? "Working…" : t.status === "waiting" ? "Waiting for you" : timeAgo(t.updatedAt)}</span></Link>@@ -212,7 +212,7 @@ function Project({ p }: { p: AssistProject }) {try {await projectActions.remove(p.id);toast("Project deleted", { duration: 1500 });- router.push("/assist");+ router.push("/chat/make");} catch (e) {toastError(e);}diff --git a/src/components/assist/run-skill-dialog.tsx b/src/components/assist/run-skill-dialog.tsxindex 96843601..837ba268 100644--- a/src/components/assist/run-skill-dialog.tsx+++ b/src/components/assist/run-skill-dialog.tsx@@ -186,7 +186,7 @@ function Loaded({ view, onClose, examples, intro, csv: rowsCsv }: { view: Recipe: r.demo? "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) },+ action: staged ? { label: "See its steps", onClick: () => router.push(`/chat/skills?skill=${encodeURIComponent(name)}`) } : { label: `Open in ${studio}`, onClick: () => router.push(href) },});onClose();} catch (e) {diff --git a/src/components/assist/schedule-skill.tsx b/src/components/assist/schedule-skill.tsxindex e4310468..d8e74c55 100644--- a/src/components/assist/schedule-skill.tsx+++ b/src/components/assist/schedule-skill.tsx@@ -167,7 +167,7 @@ export function SkillTaskFields({) : skills.length === 0 ? (<p className="rounded-xl bg-muted/60 px-3.5 py-2.5 text-[13px] text-muted-foreground">No skills that run by themselves yet. Make one from a result you like (its ⋯ menu → Make a skill), or save a chat as a skill, then schedule it here.{" "}- <Link href="/assist/skills" className="font-medium text-brand-text underline-offset-2 hover:underline">+ <Link href="/chat/skills" className="font-medium text-brand-text underline-offset-2 hover:underline">Open Skills</Link></p>diff --git a/src/components/assist/scheduled-view.tsx b/src/components/assist/scheduled-view.tsxindex 828bc6ad..7e2d6d84 100644--- a/src/components/assist/scheduled-view.tsx+++ b/src/components/assist/scheduled-view.tsx@@ -42,7 +42,7 @@ const RESULT: Record<ScheduleResult["status"], { icon: typeof Clock; tone: strin/*** Assist's Scheduled tab (Supercomputer's Scheduled Tasks): every task with its rule, next run and- * last result, to run now, pause, edit or delete. Standalone at /assist/scheduled, or one project's+ * last result, to run now, pause, edit or delete. Standalone at /chat/scheduled, or one project's* tasks inside its page.*/export function ScheduledView({ projectId }: { projectId?: string } = {}) {@@ -161,7 +161,7 @@ function TaskRow({ s, showProject }: { s: ScheduleView; showProject: boolean })attempt(async () => {const id = await actions.runNow(s.id);if (!id) return void toast("The last run is still going — try again when it stops");- toast.success("Started", { action: { label: "Open chat", onClick: () => router.push(`/assist?c=${id}`) }, duration: 4000 });+ toast.success("Started", { action: { label: "Open chat", onClick: () => router.push(`/chat/make?c=${id}`) }, duration: 4000 });});const last = s.last;@@ -183,7 +183,7 @@ function TaskRow({ s, showProject }: { s: ScheduleView; showProject: boolean }){showProject && project && (<><span aria-hidden>·</span>- <Link href={`/assist/projects/${project.id}`} className="inline-flex items-center gap-1 hover:text-foreground">+ <Link href={`/chat/projects/${project.id}`} className="inline-flex items-center gap-1 hover:text-foreground"><ProjectDot project={project} className="size-1.5" /> {project.name}</Link></>@@ -242,7 +242,7 @@ function TaskRow({ s, showProject }: { s: ScheduleView; showProject: boolean })<span className="min-w-0"><span className="line-clamp-2 break-words">{last.text}</span>{last.threadId && (- <Link href={`/assist?c=${last.threadId}`} className="font-medium text-brand-text hover:underline">+ <Link href={`/chat/make?c=${last.threadId}`} className="font-medium text-brand-text hover:underline">{last.status === "waiting" ? "Review the plan" : "Open chat"}</Link>)}diff --git a/src/components/assist/shell.tsx b/src/components/assist/shell.tsxindex c4ddd039..6e3a12d1 100644--- a/src/components/assist/shell.tsx+++ b/src/components/assist/shell.tsx@@ -25,7 +25,7 @@ import { ProjectDot } from "./project-dot";export function AssistShell({ children }: { children: React.ReactNode }) {return (<div className="flex min-w-0 flex-1">- <aside className="sticky top-chrome hidden h-content w-64 shrink-0 flex-col border-r bg-sidebar/40 xl:flex" aria-label="Assist">+ <aside className="sticky top-chrome hidden h-content w-64 shrink-0 flex-col border-r bg-sidebar/40 xl:flex" aria-label="Make"><Suspense fallback={<RailSkeleton />}><Rail /></Suspense>@@ -50,7 +50,7 @@ export function RailButton({ className }: { className?: string }) {</Tooltip><Sheet open={open} onOpenChange={setOpen}><SheetContent side="left" className="w-[min(86vw,320px)] gap-0 p-0" aria-describedby={undefined} onOpenAutoFocus={(e) => e.preventDefault()}>- <SheetTitle className="sr-only">Assist</SheetTitle>+ <SheetTitle className="sr-only">Make</SheetTitle><SheetDescription className="sr-only">Chats, projects, skills, memory and scheduled tasks</SheetDescription><Suspense fallback={<RailSkeleton />}><Rail onNavigate={() => setOpen(false)} />@@ -105,7 +105,7 @@ function Rail({ onNavigate }: { onNavigate?: () => void }) {<div className="flex min-h-0 flex-1 flex-col"><div className={cn("space-y-2 p-3 pb-2", onNavigate && "pt-12")}><Button asChild variant="outline" className="h-9 w-full justify-start rounded-full">- <Link href="/assist" onClick={onNavigate}>+ <Link href="/chat/make" onClick={onNavigate}><MessageSquarePlus /> New chat</Link></Button>@@ -118,10 +118,10 @@ function Rail({ onNavigate }: { onNavigate?: () => void }) {</button>)}</div>- <nav className="space-y-0.5" aria-label="Assist pages">- <RailLink href="/assist/skills" icon={Sparkles} label="Skills" active={pathname.startsWith("/assist/skills")} onNavigate={onNavigate} />- <RailLink href="/assist/memory" icon={Brain} label="Memory" active={pathname.startsWith("/assist/memory")} onNavigate={onNavigate} />- <RailLink href="/assist/scheduled" icon={CalendarClock} label="Scheduled" active={pathname.startsWith("/assist/scheduled")} onNavigate={onNavigate} />+ <nav className="space-y-0.5" aria-label="Make pages">+ <RailLink href="/chat/skills" icon={Sparkles} label="Skills" active={pathname.startsWith("/chat/skills")} onNavigate={onNavigate} />+ <RailLink href="/chat/memory" icon={Brain} label="Memory" active={pathname.startsWith("/chat/memory")} onNavigate={onNavigate} />+ <RailLink href="/chat/scheduled" icon={CalendarClock} label="Scheduled" active={pathname.startsWith("/chat/scheduled")} onNavigate={onNavigate} /></nav></div><div className="min-h-0 flex-1 overflow-y-auto px-3 pb-4">@@ -147,11 +147,11 @@ function Rail({ onNavigate }: { onNavigate?: () => void }) {) : projects.data?.length ? (<ul className="space-y-0.5">{projects.data.map((p) => {- const active = pathname === `/assist/projects/${p.id}`;+ const active = pathname === `/chat/projects/${p.id}`;return (<li key={p.id}><Link- href={`/assist/projects/${p.id}`}+ href={`/chat/projects/${p.id}`}onClick={onNavigate}aria-current={active ? "page" : undefined}className={cn("flex h-8 items-center gap-2.5 rounded-lg px-2.5 text-[13px] transition-colors hover:bg-accent", active ? "bg-accent font-medium" : "text-foreground/85")}@@ -190,7 +190,7 @@ function Rail({ onNavigate }: { onNavigate?: () => void }) {return (<li key={t.id} className="group/chat relative"><Link- href={`/assist?c=${t.id}`}+ href={`/chat/make?c=${t.id}`}onClick={onNavigate}aria-current={t.id === current ? "page" : undefined}className={cn("flex min-h-8 flex-col justify-center rounded-lg py-1.5 pr-8 pl-2.5 transition-colors hover:bg-accent", t.id === current && "bg-accent")}@@ -206,7 +206,7 @@ function Rail({ onNavigate }: { onNavigate?: () => void }) {</Link><ChatMenuchat={t}- onDeleted={() => t.id === current && router.replace("/assist", { scroll: false })}+ onDeleted={() => t.id === current && router.replace("/chat/make", { scroll: false })}className="absolute top-1/2 right-1 size-7 -translate-y-1/2 opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100 sm:opacity-0 sm:group-hover/chat:opacity-100"/></li>@@ -223,7 +223,7 @@ function Rail({ onNavigate }: { onNavigate?: () => void }) {onOpenChange={setCreating}onSaved={(p) => {onNavigate?.();- router.push(`/assist/projects/${p.id}`);+ router.push(`/chat/projects/${p.id}`);}}/></div>diff --git a/src/components/assist/skills-view.tsx b/src/components/assist/skills-view.tsxindex cb08aa13..6162808f 100644--- a/src/components/assist/skills-view.tsx+++ b/src/components/assist/skills-view.tsx@@ -456,7 +456,7 @@ function SkillDetail({ name, owner, onClose, onEdit, onRun }: { name: string | n</div>{!owner ? null : s.recipe ? (<div className="flex flex-wrap gap-1.5">- <Button variant="ghost" size="sm" onClick={() => router.push(`/assist?skill=${s.name}`)} disabled={!s.enabled}>+ <Button variant="ghost" size="sm" onClick={() => router.push(`/chat/make?skill=${s.name}`)} disabled={!s.enabled}><MessageSquarePlus /> Use in a new chat</Button><Button size="sm" onClick={() => onRun(s.name)} disabled={!s.enabled}>@@ -464,7 +464,7 @@ function SkillDetail({ name, owner, onClose, onEdit, onRun }: { name: string | n</Button></div>) : (- <Button size="sm" onClick={() => router.push(`/assist?skill=${s.name}`)} disabled={!s.enabled}>+ <Button size="sm" onClick={() => router.push(`/chat/make?skill=${s.name}`)} disabled={!s.enabled}><MessageSquarePlus /> Use in a new chat</Button>)}diff --git a/src/components/assist/transcript.tsx b/src/components/assist/transcript.tsxindex 170ddab4..6a5fb7ee 100644--- a/src/components/assist/transcript.tsx+++ b/src/components/assist/transcript.tsx@@ -235,7 +235,7 @@ export function Transcript({{item.skills.map((n) => (<Linkkey={n}- href={`/assist/skills?skill=${n}`}+ href={`/chat/skills?skill=${n}`}className="inline-flex h-7 items-center gap-1.5 rounded-full bg-brand-faint pr-2.5 pl-1 text-[12px] font-medium text-brand-text hover:bg-brand-faint-hover"><SkillIcon name={n} icon={skill(n)?.icon} size="sm" className="size-5" />diff --git a/src/components/chat/chat-home.tsx b/src/components/chat/chat-home.tsxindex c1d18670..a69fac65 100644--- a/src/components/chat/chat-home.tsx+++ b/src/components/chat/chat-home.tsx@@ -387,7 +387,7 @@ function Recent({ threads, assist, loading }: { threads: ChatThreadSummary[] | umature: false,preview: "Plans and makes",updatedAt: a.updatedAt,- href: `/assist?c=${a.id}`,+ href: `/chat/make?c=${a.id}`,making: true,})),].sort((x, y) => y.updatedAt - x.updatedAt);diff --git a/src/components/chat/make.tsx b/src/components/chat/make.tsxindex b00810ff..31214b20 100644--- a/src/components/chat/make.tsx+++ b/src/components/chat/make.tsx@@ -42,7 +42,7 @@ export function MakeBox({ owner, guest }: { owner: boolean; guest: boolean }) {try {const t = await actions.start({ text, engine, autoApprove: false });if ((t as { note?: string }).note) toast((t as { note?: string }).note);- router.push(`/assist?c=${t.id}`);+ router.push(`/chat/make?c=${t.id}`);} catch (e) {toastError(e);setBusy(false);@@ -115,17 +115,17 @@ export function MoreMenu() {</DropdownMenuTrigger><DropdownMenuContent align="end" className="w-60"><DropdownMenuItem asChild>- <Link href="/assist/skills">+ <Link href="/chat/skills"><BookOpen /> Skills</Link></DropdownMenuItem><DropdownMenuItem asChild>- <Link href="/assist/memory">+ <Link href="/chat/memory"><Brain /> Memory</Link></DropdownMenuItem><DropdownMenuItem asChild>- <Link href="/assist/scheduled">+ <Link href="/chat/scheduled"><CalendarClock /> Scheduled tasks</Link></DropdownMenuItem>diff --git a/src/components/empty-state.tsx b/src/components/empty-state.tsxindex a0d740f4..7f53612f 100644--- a/src/components/empty-state.tsx+++ b/src/components/empty-state.tsx@@ -43,7 +43,7 @@ const SECTIONS: { prefix: string; href: string; label: string }[] = [{ prefix: "/library", href: "/library", label: "Your library" },{ prefix: "/cinema", href: "/cinema", label: "Cinema projects" },{ prefix: "/canvas", href: "/canvas", label: "Your canvases" },- { prefix: "/assist", href: "/assist", label: "Back to Assist" },+ { prefix: "/chat/make", href: "/chat/make", label: "Back to Assist" },];function SectionLink() {diff --git a/src/components/get-started.tsx b/src/components/get-started.tsxindex 2d485df0..51344278 100644--- a/src/components/get-started.tsx+++ b/src/components/get-started.tsx@@ -31,7 +31,7 @@ const INTENTS = [{ label: "A talking avatar", href: "/lipsync", icon: Mic2 },{ label: "A faceless video", href: "/faceless", icon: Clapperboard },{ label: "Voice or music", href: "/audio", icon: AudioLines },- { label: "Plan it with Assist", href: "/assist", icon: Bot },+ { label: "Plan it with Assist", href: "/chat/make", icon: Bot },] as const;export type IntentMode = "image" | "video" | "edit";diff --git a/src/components/home/home-islands.tsx b/src/components/home/home-islands.tsxindex 8371418b..d3b4d59b 100644--- a/src/components/home/home-islands.tsx+++ b/src/components/home/home-islands.tsx@@ -171,7 +171,7 @@ const ASSIST_ACTION =export function AssistAction() {const arrow = <ArrowRight className="size-3.5 transition-transform duration-150 group-hover:translate-x-0.5" />;return useIsOwner() ? (- <IntentLink href="/assist" className={ASSIST_ACTION}>+ <IntentLink href="/chat/make" className={ASSIST_ACTION}>Open Assist {arrow}</IntentLink>) : (@@ -196,7 +196,7 @@ export function AssistExamples({ prompts, skills }: { prompts: string[]; skills:{prompts.map((s) => (<li key={s}>{owner ? (- <IntentLink href={`/assist?prompt=${encodeURIComponent(s)}`} className={cn(row, "group transition-colors hover:bg-muted")}>+ <IntentLink href={`/chat/make?prompt=${encodeURIComponent(s)}`} className={cn(row, "group transition-colors hover:bg-muted")}><span className="min-w-0">{s}</span><ArrowRight className="size-3.5 shrink-0 text-muted-foreground transition-transform duration-150 group-hover:translate-x-[3px] group-hover:text-foreground" /></IntentLink>@@ -214,7 +214,7 @@ export function AssistExamples({ prompts, skills }: { prompts: string[]; skills:{skills.map((s) => (<li key={s.name}>{owner ? (- <IntentLink href={`/assist?skill=${s.name}`} className={cn(chip, "transition-colors hover:bg-accent")}>+ <IntentLink href={`/chat/make?skill=${s.name}`} className={cn(chip, "transition-colors hover:bg-accent")}>{s.title}</IntentLink>) : (diff --git a/src/components/nav/goal-row.tsx b/src/components/nav/goal-row.tsxindex b85faa6c..2a7acb3b 100644--- a/src/components/nav/goal-row.tsx+++ b/src/components/nav/goal-row.tsx@@ -45,7 +45,7 @@ export const GOAL_ASSIST_PROMPTS: Partial<Record<GoalId, string>> = {/** The Assist link for a goal, or undefined when it has none. */export function goalAssistHref(id: GoalId): string | undefined {const prompt = GOAL_ASSIST_PROMPTS[id];- return prompt ? `/assist?prompt=${encodeURIComponent(prompt)}` : undefined;+ return prompt ? `/chat/make?prompt=${encodeURIComponent(prompt)}` : undefined;}/**diff --git a/src/lib/assist.ts b/src/lib/assist.tsindex b4a61229..e4d88036 100644--- a/src/lib/assist.ts+++ b/src/lib/assist.ts@@ -131,7 +131,7 @@ export const ASSIST_SUGGESTIONS = ["A 10-second vertical video of a model in a red silk gown running through falling snow at night, with sound",] as const;-/** The longest prompt a link can type into a new chat (/assist?prompt=). */+/** The longest prompt a link can type into a new chat (/chat/make?prompt=). */export const ASSIST_PROMPT_MAX = 2000;/**diff --git a/src/lib/command-search.ts b/src/lib/command-search.tsindex ee83b3f4..53a3ba49 100644--- a/src/lib/command-search.ts+++ b/src/lib/command-search.ts@@ -257,5 +257,5 @@ export function indexEntries(index: PaletteIndex, mode: "both" | "cloud" | "openexport function skillEntries(skills: { name: string; title: string; description: string; recipe?: boolean; enabled: boolean }[]): PaletteEntry[] {return skills.filter((s) => s.recipe && s.enabled)- .map((s) => ({ key: `skill:${s.name}`, kind: "skill" as const, label: `Run ${s.title}…`, hint: "Skill", href: `/assist/skills?run=${s.name}`, keywords: `${s.name} ${s.description} skill run` }));+ .map((s) => ({ key: `skill:${s.name}`, kind: "skill" as const, label: `Run ${s.title}…`, hint: "Skill", href: `/chat/skills?run=${s.name}`, keywords: `${s.name} ${s.description} skill run` }));}diff --git a/src/lib/nav-model.ts b/src/lib/nav-model.tsindex 42a95465..1715e13f 100644--- a/src/lib/nav-model.ts+++ b/src/lib/nav-model.ts@@ -332,7 +332,7 @@ const SUB_TOOLS: NavEntry[] = [{ id: "marketing-click-to-ad", href: "/marketing/click-to-ad", label: "Click to Ad", what: "From a product link to an ad", kind: "tool", goals: [], keywords: "product link url to ad shop page amazon", icon: "Megaphone", parent: "marketing" },// A tab of Marketing Studio's suite (Marketing Studio · Click to Ad · Ads Studio · Ad Multiplier), so its studio is that one.{ id: "ads-multiplier", href: "/ads/multiplier", label: "Ad Multiplier", what: "One ad in many versions", kind: "tool", goals: [], keywords: "variations versions sizes multiply ads studio", icon: "Target", parent: "marketing" },- { id: "chat-skills", href: "/assist/skills", label: "Skills", what: "Reusable recipes", kind: "tool", goals: [], keywords: "skill recipe playbook automation assist", icon: "MessagesSquare", parent: "chat" },+ { id: "chat-skills", href: "/chat/skills", label: "Skills", what: "Reusable recipes", kind: "tool", goals: [], keywords: "skill recipe playbook automation assist", icon: "MessagesSquare", parent: "chat" },// An app with a page of its own that Create lists: a tool of Apps, so the bar marks Apps on its page.{ id: "any-angle", href: "/apps/app-any-angle", label: "Any Angle", what: "See it from any angle", kind: "tool", goals: [], keywords: "angle rotate turn view camera viewpoint orbit 3d", cover: "app-any-angle", icon: "Rotate3d", parent: "apps" },];@@ -387,8 +387,8 @@ const STUDIO_FEATURES: NavEntry[] = [feature("photodump", "Camera", "instadump", "/photodump?tab=instadump", "From a selfie", "A photo pack from one selfie", "instadump selfie one photo pack instagram"),feature("cinema", "Clapperboard", "blockout", "/cinema?blockout=1", "Blockout", "Block a scene out in 3D", "blockout block out 3d layout previs scene"),feature("canvas", "Network", "skills", "/canvas?tab=skills", "Skills as canvases", "Chat's skills, drawn as boards", "skills recipes boards assist chat canvas", OWNER),- feature("chat", "MessagesSquare", "memory", "/assist/memory", "Memory", "What Chat remembers", "memory remember facts notes assist", OWNER),- feature("chat", "MessagesSquare", "scheduled", "/assist/scheduled", "Scheduled", "Tasks that run on a schedule", "scheduled schedule recurring tasks assist", OWNER),+ feature("chat", "MessagesSquare", "memory", "/chat/memory", "Memory", "What Chat remembers", "memory remember facts notes assist", OWNER),+ feature("chat", "MessagesSquare", "scheduled", "/chat/scheduled", "Scheduled", "Tasks that run on a schedule", "scheduled schedule recurring tasks assist", OWNER),];/** The pages that show everything one of the bar's menus holds (src/lib/nav-areas.ts lays them out). */diff --git a/src/lib/palette-index.ts b/src/lib/palette-index.tsindex 09ecd628..7c177694 100644--- a/src/lib/palette-index.ts+++ b/src/lib/palette-index.ts@@ -76,7 +76,7 @@ const IN_3D = new Set([...ALL_MODELS_3D.map((m) => m.id), RIG_MODEL, ...RETEXTUR/** The Layers editor's tools (cut-out, layers, text detection…): its project list is where they start. */const IN_LAYERS = new Set(Object.values(TOOL_MODELS).flatMap((t) => [...t.cloud, ...t.open]));/** Where a model no studio, app or tool offers opens: the studio of what it makes. */-const KIND_HOME: Record<ModelDef["kind"], string> = { image: "/image", video: "/video", audio: "/audio/speech", text: "/assist", model3d: "/image-to-3d" };+const KIND_HOME: Record<ModelDef["kind"], string> = { image: "/image", video: "/video", audio: "/audio/speech", text: "/chat/make", model3d: "/image-to-3d" };/** Tools with their own flow (and their own model choice), by operation. */const TOOL_PAGES: [string, Operation][] = [["/video-tools/captions", "captions"],diff --git a/src/lib/record-pages.ts b/src/lib/record-pages.tsindex 47b40b7f..f8018529 100644--- a/src/lib/record-pages.ts+++ b/src/lib/record-pages.ts@@ -24,7 +24,7 @@ const SEG = "([^/]+)";const PAGES: [RegExp, (m: string[]) => RecordRef][] = [[new RegExp(`^/cinema/${SEG}$`), ([id]) => ({ kind: "cinema", ids: [id] })],[new RegExp(`^/canvas/${SEG}$`), ([id]) => ({ kind: "canvas", ids: [id] })],- [new RegExp(`^/assist/projects/${SEG}$`), ([id]) => ({ kind: "assist-project", ids: [id] })],+ [new RegExp(`^/chat/projects/${SEG}$`), ([id]) => ({ kind: "assist-project", ids: [id] })],[new RegExp(`^/layers/${SEG}$`), ([id]) => ({ kind: "layers", ids: [id] })],[new RegExp(`^/shorts/${SEG}$`), ([id]) => ({ kind: "shorts", ids: [id] })],[new RegExp(`^/ads/${SEG}$`), ([id]) => ({ kind: "brand", ids: [id] })],@@ -39,12 +39,13 @@ const PAGES: [RegExp, (m: string[]) => RecordRef][] = [];/** Static pages that a record pattern would also match (/ads/multiplier is not a brand). */-const FIXED = new Set(["/ads/multiplier"]);+const FIXED = new Set(["/ads/multiplier", "/chat/make", "/chat/skills", "/chat/memory", "/chat/scheduled"]);/** A ready-made starter's page (/faceless/start/<id>…): catalog data, not a stored record. */-const STARTER_PAGE = /^\/(assist|cinema|storyboard|elements|faceless|content-factory|explainer|ads|marketing|marketing\/click-to-ad)\/start\/([^/]+)$/;+const STARTER_PAGE = /^\/(assist|chat\/make|cinema|storyboard|elements|faceless|content-factory|explainer|ads|marketing|marketing\/click-to-ad)\/start\/([^/]+)$/;const STARTER_BASE: Record<string, StarterSurface> = {assist: "assist",+ "chat/make": "assist",cinema: "cinema",storyboard: "storyboard",elements: "elements",diff --git a/src/lib/starters/types.ts b/src/lib/starters/types.tsindex 565d81c9..228e0810 100644--- a/src/lib/starters/types.ts+++ b/src/lib/starters/types.ts@@ -13,12 +13,12 @@ export type StarterSurface = "assist" | "library" | "cinema" | "storyboard" | "e*/export const STARTER_SURFACES: Record<StarterSurface, { base: string; name: string; section: string; note: string; visitorNote?: string; unavailable: string }> = {assist: {- base: "/assist",- name: "Assist",+ base: "/chat/make",+ name: "Chat",section: "Start from a ready job",note: "Each one types a whole job into the box above. Change anything, then send.",visitorNote: "A whole job in one message. See how each one is made.",- unavailable: "Assist isn't available here.",+ unavailable: "Chat isn't available here.",},library: { base: "/library", name: "Library", section: "Make your first", note: "Each one opens a studio with everything in place. Change anything, then make it.", unavailable: "" },cinema: {diff --git a/src/proxy.ts b/src/proxy.tsindex de85a45c..27bacfa4 100644--- a/src/proxy.ts+++ b/src/proxy.ts@@ -148,7 +148,7 @@ const SECTIONS: { prefix: string; label: string; missing?: string; why?: string{ prefix: "/content-factory", label: "Back to Content Factory", missing: "This series isn’t here" },{ prefix: "/character-swap", label: "Back to Character Swap", missing: "This project isn’t here" },{ prefix: "/layers", label: "Back to Layers", missing: "This project isn’t here" },- { prefix: "/assist", label: "Back to Assist", missing: "This project isn’t here" },+ { prefix: "/chat/projects", label: "Back to Chat", missing: "This project isn’t here" },{ prefix: "/audio", label: "Back to Audio" },{ prefix: "/video-tools", label: "Back to Video tools" },{ prefix: "/upscale", label: "Back to Upscale" },diff --git a/src/server/assist/context-tools.ts b/src/server/assist/context-tools.tsindex 78a4cb18..61c357af 100644--- a/src/server/assist/context-tools.ts+++ b/src/server/assist/context-tools.ts@@ -69,7 +69,7 @@ const loadSkill = defineTool({if (text === null) return { content: `/${n} has no file “${file}”. Its files: ${s.files.map((f) => f.path).join(", ") || "none"}.`, isError: true };return { content: text.length > 40_000 ? `${text.slice(0, 40_000)}\n… (cut at 40,000 characters)` : text, items: [{ id: "", role: "tool", text: `Read ${file} from ${s.title}` }] };}- const item = { id: "", role: "tool" as const, text: `Using the ${s.title} skill`, href: `/assist/skills?skill=${s.name}` };+ const item = { id: "", role: "tool" as const, text: `Using the ${s.title} skill`, href: `/chat/skills?skill=${s.name}` };// A skill with a recipe also runs by itself: its "Run it" section follows the instructions.const recipe = skillRecipe(n);const runs = recipe ? `\n\n${recipeMarkdown(recipe, { name: n })}` : "";@@ -129,7 +129,7 @@ const remember = defineTool({if (replaces && replaces !== m.id) deleteMemory(replaces);return {content: JSON.stringify({ saved: m.id, category: m.category, scope: m.scope }),- items: [{ id: "", role: "tool", text: `Remembered: ${m.text}`, href: "/assist/memory" }],+ items: [{ id: "", role: "tool", text: `Remembered: ${m.text}`, href: "/chat/memory" }],};},});diff --git a/tests/assist-context.test.ts b/tests/assist-context.test.tsindex 46ed9330..c593638f 100644--- a/tests/assist-context.test.ts+++ b/tests/assist-context.test.ts@@ -119,7 +119,7 @@ describe("a chat's context", () => {expect(sysText(second.at(-1)!)).toContain("### /thumbnail-generation — Thumbnail Generator");const v = agent.getThread(t.id)!;expect(v.thread.skills).toEqual(["thumbnail-generation"]);- expect(v.thread.items.find((i) => i.role === "tool")).toMatchObject({ text: "Using the Thumbnail Generator skill", href: "/assist/skills?skill=thumbnail-generation" });+ expect(v.thread.items.find((i) => i.role === "tool")).toMatchObject({ text: "Using the Thumbnail Generator skill", href: "/chat/skills?skill=thumbnail-generation" });});it("asks before remembering in ask-first mode, then saves the memory where the chat lives", async () => {diff --git a/tests/assist-polish.test.ts b/tests/assist-polish.test.tsindex 7a5a991f..6fa4d30a 100644--- a/tests/assist-polish.test.ts+++ b/tests/assist-polish.test.ts@@ -30,19 +30,19 @@ describe("/apps/<unknown> is a real 404", () => {describe("the 390 px sweep visits dynamic routes", () => {it("finds every dynamic route and has a sample for each", () => {const { routes, patterns } = studioRoutes(root) as { routes: string[]; patterns: string[] };- expect(routes).toContain("/assist/skills");- expect(patterns).toEqual(expect.arrayContaining(["/audio/[mode]", "/video-tools/[mode]", "/upscale/[mode]", "/cinema/[id]", "/canvas/[id]", "/apps/[id]", "/assist/projects/[id]"]));+ expect(routes).toContain("/chat/skills");+ expect(patterns).toEqual(expect.arrayContaining(["/audio/[mode]", "/video-tools/[mode]", "/upscale/[mode]", "/cinema/[id]", "/canvas/[id]", "/apps/[id]", "/chat/projects/[id]"]));const { urls, byPattern } = dynamicSamples(root, { cinema: "c1", canvas: "v1", assistProject: "p1" }) as { urls: string[]; byPattern: Record<string, string[]> };// Every dynamic route is visited at least once, and no sample still has a [param] in it.for (const p of patterns) expect(byPattern[p]?.length, p).toBeGreaterThan(0);expect(urls.filter((u) => /\[/.test(u))).toEqual([]);- expect(urls).toEqual(expect.arrayContaining(["/cinema/c1", "/cinema/does-not-exist", "/canvas/v1", "/canvas/does-not-exist", "/assist/projects/p1", "/apps/does-not-exist"]));+ expect(urls).toEqual(expect.arrayContaining(["/cinema/c1", "/cinema/does-not-exist", "/canvas/v1", "/canvas/does-not-exist", "/chat/projects/p1", "/apps/does-not-exist"]));// Dialogs and tabs a query opens: a skill's Run form, Genjutsu's From picture and Finish tabs, Marketing's// code-drawn templates.const genjutsu = ["/genjutsu?mode=picture", "/genjutsu?mode=finish"];const kinetic = ["ms-kinetic-headline", "ms-feature-cards", "m2-line-reveal", "ms-end-card"].map((id) => `/marketing?template=${id}`);- expect(querySamples({ recipeSkill: "lamp" })).toEqual(["/assist/skills?run=lamp", "/assist/skills?run=does-not-exist", ...genjutsu, ...kinetic]);- expect(querySamples()).toEqual(["/assist/skills?run=does-not-exist", ...genjutsu, ...kinetic]);+ expect(querySamples({ recipeSkill: "lamp" })).toEqual(["/chat/skills?run=lamp", "/chat/skills?run=does-not-exist", ...genjutsu, ...kinetic]);+ expect(querySamples()).toEqual(["/chat/skills?run=does-not-exist", ...genjutsu, ...kinetic]);});it("gives a route added later (another branch's /faceless/[id]/[episode]) a not-found sample by itself", () => {diff --git a/tests/command-palette.test.ts b/tests/command-palette.test.tsindex b53dd567..2f918bdf 100644--- a/tests/command-palette.test.ts+++ b/tests/command-palette.test.ts@@ -96,7 +96,7 @@ describe("palette ranking", () => {{ name: "playbook", title: "Playbook only", description: "x", enabled: true },];const entries = skillEntries(skills);- expect(entries).toEqual([expect.objectContaining({ kind: "skill", label: "Run Lamp turntable…", href: "/assist/skills?run=lamp-turntable" })]);+ expect(entries).toEqual([expect.objectContaining({ kind: "skill", label: "Run Lamp turntable…", href: "/chat/skills?run=lamp-turntable" })]);expect(rankPalette([...ALL, ...entries], "turntable").find((g) => g.kind === "skill")?.entries.map((e) => e.label)).toEqual(["Run Lamp turntable…"]);});@@ -166,7 +166,7 @@ describe("palette index", () => {});it("opens a model nothing else runs in the studio of what it makes", () => {- const home: Record<string, string> = { image: "/image", video: "/video", audio: "/audio/speech", text: "/assist", model3d: "/image-to-3d" };+ const home: Record<string, string> = { image: "/image", video: "/video", audio: "/audio/speech", text: "/chat/make", model3d: "/image-to-3d" };const fallback = index.models.filter((m) => !m.href.includes("?") && Object.values(home).includes(m.href));expect(fallback.length).toBeLessThan(40);for (const m of fallback) expect(m.href, m.id).toBe(home[getModel(m.id)!.kind]);diff --git a/tests/e2e/_routes.mjs b/tests/e2e/_routes.mjsindex 15608959..4aa31d41 100644--- a/tests/e2e/_routes.mjs+++ b/tests/e2e/_routes.mjs@@ -3,7 +3,7 @@import fs from "node:fs";import path from "node:path";-/** Static routes ("/", "/assist/skills") and dynamic patterns ("/cinema/[id]") under (studio). */+/** Static routes ("/", "/chat/skills") and dynamic patterns ("/cinema/[id]") under (studio). */export function studioRoutes(root) {const base = path.join(root, "src/app/(studio)");const routes = [];@@ -47,7 +47,7 @@ export function dynamicSamples(root, ids = {}) {"/elements/[id]": ["/elements/does-not-exist"],"/cinema/[id]": [ids.cinema && `/cinema/${ids.cinema}`, "/cinema/does-not-exist"],"/canvas/[id]": [ids.canvas && `/canvas/${ids.canvas}`, "/canvas/does-not-exist"],- "/assist/projects/[id]": [ids.assistProject && `/assist/projects/${ids.assistProject}`, "/assist/projects/does-not-exist"],+ "/chat/projects/[id]": [ids.assistProject && `/chat/projects/${ids.assistProject}`, "/chat/projects/does-not-exist"],};const hubs = hubModePaths(root);const { patterns } = studioRoutes(root);@@ -71,11 +71,11 @@ export function dynamicSamples(root, ids = {}) {/*** Pages a query opens a dialog on, with sample values: `ids.recipeSkill` names a skill with a recipe (its Run form,- * /assist/skills?run=…); an unknown one is visited too (the form says so in the dialog).+ * /chat/skills?run=…); an unknown one is visited too (the form says so in the dialog).*/export function querySamples(ids = {}) {// Genjutsu's From picture and Finish tabs (a visitor lands on Motion transfer until they open), and Marketing's// code-drawn templates open in their own panel (a tall one, a 4:5 one with cards, one with a picture, the end card).const kinetic = ["ms-kinetic-headline", "ms-feature-cards", "m2-line-reveal", "ms-end-card"].map((id) => `/marketing?template=${id}`);- return [ids.recipeSkill && `/assist/skills?run=${ids.recipeSkill}`, "/assist/skills?run=does-not-exist", "/genjutsu?mode=picture", "/genjutsu?mode=finish", ...kinetic].filter(Boolean);+ return [ids.recipeSkill && `/chat/skills?run=${ids.recipeSkill}`, "/chat/skills?run=does-not-exist", "/genjutsu?mode=picture", "/genjutsu?mode=finish", ...kinetic].filter(Boolean);}diff --git a/tests/e2e/assist-flows.mjs b/tests/e2e/assist-flows.mjsindex a8d5094e..9cc4c47c 100644--- a/tests/e2e/assist-flows.mjs+++ b/tests/e2e/assist-flows.mjs@@ -93,7 +93,7 @@ const page = await ctx.newPage();page.on("pageerror", (e) => errors.push(e.message));await step("skill menu, chip and a chat with the skill loaded", async () => {- await openRoute(page, `${app}/assist`);+ await openRoute(page, `${app}/chat/make`);const box = page.getByRole("textbox", { name: "Message" });await box.click();await box.type("/prod");@@ -113,7 +113,7 @@ await step("skill menu, chip and a chat with the skill loaded", async () => {});await step("remember asks first, then shows on the Memory page", async () => {- await openRoute(page, `${app}/assist`);+ await openRoute(page, `${app}/chat/make`);const box = page.getByRole("textbox", { name: "Message" });await box.fill("Remember that I always want vertical 9:16 videos");await box.press("Enter");@@ -126,13 +126,13 @@ await step("remember asks first, then shows on the Memory page", async () => {// is waited for by its own words (one pattern for both matches one or two of them, depending on how fast the reply is).await page.getByText("Saved to memory for future chats", { exact: true }).waitFor({ timeout: 30_000 });await page.getByText(/^Saved to memory — every chat will follow it/).waitFor({ timeout: 30_000 });- await openRoute(page, `${app}/assist/memory`);+ await openRoute(page, `${app}/chat/memory`);await page.getByText("I always want vertical 9:16 videos.").waitFor({ timeout: 15_000 });await shot(page, "flow-memory");});await step("a project with instructions and a note; its chats carry it", async () => {- await openRoute(page, `${app}/assist/skills`);+ await openRoute(page, `${app}/chat/skills`);await page.getByRole("button", { name: "New project" }).first().click();await page.getByLabel("Name").fill("E2E Spring campaign");await page.getByLabel("Instructions").fill("Everything is for a spring sneaker drop: pastel palette, 9:16.");@@ -155,7 +155,7 @@ await step("a project with instructions and a note; its chats carry it", async (await step("upload a .zip skill, open it, delete it", async () => {const name = `e2e-recipe-${Date.now().toString(36)}`;- await openRoute(page, `${app}/assist/skills`);+ await openRoute(page, `${app}/chat/skills`);await page.locator('input[type="file"]').setInputFiles({ name: `${name}.zip`, mimeType: "application/zip", buffer: skillZip(name) });await page.getByRole("tab", { name: /My skills/ }).waitFor();await page.getByText("E2E Recipe Reels").first().waitFor({ timeout: 15_000 });@@ -168,7 +168,7 @@ await step("upload a .zip skill, open it, delete it", async () => {});await step("mode picker offers Manual with models and effort", async () => {- await openRoute(page, `${app}/assist`);+ await openRoute(page, `${app}/chat/make`);await page.getByRole("button", { name: /^Mode:/ }).click();await page.getByRole("radio", { name: "Manual" }).click();await page.getByRole("radio", { name: /Offline planner/ }).waitFor();@@ -195,7 +195,7 @@ await step("save a chat as a skill, then /skill plus an attachment runs it on onbody: JSON.stringify({ text: "Put this desk lamp on a travertine plinth, soft window light", attachments: [photo], engine: "cloud", autoApprove: false }),});savedChat = (await res.json()).id;- await openRoute(page, `${app}/assist?c=${savedChat}`);+ await openRoute(page, `${app}/chat/make?c=${savedChat}`);await page.getByRole("button", { name: /^Run/ }).click({ timeout: 30_000 });await page.getByRole("button", { name: /^Open / }).first().waitFor({ timeout: 60_000 });// Every take finished (a step still running can't be saved yet).@@ -219,7 +219,7 @@ await step("save a chat as a skill, then /skill plus an attachment runs it on onconst view = await (await fetch(`${app}/api/assist/skills/${savedSkill}/recipe`)).json();if (view?.recipe?.source?.from !== "assist" || view.recipe.params.length !== 1) throw new Error(`saved recipe: ${JSON.stringify(view?.recipe?.source)} ${view?.recipe?.params?.length} inputs`);// A new chat: /name and a new photo → one card titled by the skill → Run.- await openRoute(page, `${app}/assist`, { settleMs: 2000 });+ await openRoute(page, `${app}/chat/make`, { settleMs: 2000 });const box = page.getByRole("textbox", { name: "Message" });await box.click();// The whole name typed: the skill's chip shows above the words (its menu has nothing left to offer).@@ -246,7 +246,7 @@ await step("phone: Save as skill stays in the header and its review fits", asyncconst phone = await browser.newContext({ ...PHONE, colorScheme: scheme });const p = await phone.newPage();p.on("pageerror", (e) => errors.push(e.message));- await openRoute(p, `${app}/assist?c=${savedChat}`);+ await openRoute(p, `${app}/chat/make?c=${savedChat}`);await p.getByRole("button", { name: "Save as skill" }).click();await p.getByRole("dialog").getByText("What changes next time").waitFor({ timeout: 30_000 });await p.waitForTimeout(400);@@ -261,12 +261,12 @@ await step("phone: the sidebar opens as a sheet; no sideways scroll", async () =const phone = await browser.newContext({ ...PHONE, colorScheme: scheme });const p = await phone.newPage();p.on("pageerror", (e) => errors.push(e.message));- for (const r of ["/assist", "/assist/skills", "/assist/memory", "/assist/scheduled"]) {+ for (const r of ["/chat/make", "/chat/skills", "/chat/memory", "/chat/scheduled"]) {await openRoute(p, app + r);const wide = await p.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth);if (wide > 0) throw new Error(`${r} is ${wide}px too wide`);}- await openRoute(p, `${app}/assist`);+ await openRoute(p, `${app}/chat/make`);await p.getByRole("button", { name: "Chats, projects, skills, memory and scheduled tasks" }).click();await p.getByRole("dialog").getByRole("link", { name: "Skills" }).waitFor();await p.getByRole("dialog").getByRole("link", { name: "Scheduled" }).waitFor();diff --git a/tests/e2e/guest-prompt.mjs b/tests/e2e/guest-prompt.mjsindex d53aeea4..d61e8e31 100644--- a/tests/e2e/guest-prompt.mjs+++ b/tests/e2e/guest-prompt.mjs@@ -101,7 +101,7 @@ async function generateImage(page) {/** Send a message in Assist, and wait for the server's answer. */async function sendInAssist(page) {- await openRoute(page, `${app}/assist`);+ await openRoute(page, `${app}/chat/make`);const box = page.locator("textarea").first();await box.fill("Plan a three-shot teaser for a summer coat");const answered = page.waitForResponse((r) => new URL(r.url()).pathname === "/api/assist" && r.request().method() === "POST");diff --git a/tests/e2e/nav.mjs b/tests/e2e/nav.mjsindex 0b5de366..39bbfb61 100644--- a/tests/e2e/nav.mjs+++ b/tests/e2e/nav.mjs@@ -344,7 +344,7 @@ try {check(full && (await dialog.getByRole("button", { name: /^Cancel/ }).isVisible()), `${label}: the header's search opens the full-screen palette with Cancel`);await dialog.getByRole("button", { name: /^Cancel/ }).tap();await dialog.waitFor({ state: "detached" });- for (const r of ["/assist"]) {+ for (const r of ["/chat/make"]) {await openRoute(p, app + r);check(!(await tabs.isVisible()), `${label}: no tabs on ${r}`);await p.getByRole("button", { name: "Menu", exact: true }).first().tap();diff --git a/tests/e2e/no-horizontal-scroll.mjs b/tests/e2e/no-horizontal-scroll.mjsindex bb3c6d1a..4eca1d09 100644--- a/tests/e2e/no-horizontal-scroll.mjs+++ b/tests/e2e/no-horizontal-scroll.mjs@@ -29,16 +29,16 @@ async function discoverRoutes() {const askFirst = await post(app, "/api/assist", { text: brief, engine: "cloud", mode: { mode: "free" } });const autoRun = await post(app, "/api/assist", { text: brief, engine: "cloud", autoApprove: true, mode: { mode: "free" } });const { urls, generated } = dynamicSamples(root, { cinema: project?.id, canvas: canvas?.id, assistProject: assistProject?.id });- const chats = [askFirst?.id, autoRun?.id].filter(Boolean).map((id) => `/assist?c=${id}`);- // A skill with a recipe: its Run form opens from /assist/skills?run=<name>.+ const chats = [askFirst?.id, autoRun?.id].filter(Boolean).map((id) => `/chat/make?c=${id}`);+ // A skill with a recipe: its Run form opens from /chat/skills?run=<name>.const recipeSkill = await recipeSkillSample();// Kinetic opens on a scene by its address (the editor), as well as on its scene picker (/kinetic).const samples = [...urls, ...chats, ...querySamples({ recipeSkill }), "/library?tab=favorites", "/kinetic?scene=big-number", "/login", "/this-page-does-not-exist"];- if (!recipeSkill) console.log("note: couldn't create a sample skill with a recipe, only an unknown /assist/skills?run= is checked");+ if (!recipeSkill) console.log("note: couldn't create a sample skill with a recipe, only an unknown /chat/skills?run= is checked");if (!project?.id) console.log("note: couldn't create a sample cinema project, only an unknown /cinema/[id] is checked");if (!canvas?.id) console.log("note: couldn't create a sample canvas, only an unknown /canvas/[id] is checked");- if (!assistProject?.id) console.log("note: couldn't create a sample Assist project, only an unknown /assist/projects/[id] is checked");- if (chats.length < 2) console.log("note: couldn't start the sample Assist chats, so /assist?c=<id> isn't fully checked");+ if (!assistProject?.id) console.log("note: couldn't create a sample Assist project, only an unknown /chat/projects/[id] is checked");+ if (chats.length < 2) console.log("note: couldn't start the sample Assist chats, so /chat/make?c=<id> isn't fully checked");for (const p of generated) console.log(`note: ${p} has no sample in tests/e2e/_routes.mjs: only its not-found page is checked`);return [...new Set([...out, ...samples])];}diff --git a/tests/e2e/schedule-skill.mjs b/tests/e2e/schedule-skill.mjsindex 3a26fbcb..dd8c6cea 100644--- a/tests/e2e/schedule-skill.mjs+++ b/tests/e2e/schedule-skill.mjs@@ -74,7 +74,7 @@ try {const page = await context.newPage();page.on("pageerror", (e) => errors.push(`${tag}: ${e.message}`));page.on("console", (m) => m.type() === "error" && !/Failed to load resource/.test(m.text()) && errors.push(`${tag}: ${m.text()}`));- await openRoute(page, `${app}/assist/scheduled`);+ await openRoute(page, `${app}/chat/scheduled`);await page.getByRole("button", { name: /Schedule a task|^New$|^Schedule$/ }).first().click();const dialog = page.getByRole("dialog");check(`${tag}: the dialog asks what to run`, await seen(dialog.getByRole("radio", { name: "A skill" })));@@ -113,7 +113,7 @@ try {const items = thread?.thread?.items ?? [];check(`${tag}: Run now: its plan waits for approval, priced`, items.some((i) => i.role === "approval" && i.status === "pending" && i.summary === TITLE));check(`${tag}: Run now: the newest upload is attached`, items.some((i) => i.role === "user" && i.attachments?.[0] === newest));- await openRoute(page, `${app}/assist?c=${threadId}`);+ await openRoute(page, `${app}/chat/make?c=${threadId}`);check(`${tag}: the chat shows the skill's card`, await seen(page.getByText(TITLE).first()));await shot(page, `schedule-skill-chat-${width}-${scheme}`);saved = true;@@ -121,7 +121,7 @@ try {await page.keyboard.press("Escape");}// Edit reopens a skill task in skill mode.- await openRoute(page, `${app}/assist/scheduled`);+ await openRoute(page, `${app}/chat/scheduled`);await page.getByRole("button", { name: `More for ${TITLE}`, exact: true }).click();await page.getByRole("menuitem", { name: /Edit/ }).click();const edit = page.getByRole("dialog");diff --git a/tests/e2e/shell.mjs b/tests/e2e/shell.mjsindex 87f2dbf7..b15d483d 100644--- a/tests/e2e/shell.mjs+++ b/tests/e2e/shell.mjs@@ -183,7 +183,7 @@ try {page.evaluate(() =>document.documentElement.hasAttribute("data-fullscreen-studio"),);- await openRoute(page, `${app}/assist`);+ await openRoute(page, `${app}/chat/make`);assert.ok(await marked(), "marked on Assist");assert.ok(await page.locator("[data-top-bar]").isVisible(),@@ -209,7 +209,7 @@ try {step("phone: a full-screen studio hides the tabs, and its header's Menu opens the menu sheet",);- await openRoute(page, `${app}/assist`);+ await openRoute(page, `${app}/chat/make`);assert.ok(!(await page.locator("[data-phone-tabs]").isVisible()),"no tabs on Assist",diff --git a/tests/e2e/skills-run.mjs b/tests/e2e/skills-run.mjsindex 2a7dda60..a243548c 100644--- a/tests/e2e/skills-run.mjs+++ b/tests/e2e/skills-run.mjs@@ -1,5 +1,5 @@// 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 test run first,+// its card says "Runs by itself"; /chat/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// tested, and in amber that it needs a new test run after its route changed, and Test again clears it. ⌘K lists@@ -83,12 +83,12 @@ try {const context = await browser.newContext({ viewport: { width, height }, colorScheme: scheme, ...(width < 500 ? { isMobile: true, hasTouch: true } : {}) });const page = await context.newPage();// The card's chip.- await openRoute(page, `${app}/assist/skills`);+ await openRoute(page, `${app}/chat/skills`);await page.getByRole("tab", { name: /My skills/ }).click();check(`${tag}: the card says "Runs by itself"`, await seen(page.getByText("Runs by itself").first()));// The Run form, by its deep link.- await openRoute(page, `${app}/assist/skills?run=${NAME}`);+ await openRoute(page, `${app}/chat/skills?run=${NAME}`);const dialog = page.getByRole("dialog");check(`${tag}: ?run= opens the Run form`, await seen(dialog.getByRole("heading", { name: "Run E2E Poster" })));if (!flowsDone) {@@ -129,7 +129,7 @@ try {check(`${tag}: one run is one batch of 2 steps with the skill's stamp`, batch.length === 2 && new Set(batch.map((g) => g.batchId)).size === 1 && batch.every((g) => g.request.batchTitle === "E2E Poster"), `${batch.length} rows`);check(`${tag}: the run took the form's inputs`, batch.some((g) => g.request.prompt === "Arc floor lamp on a travertine plinth, soft window light" && g.request.params?.aspectRatio === "16:9"));// 3. Many: three CSV rows, checked, priced together.- await openRoute(page, `${app}/assist/skills?run=${NAME}`);+ await openRoute(page, `${app}/chat/skills?run=${NAME}`);await dialog.getByRole("tab", { name: "Many" }).click();await dialog.getByLabel("Rows to run").fill(`Product photo,Product name,Shape\n${photo},Desk lamp,1:1\n${photo},"Lamp, brass",9:16\n${photo},Floor lamp,16:9\n`);check(`${tag}: the rows are checked ("3 runs · all fine")`, await seen(dialog.getByText("3 runs · all fine")));@@ -151,21 +151,21 @@ try {const rows = (await stamped()).slice(0, -before3 || undefined);check(`${tag}: three runs are three batches`, new Set(rows.map((g) => g.batchId)).size === 3 && rows.length === 6, `${rows.length} rows`);// A bad row is said inline, and nothing runs.- await openRoute(page, `${app}/assist/skills?run=${NAME}`);+ await openRoute(page, `${app}/chat/skills?run=${NAME}`);await dialog.getByRole("tab", { name: "Many" }).click();await dialog.getByLabel("Rows to run").fill(`product,name\n${photo},Desk lamp\nnot-a-link,Floor lamp\n`);check(`${tag}: a bad row is marked inline`, await seen(dialog.getByText(/Product photo: a file from Fuobe/)));check(`${tag}: …and the footer says to fix it, with no price`, await seen(dialog.getByText("Fix the rows marked below")));// A switched-off skill's form says so (its Run is off), and switches it back on.await send("PATCH", `/api/assist/skills/${NAME}`, { enabled: false });- await openRoute(page, `${app}/assist/skills?run=${NAME}`);+ await openRoute(page, `${app}/chat/skills?run=${NAME}`);check(`${tag}: a switched-off skill's form says so`, await seen(dialog.getByText("This skill is switched off")));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. 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}`);+ await openRoute(page, `${app}/chat/skills?skill=${NAME}`);const amber = await page.getByText(/Needs a new test run:/).first()@@ -202,7 +202,7 @@ try {check(`${tag}: …and opens its Run form`, await seen(page.getByRole("heading", { name: "Run E2E Poster" })));}flowsDone = true;- await openRoute(page, `${app}/assist/skills?run=${NAME}`);+ await openRoute(page, `${app}/chat/skills?run=${NAME}`);}// Layout: ready to run, at this size and scheme.check(`${tag}: the form is ready to run (tested on Cloud)`, await seen(dialog.getByText("Runs in the cloud")));@@ -213,7 +213,7 @@ try {await dialog.getByLabel("Rows to run").fill(`Product photo,Product name,Shape\n${photo},A very long product name that keeps on going and going,16:9\n`);check(`${tag}: nothing scrolls sideways`, await noSideScroll(page));await shot(page, `layout-${width}-${scheme}`);- await openRoute(page, `${app}/assist/skills?skill=${NAME}`);+ await openRoute(page, `${app}/chat/skills?skill=${NAME}`);check(`${tag}: the skill's dialog offers Run… and the .zip`, await seen(page.getByRole("button", { name: "Run…" })));await page.getByRole("button", { name: /Download/ }).click();check(`${tag}: …Download offers SKILL.md and the .zip`, await seen(page.getByRole("menuitem", { name: "Skill with its files (.zip)" })));diff --git a/tests/e2e/skills-w5-w7.mjs b/tests/e2e/skills-w5-w7.mjsindex 29a2faab..d5ed342a 100644--- a/tests/e2e/skills-w5-w7.mjs+++ b/tests/e2e/skills-w5-w7.mjs@@ -148,10 +148,10 @@ try {const page = await ctx.newPage();// W6 + W7: the skill's History, and the run that waits across studios.- await openRoute(page, `${app}/assist/skills?skill=${POSTER}`);+ await openRoute(page, `${app}/chat/skills?skill=${POSTER}`);check(`${tag} history: the skill's runs show in its dialog`, await seen(page.getByRole("dialog").getByText(/\b\d+ runs?\b/)));await shot(page, `history-${tag}`);- await openRoute(page, `${app}/assist/skills?skill=${SHORT}`);+ await openRoute(page, `${app}/chat/skills?skill=${SHORT}`);check(`${tag} runs in stages: each step's progress shows`, await seen(page.getByRole("dialog").locator("[data-skill-run]")));check(`${tag} runs in stages: the steps are named`, await seen(page.getByRole("dialog").getByText(/Captions ·/)));check(`${tag} history: nothing scrolls sideways`, await noSideScroll(page));diff --git a/tests/e2e/starters-studios.mjs b/tests/e2e/starters-studios.mjsindex 7ca7f437..ef086161 100644--- a/tests/e2e/starters-studios.mjs+++ b/tests/e2e/starters-studios.mjs@@ -32,7 +32,7 @@ const check = (name, ok, detail = "") => {*/const SURFACES = [// Assist's starters sit in one row of three under the composer (See all opens the rest).- { path: "/assist", heading: "Start from a ready job", n: 5, shown: 0, page: "assist.jewel-campaign", words: "candlelit palace hall", row: 3 },+ { path: "/chat/make", heading: "Start from a ready job", n: 5, shown: 0, page: "assist.jewel-campaign", words: "candlelit palace hall", row: 3 },{ path: "/library", heading: "Make your first", n: 4, shown: 3, link: true },{ path: "/cinema", heading: "Start from a ready film", n: 3, shown: 0, page: "cinema.riviera-night", words: "Monte Carlo casino" },{ path: "/storyboard", heading: "Start from a ready story", n: 3, shown: 0, page: "storyboard.perfume-ad", words: "Nuit Noire perfume ad" },@@ -165,7 +165,7 @@ try {// A starter page whose id isn't that studio's answers a real 404.if (size === "1440") {- for (const bad of ["/cinema/start/elements.amara", "/elements/start/nope.x", "/assist/start/storyboard.heist"]) {+ for (const bad of ["/cinema/start/elements.amara", "/elements/start/nope.x", "/chat/make/start/storyboard.heist"]) {const r = await page.goto(`${app}${bad}`, { waitUntil: "load" });check(`${tag}: ${bad} is a real 404`, r?.status() === 404, String(r?.status()));}@@ -190,7 +190,7 @@ try {await story.waitFor({ timeout: 60_000 });await page.waitForTimeout(1500);check(`${tag}: ?starter= of a story with no cover leaves a visitor's composer empty`, !/Capri/.test(await story.inputValue()));- await page.goto(`${app}/assist?starter=assist.serum-ugc`, { waitUntil: "load" });+ await page.goto(`${app}/chat/make?starter=assist.serum-ugc`, { waitUntil: "load" });await page.waitForTimeout(2500);const typedIn = (await page.locator("textarea").first().inputValue().catch(() => "")) ?? "";check(`${tag}: ?starter= of a job with no cover types nothing into a visitor's Assist`, !/serum/.test(typedIn), typedIn.slice(0, 40));@@ -211,12 +211,12 @@ try {check(`${tag}: a ready job types its words into Assist`, /^A campaign for an emerald and diamond necklace/.test(typed), typed.slice(0, 60));check(`${tag}: nothing was sent`, !/[?&]c=/.test(page.url()));await shot("assist-filled");- await page.goto(`${app}/assist?starter=assist.serum-ugc`, { waitUntil: "load" });+ await page.goto(`${app}/chat/make?starter=assist.serum-ugc`, { waitUntil: "load" });await page.waitForTimeout(1500);check(`${tag}: ?starter= types a ready job in too`, /^A 15-second vertical creator video/.test(await page.locator("textarea").first().inputValue()));if (size === "390") {// On a phone the ready jobs sit below the skills: a link beside "All skills" goes to them.- await page.goto(`${app}/assist`, { waitUntil: "load" });+ await page.goto(`${app}/chat/make`, { waitUntil: "load" });const ready = page.getByRole("link", { name: "Ready jobs" });await ready.waitFor({ timeout: 60_000 }).catch(() => {});check(`${tag}: a phone's Assist links to the ready jobs`, await ready.isVisible().catch(() => false));diff --git a/tests/goal-row.test.ts b/tests/goal-row.test.tsindex 4bf8f14a..28e21978 100644--- a/tests/goal-row.test.ts+++ b/tests/goal-row.test.ts@@ -89,7 +89,7 @@ describe("goal row data", () => {const prompt = GOAL_ASSIST_PROMPTS[g.id];expect(prompt, g.id).toBeTruthy();expect(prompt!.length).toBeLessThanOrEqual(ASSIST_PROMPT_MAX);- expect(href).toBe(`/assist?prompt=${encodeURIComponent(prompt!)}`);+ expect(href).toBe(`/chat/make?prompt=${encodeURIComponent(prompt!)}`);expect(new URL(href!, "http://x").searchParams.get("prompt")).toBe(prompt);}for (const id of Object.keys(GOAL_ASSIST_PROMPTS)) expect(GOALS.find((g) => g.id === id)?.assist, id).toBe(true);@@ -128,7 +128,7 @@ describe("goal row markup", () => {expect(html).toContain(`id="goal-band-title"`);expect(html).toContain(g.title.replace("&", "&"));expect(html).toContain(`aria-label="Close ${g.title.replace("&", "&")}"`);- const links = hrefs(html).filter((h) => !h.startsWith("/assist?prompt="));+ const links = hrefs(html).filter((h) => !h.startsWith("/chat/make?prompt="));expect(links).toEqual([...want.cards.map((e) => e.href), ...g.taps.map((t) => tapHref(t.preset)), ...want.finish.map((e) => e.href)]);expect(want.cards.length, g.id).toBeGreaterThanOrEqual(4);expect(want.cards.length, g.id).toBeLessThanOrEqual(5);@@ -152,7 +152,7 @@ describe("goal row markup", () => {const html = band(g.id, kind);const shown = kind === "owner" && !!g.assist;expect(html.includes("Plan it with Assist"), `${g.id} ${kind}`).toBe(shown);- expect(hrefs(html).some((h) => h.startsWith("/assist?prompt=")), `${g.id} ${kind}`).toBe(shown);+ expect(hrefs(html).some((h) => h.startsWith("/chat/make?prompt=")), `${g.id} ${kind}`).toBe(shown);}}});diff --git a/tests/record-pages.test.ts b/tests/record-pages.test.tsindex 48bef5b9..1247cacc 100644--- a/tests/record-pages.test.ts+++ b/tests/record-pages.test.ts@@ -22,7 +22,7 @@ describe("record pages (real 404s)", () => {it("names the record behind every id page", () => {expect(recordForPath("/cinema/abc")).toEqual({ kind: "cinema", ids: ["abc"] });expect(recordForPath("/canvas/abc/")).toEqual({ kind: "canvas", ids: ["abc"] });- expect(recordForPath("/assist/projects/p1")).toEqual({ kind: "assist-project", ids: ["p1"] });+ expect(recordForPath("/chat/projects/p1")).toEqual({ kind: "assist-project", ids: ["p1"] });expect(recordForPath("/layers/l1")).toEqual({ kind: "layers", ids: ["l1"] });expect(recordForPath("/shorts/s1")).toEqual({ kind: "shorts", ids: ["s1"] });expect(recordForPath("/ads/b1")).toEqual({ kind: "brand", ids: ["b1"] });@@ -35,7 +35,7 @@ describe("record pages (real 404s)", () => {});it("leaves list pages and fixed sub-pages alone", () => {- for (const p of ["/", "/cinema", "/canvas/", "/ads", "/ads/multiplier", "/assist/projects", "/assist/skills", "/faceless", "/explainer", "/content-factory", "/library", "/apps/app-face-swap", "/cinema/a/b"]) {+ for (const p of ["/", "/cinema", "/canvas/", "/ads", "/ads/multiplier", "/chat/skills", "/chat/make", "/chat/memory", "/faceless", "/explainer", "/content-factory", "/library", "/apps/app-face-swap", "/cinema/a/b"]) {expect(recordForPath(p), p).toBeNull();}});diff --git a/tests/starters-studios.test.ts b/tests/starters-studios.test.tsindex 725ef3dc..2e041b2f 100644--- a/tests/starters-studios.test.ts+++ b/tests/starters-studios.test.ts@@ -90,8 +90,8 @@ describe("Assist starters", () => {if (s.seed.skill) expect(getSkill(s.seed.skill), s.id).toBeTruthy();const text = s.seed.skill ? `/${s.seed.skill} ${s.seed.prompt}` : s.seed.prompt;expect(text.length, s.id).toBeLessThanOrEqual(ASSIST_PROMPT_MAX);- expect(card(s).use).toEqual({ kind: "fill", href: `/assist?starter=${encodeURIComponent(s.id)}` });- expect(starterHref(card(s))).toBe(`/assist/start/${s.id}`);+ expect(card(s).use).toEqual({ kind: "fill", href: `/chat/make?starter=${encodeURIComponent(s.id)}` });+ expect(starterHref(card(s))).toBe(`/chat/make/start/${s.id}`);expect(fills[s.id]).toEqual({ kind: "assist", text });}// A page's fills, like its cards, are the covered starters' only: an owner-only job's words never reach a visitor.@@ -205,7 +205,7 @@ describe("starter pages and the owner's tap", () => {});it("a guest reads the pages; making a starter is the owner's (guest 401, account 403 library)", () => {- for (const p of ["/assist/start/assist.jewel-campaign", "/cinema/start/cinema.riviera-night", "/storyboard/start/storyboard.heist", "/elements/start/elements.amara"]) expect(guestRead(p).kind, p).toBe("pass");+ for (const p of ["/chat/make/start/assist.jewel-campaign", "/cinema/start/cinema.riviera-night", "/storyboard/start/storyboard.heist", "/elements/start/elements.amara"]) expect(guestRead(p).kind, p).toBe("pass");expect(isLibraryChange("POST", "/api/starters/cinema.riviera-night")).toBe(true);expect(isLibraryChange("POST", "/api/starters/elements.amara")).toBe(true);});