@deepseek-ai/dsh-storage-sqlite 0.0.1-rc.1 → 0.0.1-rc.5
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 +3 -3
- package/package.json +8 -8
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: 48aae14aa8613886d69652c39194878c190259cf
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: d25591ac67a96bce2ea74b2686e2fbb8375af959
|
package/README.zh.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 中文
|
|
4
4
|
|
|
5
|
-
[存储中心](../storage/README.md)的 SQLite 后端:注册为后端 `sqlite
|
|
5
|
+
[存储中心](../storage/README.md)的 SQLite 后端:注册为后端 `sqlite`,通过一个数据库提供 `kv` facet;该数据库由 `node:sqlite` 操作,可以是单个文件,也可以是 `:memory:`。设计与取舍见[领域 KV 存储 Agent Note](../../../.agents/notes/proposed/architecture/2026-07-24-domain-kv-storage-and-workspace.zh.md)。
|
|
6
6
|
|
|
7
7
|
## 存储模型
|
|
8
8
|
|
|
9
9
|
每行一个文档:每个单元表都会成为一个物理 STRICT 表 `"u_<unit>_<table>" (key TEXT PRIMARY KEY, value TEXT)`,其中 `value` 是记录的 JSON 文本,因此一个 key 只更新一行(高频变更领域路由到这里而非 JSON 后端的原因)。单元标识位于两个元数据表中:`units` 在单元首次打开时标记其格式版本,描述符不同时以 `version-mismatch` 拒绝;`unit_globals` 保存每个单元的全局单例行。物理布局版本位于 `PRAGMA user_version`;其他任何标记值都会被拒绝(未发布格式,不迁移)。单元名和表名在进入 DDL 之前依据中心的 `UNIT_NAME_RE` 进行验证,因此不会把外部输入插值到 SQL 标识符中。
|
|
10
10
|
|
|
11
|
-
每个写入原语都是一条预处理语句:SQLite 的逐语句原子性无需显式事务即可满足 KV 约定,写入顺序仍由调用方负责(领域层写入链)。缺失目录和数据库文件会以仅所有者可访问的权限创建(`0o700`/`0o600
|
|
11
|
+
每个写入原语都是一条预处理语句:SQLite 的逐语句原子性无需显式事务即可满足 KV 约定,写入顺序仍由调用方负责(领域层写入链)。缺失目录和数据库文件会以仅所有者可访问的权限创建(`0o700`/`0o600`),与会话持久化 SQLite 后端一致。
|
|
12
12
|
|
|
13
13
|
## 配置(schemastery)
|
|
14
14
|
|
|
@@ -40,4 +40,4 @@ interface Config {
|
|
|
40
40
|
- **`DatabaseSync` 是同步的**:每次写入都会在单条语句执行期间阻塞事件循环;在领域数据规模下可以接受。
|
|
41
41
|
- **没有忙等待或重试策略**:另一个连接持有写事务时,该操作会立即被拒绝;没有多进程写入保护。
|
|
42
42
|
- **只打开当前的 `STORAGE_SQLITE_SCHEMA_VERSION`**:其他任何已标记版本都会被拒绝而不是迁移(预发布立场)。
|
|
43
|
-
- **`openDatabase`
|
|
43
|
+
- **`openDatabase` 重复了会话持久化 SQLite 的打开顺序**:提取到共享介质层的工作暂缓至计划的会话后端迁移(见 Agent Note 的复用审计)。
|
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.0.1-rc.
|
|
4
|
+
"version": "0.0.1-rc.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "restricted"
|
|
7
7
|
},
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "BSD-3-Clause",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.
|
|
36
|
-
"@deepseek-ai/
|
|
37
|
-
"@deepseek-ai/
|
|
35
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
|
|
36
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.4",
|
|
37
|
+
"@deepseek-ai/dsh-storage": "^0.0.1-rc.5"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@deepseek-ai/schemastery": "^3.18.1-rc.
|
|
40
|
+
"@deepseek-ai/schemastery": "^3.18.1-rc.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.
|
|
44
|
-
"@deepseek-ai/dsh-storage": "^0.0.1-rc.
|
|
45
|
-
"@deepseek-ai/cordis": "^4.0.1-rc.
|
|
43
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
|
|
44
|
+
"@deepseek-ai/dsh-storage": "^0.0.1-rc.5",
|
|
45
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.4"
|
|
46
46
|
}
|
|
47
47
|
}
|