- 从 @ai-sdk/react useChat 迁移到 @json-render/react useChatUI - 后端使用 createUIMessageStream 和 pipeJsonRender 处理混合流 - 简化 ChatMessage 组件,直接使用 specs prop - 移除 @ai-sdk/react 依赖 符合规格要求:迁移到官方最佳实践 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
{
|
|
"name": "frontend-v2",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev --port 8080",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint"
|
|
},
|
|
"dependencies": {
|
|
"@ai-sdk/anthropic": "^3.0.58",
|
|
"@ai-sdk/mcp": "^1.0.25",
|
|
"@json-render/core": "^0.14.1",
|
|
"@json-render/react": "^0.14.1",
|
|
"@json-render/shadcn": "^0.14.1",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@tanstack/react-query": "^5.62.0",
|
|
"ai": "^6.0.116",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"lucide-react": "^0.577.0",
|
|
"next": "14.2.18",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-markdown": "^10.1.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"superjson": "^2.2.2",
|
|
"tailwind-merge": "^3.5.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20",
|
|
"@types/react": "^18",
|
|
"@types/react-dom": "^18",
|
|
"autoprefixer": "^10.4.20",
|
|
"eslint": "^8",
|
|
"eslint-config-next": "14.2.18",
|
|
"postcss": "^8",
|
|
"tailwindcss": "^3.4.1",
|
|
"typescript": "^5"
|
|
}
|
|
}
|