'use client' import { getMonitoringAgent, getMonitoringAgentHarnesses, type MonitoringAgentHarnessSetup, } from '~/data/monitoring-agents.utils' import { Sparkles } from 'lucide-react' import { useTheme } from 'next-themes' import { type ReactNode } from 'react' import ReactMarkdown from 'react-markdown' import { ConnectionIcon } from 'ui-patterns/McpUrlBuilder' import { AiPrompt } from './AiPrompt' import { PromptCode } from './PromptPanel' import { TabPanel, Tabs } from './Tabs' type AgentSetupProps = { id: string } const markdownComponents = { p: ({ children }: { children?: ReactNode }) => <>{children}>, a: ({ href, children }: { href?: string; children?: ReactNode }) => { if (!href) return <>{children}> const external = /^(?:[a-z][a-z0-9+\-.]*:|\/\/)/i.test(href) return ( {children} ) }, code: PromptCode, } function HarnessBody({ harness }: { harness: MonitoringAgentHarnessSetup }) { return ( <>
{harness.intro}