mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-25 12:05:06 +02:00
- Add MessageSource type to track where user messages originate (local, gateway, channel) - Broadcast inbound messages from all channels to local Desktop UI via Hub.onInboundMessage() - Persist source field in JSONL session storage so it survives page refresh - Display source icon (Monitor/Smartphone/Send) with tooltip for non-local user messages Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@multica/store
Zustand state management for Multica apps.
Usage
// From barrel
import { useHubStore, useMessagesStore, useGatewayStore } from '@multica/store'
// Per-file subpath import
import { useGatewayStore } from '@multica/store/gateway'
import { useHubStore } from '@multica/store/hub'
import { useMessagesStore } from '@multica/store/messages'
import { useHubInit } from '@multica/store/hub-init'
import { useDeviceId } from '@multica/store/device-id'