Build the primary chat interface with conversation list sidebar, message display area, streaming assistant responses via socket.io, and auto-scrolling. Supports creating new conversations, sending messages with optimistic updates, and real-time text streaming from the agent via WebSocket events. Components: ConversationList, MessageBubble, ChatInput, StreamingMessage Libs: socket.io client singleton, shared types for Conversation/Message Refs #28 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
770 B
JSON
33 lines
770 B
JSON
{
|
|
"name": "@mosaic/web",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "next build",
|
|
"dev": "next dev",
|
|
"lint": "eslint src",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run --passWithNoTests",
|
|
"start": "next start"
|
|
},
|
|
"dependencies": {
|
|
"@mosaic/design-tokens": "workspace:^",
|
|
"better-auth": "^1.5.5",
|
|
"clsx": "^2.1.0",
|
|
"next": "^16.0.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"socket.io-client": "^4.8.0",
|
|
"tailwind-merge": "^3.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "^5.8.0",
|
|
"vitest": "^2.0.0"
|
|
}
|
|
}
|