sage-mem 2.24.0 → 2.24.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 +12 -5
- package/README.md +12 -5
- package/package.json +1 -1
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.24.
|
|
15
|
+
**Current release: `2.24.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.
|
|
@@ -774,10 +774,17 @@ Or manually delete the `sage-mem` dependency from the profile's `package.json` a
|
|
|
774
774
|
|
|
775
775
|
## Credits
|
|
776
776
|
|
|
777
|
-
- [@bjvgukv25842-cmyk](https://github.com/bjvgukv25842-cmyk) (LITMUS) — the earliest Web memory management UI
|
|
778
|
-
- [@miztizm](https://github.com/miztizm) (mjztjzm) — i18n for the memory panel: the dictionary shard
|
|
779
|
-
- [@DDDMUC](https://github.com/DDDMUC) — three
|
|
780
|
-
-
|
|
777
|
+
- [@bjvgukv25842-cmyk](https://github.com/bjvgukv25842-cmyk) (LITMUS) — the earliest Web memory management UI: pagination, type badges, expandable bodies, two-step delete confirmation, and the `get_observations` read path. **No build tooling was added to the repository** — it was hand-written to match the host's artifact format, and that trade-off still shapes the project.
|
|
778
|
+
- [@miztizm](https://github.com/miztizm) (mjztjzm) — i18n for the memory panel: the dictionary shard plus the `ctx.locale` wiring, so three screens follow the harness language (1.9.0). It became the template for every later i18n batch.
|
|
779
|
+
- [@DDDMUC](https://github.com/DDDMUC) — three fixes, each closing a failure that looked random:
|
|
780
|
+
- **`interpolate: false` on the recall context** (2.4.2): a memory body containing double braces made the host throw `malformed prompt variable reference` while assembling the prompt, so the turn failed before the model even started — it looked like "sometimes it chats, sometimes any question fails", depending on which memories that turn happened to recall.
|
|
781
|
+
- **A short-circuit gate in the recall chain** (2.4.3): `system-prompt/assemble` fires on every step, and the old implementation ran the whole "scan → summary scoring → body BM25 → signature" chain before deduplicating. The decision inputs are all available before scoring.
|
|
782
|
+
- **The "open memory folder" entry** (2.4.0): no more hunting for the path in a file manager.
|
|
783
|
+
- **[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)** — not merely the host; this plugin's shape was forced by several of its designs:
|
|
784
|
+
- **Everything is a plugin, plus Cordis's service / event / fiber model** — file-based memory therefore needs no worker, port, or database;
|
|
785
|
+
- **`ctx.systemPrompt.section` and `agent/pre-step`** — injection and the pre-compaction reminder land on the right seams, instead of a prompt line saying "remember to read the files";
|
|
786
|
+
- **The typert remote protocol** — the type-safe channel between panel and host; the delete guard in 2.21.0 and the rollback guard in 2.22.0 both rely on it to carry "the version you confirmed" over to the host side;
|
|
787
|
+
- **The official docs (AGENTS.md / cordis-api / persistence)** — plugin authors can verify for themselves instead of guessing.
|
|
781
788
|
|
|
782
789
|
This plugin is alive today because of more than one person; the list above follows the order their code entered the repository. If I missed someone, open an issue and tell me off — I will add them.
|
|
783
790
|
|
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.24.
|
|
17
|
+
**当前发布版本:`2.24.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 是最直接的反馈。
|
|
@@ -779,10 +779,17 @@ dsh plugin --profile web remove sage-mem
|
|
|
779
779
|
|
|
780
780
|
## 致谢
|
|
781
781
|
|
|
782
|
-
- [@bjvgukv25842-cmyk](https://github.com/bjvgukv25842-cmyk)(LITMUS)—— 最早的 Web
|
|
783
|
-
- [@miztizm](https://github.com/miztizm)(mjztjzm)—— 记忆管理面板的 i18n
|
|
784
|
-
- [@DDDMUC](https://github.com/DDDMUC)(暮迟)——
|
|
785
|
-
-
|
|
782
|
+
- [@bjvgukv25842-cmyk](https://github.com/bjvgukv25842-cmyk)(LITMUS)—— 最早的 Web 记忆管理界面:分页、类型徽章、展开正文、两步确认删除,以及 `get_observations` 这条读取通道。**没给仓库引入任何构建工具**,照着宿主产物的格式手写 —— 这个取舍一直影响到现在。
|
|
783
|
+
- [@miztizm](https://github.com/miztizm)(mjztjzm)—— 记忆管理面板的 i18n:字典分片 + `ctx.locale` 接线,三屏跟随宿主语言(1.9.0)。它是这个项目 i18n 的样板,后面几批照它的形状做。
|
|
784
|
+
- [@DDDMUC](https://github.com/DDDMUC)(暮迟)—— 三处,每处都堵掉一个「看起来像随机」的故障:
|
|
785
|
+
- **注入段声明 `interpolate: false`**(2.4.2):记忆正文里出现双大括号,宿主组装 prompt 时抛 `malformed prompt variable reference`,模型还没开始跑整轮就失败 —— 表现成「有时能聊、有时一提问就挂」,取决于这一轮召回到了哪些记忆。
|
|
786
|
+
- **注入链的短路闸门**(2.4.3):`system-prompt/assemble` 每个 step 都派发,旧实现每一步都把「扫描 → 摘要打分 → 正文 BM25 → 算签名」整条跑完再判重;而判据其实在打分之前就全拿得到。
|
|
787
|
+
- **「打开记忆文件夹」入口**(2.4.0):记忆目录不必再去文件管理器里翻路径。
|
|
788
|
+
- **[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)** —— 不只是宿主;这个插件的形态是被它的几处设计逼出来的:
|
|
789
|
+
- **一切皆插件 + Cordis 的 service / event / fiber** —— 文件式记忆因此不必自带 worker、端口或数据库;
|
|
790
|
+
- **`ctx.systemPrompt.section` 与 `agent/pre-step`** —— 注入与压缩前提醒能挂在正确的接缝上,而不是靠 prompt 里写「记得读文件」;
|
|
791
|
+
- **typert 远程协议** —— 面板与宿主之间那条类型安全的通道;2.21.0 的删除守卫、2.22.0 的回滚守卫都靠它把「你确认过的那一版」带到宿主侧;
|
|
792
|
+
- **官方文档(AGENTS.md / cordis-api / persistence)** —— 让插件作者能自己查证,而不是猜。
|
|
786
793
|
|
|
787
794
|
这个插件活到今天,靠的不只是我一个人。上面按代码进入仓库的顺序排。漏了谁的话开个 issue 骂我,我补上。
|
|
788
795
|
|
package/package.json
CHANGED