# Conflicts: # packages/client/hmr/package.json # packages/client/script-realm-iframe/package.json # packages/client/ui-jobs/package.json # packages/client/ui-session-panel/package.json # packages/experimental/action-cards/package.json # packages/experimental/client-ui-forge/package.json # packages/experimental/cua-bundle/package.json # packages/experimental/forge-gitlab/package.json # packages/ptc-runtime/ptc-runtime-node/package.json # packages/session/tool-working-directory/package.json # packages/util/atomic-write/package.json
description, kind
| description | kind |
|---|---|
| Observable browser state stores with explicit snapshots, subscriptions, and lifecycle ownership. | package-library |
@deepseek-ai/dsh-client-store
English | 中文
Summary
React-free observable and snapshot-store primitives shared by Client controllers and renderer adapters. The package owns synchronous and animation-frame publication, Immer-backed updates, shallow equality, and optional browser persistence; React hook construction remains in @deepseek-ai/dsh-client-ui-renderer. Use it when Client state must publish stable snapshots without depending on React.
Table of Contents
Model Experience
None, as this package provides browser-side state primitives and registers nothing model-facing.
KV Cache effect
None; the stores neither assemble nor send model requests.
Known Limitations and Deferred Work
- Persistence is browser-local — persisted stores use JSON in
localStorage; non-browser runtimes disable persistence, and the package provides no cross-device synchronization. - Web-shell build input — the static ESM retains third-party imports for Vite; independent consumers supply its development dependencies (dependency rules). The build defaults to production;
NODE_ENV=developmentenables development checks. Wholesaleset()freezes snapshots only outside production;update()retains Immer's automatic freezing.
Dev Note
Working context for maintainers — click to expand
None.