@deepseek-ai/dsh-storage-sqlite 0.1.2-alpha.2 → 0.1.2-alpha.3
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 +2 -2
- package/README.md +2 -2
- package/README.zh.md +2 -2
- package/package.json +6 -6
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
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
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 243c4bb93e50e81c417634645b611484ca65430e
|
|
6
|
+
README.zh.md: ea7e886332e8b7663f1b381991ee1e6c7f09a6e7
|
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ The backend is a document-per-row layout over one `node:sqlite` connection, desi
|
|
|
75
75
|
|
|
76
76
|
### Open sequence
|
|
77
77
|
|
|
78
|
-
Opening the database
|
|
78
|
+
Opening the database creates the parent as `0o700`, exclusively creates a missing file as `0o600`, applies `PRAGMA foreign_keys = ON` and the journal mode, checks `user_version`, creates the `units` and `unit_globals` metadata tables, and stamps fresh databases last so a failure leaves the medium unstamped.
|
|
79
79
|
|
|
80
80
|
### Source map
|
|
81
81
|
|
|
@@ -129,7 +129,7 @@ These limits define when this backend is a poor fit or needs special operational
|
|
|
129
129
|
- **Synchronous driver blocks the event loop** — each write is a synchronous `DatabaseSync` call; the block lasts a single statement, which is acceptable at domain-data scale.
|
|
130
130
|
- **No busy-wait or retry policy** — a competing connection holding a write lock rejects the operation immediately instead of waiting; the domain layer's write chain serializes writes within one process, and cross-process coordination is out of scope.
|
|
131
131
|
- **Only the current physical layout version opens** — any other stamped `user_version` is rejected rather than migrated (pre-release stance).
|
|
132
|
-
- **Open sequence duplicated
|
|
132
|
+
- **Open sequence duplicated with the query provider** — `openDatabase` and `session-query-sqlite` both enforce SQLite file ownership, but each package owns a distinct application identity and schema; no shared medium helper couples them.
|
|
133
133
|
|
|
134
134
|
<a id="dev-note"></a>
|
|
135
135
|
### Dev Note
|
package/README.zh.md
CHANGED
|
@@ -75,7 +75,7 @@ kind: "package-reference"
|
|
|
75
75
|
|
|
76
76
|
### 打开顺序
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
打开数据库时会以 `0o700` 创建父目录、以 `0o600` 独占创建缺失文件、应用 `PRAGMA foreign_keys = ON` 与 journal mode、检查 `user_version`、创建 `units` 与 `unit_globals` 元数据表,并在最后给全新数据库盖戳,让失败留下未盖戳的介质。
|
|
79
79
|
|
|
80
80
|
### 源码地图
|
|
81
81
|
|
|
@@ -129,7 +129,7 @@ kind: "package-reference"
|
|
|
129
129
|
- **同步驱动阻塞事件循环**——每次写入都是一次同步 `DatabaseSync` 调用;阻塞只持续一条语句,在领域数据规模下可以接受。
|
|
130
130
|
- **没有忙等待或重试策略**——持有写锁的竞争连接会立即拒绝操作,而不是等待;领域层的写入链在单进程内串行化写入,跨进程协调属于范围外。
|
|
131
131
|
- **只打开当前的物理布局版本**——任何其他已标记的 `user_version` 都会被拒绝而不是迁移(预发布立场)。
|
|
132
|
-
-
|
|
132
|
+
- **打开顺序与 query provider 重复**——`openDatabase` 与 `session-query-sqlite` 都强制执行 SQLite 文件 ownership,但两个 package 分别拥有不同的 application identity 与 schema;没有共享 medium helper 将其耦合。
|
|
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.2-alpha.
|
|
4
|
+
"version": "0.1.2-alpha.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.
|
|
36
|
-
"@deepseek-ai/dsh-storage": "^0.1.2-alpha.
|
|
35
|
+
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
|
|
36
|
+
"@deepseek-ai/dsh-storage": "^0.1.2-alpha.3",
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.
|
|
44
|
-
"@deepseek-ai/
|
|
45
|
-
"@deepseek-ai/
|
|
43
|
+
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
|
|
44
|
+
"@deepseek-ai/dsh-storage": "^0.1.2-alpha.3",
|
|
45
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
46
46
|
}
|
|
47
47
|
}
|