sage-mem 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/README.md +7 -2
  2. package/package.json +89 -87
package/README.md CHANGED
@@ -37,6 +37,10 @@ sage-mem 换一条路:**每条记忆就是一个 Markdown 文件**。用编辑
37
37
  - **类型与标签筛选**(v0.6)——文件列表顶部一排 chip,按四类 + 自定义标签筛;标签从全库自动聚合计数,与搜索框是 AND 关系
38
38
  - **记忆星图**(v0.4 起,v0.6 重做)——把记忆画成星空:按类型着色、按体积分级、按新鲜度分亮度,还支持时间线与「诞生回放」。渲染是**按需重绘**,画面静止时不发起任何绘制
39
39
 
40
+ ![记忆星图](https://raw.githubusercontent.com/gezi-wen/sage-mem/main/docs/starmap.png)
41
+
42
+ *记忆星图:每颗星是一条记忆 —— 颜色对应类型、大小对应体积、亮度对应新鲜度,底部是四类计数与库总体积。全部 94 条记忆的文件名不会出现在图里,星图只画关系与分布。*
43
+
40
44
  ## 快速开始
41
45
 
42
46
  需要 DSH `0.1.2-rc.1` 或更高(见[兼容性](#dsh-兼容性)),Node.js `>= 18`。
@@ -205,7 +209,7 @@ sage-mem 只做三件事,全都在你本机:
205
209
 
206
210
  ## DSH 兼容性
207
211
 
208
- sage-mem 是纯 DSH 插件,在 `package.json` 的 `dsh.compatibility.dshReleases` 里逐版本声明兼容状态:
212
+ sage-mem 是纯 DSH 插件,用 `package.json` 的 **`engines.dsh`** 声明宿主要求:`>=0.1.2-rc.1` —— **单边开区间、不设上界**,所以任何未来的 DSH 版本都不会被这道声明挡住。逐版本核对记录如下:
209
213
 
210
214
  | DSH 版本 | 状态 |
211
215
  | --- | --- |
@@ -218,10 +222,11 @@ sage-mem 是纯 DSH 插件,在 `package.json` 的 `dsh.compatibility.dshReleas
218
222
  | 0.1.7-rc.1 | compatible |
219
223
  | 0.1.7-rc.2 | compatible |
220
224
  | 0.2.0-rc.1 | compatible |
225
+ | 0.2.0-rc.2 | compatible |
221
226
 
222
227
  两点值得说明:
223
228
 
224
- - **同一份构建同时覆盖 `0.1.x` 与 `0.2.x` 两条线。** 自 DSH `0.1.6-alpha.2` 起,TypertCodec 契约从「读 `schema`」改为「读 `create()` 工厂」——仍只写 `schema:` 的插件会在注册阶段直接抛错,把整棵插件树拖垮。自 0.5.2 起每个 codec 同时带 `schema` 与 `create: () => schema`,因此两个时代的 DSH 都能加载。peer 范围也随之放宽为 `^0.1.2-rc.1 || ^0.2.0-rc.1`(已逐字节核对 `dsh-typert-protocol` 与 `dsh-client-locale` 在 `0.1.7-rc.2 → 0.2.0-rc.1` 之间导出符号零增删)
229
+ - **同一份构建同时覆盖 `0.1.x` 与 `0.2.x` 两条线。** 自 DSH `0.1.6-alpha.2` 起,TypertCodec 契约从「读 `schema`」改为「读 `create()` 工厂」——仍只写 `schema:` 的插件会在注册阶段直接抛错,把整棵插件树拖垮。自 0.5.2 起每个 codec 同时带 `schema` 与 `create: () => schema`,因此两个时代的 DSH 都能加载。peer 范围自 0.6.4 起写 `>=0.1.2-rc.1` —— 去掉上界,避免以后某个大版本被这道声明误挡(已逐字节核对 `dsh-typert-protocol` 与 `dsh-client-locale` 在 `0.1.7-rc.2 → 0.2.0-rc.1` 之间导出符号零增删)
225
230
  - **0.5.3 起带一层防御留痕。** `deriveMessages()`(仍是同步)、`system-prompt/assemble` 事件、`context.agent.session` 这条链在升级中都没变;但如果哪天 DSH 把它们改成异步或改了名,插件会在**日志里报警**,而不是像以前那样静默地不再注入记忆
226
231
 
227
232
  ## 卸载
package/package.json CHANGED
@@ -1,87 +1,89 @@
1
- {
2
- "name": "sage-mem",
3
- "description": "File-based memory plugin for DeepSeek Harness (DSH) — cross-session memory in transparent markdown files, with a memory star-map view, type/tag filtering, and an optional dream pass that consolidates memories on demand or on a schedule",
4
- "version": "0.6.3",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "exports": {
8
- ".": "./lib/index.js",
9
- "./client": "./lib/client.js",
10
- "./typert": "./lib/typert.host.js",
11
- "./package.json": "./package.json"
12
- },
13
- "files": [
14
- "lib/",
15
- "cordis.patch.yml",
16
- "NOTICE"
17
- ],
18
- "license": "Apache-2.0",
19
- "engines": {
20
- "node": ">=18"
21
- },
22
- "dsh": {
23
- "bundle": {
24
- "patch": "./cordis.patch.yml"
25
- },
26
- "client": {
27
- "platform": "web",
28
- "inject": [
29
- "@deepseek-ai/dsh-client-locale"
30
- ]
31
- },
32
- "compatibility": {
33
- "dsh": ">=0.1.2-rc.1",
34
- "dshReleases": {
35
- "0.1.2-rc.1": "compatible",
36
- "0.1.3-alpha.1": "compatible",
37
- "0.1.3-alpha.2": "compatible",
38
- "0.1.5-rc.1": "compatible",
39
- "0.1.6-alpha.1": "compatible",
40
- "0.1.6-alpha.2": "compatible",
41
- "0.1.7-rc.1": "compatible",
42
- "0.1.7-rc.2": "compatible",
43
- "0.2.0-rc.1": "compatible"
44
- }
45
- }
46
- },
47
- "dependencies": {
48
- "zod": "^4.4.3"
49
- },
50
- "devDependencies": {
51
- "react": "^18.0.0"
52
- },
53
- "peerDependencies": {
54
- "@deepseek-ai/cordis": "^4.0.2",
55
- "@deepseek-ai/dsh-typert-protocol": "^0.1.2-rc.1 || ^0.2.0-rc.1",
56
- "@deepseek-ai/dsh-client-locale": "^0.1.2-rc.1 || ^0.2.0-rc.1",
57
- "react": "^18.0.0"
58
- },
59
- "repository": {
60
- "type": "git",
61
- "url": "git+https://github.com/gezi-wen/sage-mem.git"
62
- },
63
- "homepage": "https://github.com/gezi-wen/sage-mem#readme",
64
- "bugs": {
65
- "url": "https://github.com/gezi-wen/sage-mem/issues"
66
- },
67
- "keywords": [
68
- "memory",
69
- "ai-memory",
70
- "agent-memory",
71
- "long-term-memory",
72
- "cross-session-memory",
73
- "context-management",
74
- "knowledge-management",
75
- "markdown",
76
- "dsh",
77
- "dsh-plugin",
78
- "deepseek",
79
- "deepseek-harness",
80
- "cordis",
81
- "typert",
82
- "plugin",
83
- "ai-agent",
84
- "agent",
85
- "claude-code"
86
- ]
87
- }
1
+ {
2
+ "name": "sage-mem",
3
+ "description": "File-based memory plugin for DeepSeek Harness (DSH) — cross-session memory in transparent markdown files, with a memory star-map view, type/tag filtering, and an optional dream pass that consolidates memories on demand or on a schedule",
4
+ "version": "0.6.4",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "exports": {
8
+ ".": "./lib/index.js",
9
+ "./client": "./lib/client.js",
10
+ "./typert": "./lib/typert.host.js",
11
+ "./package.json": "./package.json"
12
+ },
13
+ "files": [
14
+ "lib/",
15
+ "cordis.patch.yml",
16
+ "NOTICE"
17
+ ],
18
+ "license": "Apache-2.0",
19
+ "engines": {
20
+ "node": ">=18",
21
+ "dsh": ">=0.1.2-rc.1"
22
+ },
23
+ "dsh": {
24
+ "bundle": {
25
+ "patch": "./cordis.patch.yml"
26
+ },
27
+ "client": {
28
+ "platform": "web",
29
+ "inject": [
30
+ "@deepseek-ai/dsh-client-locale"
31
+ ]
32
+ },
33
+ "compatibility": {
34
+ "dsh": ">=0.1.2-rc.1",
35
+ "dshReleases": {
36
+ "0.1.2-rc.1": "compatible",
37
+ "0.1.3-alpha.1": "compatible",
38
+ "0.1.3-alpha.2": "compatible",
39
+ "0.1.5-rc.1": "compatible",
40
+ "0.1.6-alpha.1": "compatible",
41
+ "0.1.6-alpha.2": "compatible",
42
+ "0.1.7-rc.1": "compatible",
43
+ "0.1.7-rc.2": "compatible",
44
+ "0.2.0-rc.1": "compatible",
45
+ "0.2.0-rc.2": "compatible"
46
+ }
47
+ }
48
+ },
49
+ "dependencies": {
50
+ "zod": "^4.4.3"
51
+ },
52
+ "devDependencies": {
53
+ "react": "^18.0.0"
54
+ },
55
+ "peerDependencies": {
56
+ "@deepseek-ai/cordis": "^4.0.2",
57
+ "@deepseek-ai/dsh-typert-protocol": ">=0.1.2-rc.1",
58
+ "@deepseek-ai/dsh-client-locale": ">=0.1.2-rc.1",
59
+ "react": "^18.0.0"
60
+ },
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git+https://github.com/gezi-wen/sage-mem.git"
64
+ },
65
+ "homepage": "https://github.com/gezi-wen/sage-mem#readme",
66
+ "bugs": {
67
+ "url": "https://github.com/gezi-wen/sage-mem/issues"
68
+ },
69
+ "keywords": [
70
+ "memory",
71
+ "ai-memory",
72
+ "agent-memory",
73
+ "long-term-memory",
74
+ "cross-session-memory",
75
+ "context-management",
76
+ "knowledge-management",
77
+ "markdown",
78
+ "dsh",
79
+ "dsh-plugin",
80
+ "deepseek",
81
+ "deepseek-harness",
82
+ "cordis",
83
+ "typert",
84
+ "plugin",
85
+ "ai-agent",
86
+ "agent",
87
+ "claude-code"
88
+ ]
89
+ }