import { Copy } from 'lucide-react' import { useState } from 'react' import { Button } from '@/components/ui/button' import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog' import { tt } from '@/lib/i18n' export function AgentEnrollmentGuide() { const [open, setOpen] = useState(false) const [copied, setCopied] = useState(false) const [error, setError] = useState('') const prompt = tt( 'Read the Agent setup instructions at {{url}} and enroll yourself with this Realmroot deployment from your own environment. Follow the published CLI instructions, ask me to approve the controller connection when required, and verify your identity after enrollment. Never ask for my password or copy my session credentials.', { url: `${window.location.origin}/.well-known/agent-skills/index.json` }, ) return ( <> {tt('Let your Agent enroll itself')} {tt( 'Send these instructions to your Agent. It completes enrollment in its own environment; you approve the connection when prompted.', )}