Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
What's new: the Publish slide names the bot's Publish menu, and the Cloud slide has no trial clip (#7790)
Milind Soni744bc625e9c9
diff --git a/docs/cloud-pro.md b/docs/cloud-pro.mdindex 48c37f2f3c..422bc2a093 100644--- a/docs/cloud-pro.md+++ b/docs/cloud-pro.md@@ -2409,8 +2409,8 @@ launch: What's new comes first, and the Boat card waits for a later one.**Open apps**, which opens Published apps. The words about opening anapp in its own window and installing it are only on this computer'spage of the desktop app, which can do both.- - **Publish your bots**, for everyone: Share as template in the bot's- Share or ⋯ menu, then Publish. It only tells; it has no button.+ - **Publish your bots**, for everyone: Publish in the bot's ⋯ menu, then+ Publish to community. It only tells; it has no button.- **Meet the new MausBot Cloud**: on this computer's page of a desktop thatsells the Cloud and no organization runs, for someone with no Cloud plan(signed out, or signed in with none). Whoever has a Cloud (a plan ofdiff --git a/src/assets/whats-new/cloud-dark.mp4 b/src/assets/whats-new/cloud-dark.mp4deleted file mode 100644index 2a5ff5b086..0000000000Binary files a/src/assets/whats-new/cloud-dark.mp4 and /dev/null differdiff --git a/src/assets/whats-new/cloud-dark.webp b/src/assets/whats-new/cloud-dark.webpdeleted file mode 100644index c35c648ca3..0000000000Binary files a/src/assets/whats-new/cloud-dark.webp and /dev/null differdiff --git a/src/assets/whats-new/cloud-light.mp4 b/src/assets/whats-new/cloud-light.mp4deleted file mode 100644index 132565bcee..0000000000Binary files a/src/assets/whats-new/cloud-light.mp4 and /dev/null differdiff --git a/src/assets/whats-new/cloud-light.webp b/src/assets/whats-new/cloud-light.webpdeleted file mode 100644index 32de4bbd25..0000000000Binary files a/src/assets/whats-new/cloud-light.webp and /dev/null differdiff --git a/src/components/AppNotices.test.ts b/src/components/AppNotices.test.tsindex 6c04c9efc0..4948c3ed08 100644--- a/src/components/AppNotices.test.ts+++ b/src/components/AppNotices.test.ts@@ -1451,7 +1451,7 @@ describe("What's new for everyone once more: Apps, Publish your bots, then the Cit("Publish your bots names the bot's menu item and the card's button, and asks nothing of a bot: no button of its own", async () => {const html = await launch();expect(html).toContain(PUBLISH);- expect(html).toContain("Share a bot as a template others can add to their own MausBot. Choose “Share as template” in the bot's Share or ⋯ menu, then “Publish”.");+ expect(html).toContain("Share a bot as a template others can add to their own MausBot. Choose “Publish” in the bot's ⋯ menu, then “Publish to community”.");expect(vi.mocked(api).mock.calls.filter(([path]) => String(path).includes("/messages")), "nothing sent to a bot").toEqual([]);});diff --git a/src/components/whats-new/WhatsNewPopup.test.ts b/src/components/whats-new/WhatsNewPopup.test.tsindex 1683ef3794..d6f066c130 100644--- a/src/components/whats-new/WhatsNewPopup.test.ts+++ b/src/components/whats-new/WhatsNewPopup.test.ts@@ -61,32 +61,40 @@ describe("the What's new popup", () => {expect(document.activeElement).toBe(opener);});- it("the first slide: the new Cloud's loop of the app, its words and price, Get Pro and See the new Cloud", async () => {+ it("the first slide: My Cloud drawn, the new Cloud's words and price with no trial, Get Pro and See the new Cloud", async () => {await show();const slide = live();expect(slide.textContent).toContain("Your bots keep working when this computer is off. The new Cloud website puts your Clouds, team, billing and usage in one place.");expect(slide.textContent).toContain("Pro · $49/month + tax · 14-day money-back");- const clip = slide.querySelector("video")!;- expect(clip.getAttribute("aria-label")).toBe("The app's Cloud plans: the pointer picks Pro's free trial.");- expect(clip.getAttribute("src"), "dark skins get the dark loop").toMatch(/cloud-dark\.mp4/);- expect(clip.getAttribute("poster")).toMatch(/cloud-dark\.webp/);+ expect(slide.textContent).not.toMatch(/trial/i);+ expect(slide.querySelector('[data-whats-new-picture="pro"]')!.textContent).toBe("My Cloud");+ expect(host.querySelectorAll("video"), "no plans clip on the Cloud slide").toHaveLength(0);+ expect(host.querySelector('[data-whats-new-picture="team"] img')!.getAttribute("src"), "the others show their still").toMatch(/team-dark\.webp/);+ expect([...slide.querySelectorAll("button")].map(item => item.textContent)).toEqual(["Get Pro", "See the new Cloud"]);+ });++ it("the slide on screen plays its loop: muted, looping, inline, the dark one on a dark skin", async () => {+ await show();+ await click("Next");+ const clip = live().querySelector("video")!;+ expect(clip.getAttribute("src")).toMatch(/team-dark\.mp4/);+ expect(clip.getAttribute("poster")).toMatch(/team-dark\.webp/);for (const flag of ["autoplay", "loop", "playsinline"]) expect(clip.hasAttribute(flag), flag).toBe(true);expect(clip.muted).toBe(true);expect(host.querySelectorAll("video"), "only the slide on screen plays").toHaveLength(1);- expect(host.querySelector('[data-whats-new-picture="team"] img')!.getAttribute("src"), "the others show their still").toMatch(/team-dark\.webp/);- expect([...slide.querySelectorAll("button")].map(item => item.textContent)).toEqual(["Get Pro", "See the new Cloud"]);});it("a light skin gets the light loops; reduced motion gets each slide's still, never a video", async () => {document.documentElement.style.setProperty("--code-color-scheme", "light");await show();- expect(live().querySelector("video")!.getAttribute("src")).toMatch(/cloud-light\.mp4/);+ await click("Next");+ expect(live().querySelector("video")!.getAttribute("src")).toMatch(/team-light\.mp4/);await act(async () => root.render(null));document.documentElement.dataset.reducedMotion = "true";await show();+ await click("Next");expect(host.querySelector("video")).toBeNull();- expect(live().querySelector("img")!.getAttribute("src")).toMatch(/cloud-light\.webp/);- expect(live().querySelector("img")!.getAttribute("alt")).toBe("The app's Cloud plans: the pointer picks Pro's free trial.");+ expect(live().querySelector("img")!.getAttribute("src")).toMatch(/team-light\.webp/);});it("Next, Back, the dots and the arrow keys move between the slides; each slide is counted seen once, and each move from where it was", async () => {@@ -215,14 +223,14 @@ describe("the What's new popup", () => {await click("Next");const slide = live();expect(title()).toBe(PUBLISH);- expect(slide.textContent).toContain("Share a bot as a template others can add to their own MausBot. Choose “Share as template” in the bot's Share or ⋯ menu, then “Publish”.");- expect(slide.querySelector('[data-whats-new-picture="publish"]')!.textContent, "the menu drawn from the app's own labels").toContain("Share as template");+ expect(slide.textContent).toContain("Share a bot as a template others can add to their own MausBot. Choose “Publish” in the bot's ⋯ menu, then “Publish to community”.");+ expect(slide.querySelector('[data-whats-new-picture="publish"]')!.textContent, "the menu drawn from the app's own labels").toContain("Publish");expect(slide.querySelector("video"), "a drawn picture, no clip").toBeNull();expect([...slide.querySelectorAll("button")]).toHaveLength(0);expect(button("Not now")).toBeUndefined(); expect(button("Got it")).toBeUndefined();await click("Next");expect(title()).toBe(CLOUD_NEWS);- expect(live().querySelector("video"), "the Cloud's clip shows the plans as sold; this slide draws My Cloud").toBeNull();+ expect(live().querySelector("video"), "this slide draws My Cloud").toBeNull();expect(live().querySelector('[data-whats-new-picture="cloudNews"]')!.textContent).toBe("My Cloud");expect(button("Not now")).toBeUndefined(); expect(button("Got it")).toBeUndefined();await click("Next");diff --git a/src/components/whats-new/WhatsNewPopup.tsx b/src/components/whats-new/WhatsNewPopup.tsxindex ebfebfb128..ff8bfc7d14 100644--- a/src/components/whats-new/WhatsNewPopup.tsx+++ b/src/components/whats-new/WhatsNewPopup.tsx@@ -1,11 +1,7 @@import { useEffect, useState, type ReactNode } from "react";-import { ArrowLeft, ArrowRight, Check, Cloud, Copy, Download, LayoutTemplate, Monitor, MoreHorizontal, Search, X } from "lucide-react";+import { ArrowLeft, ArrowRight, Check, Cloud, Copy, Download, Monitor, MoreHorizontal, Search, Upload, X } from "lucide-react";import appsClip from "@/assets/whats-new/apps-dark.mp4";import appsStill from "@/assets/whats-new/apps-dark.webp";-import cloudDark from "@/assets/whats-new/cloud-dark.mp4";-import cloudDarkStill from "@/assets/whats-new/cloud-dark.webp";-import cloudLight from "@/assets/whats-new/cloud-light.mp4";-import cloudLightStill from "@/assets/whats-new/cloud-light.webp";import teamDark from "@/assets/whats-new/team-dark.mp4";import teamDarkStill from "@/assets/whats-new/team-dark.webp";import teamLight from "@/assets/whats-new/team-light.mp4";@@ -32,7 +28,7 @@ function body(slide: WhatsNewSlide, view: WhatsNewView): string {switch (slide) {case "apps": return t(view.apps?.install ? "whatsNew.apps.body" : "whatsNew.apps.bodyHere",{ screen: t("publishedApps.title"), section: t(view.apps?.place === "cloud" ? "localApps.section.cloud" : "localApps.section.computer") });- case "publish": return t("whatsNew.publish.body", { item: t("template.shareAsTemplate"), share: t("chat.export.heading"), publish: t("template.publish") });+ case "publish": return t("whatsNew.publish.body", { item: t("template.publish"), publish: t("template.publishToCommunity") });case "pro": return t("whatsNew.cloud.body");case "cloudNews": return t("whatsNew.cloudNews.body");case "team": return t("whatsNew.team.bodyInbox");@@ -48,9 +44,8 @@ type Clips = { label: LocaleKey; focus: string; dark: Clip; light: Clip };const TEAM_CLIP: Clips = { label: "whatsNew.team.videoLabel", focus: "object-[40%_50%]", dark: { video: teamDark, still: teamDarkStill }, light: { video: teamLight, still: teamLightStill } };/** The apps screen was filmed in the dark look only. */const APPS_CLIP: Clip = { video: appsClip, still: appsStill };-const PICTURES: Record<"apps" | "pro" | "team" | "teamNews", Clips> = {+const PICTURES: Record<"apps" | "team" | "teamNews", Clips> = {apps: { label: "whatsNew.apps.videoLabel", focus: "object-[6%_50%]", dark: APPS_CLIP, light: APPS_CLIP },- pro: { label: "whatsNew.cloud.videoLabel", focus: "object-[50%_50%]", dark: { video: cloudDark, still: cloudDarkStill }, light: { video: cloudLight, still: cloudLightStill } },team: TEAM_CLIP, teamNews: TEAM_CLIP,};const TEAM_POINTS: readonly LocaleKey[] = ["whatsNew.team.apps", "whatsNew.team.groupChats", "whatsNew.team.memory", "whatsNew.team.handoff", "whatsNew.team.accessUse"];@@ -66,22 +61,22 @@ const controls = (popup: Element | null) => [...(popup?.querySelectorAll<HTMLElefunction Picture({ slide, active }: { slide: WhatsNewSlide; active: boolean }) {if (slide === "together") return <TogetherPicture />;if (slide === "publish") return <PublishPicture />;- if (slide === "cloudNews") return <CloudPicture />;+ if (slide === "cloudNews" || slide === "pro") return <CloudPicture slide={slide} />;return <ClipPicture slide={slide} active={active} />;}const DRAWN = "relative grid aspect-[2/1] shrink-0 grow place-items-center overflow-hidden bg-ink/[0.035] [@media(max-height:600px)]:hidden";const DRAWN_CARD = "rounded-xl border-[0.5px] border-ink/10 bg-app shadow-sm";-/** The bot's menu with Share as template, drawn from the app's own labels. */-const PUBLISH_ROWS = [[Search, "chat.find"], [LayoutTemplate, "template.shareAsTemplate"], [Copy, "chat.export.copy"], [Download, "chat.export.download"]] as const;+/** The bot's menu with Publish, drawn from the app's own labels. */+const PUBLISH_ROWS = [[Search, "chat.find"], [Upload, "template.publish"], [Copy, "chat.export.copy"], [Download, "chat.export.download"]] as const;function PublishPicture() {return <div data-whats-new-picture="publish" aria-hidden="true" className={DRAWN}><div className="flex w-[58%] min-w-[220px] flex-col items-end gap-1.5"><span className={cn(DRAWN_CARD, "grid size-8 place-items-center rounded-full text-ink")}><MoreHorizontal size={16} /></span><div className={cn(DRAWN_CARD, "flex w-full flex-col gap-0.5 p-1.5")}>{PUBLISH_ROWS.map(([Icon, label]) => <div key={label} className={cn("flex items-center gap-2 rounded-lg px-2 py-1.5 text-[13px]",- label === "template.shareAsTemplate" ? "bg-ink/[0.06] font-medium text-ink" : "text-ink-secondary")}>+ label === "template.publish" ? "bg-ink/[0.06] font-medium text-ink" : "text-ink-secondary")}><Icon size={15} className="shrink-0" /><span className="min-w-0 truncate">{t(label)}</span></div>)}</div>@@ -89,9 +84,9 @@ function PublishPicture() {</div>;}-/** My Cloud, drawn: the Cloud slide's clip shows the plans as they were sold, so the slide that only tells has none. */-function CloudPicture() {- return <div data-whats-new-picture="cloudNews" aria-hidden="true" className={DRAWN}>+/** My Cloud, drawn: a picture of the plans would go stale with each change to how they are sold. */+function CloudPicture({ slide }: { slide: "pro" | "cloudNews" }) {+ return <div data-whats-new-picture={slide} aria-hidden="true" className={DRAWN}><div className="flex flex-col items-center gap-2.5"><span className="grid size-14 place-items-center rounded-2xl bg-accent/10 text-accent"><Cloud size={26} /></span><span className="text-[13px] font-medium text-ink">{t("cloudSetup.myCloud")}</span>diff --git a/src/locales/en.json b/src/locales/en.jsonindex 733a53b18e..dbe686b5e0 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -586,7 +586,6 @@"whatsNew.cloud.title": "Meet the new MausBot Cloud","whatsNew.cloud.body": "Your bots keep working when this computer is off. The new Cloud website puts your Clouds, team, billing and usage in one place.","whatsNew.cloud.see": "See the new Cloud",- "whatsNew.cloud.videoLabel": "The app's Cloud plans: the pointer picks Pro's free trial.","whatsNew.team.title": "Shared bots for your whole team","whatsNew.team.bodyInbox": "Everyone chats with the same bots, like one Support bot and one Sales bot, and hands them work. Each person's own MausBot is their inbox: anything for them lands there.","whatsNew.team.apps": "Connected apps, set up once for everyone",@@ -606,7 +605,7 @@"whatsNew.apps.open": "Open apps","whatsNew.apps.videoLabel": "Published apps: the apps your bots built, each as a card; the pointer opens one.","whatsNew.publish.title": "Publish your bots",- "whatsNew.publish.body": "Share a bot as a template others can add to their own MausBot. Choose “{item}” in the bot's {share} or ⋯ menu, then “{publish}”.",+ "whatsNew.publish.body": "Share a bot as a template others can add to their own MausBot. Choose “{item}” in the bot's ⋯ menu, then “{publish}”.","teamsNew.title": "MausBot is better with your team","teamsNew.sharedBot": "One shared bot for everyone: set it up once, everyone uses it.","teamsNew.files": "Team files and templates everyone's bots can use.",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 5e8e6cd3bc..9147b6b3ad 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -567,7 +567,6 @@"whatsNew.cloud.title": "Conheça o novo MausBot Cloud","whatsNew.cloud.body": "Seus bots continuam trabalhando quando este computador está desligado. O novo site do Cloud reúne seus Clouds, a equipe, a cobrança e o uso em um só lugar.","whatsNew.cloud.see": "Ver o novo Cloud",- "whatsNew.cloud.videoLabel": "Os planos da Cloud no app: o ponteiro escolhe o teste grátis do Pro.","whatsNew.team.title": "Bots compartilhados com toda a equipe","whatsNew.team.bodyInbox": "Todos conversam com os mesmos bots, como um bot de suporte e um de vendas, e passam trabalho para eles. O MausBot de cada pessoa é sua caixa de entrada: tudo que for para ela chega ali.","whatsNew.team.apps": "Apps conectados, configurados uma só vez para todos",@@ -587,7 +586,7 @@"whatsNew.apps.open": "Abrir apps","whatsNew.apps.videoLabel": "Apps publicados: os apps que seus bots criaram, cada um em um cartão; o ponteiro abre um deles.","whatsNew.publish.title": "Publique seus bots",- "whatsNew.publish.body": "Compartilhe um bot como modelo que outras pessoas podem adicionar ao próprio MausBot. Escolha “{item}” no menu {share} ou ⋯ do bot e depois “{publish}”.",+ "whatsNew.publish.body": "Compartilhe um bot como modelo que outras pessoas podem adicionar ao próprio MausBot. Escolha “{item}” no menu ⋯ do bot e depois “{publish}”.","teamsNew.title": "O MausBot é melhor com a sua equipe","teamsNew.sharedBot": "Um bot compartilhado para todos: configure uma vez e todo mundo usa.","teamsNew.files": "Arquivos e modelos da equipe que os bots de todos podem usar.",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 535b59b575..4aaa06284e 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -39857,7 +39857,6 @@"server.github.card.fetch": "dec517e83d4eb81a911f73675cc43c1b4b9be16e07748398b096d83473cc1a57","server.github.card.description": "03af79bfc8dd9f02aa1b65c41a556748059391ea1c098a7501a79b7b8cdadead","server.github.card.connectInApps": "2360dc1e61bdfbe9a204c0e21d1f42b98a284cca9e8198e9047b333a511d1c3a",- "whatsNew.cloud.videoLabel": "6cb60aba9d846d853846f1c5d4e92fdbdfbf9d5da3a10993acb04d6547d7ff77","whatsNew.team.videoLabel": "404fe8f14cc88887dbccc35a2acbb46f7bf2081f8ebdff0aed01e910f19f8aa2","cloudWork.update": "d2d2afbd7ca6ff7569512ecc4578f11f3848cdbf0cc56d9a4ff1fc8777dd637b","cloudWork.updateNamed": "922889c33956312a7ff35dc3bb261335c5af7afc13b73476e0d8116ca3125b6d",