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
nirholasae682f83fa5f
diff --git a/chat/src/App.svelte b/chat/src/App.svelteindex db7da2c2b..0ad03769b 100644--- a/chat/src/App.svelte+++ b/chat/src/App.svelte@@ -25,6 +25,8 @@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 MarketingPage from './manus/pages/MarketingPage.svelte';+ import ResourcePage from './manus/pages/ResourcePage.svelte';import SettingsModal from './SettingsModal.svelte';import ToolcallButton from './ToolcallButton.svelte';import MessageContent from './MessageContent.svelte';@@ -68,6 +70,7 @@import SuggestionChips from './manus/SuggestionChips.svelte';import AnnouncementBanner from './manus/AnnouncementBanner.svelte';import TopNav from './manus/TopNav.svelte';+ import WebsiteFlow from './manus/flows/WebsiteFlow.svelte';marked.use(markedKatex({@@ -1162,6 +1165,7 @@// Floating 3D agentlet agentEl;+ let talkingHead;let agentVisible = true;let agentScriptLoaded = false;let agentPickerOpen = false;@@ -1195,18 +1199,21 @@return null;}+ $: if ($mode !== 'website') websiteCategory.set(null);+function speakLastMessage() {- if (!effectiveAgentId) return;const last = [...convo.messages].reverse().find((m) => m.role === 'assistant' && m.content);if (!last?.content) return;- if (agentEl) {+ if (agentEl && effectiveAgentId) {agentEl.speak(last.content);const emotion = detectEmotion(last.content);if (emotion) setTimeout(() => agentEl?.expressEmotion(emotion), 600);+ } else if (talkingHead && agentVisible) {+ talkingHead.speak({ text: last.content });}- if ($ttsEnabled && window.speechSynthesis) {+ if ($ttsEnabled && window.speechSynthesis && !talkingHead) {window.speechSynthesis.cancel();const utt = new SpeechSynthesisUtterance(last.content);window.speechSynthesis.speak(utt);@@ -1250,35 +1257,23 @@{#if $route === 'pricing'}<div class="min-h-dvh bg-paper">- <div class="sticky top-0 z-[110]"><AnnouncementBanner /></div>+ <div class="sticky top-0 z-[110]"><AnnouncementBanner /><TopNav /></div><Pricing /></div>{:else if $route === 'signin' || $route === 'signup'}<div class="min-h-dvh bg-paper">+ <div class="sticky top-0 z-[110]"><AnnouncementBanner /><TopNav /></div><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>+{:else if $route.startsWith('solutions/') || $route.startsWith('business/') || $route.startsWith('events/')}+ <div class="min-h-dvh bg-paper">+ <div class="sticky top-0 z-[110]"><TopNav /></div>+ <MarketingPage slug={$route} /></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>+{:else if $route.startsWith('resources/')}+ <div class="min-h-dvh bg-paper">+ <div class="sticky top-0 z-[110]"><AnnouncementBanner /><TopNav /></div>+ <ResourcePage slug={$route.slice('resources/'.length)} /></div>{:else}<main class="flex h-dvh w-screen flex-col">@@ -1472,7 +1467,7 @@<div class="flex h-full w-full overflow-y-auto"><EmptyState><svelte:fragment slot="composer">- <Input+ <Composerbind:generatingbind:convo{saveMessage}@@ -1483,10 +1478,18 @@{tree}bind:inputTextareaElbind:handleFileDrop+ placeholder={$mode === 'website' ? 'Describe the website you want to build' : 'Assign a task or ask anything'}+ mode={$mode}+ modes={[{ id: 'website', label: 'Website' }]}+ onModeClear={() => mode.set(null)}/></svelte:fragment><svelte:fragment slot="chips">- <SuggestionChips />+ {#if $mode === 'website'}+ <WebsiteFlow />+ {:else}+ <SuggestionChips />+ {/if}</svelte:fragment></EmptyState></div>@@ -1651,6 +1654,8 @@background="transparent"style="width:220px;height:220px;border-radius:16px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,0.18);"></agent-3d>+ {:else if !effectiveAgentId && agentVisible}+ <TalkingHead bind:this={talkingHead} />{/if}<div class="flex items-center gap-1.5">diff --git a/chat/src/Input.svelte b/chat/src/Input.svelteindex 6d49b28c1..c1d279439 100644--- a/chat/src/Input.svelte+++ b/chat/src/Input.svelte@@ -11,6 +11,8 @@feTool,feSearch,feFolder,+ feLayout,+ feChevronDown,} from './feather.js';import { afterUpdate, onDestroy, tick } from 'svelte';import { get } from 'svelte/store';@@ -49,7 +51,14 @@$: effectivePlaceholder = $mode === 'website'? 'Describe the website you want to build'- : 'Send a message…';+ : $mode === 'slides'+ ? 'Describe your presentation topic'+ : 'Send a message…';++ let toneOpen = false;+ let imgModelOpen = false;+ let selectedTone = 'Professional';+ const tones = ['Professional', 'Casual', 'Academic', 'Playful', 'Minimal'];const unsubFill = composerFill.subscribe((fill) => {if (!fill) return;@@ -495,6 +504,59 @@ ${file.contents}Website</button>{/if}+ {#if $mode === 'slides'}+ <button+ class="manus-chip manus-chip-selected h-7 px-3 text-xs inline-flex items-center gap-1.5"+ on:click={() => mode.set(null)}+ >+ <Icon icon={feLayout} class="w-3.5 h-3.5" />+ Slides+ </button>+ <div class="relative">+ <button+ class="manus-chip h-7 px-3 text-xs inline-flex items-center gap-1.5"+ on:click={() => { toneOpen = !toneOpen; imgModelOpen = false; }}+ >+ <Icon icon={feZap} class="w-3.5 h-3.5" />+ {selectedTone}+ <Icon icon={feChevronDown} class="w-3 h-3" />+ </button>+ {#if toneOpen}+ <div class="absolute left-0 bottom-full mb-2 bg-white border border-[#E5E3DC] rounded-xl shadow-pop z-10 min-w-[140px]">+ {#each tones as tone}+ <button+ class="block w-full px-4 py-2 text-sm text-left text-[#1A1A1A] hover:bg-[#F5F4EF] first:rounded-t-xl last:rounded-b-xl"+ on:click={() => { selectedTone = tone; toneOpen = false; }}+ >+ {tone}+ </button>+ {/each}+ </div>+ {/if}+ </div>+ <div class="relative">+ <button+ class="rounded-full bg-white border border-[#E5E3DC] h-7 px-2 inline-flex items-center gap-1 hover:bg-[#F5F4EF] transition-colors"+ on:click={() => { imgModelOpen = !imgModelOpen; toneOpen = false; }}+ >+ <span class="w-[18px] h-[18px] rounded-full bg-black shrink-0 inline-block"></span>+ <span class="text-base leading-none">🍌</span>+ <Icon icon={feChevronDown} class="w-3 h-3 text-[#6B6B6B]" />+ </button>+ {#if imgModelOpen}+ <div class="absolute left-0 bottom-full mb-2 bg-white border border-[#E5E3DC] rounded-xl shadow-pop z-10 min-w-[140px]">+ <button class="flex items-center gap-2 w-full px-3 py-2 text-sm text-left text-[#1A1A1A] hover:bg-[#F5F4EF] rounded-t-xl">+ <span class="w-[18px] h-[18px] rounded-full bg-black shrink-0 inline-block"></span>+ OpenAI+ </button>+ <button class="flex items-center gap-2 w-full px-3 py-2 text-sm text-left text-[#1A1A1A] hover:bg-[#F5F4EF] rounded-b-xl">+ <span class="text-base leading-none shrink-0">🍌</span>+ Banana+ </button>+ </div>+ {/if}+ </div>+ {/if}<div id="tool-dropdown" class="contents"><ToolPill icon={feTool} selected={toolsOpen} on:click={() => (toolsOpen = !toolsOpen)}>Toolsdiff --git a/chat/src/manus/EmptyState.svelte b/chat/src/manus/EmptyState.svelteindex 08046ff7f..6f8ddad19 100644--- a/chat/src/manus/EmptyState.svelte+++ b/chat/src/manus/EmptyState.svelte@@ -1,3 +1,8 @@+<script>+ import { mode } from '../stores.js';+ import SlidesFlow from './flows/SlidesFlow.svelte';+</script>+<section class="w-full flex flex-col items-center px-6 pt-[18vh] md:pt-[22vh]"><h1 class="manus-hero text-center mb-9">What can I do for you?</h1><div class="w-full max-w-[760px]">@@ -6,4 +11,7 @@<div class="w-full max-w-[760px] mt-4"><slot name="chips" /></div>+ {#if $mode === 'slides'}+ <SlidesFlow />+ {/if}</section>diff --git a/chat/src/manus/TopNav.svelte b/chat/src/manus/TopNav.svelteindex 07bbb7a15..2474ae9b3 100644--- a/chat/src/manus/TopNav.svelte+++ b/chat/src/manus/TopNav.svelte@@ -1,170 +1,205 @@<script>- 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;-- const featOpen = { value: null };- 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 };- const bizClose = { value: null };-- function onFeatEnter() { clearTimeout(featClose.value); featOpen.value = setTimeout(() => (featuresOpen = true), 120); }- 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); }- function onBizLeave() { clearTimeout(bizOpen.value); bizClose.value = setTimeout(() => (businessOpen = false), 200); }+ import { route } from '../stores.js';+ import Icon from '../Icon.svelte';+ import { feMenu, feX, feCpu } from '../feather.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;+ let mobileOpen = false;++ const featOpen = { value: null }; 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 }; const bizClose = { value: null };++ function onFeatEnter() { clearTimeout(featClose.value); featOpen.value = setTimeout(() => (featuresOpen = true), 120); }+ 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); }+ function onBizLeave() { clearTimeout(bizOpen.value); bizClose.value = setTimeout(() => (businessOpen = false), 200); }++ function closeAll() {+ featuresOpen = solutionsOpen = resourcesOpen = eventsOpen = businessOpen = false;+ }++ let headerEl;+ function handleWindowClick(e) {+ if (headerEl && !headerEl.contains(e.target)) closeAll();+ }</script>-<header class="sticky top-0 z-40 bg-white border-b border-[#E5E3DC]">- <div class="max-w-[1240px] mx-auto h-14 px-6 flex items-center justify-between">-- <!-- Logo -->- <button- class="font-serif text-[22px] font-semibold text-[#1A1A1A] lowercase tracking-tight"- on:click={() => route.set('chat')}- >- manus- </button>-- <!-- Center nav -->- <nav class="hidden md:flex items-center">-- <!-- Features -->- <!-- svelte-ignore a11y-no-static-element-interactions -->- <div class="relative" on:mouseenter={onFeatEnter} on:mouseleave={onFeatLeave}>- <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={featuresOpen}- >Features</button>- {#if featuresOpen}- <!-- svelte-ignore a11y-no-static-element-interactions -->- <div- class="absolute top-full mt-2 left-0 z-50"- on:mouseenter={onFeatEnter}- on:mouseleave={onFeatLeave}- >- <FeaturesDropdown />- </div>- {/if}- </div>-- <!-- Solutions -->- <!-- svelte-ignore a11y-no-static-element-interactions -->- <div class="relative" on:mouseenter={onSolEnter} on:mouseleave={onSolLeave}>- <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={solutionsOpen}- >Solutions</button>- {#if solutionsOpen}- <!-- svelte-ignore a11y-no-static-element-interactions -->- <div- class="absolute top-full mt-2 left-0 z-50"- on:mouseenter={onSolEnter}- on:mouseleave={onSolLeave}- >- <SolutionsDropdown />- </div>- {/if}- </div>-- <!-- 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 -->- <div class="relative" on:mouseenter={onEvtEnter} on:mouseleave={onEvtLeave}>- <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={eventsOpen}- >Events</button>- {#if eventsOpen}- <!-- svelte-ignore a11y-no-static-element-interactions -->- <div- class="absolute top-full mt-2 left-0 z-50"- on:mouseenter={onEvtEnter}- on:mouseleave={onEvtLeave}- >- <EventsDropdown />- </div>- {/if}- </div>-- <!-- Business -->- <!-- svelte-ignore a11y-no-static-element-interactions -->- <div class="relative" on:mouseenter={onBizEnter} on:mouseleave={onBizLeave}>- <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={businessOpen}- >Business</button>- {#if businessOpen}- <!-- svelte-ignore a11y-no-static-element-interactions -->- <div- class="absolute top-full mt-2 left-0 z-50"- on:mouseenter={onBizEnter}- on:mouseleave={onBizLeave}- >- <BusinessDropdown />- </div>- {/if}- </div>- <button- class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors"- on:click={() => route.set('pricing')}- >Pricing</button>- </nav>-- <!-- Right actions -->- <div class="hidden md:flex items-center gap-2">- <button- class="bg-black text-white rounded-full px-4 h-9 text-sm font-medium hover:bg-[#333] transition-colors"- on:click={() => route.set('signin')}- >Sign in</button>- <button- class="bg-white border border-[#E5E3DC] text-[#1A1A1A] rounded-full px-4 h-9 text-sm font-medium hover:bg-[#F5F4EF] transition-colors"- on:click={() => route.set('signup')}- >Sign up</button>- </div>-- </div>+<svelte:window on:click={handleWindowClick} />++<header bind:this={headerEl} class="sticky top-0 z-40 border-b border-rule bg-paper">+ <div class="mx-auto flex h-14 max-w-[1240px] items-center justify-between px-6">++ <!-- LEFT: logo + wordmark -->+ <button+ class="flex items-center gap-2 text-ink"+ on:click={() => route.set('chat')}+ >+ <Icon icon={feCpu} class="h-5 w-5" />+ <span class="font-serif text-[22px] font-semibold lowercase tracking-tight">manus</span>+ </button>++ <!-- CENTER: desktop nav -->+ <nav class="hidden items-center md:flex">++ <!-- Features -->+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="relative" on:mouseenter={onFeatEnter} on:mouseleave={onFeatLeave}>+ <button+ class="inline-flex h-14 items-center px-3 text-sm font-medium text-ink transition-colors hover:text-ink-soft"+ aria-haspopup="true"+ aria-expanded={featuresOpen}+ >Features</button>+ {#if featuresOpen}+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="absolute left-0 top-full z-50 mt-2"+ on:mouseenter={onFeatEnter} on:mouseleave={onFeatLeave}>+ <FeaturesDropdown />+ </div>+ {/if}+ </div>++ <!-- Solutions -->+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="relative" on:mouseenter={onSolEnter} on:mouseleave={onSolLeave}>+ <button+ class="inline-flex h-14 items-center px-3 text-sm font-medium text-ink transition-colors hover:text-ink-soft"+ aria-haspopup="true"+ aria-expanded={solutionsOpen}+ >Solutions</button>+ {#if solutionsOpen}+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="absolute left-0 top-full z-50 mt-2"+ on:mouseenter={onSolEnter} on:mouseleave={onSolLeave}>+ <SolutionsDropdown />+ </div>+ {/if}+ </div>++ <!-- Resources -->+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="relative" on:mouseenter={onResEnter} on:mouseleave={onResLeave}>+ <button+ class="inline-flex h-14 items-center px-3 text-sm font-medium text-ink transition-colors hover:text-ink-soft"+ aria-haspopup="true"+ aria-expanded={resourcesOpen}+ >Resources</button>+ {#if resourcesOpen}+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="absolute left-0 top-full z-50 mt-2"+ on:mouseenter={onResEnter} on:mouseleave={onResLeave}>+ <ResourcesDropdown />+ </div>+ {/if}+ </div>++ <!-- Events -->+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="relative" on:mouseenter={onEvtEnter} on:mouseleave={onEvtLeave}>+ <button+ class="inline-flex h-14 items-center px-3 text-sm font-medium text-ink transition-colors hover:text-ink-soft"+ aria-haspopup="true"+ aria-expanded={eventsOpen}+ >Events</button>+ {#if eventsOpen}+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="absolute left-0 top-full z-50 mt-2"+ on:mouseenter={onEvtEnter} on:mouseleave={onEvtLeave}>+ <EventsDropdown />+ </div>+ {/if}+ </div>++ <!-- Business -->+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="relative" on:mouseenter={onBizEnter} on:mouseleave={onBizLeave}>+ <button+ class="inline-flex h-14 items-center px-3 text-sm font-medium text-ink transition-colors hover:text-ink-soft"+ aria-haspopup="true"+ aria-expanded={businessOpen}+ >Business</button>+ {#if businessOpen}+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="absolute left-0 top-full z-50 mt-2"+ on:mouseenter={onBizEnter} on:mouseleave={onBizLeave}>+ <BusinessDropdown />+ </div>+ {/if}+ </div>++ <!-- Pricing -->+ <button+ class="inline-flex h-14 items-center px-3 text-sm font-medium text-ink transition-colors hover:text-ink-soft"+ on:click={() => route.set('pricing')}+ >Pricing</button>+ </nav>++ <!-- RIGHT: auth buttons + hamburger -->+ <div class="flex items-center gap-2">+ <div class="hidden items-center gap-2 md:flex">+ <button+ class="h-9 rounded-full bg-black px-4 text-sm font-medium text-white transition-colors hover:bg-[#333]"+ on:click={() => route.set('signin')}+ >Sign in</button>+ <button+ class="h-9 rounded-full border border-rule bg-white px-4 text-sm font-medium text-ink transition-colors hover:bg-paper"+ on:click={() => route.set('signup')}+ >Sign up</button>+ </div>+ <button+ class="rounded p-2 text-ink hover:bg-paper-deep md:hidden"+ aria-label="Toggle menu"+ on:click={() => (mobileOpen = !mobileOpen)}+ >+ <Icon icon={mobileOpen ? feX : feMenu} class="h-5 w-5" />+ </button>+ </div>+ </div>++ <!-- Mobile sheet -->+ {#if mobileOpen}+ <div class="border-t border-rule bg-paper md:hidden">+ {#each ['Features','Solutions','Resources','Events','Business','Pricing'] as label}+ <button+ class="block w-full px-6 py-3 text-left text-sm font-medium text-ink hover:bg-paper-deep"+ on:click={() => { route.set(label.toLowerCase()); mobileOpen = false; }}+ >{label}</button>+ {/each}+ <div class="flex gap-2 px-6 py-4">+ <button+ class="h-9 flex-1 rounded-full bg-black text-sm font-medium text-white"+ on:click={() => { route.set('signin'); mobileOpen = false; }}+ >Sign in</button>+ <button+ class="h-9 flex-1 rounded-full border border-rule bg-white text-sm font-medium text-ink"+ on:click={() => { route.set('signup'); mobileOpen = false; }}+ >Sign up</button>+ </div>+ </div>+ {/if}</header>++<style>+ :global(.manus-card) {+ background: #F5F4EF;+ border: 1px solid #E5E3DC;+ border-radius: 12px;+ }+</style>diff --git a/chat/src/manus/flows/DesktopFlow.svelte b/chat/src/manus/flows/DesktopFlow.sveltenew file mode 100644index 000000000..73c7adbdc--- /dev/null+++ b/chat/src/manus/flows/DesktopFlow.svelte@@ -0,0 +1,104 @@+<script>+ import { appPlatforms, composerFill } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import {+ feMonitor,+ feSmartphone,+ feGlobe,+ feArrowUpLeft,+ } from '../../feather.js';++ const samplePrompts = [+ 'Build a markdown notes app with a daily journal',+ 'Create a habit tracker for iOS with widget support',+ 'Make a simple POS terminal for a coffee shop',+ 'Design a Kanban board for an engineering team',+ ];++ const platforms = [+ { id: 'macos', label: 'Native macOS', icon: feMonitor },+ { id: 'windows', label: 'Native Windows', icon: feMonitor },+ { id: 'linux', label: 'Native Linux', icon: feMonitor },+ { id: 'ios', label: 'iOS', icon: feSmartphone },+ { id: 'android', label: 'Android', icon: feSmartphone },+ { id: 'tauri', label: 'Cross-platform (Tauri)', icon: feMonitor },+ { id: 'electron', label: 'Cross-platform (Electron)', icon: feMonitor },+ { id: 'pwa', label: 'PWA', icon: feGlobe },+ ];++ const ideas = [+ 'Pomodoro timer',+ 'Lightweight RSS reader',+ 'Local password manager',+ 'Daily mood journal',+ 'Time-zone team clock',+ 'Voice memo transcriber',+ 'Recipe scaler',+ 'Currency converter',+ 'Resume builder',+ 'Plant watering reminder',+ 'Workout planner',+ 'Trip itinerary builder',+ ];++ function togglePlatform(label) {+ appPlatforms.update((set) => {+ const next = new Set(set);+ if (next.has(label)) {+ if (next.size > 1) next.delete(label);+ } else {+ next.add(label);+ }+ return next;+ });+ }++ function selectPrompt(text) {+ composerFill.set({ text, submit: true, ifEmpty: false });+ }++ function selectIdea(idea) {+ composerFill.set({ text: idea, submit: false, ifEmpty: true });+ }+</script>++<div class="mt-8 max-w-[760px] mx-auto px-1">+ <!-- Sample prompts -->+ <h3 class="text-sm font-semibold mt-10 mb-3">Sample prompts</h3>+ <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-3">+ {#each samplePrompts as prompt}+ <button+ class="bg-white border border-[#E5E3DC] rounded-xl p-4 h-[112px] flex flex-col justify-between text-left hover:bg-[#F5F4EF] transition-colors"+ on:click={() => selectPrompt(prompt)}+ >+ <span class="text-sm text-[#1A1A1A] leading-snug">{prompt}</span>+ <Icon icon={feArrowUpLeft} size={14} class="text-[#9C9A93] self-end" />+ </button>+ {/each}+ </div>++ <!-- Platforms -->+ <h3 class="text-sm font-semibold mt-10 mb-3">Platforms</h3>+ <div class="flex flex-wrap gap-2">+ {#each platforms as p}+ <button+ class="manus-chip {$appPlatforms.has(p.label) ? 'manus-chip-selected' : ''}"+ on:click={() => togglePlatform(p.label)}+ >+ <Icon icon={p.icon} size={16} />+ {p.label}+ </button>+ {/each}+ </div>++ <!-- Explore ideas -->+ <h3 class="text-sm font-semibold mt-10 mb-3">Explore ideas</h3>+ <div class="flex flex-wrap gap-2">+ {#each ideas as idea}+ <button class="manus-chip" on:click={() => selectIdea(idea)}>+ {idea}+ <Icon icon={feArrowUpLeft} size={14} class="text-[#9C9A93]" />+ </button>+ {/each}+ </div>+</div>diff --git a/chat/src/manus/flows/SlidesFlow.svelte b/chat/src/manus/flows/SlidesFlow.sveltenew file mode 100644index 000000000..8c4791a53--- /dev/null+++ b/chat/src/manus/flows/SlidesFlow.svelte@@ -0,0 +1,75 @@+<script>+ import { composerFill } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import { feArrowUpLeft, feLayout, feChevronDown, feUpload } from '../../feather.js';++ const samplePrompts = [+ 'Automate weekly team status reporting',+ 'Build quarterly sales performance dashboard',+ 'Create strategic business review presentation',+ 'Design investor pitch deck with projections',+ ];++ const templateCount = 8;++ const slideCountOptions = ['4 - 8', '8 - 12', '12 - 16', '16 - 20'];+ let selectedSlideCount = '8 - 12';+ let slideCountOpen = false;++ function selectPrompt(prompt) {+ composerFill.set({ text: prompt, submit: true, ifEmpty: false });+ }+</script>++<div class="w-full max-w-[760px] mx-auto">+ <h2 class="text-sm font-semibold text-[#1A1A1A] mb-3 mt-10">Sample prompts</h2>+ <div class="grid grid-cols-2 gap-3 md:grid-cols-4">+ {#each samplePrompts as prompt}+ <button+ class="bg-white border border-[#E5E3DC] rounded-xl p-4 text-left h-[112px] flex flex-col justify-between hover:bg-[#F5F4EF] transition-colors"+ on:click={() => selectPrompt(prompt)}+ >+ <span class="text-sm text-[#1A1A1A] line-clamp-2">{prompt}</span>+ <Icon icon={feArrowUpLeft} class="w-[14px] h-[14px] text-[#9C9A93] self-end shrink-0" />+ </button>+ {/each}+ </div>++ <div class="flex items-center justify-between mb-3 mt-10">+ <h2 class="text-sm font-semibold text-[#1A1A1A]">Choose a template</h2>+ <div class="relative">+ <button+ class="bg-white border border-[#E5E3DC] rounded-full h-9 px-3 text-sm flex items-center gap-2 hover:bg-[#F5F4EF] transition-colors"+ on:click={() => (slideCountOpen = !slideCountOpen)}+ >+ <Icon icon={feLayout} class="w-4 h-4 text-[#6B6B6B]" />+ {selectedSlideCount}+ <Icon icon={feChevronDown} class="w-3 h-3 text-[#6B6B6B]" />+ </button>+ {#if slideCountOpen}+ <div class="absolute right-0 top-full mt-1 bg-white border border-[#E5E3DC] rounded-xl shadow-pop z-10 min-w-[120px]">+ {#each slideCountOptions as option}+ <button+ class="block w-full px-4 py-2 text-sm text-left text-[#1A1A1A] hover:bg-[#F5F4EF] first:rounded-t-xl last:rounded-b-xl"+ on:click={() => { selectedSlideCount = option; slideCountOpen = false; }}+ >+ {option}+ </button>+ {/each}+ </div>+ {/if}+ </div>+ </div>++ <div class="grid grid-cols-4 gap-4 pb-8">+ <button class="aspect-[4/3] bg-white border border-[#E5E3DC] rounded-xl flex flex-col items-center justify-center gap-2 hover:bg-[#F5F4EF] transition-colors">+ <Icon icon={feUpload} class="w-5 h-5 text-[#6B6B6B]" />+ <span class="text-xs text-[#6B6B6B]">Import template</span>+ </button>+ {#each Array(templateCount) as _, i}+ <button class="aspect-[4/3] bg-[#EFECE3] rounded-xl flex items-center justify-center hover:opacity-80 transition-opacity">+ <span class="text-xs text-[#6B6B6B] font-serif text-center px-2">Sample template {i + 1}</span>+ </button>+ {/each}+ </div>+</div>diff --git a/chat/src/manus/pages/FeaturePage.svelte b/chat/src/manus/pages/FeaturePage.sveltenew file mode 100644index 000000000..49a52daa3--- /dev/null+++ b/chat/src/manus/pages/FeaturePage.svelte@@ -0,0 +1,57 @@+<script>+ import Icon from '../../Icon.svelte';+ import { featurePages } from './featurePages.js';++ export let slug;++ $: page = featurePages[slug] ?? featurePages['web-app'];+</script>++<div class="overflow-y-auto">+ <div class="max-w-[1100px] mx-auto px-6 pt-20 pb-32">++ <!-- Hero -->+ <div class="text-center">+ <p class="text-xs font-medium tracking-[0.16em] uppercase text-[#6B6B6B] mb-4">{page.eyebrow}</p>+ <h1 class="manus-display">{page.title}</h1>+ <p class="text-[#6B6B6B] text-lg max-w-[640px] mx-auto mt-6">{page.sub}</p>+ <div class="flex items-center justify-center gap-3 mt-8">+ <button class="manus-btn-primary">{page.primaryCta}</button>+ <button class="manus-btn-ghost border border-[#E5E3DC]">{page.secondaryCta}</button>+ </div>+ </div>++ <!-- Hero image -->+ {#if slug === 'agent-skills'}+ <div+ class="aspect-[3/1] rounded-2xl mt-12 bg-cover bg-center"+ style="background-image: url('/manus-redesign/skills-hero.jpg'), linear-gradient(to bottom right, #EFECE3, #E5E3DC)"+ ></div>+ {:else}+ <div class="aspect-[16/9] rounded-2xl bg-gradient-to-br from-[#EFECE3] to-[#E5E3DC] mt-12"></div>+ {/if}++ <!-- What you get -->+ <h2 class="font-serif text-3xl font-semibold mt-24 mb-8 text-center">What you get</h2>+ <div class="grid md:grid-cols-3 gap-4">+ {#each page.features as feat}+ <div class="bg-white border border-[#E5E3DC] rounded-2xl p-6">+ <div class="w-9 h-9 flex items-center justify-center rounded-xl bg-paper border border-[#E5E3DC]">+ <Icon icon={feat.icon} class="h-[22px] w-[22px] text-ink" strokeWidth={1.5} />+ </div>+ <p class="text-base font-semibold mt-4">{feat.title}</p>+ <p class="text-sm text-[#6B6B6B] mt-2">{feat.body}</p>+ </div>+ {/each}+ </div>++ <!-- Bottom CTA strip -->+ <div class="bg-black text-white rounded-2xl p-10 max-w-[1100px] mx-auto mt-24 flex items-center justify-between gap-6">+ <h3 class="font-serif text-3xl">{page.closingTitle}</h3>+ <button class="shrink-0 bg-white text-black rounded-full h-10 px-5 text-sm font-medium hover:bg-paper transition-colors">+ {page.closingCta}+ </button>+ </div>++ </div>+</div>diff --git a/chat/src/manus/pages/MarketingPage.svelte b/chat/src/manus/pages/MarketingPage.sveltenew file mode 100644index 000000000..6ec26afa5--- /dev/null+++ b/chat/src/manus/pages/MarketingPage.svelte@@ -0,0 +1,107 @@+<script>+ import { tick } from 'svelte';+ import { route, mode, composerFill } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import { feArrowUp } from '../../feather.js';+ import WebsiteFlow from '../flows/WebsiteFlow.svelte';+ import { getPageContent } from './marketingPages.js';++ export let slug = '';++ $: content = getPageContent(slug);+ $: headlineParts = content.headline.split('\n');++ let text = '';+ let textareaEl;++ function autoresize() {+ if (!textareaEl) return;+ textareaEl.style.height = 'auto';+ textareaEl.style.height = Math.min(textareaEl.scrollHeight + 2, 320) + 'px';+ }++ async function submit() {+ const msg = text.trim();+ if (!msg) return;+ composerFill.set({ text: msg, submit: false, ifEmpty: false });+ if (slug.startsWith('solutions/') || slug.startsWith('business/')) {+ mode.set('website');+ }+ route.set('chat');+ }++ const logos = ['ACME', 'NORTHWIND', 'LATTE', 'PIVOT', 'ATLAS', 'BEACON'];+</script>++<div class="bg-paper min-h-screen">+ <div class="max-w-[1100px] mx-auto px-6 pt-24 pb-32">++ <!-- Eyebrow -->+ {#if content.eyebrow}+ <p class="text-center text-xs font-semibold uppercase tracking-[0.14em] text-[#9C9A93] mb-4">+ {content.eyebrow}+ </p>+ {/if}++ <!-- Headline -->+ <h1 class="manus-display text-center">+ {#each headlineParts as part, i}+ {part}{#if i < headlineParts.length - 1}<br />{/if}+ {/each}+ </h1>++ <!-- Sub -->+ <p class="text-[#6B6B6B] text-lg max-w-[640px] mx-auto text-center mt-6">+ {content.sub}+ </p>++ <!-- Composer -->+ <div class="mt-12 max-w-[680px] mx-auto">+ <div+ class="bg-white border border-[#E5E3DC] rounded-[20px] shadow-composer pt-5 px-5 pb-3"+ style="min-height:140px"+ >+ <textarea+ bind:this={textareaEl}+ bind:value={text}+ placeholder={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:input={autoresize}+ on:keydown={(e) => {+ if (e.key === 'Enter' && !e.shiftKey) {+ e.preventDefault();+ submit();+ }+ }}+ />+ <div class="flex items-center justify-end mt-3">+ <button+ disabled={!text.trim()}+ on:click={submit}+ class="flex h-9 w-9 items-center justify-center rounded-full transition-colors {text.trim()+ ? 'bg-black text-white hover:bg-[#333] cursor-pointer'+ : 'bg-[#E7E5DD] text-[#9C9A93] cursor-default'}"+ title="Send"+ >+ <Icon icon={feArrowUp} class="h-4 w-4" />+ </button>+ </div>+ </div>+ </div>++ <!-- Categories row (compact — no Add reference / Import from Figma) -->+ <WebsiteFlow compact={true} />++ <!-- Logos strip -->+ <div class="mt-20 grid grid-cols-3 md:grid-cols-6 gap-6 items-center opacity-70">+ {#each logos as logo}+ <div class="text-[#6B6B6B] text-sm uppercase tracking-[0.16em] text-center">+ {logo}+ </div>+ {/each}+ </div>++ </div>+</div>diff --git a/chat/src/manus/pages/ResourcePage.svelte b/chat/src/manus/pages/ResourcePage.sveltenew file mode 100644index 000000000..5288c7ae2--- /dev/null+++ b/chat/src/manus/pages/ResourcePage.svelte@@ -0,0 +1,25 @@+<script>+ import BlogIndex from './resources/BlogIndex.svelte';+ import DocsIndex from './resources/DocsIndex.svelte';+ import UpdatesTimeline from './resources/UpdatesTimeline.svelte';+ import UseCasesIndex from './resources/UseCasesIndex.svelte';+ import TrustCenter from './resources/TrustCenter.svelte';++ export let slug = '';+</script>++{#if slug === 'blog'}+ <BlogIndex />+{:else if slug === 'docs'}+ <DocsIndex />+{:else if slug === 'updates'}+ <UpdatesTimeline />+{:else if slug === 'use-cases'}+ <UseCasesIndex />+{:else if slug === 'trust-center'}+ <TrustCenter />+{:else}+ <div class="max-w-[1100px] mx-auto px-6 pt-16 pb-24">+ <p class="text-[#6B6B6B]">Page not found: resources/{slug}</p>+ </div>+{/if}diff --git a/chat/src/manus/pages/featurePages.js b/chat/src/manus/pages/featurePages.jsnew file mode 100644index 000000000..73948b4d8--- /dev/null+++ b/chat/src/manus/pages/featurePages.js@@ -0,0 +1,153 @@+import {+ feActivity, feBarChart, feBell, feBookOpen, feCheckSquare,+ feClock, feCode, feCpu, feEdit2, feGlobe, feGrid,+ feImage, feInbox, feLayers, feLayout, feList, feMail,+ feMonitor, fePenTool, fePlayCircle, feSearch, feSliders,+ feSmartphone, feTarget, feUpload, feUsers, feZap,+} from '../../feather.js';++export const featurePages = {+ 'web-app': {+ eyebrow: 'AI Web App',+ title: 'Build full-stack apps from a single prompt',+ sub: 'Manus generates the frontend, backend, database, and deploys it — no engineering team required.',+ primaryCta: 'Start building',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Real frameworks', body: 'Next.js, Postgres, Auth, Stripe — production-grade defaults.', icon: feCode },+ { title: 'One-click deploys', body: 'Push to your own domain, with HTTPS and previews per branch.', icon: feUpload },+ { title: 'Editable from chat', body: 'Iterate on copy, layout, and logic without leaving the conversation.', icon: feEdit2 },+ { title: 'Built-in observability', body: 'Errors, traces, and costs visible from the start.', icon: feActivity },+ { title: 'Bring your stack', body: 'Swap any default — your DB, your auth, your CDN.', icon: feGrid },+ { title: 'Team review', body: 'Comment on diffs, approve before deploy.', icon: feUsers },+ ],+ closingTitle: 'Ship a real app today.',+ closingCta: 'Start free',+ },++ 'mobile-app': {+ eyebrow: 'AI Mobile App',+ title: 'Native iOS & Android apps, generated end-to-end',+ sub: 'From idea to App Store — Manus writes the code, wires the APIs, and handles the release build.',+ primaryCta: 'Build your app',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Cross-platform code', body: 'React Native or Flutter — idiomatic output, not scaffolded boilerplate.', icon: feSmartphone },+ { title: 'App Store submission', body: 'Signed builds, metadata, and screenshots ready to submit.', icon: feUpload },+ { title: 'Push & deep links', body: 'APNs, FCM, and universal links configured from the first run.', icon: feBell },+ { title: 'Live preview', body: 'See your app on a real device before pushing to production.', icon: feMonitor },+ { title: 'Auth & payments', body: 'Apple Sign-In, Google OAuth, and Stripe ready from day one.', icon: feCheckSquare },+ { title: 'Team CI/CD', body: 'Every merge triggers a fresh build — no manual release steps.', icon: feUsers },+ ],+ closingTitle: 'Launch your app this week.',+ closingCta: 'Start free',+ },++ 'ai-design': {+ eyebrow: 'AI Design',+ title: 'From brief to brand: design that ships itself',+ sub: 'Describe your product, brand, or screen — Manus delivers complete, export-ready design files.',+ primaryCta: 'Start designing',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Brand systems', body: 'Logos, color palettes, and type scales generated as a coherent whole.', icon: fePenTool },+ { title: 'Figma-ready exports', body: 'Components, variables, and styles structured for handoff.', icon: feImage },+ { title: 'Responsive layouts', body: 'Desktop, tablet, and mobile frames produced in a single pass.', icon: feLayout },+ { title: 'Iterate in chat', body: 'Adjust tone, color, or density with plain-language instructions.', icon: feEdit2 },+ { title: 'Asset library', body: 'Icons, illustrations, and photography matched to your brand style.', icon: feGrid },+ { title: 'Review & approve', body: 'Share a preview link with stakeholders before any handoff.', icon: feCheckSquare },+ ],+ closingTitle: 'Design your brand in an afternoon.',+ closingCta: 'Start designing',+ },++ 'ai-slides': {+ eyebrow: 'AI Slides',+ title: 'Decks that write, design, and rehearse with you',+ sub: 'Tell Manus your audience and key message. Get a polished, presentation-ready deck in minutes.',+ primaryCta: 'Create a deck',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Smart outlines', body: 'Manus structures your narrative before designing a single slide.', icon: feList },+ { title: 'On-brand layouts', body: 'Themes that match your palette, fonts, and grid — automatically.', icon: feLayout },+ { title: 'Speaker notes', body: 'Every slide ships with talking points and transition cues.', icon: feEdit2 },+ { title: 'Live data charts', body: 'Pull in your numbers; Manus picks the right chart type automatically.', icon: feBarChart },+ { title: 'Rehearsal mode', body: 'Practice your timing with auto-advance and an inline teleprompter.', icon: fePlayCircle },+ { title: 'Share & export', body: 'PowerPoint, PDF, or a shareable link — one click away.', icon: feUpload },+ ],+ closingTitle: 'Present with confidence.',+ closingCta: 'Create your deck',+ },++ 'browser-operator': {+ eyebrow: 'Browser Operator',+ title: 'Lend Manus a tab. Watch it work.',+ sub: 'Give Manus access to a browser tab and it completes multi-step web tasks while you focus on other things.',+ primaryCta: 'Try it now',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Full page control', body: 'Clicks, scrolls, form fills, and file uploads — no task too complex.', icon: feMonitor },+ { title: 'Multi-tab flows', body: 'Research across sites, compare prices, and aggregate results in one pass.', icon: feGlobe },+ { title: 'Authenticated sessions', body: 'Manus works inside your logged-in accounts, safely sandboxed.', icon: feCheckSquare },+ { title: 'Parallel browsing', body: 'Spin up multiple agents to run independent web tasks concurrently.', icon: feGrid },+ { title: 'Audit trail', body: 'Every action logged — see exactly what was clicked and when.', icon: feActivity },+ { title: 'Scheduled runs', body: 'Set Manus to monitor a site or submit a form on a recurring schedule.', icon: feClock },+ ],+ closingTitle: 'Never click through a workflow again.',+ closingCta: 'Try it free',+ },++ 'wide-research': {+ eyebrow: 'Wide Research',+ title: 'Parallel research across hundreds of sources at once',+ sub: 'Manus dispatches a fleet of agents to explore the web, synthesising findings into a single citable report.',+ primaryCta: 'Start researching',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Hundreds of sources', body: 'Academic papers, news, forums, and market data — searched simultaneously.', icon: feSearch },+ { title: 'Cited outputs', body: 'Every claim linked to its source — no hallucinated references.', icon: feBookOpen },+ { title: 'Configurable depth', body: 'Set breadth vs. depth for quick briefs or exhaustive deep-dives.', icon: feSliders },+ { title: 'Structured exports', body: 'Markdown, PDF, or structured JSON ready for downstream use.', icon: feList },+ { title: 'Competitive intel', body: 'Track rivals, pricing, and sentiment across the web automatically.', icon: feTarget },+ { title: 'Scheduled sweeps', body: 'Run the same query weekly and get a concise diff of what changed.', icon: feClock },+ ],+ closingTitle: 'Get better research done faster.',+ closingCta: 'Start free',+ },++ 'mail-manus': {+ eyebrow: 'Mail Manus',+ title: 'Turn every inbox thread into a finished task',+ sub: 'Connect your inbox and Manus drafts replies, schedules actions, and closes loops — without you lifting a finger.',+ primaryCta: 'Connect your inbox',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Smart triage', body: 'Manus reads context, urgency, and intent — not just keywords.', icon: feInbox },+ { title: 'Draft in your voice', body: 'Replies that sound like you, tuned to your past writing patterns.', icon: feEdit2 },+ { title: 'Action extraction', body: 'Meeting requests, to-dos, and follow-ups turned into calendar items.', icon: feCheckSquare },+ { title: 'Thread summaries', body: 'Long threads distilled into a three-line brief before you reply.', icon: feList },+ { title: 'Rules & routing', body: 'Custom logic to forward, label, or delegate automatically.', icon: feSliders },+ { title: 'Team shared inbox', body: 'Assign, co-draft, and track accountability across your whole team.', icon: feUsers },+ ],+ closingTitle: 'Reach inbox zero. Stay there.',+ closingCta: 'Connect your inbox',+ },++ 'agent-skills': {+ eyebrow: 'Agent Skills',+ title: 'Codify your team\'s expertise into reusable agents',+ sub: 'Record a workflow once and Manus runs it reliably at any scale — no maintenance, no documentation drift.',+ primaryCta: 'Build a skill',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Skill recorder', body: 'Walk through a task once; Manus captures the pattern as a reusable skill.', icon: feCpu },+ { title: 'Parameterised runs', body: 'Swap inputs to reuse the same skill across clients, markets, or datasets.', icon: feSliders },+ { title: 'Team library', body: 'Share, fork, and version skills across your entire organisation.', icon: feUsers },+ { title: 'Composable chains', body: 'Sequence skills into multi-step pipelines with conditional branching.', icon: feLayers },+ { title: 'Reliability monitoring', body: 'Track success rate, drift, and latency for every skill run.', icon: feActivity },+ { title: 'Access controls', body: 'Scope skills to roles, departments, or individual contributors.', icon: feTarget },+ ],+ closingTitle: 'Turn expertise into infrastructure.',+ closingCta: 'Build your first skill',+ },+};diff --git a/chat/src/manus/pages/resources/TrustCenter.svelte b/chat/src/manus/pages/resources/TrustCenter.sveltenew file mode 100644index 000000000..bd17fd1ab--- /dev/null+++ b/chat/src/manus/pages/resources/TrustCenter.svelte@@ -0,0 +1,63 @@+<script>+ const stats = [+ { label: 'SOC 2 Type II', detail: 'Audited annually by an independent third party.' },+ { label: 'GDPR Ready', detail: 'Data processing agreements available for EU customers.' },+ { label: '99.95% SLA', detail: 'Uptime commitment backed by service credits.' },+ ];++ const sections = [+ {+ title: 'Data handling',+ body: 'All data in transit is encrypted with TLS 1.3. Data at rest uses AES-256 encryption. We do not use customer data to train models. Retention windows are configurable per workspace, with hard-delete available on request.',+ },+ {+ title: 'Access controls',+ body: 'Role-based access control (RBAC) is available on all Business plans. SSO via SAML 2.0 and OIDC is supported. All user sessions are time-limited and MFA is enforced for admin roles.',+ },+ {+ title: 'Subprocessors',+ body: 'We maintain a current list of subprocessors. Customers on Business plans receive advance notice of any subprocessor changes and have the right to object. Our core infrastructure runs on AWS (us-east-1, eu-west-1).',+ },+ {+ title: 'Vulnerability disclosure',+ body: 'We operate a responsible disclosure program. Security researchers can report issues to [email protected]. Critical vulnerabilities are acknowledged within 24 hours and patched within 7 days where possible.',+ },+ ];++ const badges = ['SOC 2', 'ISO 27001', 'HIPAA', 'GDPR', 'CCPA', 'PCI'];+</script>++<div class="max-w-[1100px] mx-auto px-6 pt-16 pb-24">+ <h1 class="font-serif text-4xl font-semibold mb-2">Trust Center</h1>+ <p class="text-[#6B6B6B] text-base mb-12">Security, privacy, and compliance at Manus</p>++ <!-- Stats row -->+ <div class="grid md:grid-cols-3 gap-4 mb-10">+ {#each stats as s}+ <div class="bg-white border border-[#E5E3DC] rounded-2xl p-6">+ <div class="font-serif text-2xl font-semibold text-[#1A1A1A] mb-1">{s.label}</div>+ <p class="text-sm text-[#6B6B6B]">{s.detail}</p>+ </div>+ {/each}+ </div>++ <!-- Content sections -->+ <div class="grid md:grid-cols-2 gap-4 mb-14">+ {#each sections as s}+ <div class="bg-white border border-[#E5E3DC] rounded-2xl p-6">+ <h2 class="font-serif text-xl font-semibold mb-3 text-[#1A1A1A]">{s.title}</h2>+ <p class="text-sm text-[#6B6B6B] leading-relaxed">{s.body}</p>+ </div>+ {/each}+ </div>++ <!-- Compliance badge grid -->+ <h2 class="font-serif text-2xl font-semibold mb-6 text-[#1A1A1A]">Certifications & frameworks</h2>+ <div class="grid grid-cols-3 md:grid-cols-6 gap-4">+ {#each badges as b}+ <div class="bg-[#F5F4EF] border border-[#E5E3DC] rounded-xl aspect-square flex items-center justify-center">+ <span class="text-xs font-semibold text-[#6B6B6B] text-center px-2">{b}</span>+ </div>+ {/each}+ </div>+</div>diff --git a/chat/src/stores.js b/chat/src/stores.jsindex bb6559740..24aa9ab12 100644--- a/chat/src/stores.js+++ b/chat/src/stores.js@@ -80,3 +80,5 @@ if (typeof window !== 'undefined') {export const mode = writable(null);export const websiteCategory = writable(null);export const composerFill = writable(null);+export const appPlatforms = writable(new Set(['macOS']));+export const designModel = writable('gpt-image-2');diff --git a/public/.well-known/agent-registration.json b/public/.well-known/agent-registration.jsonindex adedc4ae4..159dfd6c0 100644--- a/public/.well-known/agent-registration.json+++ b/public/.well-known/agent-registration.json@@ -30,7 +30,17 @@"version": "2025-06-18"}],- "x402Support": false,+ "x402Support": true,+ "x402Endpoints": [+ {+ "url": "https://three.ws/api/mcp",+ "method": "POST",+ "description": "MCP tool call — 3D avatar viewer, glTF model validation/inspection/optimization, and Solana agent data",+ "networks": ["solana", "base"],+ "scheme": "exact",+ "priceUsdc": "0.001"+ }+ ],"registrations": [],"supportedTrust": ["reputation"]}diff --git a/public/chat/index.html b/public/chat/index.htmlindex 6b9712840..e283bd98d 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-DgCDPR0j.js"></script>- <link rel="stylesheet" crossorigin href="/chat/assets/index-C9zB5kf6.css">+ <script type="module" crossorigin src="/chat/assets/index-LN0y1JWU.js"></script>+ <link rel="stylesheet" crossorigin href="/chat/assets/index-DWNAnUyF.css"></head><body><div id="app"></div>