import { Cpu, Globe, MessageSquare, Terminal } from 'lucide-react'; import type { ReactNode } from 'react'; const LOGO_CDN = 'https://logos.composio.dev/api'; const TOOLS: { slug: string; name: string; where: string; local?: boolean }[] = [ { slug: 'imessage', name: 'iMessage', where: 'on your Mac', local: true }, { slug: 'gmail', name: 'Gmail', where: 'catalog' }, { slug: 'github', name: 'GitHub', where: 'catalog' }, ]; /** * ImessageFlow — branded diagram for the iMessage example page. * * Reads left-to-right as one request: you type a prompt (or a trigger fires), * the eve agent picks a tool and runs it through a single session, and that * session carries both the local iMessage toolkit (running on your Mac) and the * rest of the Composio catalog (running remote). The reply ends in a text. * * Server component, no client JS. Adapts to light/dark via fd-* tokens. */ export function ImessageFlow() { return (
{/* header strip — mono, matches the other branded flow visuals */}
imessage.runtime running on your Mac
{/* ── You ────────────────────────────────────────────────── */}
Prompt or trigger
text Shams a summary

you eve

{/* ── eve agent ──────────────────────────────────────────── */}
{'{ }'}
eve agent
searches + executes

Picks the tool it needs and runs it through the session.

{/* ── Session (the hub) ──────────────────────────────────── */}
{/* footer caption */}
prompt eve session (local mac tools + remote catalog){' '} text sent
); } function Column({ children }: { children: ReactNode }) { return
{children}
; } function Lane({ label, accent = false }: { label: string; accent?: boolean }) { return (
); } /** * Desktop-only directional connector shown between columns. On mobile, the * stacked columns read top-to-bottom without a connector. */ function Connector({ accent = false }: { accent?: boolean }) { const color = accent ? 'bg-[var(--composio-brand)]/40' : 'bg-fd-border'; const tip = accent ? 'border-l-[var(--composio-brand)]/50' : 'border-l-fd-border'; return ( ); } function Arrow() { return ( ); }