After the chat refactoring moved state management to @multica/hooks, the Zustand stores (useConnectionStore, useMessagesStore, useAutoConnect) are no longer imported by any application code. This removes them along with their unused dependencies (zustand, uuid, react). - Delete connection-store.ts, messages.ts, use-auto-connect.ts - Extract Message/ToolStatus types into types.ts (preserves UI imports) - Remove saveConnection/loadConnection/clearConnection from connection.ts - Drop zustand, uuid, react deps from package.json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
@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'