@deepseek-ai/dsh-storage-sqlite 0.1.5-rc.2 → 0.1.6-alpha.2
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 +4 -4
- package/package.json +3 -3
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/storage/storage-sqlite/README.md
|
|
5
5
|
README.md: 4744fa2a453e030ef2035e35040b158c703c5f77
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: b8357bfc4e4ce5a45a789f41c9be8b4ba09036ae
|
package/README.zh.md
CHANGED
|
@@ -54,7 +54,7 @@ kind: "package-reference"
|
|
|
54
54
|
|
|
55
55
|
### 可观察行为
|
|
56
56
|
|
|
57
|
-
缺失的目录与数据库文件会以仅所有者可访问的权限创建(`0o700`/`0o600`);已有数据库保持其既有模式。已存格式版本与描述符不同的单元拒绝 `version-mismatch`,盖有非当前物理布局版本的数据库会直接拒绝——不做迁移,预发布立场。失败携带稳定的 `StorageError`
|
|
57
|
+
缺失的目录与数据库文件会以仅所有者可访问的权限创建(`0o700`/`0o600`);已有数据库保持其既有模式。已存格式版本与描述符不同的单元拒绝 `version-mismatch`,盖有非当前物理布局版本的数据库会直接拒绝——不做迁移,预发布立场。失败携带稳定的 `StorageError` 代码,写入操作完成后即已持久化。
|
|
58
58
|
|
|
59
59
|
-----
|
|
60
60
|
|
|
@@ -84,7 +84,7 @@ kind: "package-reference"
|
|
|
84
84
|
| [`src/index.ts`](src/index.ts) | 插件入口:后端注册、`path`/`journalMode` 配置、单元表 |
|
|
85
85
|
| [`src/schema.ts`](src/schema.ts) | 打开顺序、物理布局版本、元数据表、记录表命名 |
|
|
86
86
|
| [`src/unit.ts`](src/unit.ts) | 一个已打开单元:预处理语句、JSON 值解析、关闭 |
|
|
87
|
-
| — |
|
|
87
|
+
| — | 不发布运行时不变式伴生入口;schema 版本与单元版本的一致性在打开时检查,不一致时会在单元创建前拒绝打开;持久性需要由共享 KV 符合性测试套件中的后端往返测试验证;本包不暴露可持续观察的进程内关系。 |
|
|
88
88
|
|
|
89
89
|
</details>
|
|
90
90
|
|
|
@@ -127,9 +127,9 @@ kind: "package-reference"
|
|
|
127
127
|
这些限制说明本后端何时不合适,或何时需要特别的运维注意。它们是当前包约束,不是任务积压。
|
|
128
128
|
|
|
129
129
|
- **同步驱动阻塞事件循环**——每次写入都是一次同步 `DatabaseSync` 调用;阻塞只持续一条语句,在领域数据规模下可以接受。
|
|
130
|
-
-
|
|
130
|
+
- **没有忙等待或重试策略**——持有写锁的竞争连接会立即拒绝操作,而不是等待;领域层的写入链在单进程内串行化写入,跨进程协调不在范围内。
|
|
131
131
|
- **只打开当前的物理布局版本**——任何其他已标记的 `user_version` 都会被拒绝而不是迁移(预发布立场)。
|
|
132
|
-
-
|
|
132
|
+
- **打开顺序与查询提供方重复**——`openDatabase` 与 `session-query-sqlite` 都强制执行 SQLite 文件所有权约束,但两个包各自拥有不同的应用标识与 schema;没有共享介质辅助模块将二者耦合。
|
|
133
133
|
|
|
134
134
|
<a id="dev-note"></a>
|
|
135
135
|
### 开发备注
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-storage-sqlite",
|
|
3
3
|
"description": "SQLite storage backend (kv facet) for the DeepSeek Harness storage hub",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@deepseek-ai/dsh-storage": "^0.1.
|
|
30
|
+
"@deepseek-ai/dsh-storage": "^0.1.6-alpha.2",
|
|
31
31
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@deepseek-ai/dsh-storage": "^0.1.
|
|
37
|
+
"@deepseek-ai/dsh-storage": "^0.1.6-alpha.2",
|
|
38
38
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
39
39
|
}
|
|
40
40
|
}
|