multica/packages
Naiyuan Qing 53c350ea33 refactor(ui,hooks): extract shared ChatView and DevicePairing to packages
- 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>
2026-02-05 15:28:44 +08:00
..
hooks refactor(ui,hooks): extract shared ChatView and DevicePairing to packages 2026-02-05 15:28:44 +08:00
sdk Merge branch 'main' into exec-approvals 2026-02-05 11:06:52 +08:00
store feat(connection): add device verification status feedback for collaborators 2026-02-05 10:44:15 +08:00
ui refactor(ui,hooks): extract shared ChatView and DevicePairing to packages 2026-02-05 15:28:44 +08:00