import { Check, Search, Plug, Terminal, Zap } from 'lucide-react'; import type { ReactNode } from 'react'; const LOGO_CDN = 'https://logos.composio.dev/api'; const CONNECTED_APPS: { slug: string; name: string }[] = [ { slug: 'gmail', name: 'Gmail' }, { slug: 'github', name: 'GitHub' }, { slug: 'slack', name: 'Slack' }, ]; const META_TOOLS: { icon: ReactNode; label: string; verb: string }[] = [ { icon: , label: 'Search tools', verb: 'discover' }, { icon: , label: 'Manage connections', verb: 'authenticate' }, { icon: , label: 'Execute tool', verb: 'act' }, { icon: , label: 'Sandbox', verb: 'compute' }, ]; /** * SessionFlow — branded replacement for the plain `agent → session → meta tools` * mermaid diagram on the "What is a session?" docs page. * * Reads left-to-right as a story: your agent acts for a user; the session is the * brand-accented runtime context that binds that user's connected accounts + auth * and exposes meta tools the agent calls to discover, authenticate, and execute. * * The centerpiece is the Session card, which surfaces the *user and their * connected accounts* — the part the old mermaid diagram never showed. * Server component, no client JS. Adapts to light/dark via fd-* tokens. */ export function SessionFlow() { return (
Calls the session's meta tools instead of loading hundreds of tool definitions.
Ties the user, toolkits, auth, and connected accounts into one scoped environment.