dsh-memoir 0.6.2 → 0.7.0

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,10 +12,10 @@
12
12
  No embeddings, vector database, or cloud memory service. The npm package has zero bundled runtime dependencies; DSH peers are supplied by the host.
13
13
 
14
14
  > [!IMPORTANT]
15
- > npm `latest` is `dsh-memoir@0.6.2` for `@deepseek-ai/dsh >=0.1.2-alpha.2 <0.1.3`, validated against DSH alpha.4, alpha.5, and 0.1.2-rc.1. Users remaining on `0.1.1-rc.2` should pin `dsh-memoir@0.5.6`.
15
+ > `dsh-memoir@0.7.0` is a compatibility-only release for DSH **0.1.5-rc.1**, with no new features. It requires `>=0.1.5-rc.1 <0.1.6-0`; upgrade DSH first. Keep `dsh-memoir@0.6.2` on DSH 0.1.2, or `0.5.6` on DSH 0.1.1-rc.2.
16
16
 
17
17
  ```bash
18
- npm install --global @deepseek-ai/dsh@0.1.2-rc.1
18
+ npm install --global @deepseek-ai/dsh@0.1.5-rc.1
19
19
  dsh plugin --profile web add dsh-memoir@latest
20
20
  ```
21
21
 
@@ -79,7 +79,7 @@ Similar-memory governance starts with BM25 candidates, then combines title simil
79
79
 
80
80
  v0.6.2 diagnostics show the latest decision and process-local counters. Turns calling `memoir_record` or `memoir_update` skip reminders; submitting a reminder does not confirm persistence. Agent disposal clears gate state, with a fallback cap of 1024 recently active agents (eviction also forgets their turn watermark and cooldown). Manual recording remains available when automatic distillation is disabled.
81
81
 
82
- The current validated baseline is DSH `0.1.2-rc.1`. The next `0.1.3-alpha.2` line is not yet declared compatible; use the pinned installation command. BM25 is lexical retrieval and does not guarantee cross-language semantic matches without shared terms. Distillation guidance does not replace fact checking.
82
+ The validated baseline is DSH `0.1.5-rc.1` (npm has not published an unsuffixed 0.1.5). BM25 is lexical retrieval and does not guarantee cross-language semantic matches without shared terms. Distillation guidance does not replace fact checking.
83
83
 
84
84
  Automatic distillation is an observable agent turn-end reminder, not silent background scraping of every chat. The default `1 / 0 / 1` means every eligible worked turn, no extra cooldown, and at least one tool call.
85
85
 
@@ -117,6 +117,8 @@ Installing into a DSH-alpha `web` profile registers a native Memory Conversation
117
117
  <details>
118
118
  <summary>More GUI screenshots</summary>
119
119
 
120
+ ![v0.7.0 native memory settings on DSH 0.1.5-rc.1](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.7.0/picture/v0.7.0-dsh015-settings-zh.png)
121
+
120
122
  ![v0.6.2 automatic distillation lifecycle diagnostics](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.6.2/picture/v0.6.2-distill-diagnostics-zh.png)
121
123
 
122
124
  ![v0.6.1 permanent surface navigation and live settings](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.6.1/picture/v0.6.1-settings-navigation-zh.png)
@@ -137,23 +139,24 @@ Installing into a DSH-alpha `web` profile registers a native Memory Conversation
137
139
 
138
140
  | Channel | DSH baseline | Installation | Status |
139
141
  | --- | --- | --- | --- |
140
- | npm `latest` (`0.6.2`) | `>=0.1.2-alpha.2 <0.1.3` | `dsh plugin --profile web add dsh-memoir@latest` | Current release validated on 0.1.2-rc.1 |
142
+ | npm `latest` (`0.7.0`) | `>=0.1.5-rc.1 <0.1.6-0` | `dsh plugin --profile web add dsh-memoir@latest` | Compatibility release validated on 0.1.5-rc.1 |
143
+ | pinned npm `0.6.2` | `>=0.1.2-alpha.2 <0.1.3` | `dsh plugin --profile web add dsh-memoir@0.6.2` | Legacy 0.1.2 line |
141
144
  | pinned npm `0.5.6` | `0.1.1-rc.2` | `dsh plugin --profile web add dsh-memoir@0.5.6` | rc2 compatibility line |
