- Extract ChatView from web chat-page into packages/ui as a prop-driven component (accepts UseChatReturn shape, no transport dependency) - Move DevicePairing from apps/web to packages/ui with locally defined ConnectionIdentity type (no @multica/hooks dependency) - Create @multica/hooks package with useGatewayConnection and useChat (moved from apps/web/hooks) - Add isLoadingHistory state to useChat with skeleton loading in ChatView - Add MulticaIcon (pure CSS asterisk via clip-path, adapts to theme) - Slim web chat-page.tsx from 188 to 65 lines (just wires hooks to UI) Desktop can now reuse ChatView and DevicePairing directly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
33 lines
833 B
JSON
33 lines
833 B
JSON
{
|
|
"name": "@multica/web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev --port 3001 --experimental-https",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint"
|
|
},
|
|
"dependencies": {
|
|
"@multica/hooks": "workspace:*",
|
|
"@multica/sdk": "workspace:*",
|
|
"@multica/store": "workspace:*",
|
|
"@multica/ui": "workspace:*",
|
|
"uuid": "^13.0.0",
|
|
"zustand": "catalog:",
|
|
"@hugeicons/core-free-icons": "^3.1.1",
|
|
"@hugeicons/react": "^1.1.4",
|
|
"next": "16.1.6",
|
|
"next-themes": "^0.4.6",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.1.6",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|