{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "agent-chat", "title": "Agent Chat", "description": "Controlled operational Chat block with AI SDK UIMessage transcript, reader-aware scrolling, multimodal composer, send, stop, and retry", "dependencies": ["@shadcn/react@0.2.1", "ai@7.0.31", "daisyui", "lucide-react", "streamdown@2.5.0"], "files": [ { "path": "registry/default/ui/message/message.tsx", "content": "import type { ComponentPropsWithRef } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type MessageGroupProps = ComponentPropsWithRef<'div'>;\n\nexport function MessageGroup({ className, ...props }: MessageGroupProps) {\n\treturn
;\n}\n\nexport type MessageProps = ComponentPropsWithRef<'div'> & {\n\talign?: 'start' | 'end';\n};\n\nexport function Message({ className, align = 'start', ...props }: MessageProps) {\n\treturn (\n\t\t\n\t);\n}\n\nexport type MessageAvatarProps = ComponentPropsWithRef<'div'>;\n\nexport function MessageAvatar({ className, ...props }: MessageAvatarProps) {\n\treturn (\n\t\t\n\t);\n}\n\nexport type MessageContentProps = ComponentPropsWithRef<'div'>;\n\nexport function MessageContent({ className, ...props }: MessageContentProps) {\n\treturn (\n\t\t\n\t);\n}\n\nexport type MessageHeaderProps = ComponentPropsWithRef<'div'>;\n\nexport function MessageHeader({ className, ...props }: MessageHeaderProps) {\n\treturn (\n\t\t\n\t);\n}\n\nexport type MessageFooterProps = ComponentPropsWithRef<'div'>;\n\nexport function MessageFooter({ className, ...props }: MessageFooterProps) {\n\treturn (\n\t\t\n\t);\n}\n", "type": "registry:ui", "target": "@components/ui/message/message.tsx" }, { "path": "registry/default/ui/message/index.ts", "content": "export * from './message';\n", "type": "registry:ui", "target": "@components/ui/message/index.ts" }, { "path": "registry/default/ui/message-scroller/message-scroller.tsx", "content": "'use client';\n\nimport {\n\tMessageScroller as MessageScrollerPrimitive,\n\tuseMessageScroller,\n\tuseMessageScrollerScrollable,\n\tuseMessageScrollerVisibility,\n} from '@shadcn/react/message-scroller';\nimport { ArrowDown } from 'lucide-react';\nimport type { ComponentPropsWithRef } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type MessageScrollerMessages = {\n\tviewportLabel: string;\n\tscrollToEnd: string;\n\tscrollToStart: string;\n};\n\nexport const defaultMessageScrollerMessages: MessageScrollerMessages = {\n\tviewportLabel: '消息记录',\n\tscrollToEnd: '滚动到底部',\n\tscrollToStart: '滚动到顶部',\n};\n\nexport type MessageScrollerProviderProps = ComponentPropsWithRef