142
- | GitHub `main` (`0.6.2`) | `>=0.1.2-alpha.2 <0.1.3` | source clone + `link:` | Development and debugging |
145
+ | GitHub `main` (`0.7.0`) | `>=0.1.5-rc.1 <0.1.6-0` | source clone + `link:` | Development and debugging |
143
146
 
144
- Node.js `^22.19.0 || >=24.0.0` is required. v0.6.x uses the native DSH-alpha `conversation.view` / `settings.section` slots and the Remote-era client module architecture. v0.6.1 supports both the public `session.events` surface in alpha.2/alpha.3 and `session.snapshotEvents()` in alpha.4+. `dsh.engines.dsh` rejects incompatible hosts.
147
+ Node.js `^22.19.0 || >=24.0.0` is required. 0.7.0 keeps the native `conversation.view` / `settings.section` slots and `snapshotEvents()`. DSH 0.1.5 uses Session log V3, independent of Memoir store v4 / settings v3. Back up DSH_HOME before upgrading DSH; migrated sessions are not guaranteed readable by older hosts. This Memoir release neither migrates nor resets memory and retains frozen session snapshots without enabling new dynamic-prompt behavior.
145
148
 
146
149
  <details>
147
150
  <summary>Install from source</summary>
148
151
 
149
- 0.6.x source:
152
+ 0.7.x source:
150
153
 
151
154
  ```bash
152
155
  git clone https://github.com/Qinling-Melon-Farmers/dsh-memoir.git
153
156
  cd dsh-memoir
154
157
  pnpm install --frozen-lockfile
155
158
  pnpm run build
156
- npm install --global @deepseek-ai/dsh@0.1.2-rc.1
159
+ npm install --global @deepseek-ai/dsh@0.1.5-rc.1
157
160
  dsh plugin --profile web add "link:/absolute/path/dsh-memoir"
158
161
  ```
159
162
 
