11import db from '@codebuff/common/db'
22import * as schema from '@codebuff/common/db/schema'
33import { and , eq } from 'drizzle-orm'
4- import { ArrowLeft , Calendar , Code , Download , ExternalLink } from 'lucide-react'
4+ import { Calendar } from 'lucide-react'
55import Link from 'next/link'
66import { notFound } from 'next/navigation'
77
@@ -10,9 +10,11 @@ import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
1010import { Avatar , AvatarFallback , AvatarImage } from '@/components/ui/avatar'
1111import { BackButton } from '@/components/ui/back-button'
1212import { TypeScriptViewer } from '@/components/agent/typescript-viewer'
13- import { EnhancedCopyButton } from '@/components/ui/enhanced-copy-button'
13+
1414import { cn } from '@/lib/utils'
1515import { AgentUsageMetrics } from './agent-usage-metrics'
16+ import { RunAgentButton } from './run-agent-button'
17+ import { CopyIdButton } from './copy-id-button'
1618import { Button } from '@/components/ui/button'
1719
1820interface AgentDetailPageProps {
@@ -182,16 +184,9 @@ const AgentDetailPage = async ({ params }: AgentDetailPageProps) => {
182184 </ div >
183185 </ div >
184186 </ div >
185- < div className = "flex flex-col items-end space-y-3" >
186- < div className = "flex items-center space-x-2 text-sm" >
187- < code className = "bg-muted/50 px-2 py-1 rounded text-xs font-mono text-muted-foreground" >
188- { publisherData . id } /{ params . agentId } @{ latestVersion }
189- </ code >
190- < EnhancedCopyButton
191- value = { fullAgentId }
192- className = "p-1 text-muted-foreground/60 hover:text-muted-foreground"
193- />
194- </ div >
187+ < div className = "flex items-end space-x-3" >
188+ < CopyIdButton agentId = { fullAgentId } />
189+ < RunAgentButton agentId = { fullAgentId } />
195190 { /*
196191 Hide download button for now. (It doesn't do anything)
197192 <Button variant="outline" size="sm">
0 commit comments