@deepseek-ai/dsh-client-store 0.1.5-rc.2 → 0.1.6-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.i18n.yaml +1 -1
- package/README.zh.md +6 -6
- package/package.json +1 -1
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/client/store/README.md
|
|
5
5
|
README.md: 0d4525ab6eb2a58bdea89673b96f9aaf5e0e2cf8
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 1d5548ab380458d1c20ef6dad82ae232ec1f65d3
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "
|
|
2
|
+
description: "具有显式快照、订阅与生命周期所有权的浏览器可观察状态存储。"
|
|
3
3
|
kind: "package-library"
|
|
4
4
|
---
|
|
5
5
|
# @deepseek-ai/dsh-client-store
|
|
@@ -8,7 +8,7 @@ kind: "package-library"
|
|
|
8
8
|
|
|
9
9
|
## 概述
|
|
10
10
|
|
|
11
|
-
供 Client
|
|
11
|
+
供 Client 控制器与 renderer 适配器共用的不依赖 React 的 observable 和快照存储基础原语。本包负责同步与 animation-frame 发布、基于 Immer 的更新、浅比较和可选的浏览器持久化;React 钩子的构造仍属于 `@deepseek-ai/dsh-client-ui-renderer`。当 Client 状态必须在不依赖 React 的情况下发布稳定快照时,请使用它。
|
|
12
12
|
|
|
13
13
|
## 目录
|
|
14
14
|
|
|
@@ -21,17 +21,17 @@ kind: "package-library"
|
|
|
21
21
|
<a id="model-experience"></a>
|
|
22
22
|
## 模型体验
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
无,因为本包提供浏览器侧状态基础原语,不注册任何面向模型的内容。
|
|
25
25
|
|
|
26
26
|
#### KV Cache 影响
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
无;这些存储既不组装也不发送模型请求。
|
|
29
29
|
|
|
30
30
|
## 已知限制与暂缓事项
|
|
31
31
|
|
|
32
32
|
<a id="known-limitations-and-deferred-work"></a>
|
|
33
33
|
|
|
34
|
-
-
|
|
34
|
+
- **持久化仅限浏览器本地**——持久化存储使用 `localStorage` 中的 JSON;非浏览器运行时会禁用持久化,本包也不提供跨设备同步。
|
|
35
35
|
- **Web 壳构建输入**——静态 ESM 为 Vite 保留第三方导入;独立消费方自行提供开发依赖([依赖规则](../AGENTS.md#dependency-declaration))。
|
|
36
36
|
|
|
37
37
|
|
|
@@ -45,4 +45,4 @@ kind: "package-library"
|
|
|
45
45
|
|
|
46
46
|
</details>
|
|
47
47
|
|
|
48
|
-
**运行时不变式:**
|
|
48
|
+
**运行时不变式:** 不发布伴生入口。本包只导出库引擎,不创建进程全局状态;每个存储实例由其所属测试覆盖。
|
package/package.json
CHANGED