sage-mem 2.15.8 → 2.15.9

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 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.15.8`** — 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
15
+ **Current release: `2.15.9`** — 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.
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.15.8`** —— 顶部 npm 徽章是动态权威。**契约基线:`1.0.0`** —— 第一个稳定版,公开承诺、能力边界与「明确做不到」的清单冻结在
17
+ **当前发布版本:`2.15.9`** —— 顶部 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 是最直接的反馈。
@@ -265,8 +265,12 @@ const archiveCandidatesResultSchema = z.object({
265
265
  // 上锁 / 解锁的结果
266
266
  const lockResultSchema = z.object({
267
267
  'ok': z.boolean().readonly(),
268
- 'file': z.string().readonly(),
269
- 'locked': z.boolean().readonly(),
268
+ // 2.15.9(M4):失败分支(锁表不可读)只回 {ok:false, code, error} —— 这两个字段必须是可选的,
269
+ // 否则「锁表坏了」时整条调用被判坏,界面连那句原因都拿不到。
270
+ 'file': z.string().readonly().optional(),
271
+ 'locked': z.boolean().readonly().optional(),
272
+ 'code': z.string().readonly().optional(),
273
+ 'error': z.string().readonly().optional(),
270
274
  }).readonly()
271
275
 
272
276
  // 设置:limits = 已生效值,pendingLimits = 待生效值(settings.json > 环境变量 > 默认);两个都给,界面才说得清「改了要重启」。
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.15.8",
4
+ "version": "2.15.9",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "icon": "./icon.png",