Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Refactor code structure for improved readability and maintainability
nirholasc6b259d00b49
diff --git a/chat/src/App.svelte b/chat/src/App.svelteindex 12d16f15f..db7da2c2b 100644--- a/chat/src/App.svelte+++ b/chat/src/App.svelte@@ -22,7 +22,7 @@} from './providers.js';import ModelSelector from './ModelSelector.svelte';import CompanyLogo from './CompanyLogo.svelte';- import { controller, remoteServer, config, params, toolSchema, syncServer, brandConfig, ttsEnabled, localAgentId, route } from './stores.js';+ import { controller, remoteServer, config, params, toolSchema, syncServer, brandConfig, ttsEnabled, localAgentId, route, mode, websiteCategory } from './stores.js';import AuthPage from './manus/pages/AuthPage.svelte';import Pricing from './manus/pages/Pricing.svelte';import SettingsModal from './SettingsModal.svelte';@@ -30,7 +30,7 @@import MessageContent from './MessageContent.svelte';import Toolcall from './Toolcall.svelte';import Modal from './Modal.svelte';- import Input from './Input.svelte';+ import Composer from './manus/Composer.svelte';import Icon from './Icon.svelte';import {feArrowUp,@@ -63,8 +63,11 @@import Message from './Message.svelte';import { deleteSingleItem, initEncryption, sendSingleItem, syncPull, syncPush } from './sync.js';import AgentPicker from './AgentPicker.svelte';+ import TalkingHead from './TalkingHead.svelte';import EmptyState from './manus/EmptyState.svelte';+ import SuggestionChips from './manus/SuggestionChips.svelte';import AnnouncementBanner from './manus/AnnouncementBanner.svelte';+ import TopNav from './manus/TopNav.svelte';marked.use(markedKatex({@@ -1245,13 +1248,42 @@/>{/if}-{#if $route === 'signin' || $route === 'signup'}+{#if $route === 'pricing'}+ <div class="min-h-dvh bg-paper">+ <div class="sticky top-0 z-[110]"><AnnouncementBanner /></div>+ <Pricing />+ </div>+{:else if $route === 'signin' || $route === 'signup'}<div class="min-h-dvh bg-paper"><AuthPage kind={$route} /></div>+{:else if $route.startsWith('solutions/')}+ <div class="min-h-dvh bg-[#F5F4EF]">+ <TopNav />+ <div class="max-w-[1240px] mx-auto px-6 py-20 text-[#1A1A1A]">+ <div>Solutions: {$route.slice('solutions/'.length)}</div>+ </div>+ </div>+{:else if $route.startsWith('events/')}+ <div class="min-h-dvh bg-[#F5F4EF]">+ <TopNav />+ <div class="max-w-[760px] mx-auto px-6 pt-24 text-center">+ <h1 class="manus-display">{$route.slice('events/'.length).replace(/-/g, ' ').replace(/^\w/, c => c.toUpperCase())}</h1>+ <p class="text-[#6B6B6B] mt-4 text-lg">Coming soon.</p>+ </div>+ </div>+{:else if $route.startsWith('business/')}+ <div class="min-h-dvh bg-[#F5F4EF]">+ <TopNav />+ <div class="max-w-[760px] mx-auto px-6 pt-24 text-center">+ <h1 class="manus-display">{$route.slice('business/'.length).replace(/-/g, ' ').replace(/^\w/, c => c.toUpperCase())}</h1>+ <p class="text-[#6B6B6B] mt-4 text-lg">Coming soon.</p>+ </div>+ </div>{:else}<main class="flex h-dvh w-screen flex-col"><div class="sticky top-0 z-[110]">+ <TopNav /><AnnouncementBanner /></div><div class="flex h-12 items-center gap-1 px-2 py-1 md:hidden">@@ -1453,6 +1485,9 @@bind:handleFileDrop/></svelte:fragment>+ <svelte:fragment slot="chips">+ <SuggestionChips />+ </svelte:fragment></EmptyState></div>{:else}@@ -1516,7 +1551,7 @@</ul></div>- <Input+ <Composerbind:generatingbind:convo{saveMessage}diff --git a/chat/src/Input.svelte b/chat/src/Input.svelteindex 8370bf2a9..6d49b28c1 100644--- a/chat/src/Input.svelte+++ b/chat/src/Input.svelte@@ -12,11 +12,11 @@feSearch,feFolder,} from './feather.js';- import { afterUpdate, tick } from 'svelte';+ import { afterUpdate, onDestroy, tick } from 'svelte';import { get } from 'svelte/store';import { v4 as uuidv4 } from 'uuid';import { readFileAsDataURL } from './util.js';- import { anthropicAPIKey, controller, params, remoteServer, brandConfig } from './stores.js';+ import { anthropicAPIKey, controller, params, remoteServer, brandConfig, mode, composerFill } from './stores.js';import ToolPill from './ToolPill.svelte';import ToolDropdown from './ToolDropdown.svelte';import ModelSelector from './ModelSelector.svelte';@@ -47,6 +47,24 @@let tokenLoading = false;let tokenError = null;+ $: effectivePlaceholder = $mode === 'website'+ ? 'Describe the website you want to build'+ : 'Send a message…';++ const unsubFill = composerFill.subscribe((fill) => {+ if (!fill) return;+ composerFill.set(null);+ const shouldFill = !fill.ifEmpty || !content;+ if (shouldFill) {+ content = fill.text;+ tick().then(() => {+ autoresizeTextarea();+ if (fill.submit) sendMessage();+ });+ }+ });+ onDestroy(unsubFill);+async function calculateTokens() {if (convo.models[0]?.provider !== 'Anthropic') return;@@ -422,6 +440,7 @@ ${file.contents}: pendingFiles.length > 0? '!pt-[48px]': ''} max-h-[90dvh] w-full resize-none rounded-[18px] border border-slate-200 pb-14 pl-5 pt-4 font-normal text-slate-800 shadow-sm transition-colors scrollbar-slim focus:border-slate-300 focus:outline-none"+ placeholder={effectivePlaceholder}rows={1}bind:value={content}on:paste={handlePaste}@@ -468,6 +487,14 @@ ${file.contents}on:scroll={updateFades}class="flex max-w-[220px] gap-2 overflow-x-auto scrollbar-none sm:max-w-none sm:overflow-x-visible">+ {#if $mode === 'website'}+ <button+ class="manus-chip manus-chip-selected h-7 px-3 text-xs"+ on:click={() => mode.set(null)}+ >+ Website+ </button>+ {/if}<div id="tool-dropdown" class="contents"><ToolPill icon={feTool} selected={toolsOpen} on:click={() => (toolsOpen = !toolsOpen)}>Toolsdiff --git a/chat/src/Message.svelte b/chat/src/Message.svelteindex 0cc1a615d..1e9ef7e36 100644--- a/chat/src/Message.svelte+++ b/chat/src/Message.svelte@@ -25,6 +25,12 @@import { config, localAgentId, brandConfig } from './stores.js';$: effectiveAgentId = $localAgentId || $brandConfig.agent_id || '';++ $: lastAssistantIndex = convo.messages.reduce(+ (last, m, idx) => (m.role === 'assistant' ? idx : last),+ -1+ );+ $: isLastAssistant = message.role === 'assistant' && i === lastAssistantIndex;import Toolcall from './Toolcall.svelte';import ToolcallButton from './ToolcallButton.svelte';@@ -176,7 +182,7 @@? 'border border-teal-200 bg-teal-100 pb-px': ''}">- {#if message.role === 'assistant' && effectiveAgentId}+ {#if isLastAssistant && effectiveAgentId}<!-- svelte-ignore custom-element-no-implicit-ns --><agent-3dagent-id={effectiveAgentId}diff --git a/chat/src/manus/Composer.svelte b/chat/src/manus/Composer.sveltenew file mode 100644index 000000000..d5d0add4f--- /dev/null+++ b/chat/src/manus/Composer.svelte@@ -0,0 +1,551 @@+<script>+ import { afterUpdate, tick } from 'svelte';+ import { v4 as uuidv4 } from 'uuid';+ import Icon from '../Icon.svelte';+ import {+ feArrowUp,+ fePaperclip,+ feSquare,+ feX,+ feZap,+ feTool,+ feSearch,+ feFolder,+ } from '../feather.js';+ import { readFileAsDataURL } from '../util.js';+ import { params, remoteServer, brandConfig } from '../stores.js';+ import ToolPill from '../ToolPill.svelte';+ import ToolDropdown from '../ToolDropdown.svelte';+ import ReasoningEffortRangeDropdown from '../ReasoningEffortRangeDropdown.svelte';+ import FilesDropdown from '../FilesDropdown.svelte';+ import FilePill from '../FilePill.svelte';++ // Input.svelte-compatible props+ export let generating;+ export let convo;+ export let saveMessage;+ export let saveConversation;+ export let submitCompletion;+ export let scrollToBottom;+ export let handleAbort;+ export let tree;++ // Manus-specific props+ export let placeholder = 'Assign a task or ask anything';+ export let mode = null;+ export let modes = [];+ export let onModeClear = () => {};++ const imageUrlRegex = /https?:\/\/[^\s]+?\.(png|jpe?g)(?=\s|$)/gi;++ let content = '';+ let pendingImages = [];+ let imageUrlsBlacklist = [];+ let pendingFiles = [];+ let selectedFiles = [];++ let toolsOpen = false;+ let filesOpen = false;+ let reasoningEffortDropdownOpen = false;++ $: isMultimodal = convo.models[0].modality === 'text+image->text';+ $: canSend = content.trim().length > 0 || pendingImages.length > 0 || pendingFiles.length > 0;+ $: isGenerating = generating && convo.messages.filter((msg) => msg.generated).length > 0;++ let fileInputEl;+ export let inputTextareaEl;++ export function autoresizeTextarea() {+ if (!inputTextareaEl) return;+ inputTextareaEl.style.height = 'auto';+ inputTextareaEl.style.height = Math.min(inputTextareaEl.scrollHeight + 2, 320) + 'px';+ }++ function formatCompactNumber(number) {+ return new Intl.NumberFormat('en-US', {+ notation: 'compact',+ compactDisplay: 'short',+ maximumFractionDigits: 1,+ }).format(number);+ }++ async function sendMessage() {+ if (!canSend) return;++ const _effectiveSystemPrompt = $params.customInstructions || $brandConfig.system_prompt;+ if (+ _effectiveSystemPrompt &&+ convo.messages.length === 0 &&+ !convo.messages.find((m) => m.role === 'system')+ ) {+ const systemMsg = {+ id: uuidv4(),+ role: 'system',+ customInstructions: true,+ content: _effectiveSystemPrompt,+ };+ convo.messages.push(systemMsg);+ convo.messages = convo.messages;+ saveMessage(systemMsg);+ saveConversation(convo);+ }++ const msg = {+ id: uuidv4(),+ role: 'user',+ content: content,+ submitted: true,+ };++ if (pendingImages.length > 0) {+ msg.contentParts = pendingImages.map((image) => ({+ type: 'image_url',+ image_url: { url: image.url, detail: image.fidelity },+ }));+ }++ if (pendingFiles.length > 0) {+ let fileContent = '';+ for (const file of pendingFiles) {+ fileContent += `\`\`\`filepath="${file.path}"\n${file.contents}\n\`\`\`\n\n`;+ }+ msg.content = fileContent + msg.content;+ }++ convo.messages.push(msg);+ convo.messages = convo.messages;+ await tick();+ scrollToBottom();++ saveMessage(msg);+ saveConversation(convo);++ content = '';+ pendingImages = [];+ imageUrlsBlacklist = [];+ pendingFiles = [];+ selectedFiles = [];++ await tick();+ if (innerWidth < 880) {+ inputTextareaEl.blur();+ }+ autoresizeTextarea();+ submitCompletion();+ }++ async function handlePDF(file) {+ try {+ const pdfjs = await import('pdfjs-dist');+ pdfjs.GlobalWorkerOptions.workerSrc = new URL(+ 'pdfjs-dist/build/pdf.worker.min.mjs',+ import.meta.url+ ).toString();++ const arrayBuffer = await file.arrayBuffer();+ const pdf = await pdfjs.getDocument({ data: arrayBuffer }).promise;+ let contents = '';++ for (let i = 1; i <= pdf.numPages; i++) {+ const page = await pdf.getPage(i);+ const pageContent = await page.getTextContent();+ contents += pageContent.items.map((item) => item.str).join(' ');+ }++ pendingFiles.push({ path: file.name, contents });+ pendingFiles = pendingFiles;+ tick().then(() => autoresizeTextarea());+ } catch (error) {+ console.error(`Error processing PDF: ${error.message}`);+ }+ }++ export async function handleFileDrop(event) {+ event.preventDefault();++ const filenames = [];+ const promises = [];++ if (event.dataTransfer.items) {+ [...event.dataTransfer.items].forEach((item) => {+ if (item.kind !== 'file') return;+ if (item.type === 'application/pdf') {+ handlePDF(item.getAsFile());+ return;+ }+ const file = item.getAsFile();+ filenames.push(file.name);+ promises.push(file.text());+ });+ } else {+ [...event.dataTransfer.files].forEach((file) => {+ filenames.push(file.name);+ promises.push(file.text());+ });+ }++ const texts = await Promise.all(promises);+ for (let i = 0; i < texts.length; i++) {+ pendingFiles.push({ path: filenames[i], contents: texts[i] });+ pendingFiles = pendingFiles;+ }+ tick().then(() => autoresizeTextarea());+ }++ async function handlePaste(event) {+ const items = (event.clipboardData || event.originalEvent.clipboardData).items;+ for (let i = 0; i < items.length; i++) {+ if (items[i].kind === 'file' && items[i].type.startsWith('image/')) {+ const file = items[i].getAsFile();+ const dataUrl = await readFileAsDataURL(file);+ pendingImages.push({ url: dataUrl, fidelity: 'high' });+ pendingImages = pendingImages;+ tick().then(() => autoresizeTextarea());+ } else if (items[i].kind === 'file' && items[i].type === 'application/pdf') {+ handlePDF(items[i].getAsFile());+ }+ }+ }++ async function handleFileUpload(event) {+ const files = event.target.files;+ for (let i = 0; i < files.length; i++) {+ const file = files[i];+ if (file.type.startsWith('image/')) {+ const dataUrl = await readFileAsDataURL(file);+ pendingImages.push({ url: dataUrl, fidelity: 'high' });+ pendingImages = pendingImages;+ tick().then(() => autoresizeTextarea());+ } else if (file.type === 'application/pdf') {+ handlePDF(file);+ } else {+ const text = await file.text();+ pendingFiles.push({ path: file.name, contents: text });+ pendingFiles = pendingFiles;+ tick().then(() => autoresizeTextarea());+ }+ }+ // reset so the same file can be re-selected+ event.target.value = '';+ }++ let containerEl, leftFadeEl, rightFadeEl;++ function updateFades() {+ if (!containerEl || !leftFadeEl || !rightFadeEl) return;+ const isScrollable = containerEl.scrollWidth > containerEl.clientWidth;+ if (isScrollable) {+ leftFadeEl.style.opacity = containerEl.scrollLeft > 0 ? '1' : '0';+ const hasMore = containerEl.scrollLeft + containerEl.clientWidth < containerEl.scrollWidth;+ rightFadeEl.style.opacity = hasMore ? '1' : '0';+ } else {+ leftFadeEl.style.opacity = '0';+ rightFadeEl.style.opacity = '0';+ }+ }++ afterUpdate(updateFades);+</script>++<svelte:window+ on:resize={updateFades}+ on:keydown={(event) => {+ if (navigator.platform.match(/Mac|iPhone|iPod|iPad/)) {+ if (event.metaKey && event.key === 'p') {+ filesOpen = true;+ event.preventDefault();+ }+ } else if (event.ctrlKey && event.key === 'p') {+ filesOpen = true;+ event.preventDefault();+ }+ }}+/>++<div class="input-floating absolute bottom-4 left-1/2 z-[99] w-full -translate-x-1/2 px-5 ld:px-8">+ <div class="mx-auto flex w-full max-w-[680px] flex-col ld:max-w-[768px]">+ <!-- Composer card -->+ <div+ class="bg-white border border-[#E5E3DC] rounded-[20px] shadow-composer pt-5 px-5 pb-3"+ style="min-height:140px"+ >+ <!-- Textarea -->+ <textarea+ bind:this={inputTextareaEl}+ bind:value={content}+ {placeholder}+ rows={1}+ class="w-full resize-none bg-transparent border-0 p-0 outline-none ring-0 focus:outline-none focus:ring-0 text-base text-[#1A1A1A] placeholder-[#9C9A93] font-sans overflow-y-auto scrollbar-ultraslim"+ style="max-height:320px;"+ on:paste={handlePaste}+ on:keydown={(event) => {+ if (event.key === 'Enter' && !event.shiftKey && innerWidth > 880) {+ event.preventDefault();+ sendMessage();+ } else if (event.key === 'Escape') {+ event.currentTarget.blur();+ }+ }}+ on:input={async () => {+ autoresizeTextarea();+ const imageLinkedUrls = content.match(imageUrlRegex) || [];+ for (const url of imageLinkedUrls) {+ if (+ !pendingImages.find((img) => img.url === url) &&+ !imageUrlsBlacklist.includes(url)+ ) {+ pendingImages.push({ url, fidelity: 'high' });+ pendingImages = pendingImages;+ tick().then(() => autoresizeTextarea());+ }+ }+ }}+ />++ <!-- Attachment chips -->+ {#if pendingFiles.length > 0 || pendingImages.length > 0}+ <div class="flex flex-wrap gap-2 mt-3">+ {#each pendingFiles as file, i}+ <FilePill+ {file}+ canDelete+ on:delete={() => {+ const [deleted] = pendingFiles.splice(i, 1);+ pendingFiles = pendingFiles;+ selectedFiles = selectedFiles.filter((f) => f !== deleted.path);+ tick().then(() => autoresizeTextarea());+ }}+ />+ {/each}+ {#each pendingImages as image, i}+ <div class="relative">+ <img+ src={image.url}+ alt=""+ class="h-16 w-16 rounded-lg border border-[#E5E3DC] object-cover"+ />+ <button+ on:click={() => {+ pendingImages[i].fidelity =+ pendingImages[i].fidelity === 'high' ? 'low' : 'high';+ pendingImages = pendingImages;+ }}+ class="absolute -bottom-1 -left-1 flex h-4 rounded-full bg-black px-1 transition-[transform,background-color] hover:scale-110 hover:bg-blue-400"+ title="Toggle image fidelity"+ >+ <span class="m-auto text-[8px] font-bold text-white">+ {pendingImages[i].fidelity === 'high' ? 'Hi' : 'Lo'}+ </span>+ </button>+ <button+ on:click={() => {+ pendingImages.splice(i, 1);+ pendingImages = pendingImages;+ imageUrlsBlacklist.push(image.url);+ tick().then(() => autoresizeTextarea());+ }}+ class="absolute -bottom-1 -right-1 flex h-4 w-4 rounded-full bg-black transition-[transform,background-color] hover:scale-110 hover:bg-red-400"+ >+ <Icon icon={feX} class="m-auto h-3 w-3 text-white" />+ </button>+ </div>+ {/each}+ </div>+ {/if}++ <!-- Footer row -->+ <div class="flex items-center justify-between mt-3">+ <!-- Left side: attach + mode pill + tool pills -->+ <div class="flex items-center gap-2 min-w-0">+ <!-- "+" attach button -->+ <button+ class="flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-[#E5E3DC] bg-white text-[#1A1A1A] hover:bg-[#F0EEE6] transition-colors text-xl leading-none"+ on:click={() => fileInputEl.click()}+ title="Attach files"+ >+ <input+ type="file"+ class="hidden"+ bind:this={fileInputEl}+ multiple+ on:change={handleFileUpload}+ />+ ++ </button>++ <!-- Selected mode pill -->+ {#if mode}+ <div+ class="flex shrink-0 items-center gap-1 rounded-full border border-[#E5E3DC] bg-[#F5F4EF] px-3 py-1 text-xs text-[#1A1A1A]"+ >+ {#if modes.find((m) => m.id === mode)?.icon}+ <Icon icon={modes.find((m) => m.id === mode).icon} class="h-3 w-3" />+ {/if}+ <span>{modes.find((m) => m.id === mode)?.label ?? mode}</span>+ <button+ class="ml-0.5 flex h-3.5 w-3.5 items-center justify-center rounded-full hover:bg-[#E5E3DC] transition-colors"+ on:click={onModeClear}+ >+ <Icon icon={feX} class="h-2.5 w-2.5" />+ </button>+ </div>+ {/if}++ <!-- Tool pills row -->+ <div class="relative min-w-0">+ <div+ bind:this={leftFadeEl}+ class="pointer-events-none absolute left-0 top-0 z-10 h-full w-4 bg-gradient-to-r from-white to-transparent opacity-0 transition-opacity"+ />+ <div+ bind:this={rightFadeEl}+ class="pointer-events-none absolute right-0 top-0 z-10 h-full w-4 bg-gradient-to-l from-white to-transparent opacity-0 transition-opacity"+ />+ <div+ bind:this={containerEl}+ on:scroll={updateFades}+ class="flex max-w-[200px] gap-1.5 overflow-x-auto scrollbar-none sm:max-w-none"+ >+ <div id="tool-dropdown" class="contents">+ <ToolPill+ icon={feTool}+ selected={toolsOpen}+ on:click={() => (toolsOpen = !toolsOpen)}+ >+ Tools+ {#if convo.tools?.length > 0}+ <span+ class="{toolsOpen+ ? 'bg-white text-slate-800'+ : 'bg-slate-800 text-white'} flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-[10px] transition-colors"+ >+ {convo.tools.length}+ </span>+ {/if}+ </ToolPill>+ <ToolDropdown bind:open={toolsOpen} {convo} {saveConversation} />+ </div>++ {#if tree}+ <div id="files-dropdown" class="contents">+ <ToolPill+ icon={feFolder}+ selected={filesOpen}+ on:click={() => (filesOpen = !filesOpen)}+ >+ Files+ {#if pendingFiles.length > 0}+ <span+ class="{filesOpen+ ? 'bg-white text-slate-800'+ : 'bg-slate-800 text-white'} flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-[10px] transition-colors"+ >+ {pendingFiles.length}+ </span>+ {/if}+ </ToolPill>+ <FilesDropdown+ bind:open={filesOpen}+ {tree}+ bind:selectedFiles+ on:fileSelected={async ({ detail }) => {+ const path = detail.path;+ const response = await fetch(+ `${$remoteServer.address}/read_file?path=${path}`+ );+ const contents = await response.text();+ pendingFiles = [...pendingFiles, { path, contents }];+ tick().then(() => autoresizeTextarea());+ }}+ on:fileDeselected={({ detail }) => {+ pendingFiles = pendingFiles.filter((f) => f.path !== detail.path);+ tick().then(() => autoresizeTextarea());+ }}+ />+ </div>+ {/if}++ {#if convo.models.every((m) => m.provider === 'OpenRouter')}+ <ToolPill+ icon={feSearch}+ selected={convo.websearch}+ on:click={() => {+ convo.websearch = !convo.websearch;+ saveConversation(convo);+ }}+ >+ Search+ </ToolPill>+ {/if}++ {#if convo.models[0].reasoningEffortControls === 'low-medium-high'}+ <ToolPill+ icon={feZap}+ selected={false}+ on:click={() => {+ if (convo.reasoningEffort === 'low') {+ convo.reasoningEffort = 'medium';+ } else if (convo.reasoningEffort === 'medium') {+ convo.reasoningEffort = 'high';+ } else {+ convo.reasoningEffort = 'low';+ }+ saveConversation(convo);+ }}+ >+ {convo.reasoningEffort === 'low'+ ? 'Low'+ : convo.reasoningEffort === 'medium'+ ? 'Medium'+ : 'High'}+ </ToolPill>+ {:else if convo.models[0].reasoningEffortControls === 'range'}+ <div id="reasoning-effort-dropdown" class="contents">+ <ToolPill+ icon={feZap}+ selected={reasoningEffortDropdownOpen}+ on:click={() =>+ (reasoningEffortDropdownOpen = !reasoningEffortDropdownOpen)}+ >+ Thinking+ {$params.reasoningEffort['range'] === 0+ ? 'off'+ : formatCompactNumber($params.reasoningEffort['range'])}+ </ToolPill>+ <ReasoningEffortRangeDropdown+ bind:open={reasoningEffortDropdownOpen}+ {convo}+ />+ </div>+ {/if}+ </div>+ </div>+ </div>++ <!-- Right side: send / stop button -->+ <div class="ml-3 shrink-0">+ {#if isGenerating}+ <button+ class="flex h-9 w-9 items-center justify-center rounded-full bg-[#1A1A1A] transition-colors hover:bg-[#333]"+ on:click={handleAbort}+ title="Stop generating"+ >+ <Icon icon={feSquare} strokeWidth={4} class="h-3.5 w-3.5 text-white" />+ </button>+ {:else}+ <button+ disabled={!canSend}+ class="flex h-9 w-9 items-center justify-center rounded-full transition-colors {canSend+ ? 'bg-black text-white hover:bg-[#333] cursor-pointer'+ : 'bg-[#E7E5DD] text-[#9C9A93] cursor-default'}"+ on:click={sendMessage}+ title="Send message"+ >+ <Icon icon={feArrowUp} class="h-4 w-4" />+ </button>+ {/if}+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/chat/src/manus/SuggestionChips.svelte b/chat/src/manus/SuggestionChips.svelteindex 4793d6cec..f9fe43d46 100644--- a/chat/src/manus/SuggestionChips.svelte+++ b/chat/src/manus/SuggestionChips.svelte@@ -30,7 +30,7 @@{/each}<div class="relative"><button class="manus-chip" on:click={() => (moreOpen = !moreOpen)}>- <Icon icon={feLayout} class="h-4 w-4 opacity-0 w-0 overflow-hidden" />+ <Icon icon={feMoreHorizontal} class="h-4 w-4" />More</button>{#if moreOpen}diff --git a/chat/src/manus/TopNav.svelte b/chat/src/manus/TopNav.svelteindex 927ae50f3..07bbb7a15 100644--- a/chat/src/manus/TopNav.svelte+++ b/chat/src/manus/TopNav.svelte@@ -2,11 +2,13 @@import { route } from '../stores.js';import FeaturesDropdown from './dropdowns/FeaturesDropdown.svelte';import SolutionsDropdown from './dropdowns/SolutionsDropdown.svelte';+ import ResourcesDropdown from './dropdowns/ResourcesDropdown.svelte';import EventsDropdown from './dropdowns/EventsDropdown.svelte';import BusinessDropdown from './dropdowns/BusinessDropdown.svelte';let featuresOpen = false;let solutionsOpen = false;+ let resourcesOpen = false;let eventsOpen = false;let businessOpen = false;@@ -14,6 +16,8 @@const featClose = { value: null };const solOpen = { value: null };const solClose = { value: null };+ const resOpen = { value: null };+ const resClose = { value: null };const evtOpen = { value: null };const evtClose = { value: null };const bizOpen = { value: null };@@ -23,6 +27,8 @@function onFeatLeave() { clearTimeout(featOpen.value); featClose.value = setTimeout(() => (featuresOpen = false), 200); }function onSolEnter() { clearTimeout(solClose.value); solOpen.value = setTimeout(() => (solutionsOpen = true), 120); }function onSolLeave() { clearTimeout(solOpen.value); solClose.value = setTimeout(() => (solutionsOpen = false), 200); }+ function onResEnter() { clearTimeout(resClose.value); resOpen.value = setTimeout(() => (resourcesOpen = true), 120); }+ function onResLeave() { clearTimeout(resOpen.value); resClose.value = setTimeout(() => (resourcesOpen = false), 200); }function onEvtEnter() { clearTimeout(evtClose.value); evtOpen.value = setTimeout(() => (eventsOpen = true), 120); }function onEvtLeave() { clearTimeout(evtOpen.value); evtClose.value = setTimeout(() => (eventsOpen = false), 200); }function onBizEnter() { clearTimeout(bizClose.value); bizOpen.value = setTimeout(() => (businessOpen = true), 120); }@@ -83,8 +89,25 @@{/if}</div>- <!-- Resources stub -->- <button class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors">Resources</button>+ <!-- Resources -->+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="relative" on:mouseenter={onResEnter} on:mouseleave={onResLeave}>+ <button+ class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors"+ aria-haspopup="true"+ aria-expanded={resourcesOpen}+ >Resources</button>+ {#if resourcesOpen}+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div+ class="absolute top-full mt-2 left-0 z-50"+ on:mouseenter={onResEnter}+ on:mouseleave={onResLeave}+ >+ <ResourcesDropdown />+ </div>+ {/if}+ </div><!-- Events --><!-- svelte-ignore a11y-no-static-element-interactions -->diff --git a/chat/src/manus/dropdowns/BusinessDropdown.svelte b/chat/src/manus/dropdowns/BusinessDropdown.svelteindex 3e9294c0c..c6049d896 100644--- a/chat/src/manus/dropdowns/BusinessDropdown.svelte+++ b/chat/src/manus/dropdowns/BusinessDropdown.svelte@@ -4,11 +4,11 @@import { feBriefcase, feShield, feServer, feUsers, feMessageCircle } from '../../feather.js';const items = [- { title: 'Enterprise', subtitle: 'Deploy Manus across your org', route: 'business/enterprise', icon: feBriefcase },- { title: 'Security & compliance', subtitle: 'SOC 2, GDPR, custom DPAs', route: 'business/security', icon: feShield },- { title: 'Custom deployments', subtitle: 'VPC and on-prem options', route: 'business/deployments', icon: feServer },- { title: 'Customer stories', subtitle: 'How teams ship faster with Manus', route: 'business/customers', icon: feUsers },- { title: 'Contact sales', subtitle: 'Talk to a real human', route: 'business/contact-sales', icon: feMessageCircle },+ { title: 'Enterprise', subtitle: 'Deploy Manus across your org', route: 'business/enterprise', icon: feBriefcase },+ { title: 'Security & compliance', subtitle: 'SOC 2, GDPR, custom DPAs', route: 'business/security', icon: feShield },+ { title: 'Custom deployments', subtitle: 'VPC and on-prem options', route: 'business/deployments', icon: feServer },+ { title: 'Customer stories', subtitle: 'How teams ship faster with Manus', route: 'business/customers', icon: feUsers },+ { title: 'Contact sales', subtitle: 'Talk to a real human', route: 'business/contact-sales', icon: feMessageCircle },];</script>diff --git a/chat/src/manus/dropdowns/EventsDropdown.svelte b/chat/src/manus/dropdowns/EventsDropdown.svelteindex 6f0db435c..90061a2aa 100644--- a/chat/src/manus/dropdowns/EventsDropdown.svelte+++ b/chat/src/manus/dropdowns/EventsDropdown.svelte@@ -4,11 +4,11 @@import { feVideo, feMapPin, feClock, feZap, fePlay } from '../../feather.js';const items = [- { title: 'Webinars', subtitle: 'Live sessions with the Manus team', route: 'events/webinars', icon: feVideo },- { title: 'Conferences', subtitle: 'Where you can find us in person', route: 'events/conferences', icon: feMapPin },- { title: 'Office hours', subtitle: 'Weekly Q&A with engineers', route: 'events/office-hours', icon: feClock },- { title: 'Hackathons', subtitle: 'Build with Manus alongside the community', route: 'events/hackathons', icon: feZap },- { title: 'Past recordings', subtitle: 'Replay every session on demand', route: 'events/recordings', icon: fePlay },+ { title: 'Webinars', subtitle: 'Live sessions with the Manus team', route: 'events/webinars', icon: feVideo },+ { title: 'Conferences', subtitle: 'Where you can find us in person', route: 'events/conferences', icon: feMapPin },+ { title: 'Office hours', subtitle: 'Weekly Q&A with engineers', route: 'events/office-hours', icon: feClock },+ { title: 'Hackathons', subtitle: 'Build with Manus alongside the community', route: 'events/hackathons', icon: feZap },+ { title: 'Past recordings', subtitle: 'Replay every session on demand', route: 'events/recordings', icon: fePlay },];</script>diff --git a/chat/src/manus/flows/WebsiteFlow.svelte b/chat/src/manus/flows/WebsiteFlow.sveltenew file mode 100644index 000000000..2a9a80f49--- /dev/null+++ b/chat/src/manus/flows/WebsiteFlow.svelte@@ -0,0 +1,98 @@+<script>+ import { websiteCategory, composerFill } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import {+ feLayout,+ fePieChart,+ feImage,+ feHome,+ feCloud,+ feLink,+ feArrowUpLeft,+ feFigma,+ } from '../../feather.js';++ const categories = [+ { id: 'landing', label: 'Landing Page', icon: feLayout },+ { id: 'dashboard', label: 'Dashboard', icon: fePieChart },+ { id: 'portfolio', label: 'Portfolio', icon: feImage },+ { id: 'corporate', label: 'Corporate', icon: feHome },+ { id: 'saas', label: 'SaaS', icon: feCloud },+ { id: 'linkbio', label: 'Link in bio', icon: feLink },+ ];++ const ideasByCategory = {+ landing: ['Product launch landing page', 'SaaS marketing landing page', 'Event signup landing page'],+ dashboard: ['Analytics dashboard', 'Sales tracking dashboard', 'HR dashboard'],+ portfolio: ['Build full-stack developer portfolio', 'Product designer portfolio website', 'Photographer showcase portfolio page'],+ corporate: ['Law firm corporate site', 'Consulting agency website', 'Real estate corporate site'],+ saas: ['SaaS product home page', 'Pricing page for B2B SaaS', 'Feature comparison page'],+ linkbio: ['Creator link-in-bio page', 'Musician fan hub', 'Restaurant menu link page'],+ };++ const starterByCategory = {+ landing: 'Build a landing page for ',+ dashboard: 'Build a dashboard for ',+ portfolio: 'Build a portfolio website for ',+ corporate: 'Build a corporate website for ',+ saas: 'Build a SaaS marketing site for ',+ linkbio: 'Create a link-in-bio page for ',+ };++ export let compact = false;++ function pick(id) {+ const isDeselecting = $websiteCategory === id;+ websiteCategory.set(isDeselecting ? null : id);+ if (!isDeselecting) {+ composerFill.set({ text: starterByCategory[id], submit: false, ifEmpty: true });+ }+ }++ function selectIdea(idea) {+ composerFill.set({ text: idea, submit: true, ifEmpty: false });+ }+</script>++<div class="mt-8 max-w-[760px] mx-auto px-1">+ <div class="flex items-center justify-between">+ <h3 class="text-sm font-semibold text-[#1A1A1A]">What would you like to build?</h3>+ {#if !compact}+ <div class="flex items-center gap-3 text-sm text-[#1A1A1A]">+ <button class="inline-flex items-center gap-1.5 hover:underline">+ <Icon icon={feLink} size={14} /> Add website reference+ </button>+ <span class="text-[#9C9A93]">|</span>+ <button class="inline-flex items-center gap-1.5 hover:underline">+ <Icon icon={feFigma} size={14} /> Import from Figma+ </button>+ </div>+ {/if}+ </div>++ <div class="mt-4 flex gap-2 overflow-x-auto scrollbar-none">+ {#each categories as c}+ <button+ class="manus-chip whitespace-nowrap {$websiteCategory === c.id ? 'manus-chip-selected' : ''}"+ on:click={() => pick(c.id)}+ >+ <Icon icon={c.icon} size={16} />+ {c.label}+ </button>+ {/each}+ </div>++ {#if $websiteCategory && ideasByCategory[$websiteCategory]}+ <div class="mt-6">+ <h3 class="text-sm font-semibold mb-3">Explore ideas</h3>+ <div class="flex flex-wrap gap-2">+ {#each ideasByCategory[$websiteCategory] as idea}+ <button class="manus-chip" on:click={() => selectIdea(idea)}>+ <span>{idea}</span>+ <Icon icon={feArrowUpLeft} size={14} class="text-[#9C9A93]" />+ </button>+ {/each}+ </div>+ </div>+ {/if}+</div>diff --git a/chat/src/manus/pages/marketingPages.js b/chat/src/manus/pages/marketingPages.jsnew file mode 100644index 000000000..1efb5027b--- /dev/null+++ b/chat/src/manus/pages/marketingPages.js@@ -0,0 +1,91 @@+export const marketingPages = {+ 'solutions/sales': {+ eyebrow: 'For Sales teams',+ headline: 'Close more deals\nwithout writing more SQL',+ sub: 'Forecasts, dashboards, and outreach drafts — generated from your CRM in minutes.',+ placeholder: 'Describe the sales workflow you want to ship.',+ },+ 'solutions/marketing': {+ eyebrow: 'For Marketing teams',+ headline: 'Campaigns, briefs, and analytics\n— drafted in chat',+ sub: 'From brief to launch — generate copy, analyze performance, and iterate without waiting on engineers.',+ placeholder: 'Describe the marketing workflow you want to automate.',+ },+ 'solutions/engineering': {+ eyebrow: 'For Engineering teams',+ headline: 'Internal tools your team\nwill actually use',+ sub: 'Build admin panels, deployment dashboards, and incident runbooks — without spinning up a new service.',+ placeholder: 'Describe the internal tool you want to build.',+ },+ 'solutions/operations': {+ eyebrow: 'For Operations teams',+ headline: 'Operational reporting\nthat runs itself',+ sub: 'Automate recurring reports, status digests, and cross-team updates so you can focus on decisions, not data wrangling.',+ placeholder: 'Describe the operational report or workflow you need.',+ },+ 'solutions/support': {+ eyebrow: 'For Support teams',+ headline: 'Triage, draft, and resolve\n— alongside your humans',+ sub: 'Route tickets, draft responses, and surface knowledge base answers — keeping your team in the loop at every step.',+ placeholder: 'Describe the support workflow you want to improve.',+ },+ 'solutions/finance': {+ eyebrow: 'For Finance teams',+ headline: 'Forecasts and spend reviews\non demand',+ sub: 'Pull actuals, model scenarios, and generate board-ready summaries — without exporting another spreadsheet.',+ placeholder: 'Describe the finance report or analysis you need.',+ },+ 'solutions/hr': {+ eyebrow: 'For HR teams',+ headline: 'Hiring, onboarding, internal Q&A\n— automated',+ sub: 'Publish job descriptions, answer policy questions, and guide new hires through onboarding — all from one interface.',+ placeholder: 'Describe the HR workflow you want to automate.',+ },+ 'solutions/founders': {+ eyebrow: 'For Founders',+ headline: 'Launch the v1 of your idea\nthis weekend',+ sub: 'Go from idea to working prototype in hours — no engineering team required.',+ placeholder: 'Describe the product or tool you want to ship.',+ },+ 'business/enterprise': {+ eyebrow: 'For Enterprise',+ headline: 'Launch business applications\nwithout engineering resources',+ sub: 'Give every team the ability to build internal apps, automate workflows, and ship faster — no code required.',+ placeholder: 'Describe the business application you want to launch.',+ },+ 'business/security': {+ eyebrow: 'Security & Compliance',+ headline: 'Security and compliance\nyou can show your board',+ sub: 'SOC 2, SSO, audit logs, and data residency controls built in — so your security team can say yes.',+ placeholder: 'Describe your security or compliance requirements.',+ },+ 'business/deployments': {+ eyebrow: 'Private Deployments',+ headline: 'Run Manus inside\nyour VPC',+ sub: 'Deploy on your own infrastructure. Your data never leaves your environment.',+ placeholder: 'Tell us about your deployment requirements.',+ },+ 'business/customers': {+ eyebrow: 'Customer Stories',+ headline: 'Real teams.\nReal outcomes.',+ sub: 'See how leading organizations use Manus to ship faster and eliminate bottlenecks.',+ placeholder: 'Describe the outcome you\'re looking for.',+ },+ 'business/contact-sales': {+ eyebrow: 'Talk to Sales',+ headline: 'Talk to a real human\nabout your rollout',+ sub: 'Whether you\'re evaluating, expanding, or ready to sign — our team is here to help.',+ placeholder: 'Tell us about your team and what you\'re building.',+ },+};++export function getPageContent(slug) {+ if (marketingPages[slug]) return marketingPages[slug];+ const label = slug.split('/').pop().replace(/-/g, ' ').replace(/\b\w/g, (c) => c.toUpperCase());+ return {+ eyebrow: null,+ headline: label,+ sub: 'Explore what Manus can do for your team.',+ placeholder: 'Describe what you want to build.',+ };+}diff --git a/chat/src/manus/pages/resources/BlogIndex.svelte b/chat/src/manus/pages/resources/BlogIndex.sveltenew file mode 100644index 000000000..c2e1fd0d5--- /dev/null+++ b/chat/src/manus/pages/resources/BlogIndex.svelte@@ -0,0 +1,30 @@+<script>+ const articles = [+ { tag: 'Engineering', title: 'How we think about agent reliability', excerpt: 'Building systems that fail gracefully is harder than building systems that work. Here is our approach.', date: 'Apr 14, 2026', read: '6 min read' },+ { tag: 'Design', title: 'Designing chat for non-engineers', excerpt: 'Most chat interfaces are built by engineers, for engineers. We asked a different question.', date: 'Apr 2, 2026', read: '4 min read' },+ { tag: 'Engineering', title: 'Inside the Manus runtime', excerpt: 'A look at how we execute multi-step agent tasks safely and efficiently at scale.', date: 'Mar 24, 2026', read: '8 min read' },+ { tag: 'Product', title: 'Shipping the new composer', excerpt: 'What we learned from six months of user research on how people write prompts.', date: 'Mar 10, 2026', read: '5 min read' },+ { tag: 'Company', title: 'Why we built Manus', excerpt: 'The original insight that led us to build an agent-first platform from the ground up.', date: 'Feb 28, 2026', read: '7 min read' },+ { tag: 'Engineering', title: 'Streaming responses at scale', excerpt: 'How we cut median time-to-first-token by 40% without changing model providers.', date: 'Feb 14, 2026', read: '5 min read' },+ { tag: 'Product', title: 'Multi-agent runs: what we shipped', excerpt: 'A deep dive into the new orchestration layer that powers parallel agent execution.', date: 'Jan 30, 2026', read: '6 min read' },+ { tag: 'Design', title: 'The typography behind the interface', excerpt: 'On using a serif wordmark inside a tool-first product and making it feel right.', date: 'Jan 18, 2026', read: '3 min read' },+ { tag: 'Company', title: 'Our approach to trust and safety', excerpt: 'How we think about the responsibility that comes with building powerful AI agents.', date: 'Jan 6, 2026', read: '5 min read' },+ ];+</script>++<div class="max-w-[1100px] mx-auto px-6 pt-16 pb-24">+ <h1 class="font-serif text-4xl font-semibold mb-2">Blog</h1>+ <p class="text-[#6B6B6B] text-base mb-12">Ideas, guides, and stories from the Manus team</p>++ <div class="grid md:grid-cols-3 gap-6">+ {#each articles as a}+ <article class="bg-white border border-[#E5E3DC] rounded-2xl p-6 hover:bg-[#FAF9F4] transition-colors cursor-pointer">+ <div class="aspect-[16/9] rounded-xl bg-[#EFECE3]"></div>+ <span class="inline-block text-xs uppercase tracking-wide text-[#6B6B6B] mt-4">{a.tag}</span>+ <h2 class="font-serif text-xl mt-2 text-[#1A1A1A]">{a.title}</h2>+ <p class="text-sm text-[#6B6B6B] mt-2 line-clamp-2">{a.excerpt}</p>+ <div class="text-xs text-[#9C9A93] mt-4">{a.date} · {a.read}</div>+ </article>+ {/each}+ </div>+</div>diff --git a/chat/src/manus/pages/resources/DocsIndex.svelte b/chat/src/manus/pages/resources/DocsIndex.sveltenew file mode 100644index 000000000..58a14a457--- /dev/null+++ b/chat/src/manus/pages/resources/DocsIndex.svelte@@ -0,0 +1,77 @@+<script>+ const sections = [+ { label: 'Getting started', items: ['Quickstart', 'Installation', 'Your first agent'] },+ { label: 'Concepts', items: ['Agents', 'Tasks', 'Context', 'Memory'] },+ { label: 'API', items: ['Authentication', 'Endpoints', 'Rate limits', 'Errors'] },+ { label: 'SDKs', items: ['JavaScript', 'Python', 'Go'] },+ { label: 'Tools', items: ['Web search', 'Code execution', 'File system', 'Browser'] },+ { label: 'Skills', items: ['Built-in skills', 'Custom skills', 'Skill chaining'] },+ { label: 'Deployments', items: ['Overview', 'Cloud', 'Self-hosted'] },+ { label: 'FAQs', items: ['General', 'Billing', 'Security'] },+ ];++ let active = 'Quickstart';+</script>++<div class="max-w-[1100px] mx-auto px-6 pt-16 pb-24 flex gap-8">+ <!-- Left rail -->+ <aside class="w-[240px] shrink-0">+ <div class="sticky top-20">+ <input+ type="search"+ placeholder="Search docs"+ class="bg-white border border-[#E5E3DC] rounded-full h-9 px-3 text-sm w-full mb-6 focus:outline-none focus:border-[#1A1A1A]"+ />+ {#each sections as s}+ <div class="mb-4">+ <div class="text-xs font-semibold uppercase tracking-wide text-[#9C9A93] mb-1">{s.label}</div>+ <ul class="space-y-0.5">+ {#each s.items as item}+ <li>+ <button+ class="w-full text-left text-sm px-2 py-1 rounded-lg transition-colors {active === item ? 'bg-[#F5F4EF] text-[#1A1A1A] font-medium' : 'text-[#6B6B6B] hover:text-[#1A1A1A] hover:bg-[#F5F4EF]'}"+ on:click={() => active = item}+ >{item}</button>+ </li>+ {/each}+ </ul>+ </div>+ {/each}+ </div>+ </aside>++ <!-- Content -->+ <main class="flex-1 min-w-0 prose prose-neutral max-w-none">+ <h1>Welcome to Manus Docs</h1>+ <p>+ Manus is an agent-first platform for building, running, and deploying AI agents. This documentation covers everything from your first agent run to production deployments.+ </p>++ <h2>What is Manus?</h2>+ <p>+ Manus gives you a powerful runtime for multi-step AI tasks. Agents can browse the web, write and run code, manage files, and call external APIs — all orchestrated through a simple chat interface or programmatic API.+ </p>++ <h2>Getting started</h2>+ <p>The fastest way to get started is with the quickstart guide:</p>+ <ol>+ <li>Create a free account at <code>manus.ai</code></li>+ <li>Pick a model from the model selector</li>+ <li>Type your first task in the composer</li>+ </ol>++ <h2>Core concepts</h2>+ <p>+ <strong>Agents</strong> are stateful processes that carry out multi-step tasks on your behalf.+ Each agent has access to a configurable set of <strong>tools</strong> — web search, code execution, the file system, and more.+ </p>+ <p>+ <strong>Skills</strong> are reusable agent capabilities you can share across projects. You can author custom skills or use the built-in library.+ </p>++ <h2>Need help?</h2>+ <p>+ Open an issue on GitHub, reach the team via the in-app chat, or join the community Discord.+ </p>+ </main>+</div>diff --git a/chat/src/manus/pages/resources/UpdatesTimeline.svelte b/chat/src/manus/pages/resources/UpdatesTimeline.sveltenew file mode 100644index 000000000..1e767aaff--- /dev/null+++ b/chat/src/manus/pages/resources/UpdatesTimeline.svelte@@ -0,0 +1,67 @@+<script>+ const entries = [+ {+ date: 'April 2026',+ title: 'Multi-agent runs are now generally available',+ body: 'Parallel agent execution exits beta. You can now run up to 8 agents simultaneously on any Pro or Business plan, with shared context and cross-agent tool calls.',+ hasImage: true,+ },+ {+ date: 'March 2026',+ title: 'Introducing Skills — reusable agent capabilities',+ body: 'Skills let you package a set of instructions, tools, and context into a shareable unit. Publish to the library or keep them private to your workspace.',+ hasImage: false,+ },+ {+ date: 'February 2026',+ title: 'New composer with file and image support',+ body: 'The composer now accepts image uploads, PDFs, and spreadsheets. Agents can reference attachments directly within a task run.',+ hasImage: true,+ },+ {+ date: 'January 2026',+ title: 'Deployments: run agents on a schedule',+ body: 'Set any agent to run on a cron schedule, trigger on webhook events, or expose it as a callable API endpoint. Available on Business plans.',+ hasImage: false,+ },+ {+ date: 'December 2025',+ title: 'Memory and persistent context',+ body: 'Agents can now store facts across sessions using the built-in memory tool. Set a retention window or let the agent decide what to remember.',+ hasImage: false,+ },+ {+ date: 'November 2025',+ title: 'Manus is open to everyone',+ body: 'After six months in private beta we are opening Manus to the public. Free accounts include 50 runs per month — no credit card required to get started.',+ hasImage: true,+ },+ ];+</script>++<div class="max-w-[1100px] mx-auto px-6 pt-16 pb-24">+ <h1 class="font-serif text-4xl font-semibold mb-2">Updates</h1>+ <p class="text-[#6B6B6B] text-base mb-12">What's new in Manus</p>++ <div class="relative">+ <!-- vertical line -->+ <div class="absolute left-[120px] top-0 bottom-0 w-px bg-[#E5E3DC]"></div>++ <div class="space-y-10">+ {#each entries as e}+ <div class="flex gap-10">+ <time class="w-[100px] shrink-0 text-xs text-[#9C9A93] uppercase tracking-wide pt-5 text-right">{e.date}</time>+ <div class="flex-1 pl-8">+ <div class="bg-white border border-[#E5E3DC] rounded-2xl p-6 hover:bg-[#FAF9F4] transition-colors">+ {#if e.hasImage}+ <div class="aspect-[16/6] rounded-xl bg-[#EFECE3] mb-5"></div>+ {/if}+ <h2 class="font-serif text-xl font-semibold text-[#1A1A1A]">{e.title}</h2>+ <p class="text-sm text-[#6B6B6B] mt-2 leading-relaxed">{e.body}</p>+ </div>+ </div>+ </div>+ {/each}+ </div>+ </div>+</div>diff --git a/chat/src/manus/pages/resources/UseCasesIndex.svelte b/chat/src/manus/pages/resources/UseCasesIndex.sveltenew file mode 100644index 000000000..eb3a9774c--- /dev/null+++ b/chat/src/manus/pages/resources/UseCasesIndex.svelte@@ -0,0 +1,30 @@+<script>+ const cases = [+ { industry: 'Sales', headline: 'Cut SDR onboarding from 4 weeks to 3 days', summary: 'A B2B SaaS team automated prospect research, outreach drafting, and CRM hygiene with a single Manus workflow.', logo: 'Acme Corp' },+ { industry: 'Legal', headline: 'Contract review time dropped by 70%', summary: 'A mid-size law firm runs first-pass contract analysis through Manus, flagging high-risk clauses before human review.', logo: 'LexGroup' },+ { industry: 'Finance', headline: 'Weekly reporting from 6 hours to 12 minutes', summary: 'An investment ops team replaced manual data pulls with a scheduled Manus agent that writes and delivers the report.', logo: 'CapitalCo' },+ { industry: 'E-commerce', headline: '3× more product listings, same headcount', summary: 'A marketplace seller generates optimized titles, descriptions, and alt-text for every new SKU automatically.', logo: 'ShopNow' },+ { industry: 'Healthcare', headline: 'Patient intake summaries in under 60 seconds', summary: 'A clinic uses Manus to pull relevant history from notes and produce structured intake briefs before each appointment.', logo: 'Mediflow' },+ { industry: 'Engineering', headline: 'Code review backlog cleared in a day', summary: 'A 12-person engineering team uses Manus to do first-pass reviews, catch lint issues, and suggest test cases automatically.', logo: 'DevCo' },+ { industry: 'Marketing', headline: 'Campaign briefs drafted in minutes, not days', summary: 'A growth team runs research, audience profiling, and copy generation inside one Manus session before handing off to designers.', logo: 'GrowthLab' },+ { industry: 'Recruiting', headline: 'Screening volume up 5× without new headcount', summary: 'An internal TA team uses Manus to screen inbound applications, draft personalized responses, and schedule interviews.', logo: 'HireHub' },+ ];+</script>++<div class="max-w-[1100px] mx-auto px-6 pt-16 pb-24">+ <h1 class="font-serif text-4xl font-semibold mb-2">Use Cases</h1>+ <p class="text-[#6B6B6B] text-base mb-12">How teams are putting Manus to work</p>++ <div class="grid md:grid-cols-2 gap-6">+ {#each cases as c}+ <article class="bg-white border border-[#E5E3DC] rounded-2xl p-6 hover:bg-[#FAF9F4] transition-colors cursor-pointer flex flex-col">+ <span class="inline-block text-xs uppercase tracking-wide text-[#6B6B6B]">{c.industry}</span>+ <h2 class="font-serif text-xl mt-2 text-[#1A1A1A] leading-snug">{c.headline}</h2>+ <p class="text-sm text-[#6B6B6B] mt-2 line-clamp-2 flex-1">{c.summary}</p>+ <div class="mt-5 h-8 bg-[#F5F4EF] rounded-lg flex items-center px-3">+ <span class="text-xs text-[#9C9A93] font-medium">{c.logo}</span>+ </div>+ </article>+ {/each}+ </div>+</div>diff --git a/public/chat/index.html b/public/chat/index.htmlindex 3e9d66ca6..6b9712840 100644--- a/public/chat/index.html+++ b/public/chat/index.html@@ -34,8 +34,8 @@crossorigin="anonymous"/><title>three.ws chat</title>- <script type="module" crossorigin src="/chat/assets/index-BVjUCITb.js"></script>- <link rel="stylesheet" crossorigin href="/chat/assets/index-0Mwx8-a0.css">+ <script type="module" crossorigin src="/chat/assets/index-DgCDPR0j.js"></script>+ <link rel="stylesheet" crossorigin href="/chat/assets/index-C9zB5kf6.css"></head><body><div id="app"></div>