import { AgentChatSurface, markAgentChatHomeHandoff, } from "@agent-native/core/client/agent-chat"; import { useT } from "@agent-native/core/client/i18n"; import { useBuilderStatus } from "@agent-native/core/client/settings"; import { useEffect } from "react"; import { shouldEnableBrainProviderStatusChecks } from "@/lib/brain-chat-readiness"; import { TAB_ID } from "@/lib/tab-id"; const SEO_TITLE = "Brain - Open Source company knowledge base for AI agents"; const SEO_DESCRIPTION = "Open Source company knowledge base that turns Slack, meetings, transcripts, docs, and decisions into cited answers for AI agents."; export function meta() { return [ { title: SEO_TITLE }, { name: "description", content: SEO_DESCRIPTION }, { property: "og:title", content: SEO_TITLE }, { property: "og:description", content: SEO_DESCRIPTION }, { name: "twitter:card", content: "summary" }, { name: "twitter:title", content: SEO_TITLE }, { name: "twitter:description", content: SEO_DESCRIPTION }, ]; } export default function AskRoute() { const t = useT(); const { status: builderStatus, stale: builderStatusStale } = useBuilderStatus(); useEffect(() => { function handleChatRunning(event: Event) { const detail = (event as CustomEvent).detail; if (detail?.isRunning === true) markAgentChatHomeHandoff("brain"); } window.addEventListener("agentNative.chatRunning", handleChatRunning); return () => window.removeEventListener("agentNative.chatRunning", handleChatRunning); }, []); return (

{t("ask.heroTitle")}

{t("ask.heroDescription")}

} /> ); }