sage-mem 2.10.2 → 2.11.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 +10 -1
- package/README.md +10 -1
- package/lib/client.js +1127 -0
- package/lib/index.js +9 -4
- package/lib/memory/experimental.js +11 -2
- package/lib/typert.host.js +3 -3
- package/package.json +1 -1
- package/skills/sage-mem/SKILL.md +10 -0
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
|
+
**Current release: `2.11.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.
|
|
@@ -463,6 +463,15 @@ The two things are moved **differently**, spelled out:
|
|
|
463
463
|
|
|
464
464
|
⚠️ **The premise is that the shape matches.** The four-type division and the frontmatter are sage-mem's own conventions: if your memories in CC were already "one Markdown file per memory + frontmatter" (which is what ours were at the time), just copy them over; **if they were not** (if they were all piled into a single `CLAUDE.md`, say), you need to organize them first — and that job can perfectly well be handed to an agent: have it read the old material and lay it out as files under the four types.
|
|
465
465
|
|
|
466
|
+
## To-do Board (experimental · since 2.11.0; ticking means moving since 2.11.1)
|
|
467
|
+
|
|
468
|
+
`project_session-state.md` in the memory directory has always been a to-do list you keep for yourself: injected into every session, but you still have to open the file to see what is left. 2.11.0 puts it in the **right sidebar**: Settings → Memory management → Lab → enable "To-do board", and the sidebar's Start page gains a card that opens a tab.
|
|
469
|
+
|
|
470
|
+
- **Ticking = moving**: a finished item is removed from its group and appended to the "Done, pending deletion" block (created at the end of the file on first use); un-ticking moves it back to the end of its original group. "Clear all" is what actually deletes rows.
|
|
471
|
+
- **Edit it**: add an item at the end of a group, edit one in place, undo / redo two steps.
|
|
472
|
+
- **The file is still the only truth**: the board does line-level surgery only; edit the file with any tool and the board follows within 4 seconds.
|
|
473
|
+
- **Hot**: flipping the switch takes effect immediately, no restart (unlike MMR).
|
|
474
|
+
- **Off by default**; no drag-and-drop ordering, no automatic `session-log` archiving — moving those pending-deletion rows into the log is the agent's job at wrap-up. Details in `docs/todo-board.md`.
|
|
466
475
|
## Configuration Reference
|
|
467
476
|
|
|
468
477
|
### Environment Variables
|
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.
|
|
17
|
+
**当前发布版本:`2.11.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 是最直接的反馈。
|
|
@@ -463,6 +463,15 @@ sage-mem 给记忆目录的写入加了**版本守卫**:写入前记下当前
|
|
|
463
463
|
|
|
464
464
|
⚠️ **前提是形状对得上。** 四类划分与 frontmatter 是 sage-mem 自己的约定:如果你在 CC 里的记忆本来就是「一条一个 Markdown + frontmatter」(我们当时是这种),拷过来即可;**如果不是**(比如都堆在一个 `CLAUDE.md` 里),需要先整理一遍 —— 这活儿正好可以交给一个 agent 做:让它读旧语料,按四类落成文件。
|
|
465
465
|
|
|
466
|
+
## 待办清单看板(实验性 · 2.11.0 起,2.11.1 勾选改「搬家」)
|
|
467
|
+
|
|
468
|
+
记忆目录里的 `project_session-state.md` 一直是「给自己看的代办清单」——每场会话都会注入,人却要打开文件才知道还剩什么。2.11.0 把它搬进**右侧栏**:设置 → 记忆管理 → 实验性 → 打开「待办清单看板」,右侧栏「开始」页就会多一张卡片,点开是一个页签。
|
|
469
|
+
|
|
470
|
+
- **勾选 = 搬家**:完成项从原组删掉、搬进「已完成,待删除」块(文件里还没这一块就自动在末尾建),取消完成再搬回原组末尾;「清空全部」才真删。
|
|
471
|
+
- **改得动**:每组底部加一条、点卡片行内改一句;撤销 / 重做各两步。
|
|
472
|
+
- **文件仍是唯一真相**:看板只做行级手术,其余字节原样;你用任何编辑器改它,看板 4 秒内跟上。
|
|
473
|
+
- **热的**:拨开关立刻生效,不用重启(与 MMR 不同)。
|
|
474
|
+
- **默认关闭**;不做拖拽排序、不代写 `session-log` 留档 —— 把「待删除」搬进流水是 agent 收尾时的活。细节见 `docs/todo-board.md`。
|
|
466
475
|
## 配置参考
|
|
467
476
|
|
|
468
477
|
### 环境变量
|