sage-mem 2.19.0 → 2.19.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.en.md +6 -4
- package/README.md +6 -4
- package/package.json +7 -2
package/README.en.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
**Cross-session memory for DeepSeek Harness — plain markdown files, no database, no worker.**
|
|
14
14
|
|
|
15
|
-
**Current release: `2.19.
|
|
15
|
+
**Current release: `2.19.1`** — the npm badge above is the dynamic source of truth. **Contract baseline: `1.0.0`** — the first stable release, whose public commitments, the capability boundaries and the list of things it explicitly cannot do are frozen in the
|
|
16
16
|
[frozen contract](https://github.com/gezi-wen/sage-mem/blob/main/docs/1.0.0-contract.md).
|
|
17
17
|
|
|
18
18
|
If it is useful to you, a Star is the most direct feedback.
|
|
@@ -712,12 +712,14 @@ Module boundaries (since 1.2.0):
|
|
|
712
712
|
```bash
|
|
713
713
|
git clone https://github.com/gezi-wen/sage-mem
|
|
714
714
|
cd sage-mem
|
|
715
|
-
npm
|
|
716
|
-
npm test
|
|
715
|
+
node scripts/install-dev.mjs # install from package-lock.json (npm ci)
|
|
716
|
+
npm test # all assertions (including the three guards)
|
|
717
717
|
```
|
|
718
718
|
|
|
719
719
|
- The assertion scripts depend only on `node:` built-in modules and **introduce no test framework**; each script hand-writes `ok()` and ends with a summary line.
|
|
720
|
-
-
|
|
720
|
+
- **There is exactly one install entry point**: `scripts/install-dev.mjs`. CI and the publish workflow run the same command, so "the tree you installed locally" and "the tree CI tested" are the same tree. `npm ci` **recreates `node_modules`** — that is where its reproducibility comes from.
|
|
721
|
+
- **`package-lock.json` is the authoritative dependency tree**; it is committed and reviewed like code. `package.json` only carries ranges plus the four dsh packages that share instances with the host (declared in **both** `devDependencies` and `peerDependencies`, which is the two-sided mirroring the official docs ask for). Do not hand-write `npm install <pkg>@<version>` — that is how a second source of truth appears.
|
|
722
|
+
- **Refresh the lock only when you meant to change dependencies**: `node scripts/install-dev.mjs --refresh-lock` (rewrites the lock only — it does not touch `node_modules` and does not edit `package.json`), and commit the lock diff with the change.
|
|
721
723
|
- **Three guards** watch over "whether the tests themselves hold up": `suite-registry-test.mjs` (is there a suite that was written but never runs), `contract-binding-test.mjs` (is there a commitment that was made but never verified), `doc-consistency-test.mjs` (do the two documents characterize things identically line by line).
|
|
722
724
|
- CI runs twice on `ubuntu-latest` (the second time with `TZ=UTC`) — a case-sensitive volume catches defects that are invisible on Windows.
|
|
723
725
|
- When you change **user-visible behaviour**, please also update the corresponding line in the [contract](https://github.com/gezi-wen/sage-mem/blob/main/docs/1.0.0-contract.md) and the CHANGELOG; a commitment you cannot write an assertion for can only be marked "best-effort".
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
> File-based cross-session memory for DeepSeek Harness — every memory is a plain markdown file you can open, edit and delete. No database, no worker, no port.
|
|
16
16
|
|
|
17
|
-
**当前发布版本:`2.19.
|
|
17
|
+
**当前发布版本:`2.19.1`** —— 顶部 npm 徽章是动态权威。**契约基线:`1.0.0`** —— 第一个稳定版,公开承诺、能力边界与「明确做不到」的清单冻结在
|
|
18
18
|
[契约冻结](https://github.com/gezi-wen/sage-mem/blob/main/docs/1.0.0-contract.md)。
|
|
19
19
|
|
|
20
20
|
如果它对你有用,给个 Star 是最直接的反馈。
|
|
@@ -716,12 +716,14 @@ memory/ 目录(markdown 文件,4 类)
|
|
|
716
716
|
```bash
|
|
717
717
|
git clone https://github.com/gezi-wen/sage-mem
|
|
718
718
|
cd sage-mem
|
|
719
|
-
npm
|
|
720
|
-
npm test
|
|
719
|
+
node scripts/install-dev.mjs # 按 package-lock.json 安装(npm ci)
|
|
720
|
+
npm test # 全部断言(含三条守卫)
|
|
721
721
|
```
|
|
722
722
|
|
|
723
723
|
- 断言脚本只依赖 `node:` 内置模块,**不引测试框架**,各脚本手写 `ok()` 并以汇总行收尾。
|
|
724
|
-
-
|
|
724
|
+
- **安装只有一个入口**:`scripts/install-dev.mjs`。CI 与发布用的是同一条命令,所以「本地装出来的树」和「CI 测出来的树」是同一棵。`npm ci` 会**重建 `node_modules`**,这是它可复现的来源。
|
|
725
|
+
- **`package-lock.json` 是依赖树的权威**,它入库、跟着评审走;`package.json` 里只写范围与四个与宿主共享实例的 dsh 包的精确版本(同时声明在 `devDependencies` 与 `peerDependencies`,官方要求的两侧镜像)。不要手写 `npm install <包>@<版本>` —— 那样又会出现两套真相。
|
|
726
|
+
- **有意改依赖时才刷新锁**:`node scripts/install-dev.mjs --refresh-lock`(只重写 lock,不动 `node_modules`、不改 `package.json`),并把 lock 的 diff 一起提交。
|
|
725
727
|
- **三条守卫**盯的是「测试本身站不站得住」:`suite-registry-test.mjs`(有没有写了不跑的套件)、
|
|
726
728
|
`contract-binding-test.mjs`(有没有说了不验的承诺)、`doc-consistency-test.mjs`(两份文档的定性是否逐行一致)。
|
|
727
729
|
- CI 在 `ubuntu-latest` 上跑两遍(第二遍 `TZ=UTC`)—— 区分大小写的卷能逮到 Windows 上看不见的缺陷。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sage-mem",
|
|
3
3
|
"description": "Cross-session memory for DeepSeek Harness — plain markdown files, no database, no worker.",
|
|
4
|
-
"version": "2.19.
|
|
4
|
+
"version": "2.19.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"icon": "./icon.png",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"test": "node test/run.mjs",
|
|
23
|
+
"install:dev": "node scripts/install-dev.mjs",
|
|
23
24
|
"build:client": "node scripts/build-client.mjs",
|
|
24
25
|
"images": "node scripts/make-readme-images.mjs"
|
|
25
26
|
},
|
|
@@ -43,13 +44,17 @@
|
|
|
43
44
|
"zod": "^4.4.3"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
47
|
+
"@deepseek-ai/cordis": "4.0.4",
|
|
48
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
|
|
49
|
+
"@deepseek-ai/dsh-skill-filesystem": "0.2.0-rc.1",
|
|
50
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.1",
|
|
46
51
|
"react": "^18.0.0"
|
|
47
52
|
},
|
|
48
53
|
"peerDependencies": {
|
|
49
54
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
50
55
|
"@deepseek-ai/dsh-typert-protocol": ">=0.1.2-rc.1",
|
|
51
56
|
"@deepseek-ai/dsh-client-locale": ">=0.1.2-rc.1",
|
|
52
|
-
"@deepseek-ai/dsh-skill-filesystem": "
|
|
57
|
+
"@deepseek-ai/dsh-skill-filesystem": ">=0.1.2-rc.1",
|
|
53
58
|
"react": "^18.0.0"
|
|
54
59
|
},
|
|
55
60
|
"repository": {
|