@@ -210,7 +213,7 @@ v0.5.6 benchmark (Node 24.19, 900/1200-token budget; full data in [`bench/report
210
213
 
211
214
  Numbers vary by machine and corpus. The important properties are that injection remains bounded and the cache-hit path is independent of total memory size.
212
215
 
213
- v0.6.2 passes 192 automated tests and type checking, covering lifecycle, BM25, Hot Memory, writing and injection, provenance, and GUI. An isolated DSH 0.1.2-rc.1 + dsh-web-all 0.3.18 profile passes bilingual diagnostics browser regression. Earlier alpha.2–alpha.5 compatibility evidence is recorded in the v0.6.1 changelog.
216
+ 0.7.0 passes 193 tests and type checking, retaining all existing regressions and adding an official DSH Session V3 object test for provenance, distillation, tool writes, and frozen injection. An isolated DSH 0.1.5-rc.1 profile passes Web Settings, bilingual diagnostics, and API checks. Historical alpha/rc validation is recorded in the changelog and does not imply 0.7.0 can be installed on older hosts.
214
217
 
215
218
  ## FAQ
216
219
 
@@ -239,6 +242,6 @@ pnpm test
239
242
  npm run bench
240
243
  ```
241
244
 
242
- Read [CONTRIBUTING.md](./CONTRIBUTING.md) before submitting changes. See [CHANGELOG.md](./CHANGELOG.md) for version history. Formal packages are published by the tag workflow through npm OIDC. The current npm release is [v0.6.2](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.6.2), and `main` is synchronized with it.
245
+ Read [CONTRIBUTING.md](./CONTRIBUTING.md) before submitting changes. See [CHANGELOG.md](./CHANGELOG.md) for version history. Formal packages are published by the tag workflow through npm OIDC. The current npm release is [v0.7.0](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.7.0), and `main` is synchronized with it.
243
246
 
244
247
  Apache-2.0
package/README.md CHANGED
@@ -11,10 +11,10 @@
11
11
  无需 embedding、向量数据库或云端记忆服务;npm 包零捆绑运行时依赖,DSH peer 由宿主提供。
12
12
 
13
13
  > [!IMPORTANT]
14
- > npm `latest` 为 `dsh-memoir@0.6.2`,适用于 `@deepseek-ai/dsh >=0.1.2-alpha.2 <0.1.3`,已验证 DSH alpha.4、alpha.5 与 0.1.2-rc.1。仍使用 `0.1.1-rc.2` 的用户应固定安装 `dsh-memoir@0.5.6`。
14
+ > `dsh-memoir@0.7.0` 是 DSH **0.1.5-rc.1** 的兼容性发布,不增加新功能。要求 `>=0.1.5-rc.1 <0.1.6-0`;请先升级 DSH。旧 DSH 0.1.2 用户固定使用 `dsh-memoir@0.6.2`,0.1.1-rc.2 用户固定使用 `0.5.6`。
15
15
 
16
16
  ```bash
17
- npm install --global @deepseek-ai/dsh@0.1.2-rc.1
17
+ npm install --global @deepseek-ai/dsh@0.1.5-rc.1
18
18
  dsh plugin --profile web add dsh-memoir@latest
19
19
  ```
20
20
 
@@ -78,7 +78,7 @@ memoir_record / memoir_update
78
78
 
79
79
  v0.6.2 的诊断页显示最近触发或跳过原因及本次进程计数。已经调用 `memoir_record` 或 `memoir_update` 的回合不再提醒;提交提醒不代表写入已完成。Agent 销毁会清理门控状态,最多保留 1024 个最近活动 Agent(淘汰后不再保留其回合水位和冷却)。关闭自动蒸馏后仍可手动记录。
80
80
 
81
- 当前验证基线为 DSH `0.1.2-rc.1`;`0.1.3-alpha.2` 属于下一版本线,尚不声明兼容,请使用下方固定版本安装命令。BM25 是词项召回,不能保证无共同词项的跨语言语义匹配;提炼质量提示也不能替代事实核验。
81
+ 当前验证基线为 DSH `0.1.5-rc.1`(npm 尚无不带后缀的 0.1.5)。BM25 是词项召回,不能保证无共同词项的跨语言语义匹配;提炼质量提示也不能替代事实核验。
82
82
 
83
83
  自动蒸馏是可观察的 Agent 收尾提醒,不是后台静默抓取聊天内容。默认 `1 / 0 / 1` 表示:每个有效 worked turn、无额外冷却、至少一次工具调用即可提醒。
84
84
 
@@ -116,6 +116,8 @@ v0.6.2 的诊断页显示最近触发或跳过原因及本次进程计数。已
116
116
  <details>
117
117
  <summary>查看更多 GUI 截图</summary>
118
118
 
119
+ ![v0.7.0 在 DSH 0.1.5-rc.1 中的原生记忆设置](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.7.0/picture/v0.7.0-dsh015-settings-zh.png)
120
+
119
121
  ![v0.6.2 自动蒸馏生命周期诊断](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.6.2/picture/v0.6.2-distill-diagnostics-zh.png)
120
122
 
121
123
  ![v0.6.1 常驻功能导航与实时设置](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.6.1/picture/v0.6.1-settings-navigation-zh.png)
@@ -136,23 +138,24 @@ v0.6.2 的诊断页显示最近触发或跳过原因及本次进程计数。已
136
138
 
137
139
  | 渠道 | DSH 基线 | 安装方式 | 状态 |
138
140
  | --- | --- | --- | --- |
139
- | npm `latest`(`0.6.2`) | `>=0.1.2-alpha.2 <0.1.3` | `dsh plugin --profile web add dsh-memoir@latest` | 当前发布版本;基于 0.1.2-rc.1 验证 |
141
+ | npm `latest`(`0.7.0`) | `>=0.1.5-rc.1 <0.1.6-0` | `dsh plugin --profile web add dsh-memoir@latest` | 当前兼容性发布;验证基线 0.1.5-rc.1 |
142
+ | npm 固定版 `0.6.2` | `>=0.1.2-alpha.2 <0.1.3` | `dsh plugin --profile web add dsh-memoir@0.6.2` | 旧 0.1.2 兼容线 |
140
143
  | npm 固定版 `0.5.6` | `0.1.1-rc.2` | `dsh plugin --profile web add dsh-memoir@0.5.6` | rc2 兼容线 |
141
- | GitHub `main`(`0.6.2`) | `>=0.1.2-alpha.2 <0.1.3` | 源码 clone + `link:` | 开发和调试使用 |
144
+ | GitHub `main`(`0.7.0`) | `>=0.1.5-rc.1 <0.1.6-0` | 源码 clone + `link:` | 开发和调试使用 |
142
145
 
143
- 需要 Node.js `^22.19.0 || >=24.0.0`。`0.6.x` 使用 DSH alpha 的原生 `conversation.view` / `settings.section` 与 Remote 时代客户端模块;`0.6.1` 同时兼容 alpha.2/alpha.3 的公开 `session.events` 与 alpha.4+ 的 `session.snapshotEvents()`。manifest 的 `dsh.engines.dsh` 会拒绝不兼容宿主。
146
+ 需要 Node.js `^22.19.0 || >=24.0.0`。0.7.0 继续使用原生 `conversation.view` / `settings.section` 与 `snapshotEvents()`。DSH 0.1.5 的会话日志升级至 V3;其迁移与 Memoir 的 store v4 / settings v3 是独立格式。升级 DSH 前备份 DSH_HOME,迁移后的 DSH 会话不能承诺被旧宿主读取。Memoir 本次不迁移或清空记忆,也不启用新动态提示词行为;既有会话快照语义保持不变。
144
147
 
145
148
  <details>
146
149
  <summary>从源码安装</summary>
147
150
 
148
- 0.6.x 源码:
151
+ 0.7.x 源码:
149
152
 
150
153
  ```bash
151
154
  git clone https://github.com/Qinling-Melon-Farmers/dsh-memoir.git
152
155
  cd dsh-memoir
153
156
  pnpm install --frozen-lockfile
154
157
  pnpm run build
155
- npm install --global @deepseek-ai/dsh@0.1.2-rc.1
158
+ npm install --global @deepseek-ai/dsh@0.1.5-rc.1
156
159
  dsh plugin --profile web add "link:/absolute/path/dsh-memoir"
157
160
  ```
158
161
 
@@ -209,7 +212,7 @@ v0.5.6 基准(Node 24.19,900/1200 token;完整数据见 [`bench/report.md`
209
212
 
210
213
  基准值取决于机器和语料;它证明的重点是注入预算保持有界、缓存命中路径与记忆总量解耦。
211
214
 
212
- v0.6.2 的 192 项自动化测试与类型检查通过,覆盖生命周期、BM25、Hot Memory、写入与注入、来源和 GUI。当前隔离 DSH 0.1.2-rc.1 + dsh-web-all 0.3.18 已完成双语诊断页浏览器回归;alpha.2–alpha.5 的旧版兼容证据见 v0.6.1 更新日志。
215
+ 0.7.0 的 193 项测试与类型检查通过,保留全部既有回归,并新增使用官方 DSH Session V3 对象的来源、蒸馏、工具写入与冻结注入测试。隔离 DSH 0.1.5-rc.1 的 Web 设置、双语诊断与 API 回归通过。旧版 alpha/rc 的历史验证见各版本更新日志;不据此宣称 0.7.0 可安装在旧宿主。
213
216
 
214
217
  ## 常见问题
215
218
 
@@ -238,6 +241,6 @@ pnpm test
238
241
  npm run bench
239
242
  ```
240
243
 
241
- 提交前请阅读 [CONTRIBUTING.md](./CONTRIBUTING.md)。版本变化见 [CHANGELOG.md](./CHANGELOG.md),正式包由 tag 工作流通过 npm OIDC 发布。当前 npm 正式版是 [v0.6.2](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.6.2),`main` 与该版本同步。
244
+ 提交前请阅读 [CONTRIBUTING.md](./CONTRIBUTING.md)。版本变化见 [CHANGELOG.md](./CHANGELOG.md),正式包由 tag 工作流通过 npm OIDC 发布。当前 npm 正式版是 [v0.7.0](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.7.0),`main` 与该版本同步。
242
245
 
243
246
  Apache-2.0
package/cordis.patch.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  # dsh-memoir bundle patch: inserts the host-half plugin row into the web
2
2
  # profile roster. Applied as a profile bundle layer (the `dsh.bundle.patch`
3
- # manifest field) over dsh-base. dsh-memoir v0.6.0 targets the published DSH
4
- # npm alpha line >=0.1.2-alpha.2 <0.1.3 and installs from npm with
3
+ # manifest field) over dsh-base. dsh-memoir v0.7.0 targets the published DSH
4
+ # line >=0.1.5-rc.1 <0.1.6-0 and installs from npm with
5
5
  # dsh plugin --profile web add dsh-memoir@latest
6
6
  #
7
7
  # The row is a bare plugin by package name: the node half (exports ".")
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-memoir",
3
3
  "description": "DeepSeek Harness (DSH) local-first cross-session project memory: bounded cache-friendly Hot Memory, BM25 recall/cache, provenance, lifecycle and bilingual Web GUI; no embeddings, external service or bundled runtime dependencies.",
4
- "version": "0.6.2",
4
+ "version": "0.7.0",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": "^22.19.0 || >=24.0.0"
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dsh": {
17
17
  "engines": {
18
- "dsh": ">=0.1.2-alpha.2 <0.1.3"
18
+ "dsh": ">=0.1.5-rc.1 <0.1.6-0"
19
19
  },
20
20
  "bundle": {
21
21
  "patch": "./cordis.patch.yml"
@@ -32,25 +32,25 @@
32
32
  }
33
33
  },
34
34
  "peerDependencies": {
35
- "@deepseek-ai/dsh-llm": ">=0.1.2-alpha.2 <0.1.3",
36
- "@deepseek-ai/dsh-tools": ">=0.1.2-alpha.2 <0.1.3"
35
+ "@deepseek-ai/dsh-llm": ">=0.1.5-rc.1 <0.1.6-0",
36
+ "@deepseek-ai/dsh-tools": ">=0.1.5-rc.1 <0.1.6-0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@deepseek-ai/cordis": "^4.0.2",
40
- "@deepseek-ai/dsh-agent": "0.1.2-rc.1",
41
- "@deepseek-ai/dsh-api-session-controller": "0.1.2-rc.1",
42
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.2-rc.1",
43
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.2-rc.1",
44
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.2-rc.1",
45
- "@deepseek-ai/dsh-client-ui-session": "0.1.2-rc.1",
46
- "@deepseek-ai/dsh-client-ui-settings": "0.1.2-rc.1",
47
- "@deepseek-ai/dsh-client-ui-settings-general": "0.1.2-rc.1",
48
- "@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1",
49
- "@deepseek-ai/dsh-host-webserver": "0.1.2-rc.1",
50
- "@deepseek-ai/dsh-llm": "0.1.2-rc.1",
51
- "@deepseek-ai/dsh-session": "0.1.2-rc.1",
52
- "@deepseek-ai/dsh-system-prompt": "0.1.2-rc.1",
53
- "@deepseek-ai/dsh-tools": "0.1.2-rc.1",
40
+ "@deepseek-ai/dsh-agent": "0.1.5-rc.1",
41
+ "@deepseek-ai/dsh-api-session-controller": "0.1.5-rc.1",
42
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.5-rc.1",
43
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
44
+ "@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.1",
45
+ "@deepseek-ai/dsh-client-ui-session": "0.1.5-rc.1",
46
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
47
+ "@deepseek-ai/dsh-client-ui-settings-general": "0.1.5-rc.1",
48
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
49
+ "@deepseek-ai/dsh-host-webserver": "0.1.5-rc.1",
50
+ "@deepseek-ai/dsh-llm": "0.1.5-rc.1",
51
+ "@deepseek-ai/dsh-session": "0.1.5-rc.1",
52
+ "@deepseek-ai/dsh-system-prompt": "0.1.5-rc.1",
53
+ "@deepseek-ai/dsh-tools": "0.1.5-rc.1",
54
54
  "@types/jsdom": "21.1.7",
55
55
  "@types/node": "^22.20.1",
56
56
  "@types/react": "~18.3.31",