mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-05 09:30:05 +02:00
- Wrap maybeCompact() in try/catch to ensure compaction_end always fires - Widen multicaListeners type to match subscribeAll() callback signature - Import CompactionEndEvent from SDK instead of inline type casts - Add doc comment explaining reason field type difference (agent vs SDK) 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'