dsh-memoir 0.9.1 → 0.9.2

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
@@ -1,5 +1,7 @@
1
1
  # dsh-memoir
2
2
 
3
+ > **0.9.2** supports official npm DSH `0.2.1-alpha.1` while retaining `0.2.0-rc.1 / rc.2`. Fixes #15's cross-project recall truncation message and English issue-template recognition. Alpha compatibility is explicit; `0.2.1-alpha.2` will be assessed separately after this release and is not yet claimed as verified.
4
+
3
5
  [![npm version](https://img.shields.io/npm/v/dsh-memoir.svg)](https://www.npmjs.com/package/dsh-memoir)
4
6
  [![npm downloads](https://img.shields.io/npm/dm/dsh-memoir.svg)](https://www.npmjs.com/package/dsh-memoir)
5
7
  [![CI](https://github.com/Qinling-Melon-Farmers/dsh-memoir/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Qinling-Melon-Farmers/dsh-memoir/actions/workflows/ci.yml)
@@ -12,17 +14,17 @@
12
14
  No embeddings, vector database, or cloud memory service. The npm package has zero bundled runtime dependencies; DSH and Zod 4 peers are supplied by the host environment; Zod validates session projections and is not bundled.
13
15
 
14
16
  > [!WARNING]
15
- > **0.9.1 fixes session recovery issue #14 affecting receipts written by 0.8.1–0.9.0.** Upgrading prevents new invalid receipts but does not rewrite old logs. The npm package includes `dsh-memoir-repair`. If an old session still fails, follow the [recovery guide](./SESSION_RECOVERY.md#english): audit first, stop every host and back up, then explicitly apply repair. Preserve the logs; do not downgrade their format. Stop old plugin writes before recovery; disabling auto-distillation alone does not stop manual write tools.
17
+ > **0.9.2 fixes session recovery issue #14 affecting receipts written by 0.8.1–0.9.0.** Upgrading prevents new invalid receipts but does not rewrite old logs. The npm package includes `dsh-memoir-repair`. If an old session still fails, follow the [recovery guide](./SESSION_RECOVERY.md#english): audit first, stop every host and back up, then explicitly apply repair. Preserve the logs; do not downgrade their format. Stop old plugin writes before recovery; disabling auto-distillation alone does not stop manual write tools.
16
18
  > The fix covers official DSH `0.2.0-rc.1` / `0.2.0-rc.2`; upgrading DSH alone does not fix the old plugin or repair affected logs.
17
19
 
18
20
  > [!IMPORTANT]
19
- > **0.9.1 requires DSH `>=0.2.0-rc.1 <0.3.0-0`**, verified with official `0.2.0-rc.1` / `rc.2` (not an unqualified final 0.2.0). Retains the visible guide, native settings, four agent languages, separate distillation turns and frozen snapshots. **The DSH 0.1.7 line is Memoir `0.8.2`, but it remains affected by #14; upgrade the host before installing this 0.9.1 fix.**
21
+ > **0.9.2 requires DSH `>=0.2.0-rc.1 <0.3.0-0 || >=0.2.1-alpha.1 <0.2.1`**, verified with official `0.2.0-rc.1` / `rc.2` / `0.2.1-alpha.1` (not an unqualified final 0.2.0). Retains the visible guide, native settings, four agent languages, separate distillation turns and frozen snapshots. **The DSH 0.1.7 line is Memoir `0.8.2`, but it remains affected by #14; upgrade the host before installing this 0.9.2 fix.**
20
22
  >
21
23
  > `dsh-memoir@0.7.1` fixes lost session snapshots after restart or RAM eviction (#10), supporting DSH **0.1.5-rc.1 / rc.2**. It requires `>=0.1.5-rc.1 <0.1.6-0`; check your host first. Keep `0.6.2` on DSH 0.1.2, or `0.5.6` on DSH 0.1.1-rc.2; those older lines do not include this fix.
22
24
 
23
25
  ```bash
24
26
  npm install --global @deepseek-ai/dsh@0.2.0-rc.2
25
- dsh plugin --profile web add dsh-memoir@0.9.1
27
+ dsh plugin --profile web add dsh-memoir@0.9.2
26
28
  ```
27
29
 
28
30
  Restart `dsh web`. Memory remains local and is not automatically deleted when the plugin is updated or removed.
@@ -183,22 +185,22 @@ Choose German agent-facing copy independently of the English GUI; settings and m
183
185
 
184
186
  | Channel | DSH baseline | Installation | Status |
185
187
  | --- | --- | --- | --- |
186
- | npm `latest` (`0.9.1`) | `>=0.2.0-rc.1 <0.3.0-0` | `dsh plugin --profile web add dsh-memoir@0.9.1` | Tested on 0.2.0-rc.1 / rc.2; fixes #14 |
188
+ | npm `latest` (`0.9.2`) | `>=0.2.0-rc.1 <0.3.0-0 \|\| >=0.2.1-alpha.1 <0.2.1` | `dsh plugin --profile web add dsh-memoir@0.9.2` | Tested on 0.2.0-rc.1 / rc.2 / 0.2.1-alpha.1; fixes #14 |
187
189
  | pinned npm `0.8.2` | `>=0.1.7-rc.1 <0.1.8-0` | `dsh plugin --profile web add dsh-memoir@0.8.2` | Legacy 0.1.7 line; still affected by #14 |
188
190
  | pinned npm `0.7.1` | `>=0.1.5-rc.1 <0.1.6-0` | `dsh plugin --profile web add dsh-memoir@0.7.1` | Legacy 0.1.5 line |
189
191
  | 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 |
190
192
  | pinned npm `0.5.6` | `0.1.1-rc.2` | `dsh plugin --profile web add dsh-memoir@0.5.6` | rc2 compatibility line |
191
- | Source `v0.9.1` | `>=0.2.0-rc.1 <0.3.0-0` | local build + `link:` | Development; not compatible with legacy 0.1.x |
193
+ | Source `v0.9.2` | `>=0.2.0-rc.1 <0.3.0-0 \|\| >=0.2.1-alpha.1 <0.2.1` | local build + `link:` | Development; not compatible with legacy 0.1.x |
192
194
 
193
195
  Node.js `^22.19.0 || >=24.0.0` is required. 0.7.1 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.
194
196
 
195
197
  <details>
196
198
  <summary>Install from source</summary>
197
199
 
198
- 0.9.1 source (DSH 0.2.0-rc.1 / rc.2):
200
+ 0.9.2 source (DSH 0.2.0-rc.1 / rc.2):
199
201
 
200
202
  ```bash
201
- git clone --branch v0.9.1 https://github.com/Qinling-Melon-Farmers/dsh-memoir.git
203
+ git clone --branch v0.9.2 https://github.com/Qinling-Melon-Farmers/dsh-memoir.git
202
204
  cd dsh-memoir
203
205
  pnpm install --frozen-lockfile
204
206
  pnpm run build
@@ -227,7 +229,7 @@ dsh plugin --profile web add "link:/absolute/path/dsh-memoir"
227
229
 
228
230
  ## Offline release highlights
229
231
 
230
- The first Memory Conversation opening shows the 0.9.1 write fix and old-log recovery boundary without blocking chat. Choose “Got it” to stop automatic display for this version in the same browser origin. Reopen anytime from “About & help → View release highlights”. Settings and sidebar panels never open the notice automatically. The image below is explicitly retained as a historical 0.9.0 preview.
232
+ The first Memory Conversation opening shows the 0.9.2 alpha.1 compatibility, recall-count fix and old-log recovery boundary without blocking chat. Choose “Got it” to stop automatic display for this version in the same browser origin. Reopen anytime from “About & help → View release highlights”. Settings and sidebar panels never open the notice automatically. The image below is explicitly retained as a historical 0.9.0 preview.
231
233
 
232
234
  The Chinese/English notice is offline: no network requests, uploads, memory changes or conversation edits. Only the acknowledged version is stored locally by the UI. If storage is unavailable, acknowledgment lasts for the current page; Web/Desktop and different origins are not guaranteed to share it.
233
235
 
@@ -313,6 +315,6 @@ pnpm test
313
315
  npm run bench
314
316
  ```
315
317
 
316
- 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 version is [v0.9.1](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.9.1), targeting DSH 0.2.0-rc.1 / rc.2. See the compatibility table above for legacy lines and their risks.
318
+ 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 version is [v0.9.2](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.9.2), targeting DSH 0.2.0-rc.1 / rc.2. See the compatibility table above for legacy lines and their risks.
317
319
 
318
320
  Apache-2.0
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dsh-memoir
2
2
 
3
+ > **0.9.2**:支持官方 npm DSH `0.2.1-alpha.1`,保留 `0.2.0-rc.1 / rc.2` 支持,修复 #15 的跨项目召回截断提示及英文 Issue 模板误判。alpha 兼容范围单独声明;`0.2.1-alpha.2` 将在发布后另行适配,目前不宣称已验证。
4
+
3
5
  [![npm version](https://img.shields.io/npm/v/dsh-memoir.svg)](https://www.npmjs.com/package/dsh-memoir)
4
6
  [![npm downloads](https://img.shields.io/npm/dm/dsh-memoir.svg)](https://www.npmjs.com/package/dsh-memoir)
5
7
  [![license](https://img.shields.io/npm/l/dsh-memoir.svg)](./LICENSE)
@@ -11,17 +13,17 @@
11
13
  无需 embedding、向量数据库或云端记忆服务;npm 包零捆绑运行时依赖,DSH 与 Zod 4 peer 由宿主环境提供;Zod 用于验证宿主会话投影,不捆绑进插件。
12
14
 
13
15
  > [!WARNING]
14
- > **0.9.1 修复会话恢复问题 #14:0.8.1–0.9.0 写入的旧回执可能导致会话重新打开失败。** 升级阻止新增异常,但不自动重写旧日志;npm 包已内置 `dsh-memoir-repair` 命令。旧会话仍打不开时,按[恢复说明](./SESSION_RECOVERY.md)先只读检查、停机备份后再显式恢复;不要删除日志或降级数据格式。恢复前停止旧插件写入,仅关闭自动蒸馏不能阻止手动工具写入。
16
+ > **0.9.2 修复会话恢复问题 #14:0.8.1–0.9.0 写入的旧回执可能导致会话重新打开失败。** 升级阻止新增异常,但不自动重写旧日志;npm 包已内置 `dsh-memoir-repair` 命令。旧会话仍打不开时,按[恢复说明](./SESSION_RECOVERY.md)先只读检查、停机备份后再显式恢复;不要删除日志或降级数据格式。恢复前停止旧插件写入,仅关闭自动蒸馏不能阻止手动工具写入。
15
17
  > 修复已覆盖官方 DSH `0.2.0-rc.1` / `0.2.0-rc.2`;仅升级 DSH 不会修复旧插件或已有异常日志。
16
18
 
17
19
  > [!IMPORTANT]
18
- > **0.9.1 要求 DSH `>=0.2.0-rc.1 <0.3.0-0`**,已验证官方 `0.2.0-rc.1` / `rc.2`(不是无后缀正式 0.2.0)。保留首屏导引、原生设置、四种 Agent 语言、独立蒸馏回合与冻结快照。**DSH 0.1.7 兼容线为 `0.8.2`,但仍受 #14 影响;使用本修复须先升级宿主,再安装 0.9.1。**
20
+ > **0.9.2 要求 DSH `>=0.2.0-rc.1 <0.3.0-0 || >=0.2.1-alpha.1 <0.2.1`**,已验证官方 `0.2.0-rc.1` / `rc.2` / `0.2.1-alpha.1`(不是无后缀正式 0.2.0)。保留首屏导引、原生设置、四种 Agent 语言、独立蒸馏回合与冻结快照。**DSH 0.1.7 兼容线为 `0.8.2`,但仍受 #14 影响;使用本修复须先升级宿主,再安装 0.9.2。**
19
21
  >
20
22
  > `dsh-memoir@0.7.1` 修复重启和内存淘汰后旧会话快照丢失(#10),支持 DSH **0.1.5-rc.1 / rc.2**。要求 `>=0.1.5-rc.1 <0.1.6-0`;请先核对宿主版本。旧 DSH 0.1.2 用户固定使用 `0.6.2`,0.1.1-rc.2 用户固定使用 `0.5.6`;这些旧版未包含本次修复。
21
23
 
22
24
  ```bash
23
25
  npm install --global @deepseek-ai/dsh@0.2.0-rc.2
24
- dsh plugin --profile web add dsh-memoir@0.9.1
26
+ dsh plugin --profile web add dsh-memoir@0.9.2
25
27
  ```
26
28
 
27
29
  重启 `dsh web` 即可。记忆保存在本机,不会随插件升级或卸载自动删除。
@@ -182,22 +184,22 @@ memoir_record / memoir_update
182
184
 
183
185
  | 渠道 | DSH 基线 | 安装方式 | 状态 |
184
186
  | --- | --- | --- | --- |
185
- | npm `latest`(`0.9.1`) | `>=0.2.0-rc.1 <0.3.0-0` | `dsh plugin --profile web add dsh-memoir@0.9.1` | 实测 0.2.0-rc.1 / rc.2;修复 #14 |
187
+ | npm `latest`(`0.9.2`) | `>=0.2.0-rc.1 <0.3.0-0 \|\| >=0.2.1-alpha.1 <0.2.1` | `dsh plugin --profile web add dsh-memoir@0.9.2` | 实测 0.2.0-rc.1 / rc.2 / 0.2.1-alpha.1;修复 #14 |
186
188
  | npm 固定版 `0.8.2` | `>=0.1.7-rc.1 <0.1.8-0` | `dsh plugin --profile web add dsh-memoir@0.8.2` | 旧 0.1.7 兼容线,仍受 #14 影响 |
187
189
  | npm 固定版 `0.7.1` | `>=0.1.5-rc.1 <0.1.6-0` | `dsh plugin --profile web add dsh-memoir@0.7.1` | 旧 0.1.5 维护线 |
188
190
  | 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 兼容线 |
189
191
  | npm 固定版 `0.5.6` | `0.1.1-rc.2` | `dsh plugin --profile web add dsh-memoir@0.5.6` | rc2 兼容线 |
190
- | 源码 `v0.9.1` | `>=0.2.0-rc.1 <0.3.0-0` | 本地构建 + `link:` | 开发调试,不兼容旧 0.1.x |
192
+ | 源码 `v0.9.2` | `>=0.2.0-rc.1 <0.3.0-0 \|\| >=0.2.1-alpha.1 <0.2.1` | 本地构建 + `link:` | 开发调试,不兼容旧 0.1.x |
191
193
 
192
194
  需要 Node.js `^22.19.0 || >=24.0.0`。0.7.1 继续使用原生 `conversation.view` / `settings.section` 与 `snapshotEvents()`。DSH 0.1.5 的会话日志升级至 V3;其迁移与 Memoir 的 store v4 / settings v3 是独立格式。升级 DSH 前备份 DSH_HOME,迁移后的 DSH 会话不能承诺被旧宿主读取。Memoir 本次不迁移或清空记忆,也不启用新动态提示词行为;既有会话快照语义保持不变。
193
195
 
194
196
  <details>
195
197
  <summary>从源码安装</summary>
196
198
 
197
- 0.9.1 源码(DSH 0.2.0-rc.1 / rc.2):
199
+ 0.9.2 源码(DSH 0.2.0-rc.1 / rc.2):
198
200
 
199
201
  ```bash
200
- git clone --branch v0.9.1 https://github.com/Qinling-Melon-Farmers/dsh-memoir.git
202
+ git clone --branch v0.9.2 https://github.com/Qinling-Melon-Farmers/dsh-memoir.git
201
203
  cd dsh-memoir
202
204
  pnpm install --frozen-lockfile
203
205
  pnpm run build
@@ -226,7 +228,7 @@ dsh plugin --profile web add "link:/absolute/path/dsh-memoir"
226
228
 
227
229
  ## 离线更新公告
228
230
 
229
- 首次打开记忆会话页时展示 0.9.1 更新摘要,提示会话写入修复与旧日志恢复边界,不阻塞对话;点击“知道了”后,同一浏览器 origin 的本版本不再自动展示。“关于与帮助 → 查看本版更新”可随时重看。设置页和右侧栏不会自动弹出公告。下图保留为已标注版本的 0.9.0 历史预览。
231
+ 首次打开记忆会话页时展示 0.9.2 更新摘要,提示 alpha.1 兼容、召回计数修复与旧日志恢复边界,不阻塞对话;点击“知道了”后,同一浏览器 origin 的本版本不再自动展示。“关于与帮助 → 查看本版更新”可随时重看。设置页和右侧栏不会自动弹出公告。下图保留为已标注版本的 0.9.0 历史预览。
230
232
 
231
233
  公告随包内置、中英双语,不联网、不上传信息、不改变记忆或对话。仅在 UI 本地存储记录已确认版本;存储不可用时退化为当前页面去重,Web/桌面端或不同 origin 的确认状态不承诺同步。
232
234
 
@@ -312,6 +314,6 @@ pnpm test
312
314
  npm run bench
313
315
  ```
314
316
 
315
- 提交前请阅读 [CONTRIBUTING.md](./CONTRIBUTING.md)。版本变化见 [CHANGELOG.md](./CHANGELOG.md),正式包由 tag 工作流通过 npm OIDC 发布。当前版本是 [v0.9.1](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.9.1),面向 DSH 0.2.0-rc.1 / rc.2;旧兼容线与风险见上方兼容性表。
317
+ 提交前请阅读 [CONTRIBUTING.md](./CONTRIBUTING.md)。版本变化见 [CHANGELOG.md](./CHANGELOG.md),正式包由 tag 工作流通过 npm OIDC 发布。当前版本是 [v0.9.2](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.9.2),面向 DSH 0.2.0-rc.1 / rc.2;旧兼容线与风险见上方兼容性表。
316
318
 
317
319
  Apache-2.0
@@ -13,11 +13,11 @@ Memoir 0.8.1–0.9.0 的实际写入回执使用了没有 `ignorable` 标记的
13
13
  无需 Git 或源码安装:npm 包已包含 `dsh-memoir-repair` 命令、原始脚本和本文。用 Node 24,传入官方 DSH 安装目录和**一个具体会话文件**,不要传记忆 JSON、目录或通配符:
14
14
 
15
15
  ```sh
16
- npm exec --yes --package=dsh-memoir@0.9.1 -- dsh-memoir-repair --dsh-package "/path/to/node_modules/@deepseek-ai/dsh" "/path/to/session.v4.jsonl.zstd"
16
+ npm exec --yes --package=dsh-memoir@0.9.2 -- dsh-memoir-repair --dsh-package "/path/to/node_modules/@deepseek-ai/dsh" "/path/to/session.v4.jsonl.zstd"
17
17
  ```
18
18
 
19
19
  - Windows 全局路径可用 `npm root -g` 查出,再附加 `@deepseek-ai/dsh`;WSL 使用自己的 Linux 安装。桌面内置依赖不可直接供 Node 加载时,使用单独安装的官方 npm DSH 作为校验器,不修改桌面文件。
20
- - 已审计的校验器/锁协议为官方 JSONL backend `0.2.0-rc.1` / `0.2.0-rc.2`,其它版本拒绝执行。它可以检查符合该校验器的原生 v4 旧日志,不运行宿主、不迁移历史格式。
20
+ - 0.9.2 支持已审计的官方 JSONL backend `0.2.0-rc.1` / `0.2.0-rc.2` / `0.2.1-alpha.1`,其它版本(包括尚未审计的 alpha.2)拒绝执行。只检查符合校验器的原生 v4 旧日志,不运行宿主、不迁移历史格式。
21
21
  - 支持 `session.v4.jsonl` / `session.v4.jsonl.zstd`,存储和解压后均最多 128 MiB;Zstandard 每帧必须带校验和。日志截断、损坏、其它未知且不可忽略事件、符号链接/目录联接、硬链接等均拒绝修改。
22
22
  - 默认不改文件,不递归扫描用户目录;输出只有路径、计数和固定错误码,不输出正文或密钥。`candidates` 是待修复回执数量。
23
23
  - 上述 `npm exec` 可能联网下载 npm 包;恢复脚本本身只在本地运行,不上传日志。若插件已通过 npm 安装,也可完全离线执行 `node "/path/to/profile/node_modules/dsh-memoir/scripts/repair-session-receipts.mjs"`,后接相同参数。
@@ -28,7 +28,7 @@ npm exec --yes --package=dsh-memoir@0.9.1 -- dsh-memoir-repair --dsh-package "/p
28
28
  完全退出使用这份日志的 Web、CLI、桌面和后台宿主,独立备份会话目录。确认只读检查成功,再执行:
29
29
 
30
30
  ```sh
31
- npm exec --yes --package=dsh-memoir@0.9.1 -- dsh-memoir-repair --dsh-package "/path/to/node_modules/@deepseek-ai/dsh" --apply --host-stopped "/path/to/session.v4.jsonl.zstd"
31
+ npm exec --yes --package=dsh-memoir@0.9.2 -- dsh-memoir-repair --dsh-package "/path/to/node_modules/@deepseek-ai/dsh" --apply --host-stopped "/path/to/session.v4.jsonl.zstd"
32
32
  ```
33
33
 
34
34
  脚本取得官方会话写锁,逐项校验原始日志,仅在旧回执最外层补 `ignorable: true`;不删事件、不重排 seq、不改正文/时间/工具数据。受影响压缩帧会重压缩,其它帧原样保留。原始字节写入同目录唯一 `.memoir-repair-<id>.bak`,验证后才以同目录原子替换安装结果。再次执行是无操作;备份不会自动删除。
@@ -46,10 +46,10 @@ Memoir 0.8.1–0.9.0 appends a custom `dsh-memoir/written` receipt without `igno
46
46
  Stop memory writes from affected builds and upgrade to 0.9.1 first: disabling auto-distillation alone does not prevent manual write tools from producing another invalid receipt. The npm package includes the `dsh-memoir-repair` command, its script and this guide; no Git checkout is needed. Use Node 24 and audit one explicitly named file:
47
47
 
48
48
  ```sh
49
- npm exec --yes --package=dsh-memoir@0.9.1 -- dsh-memoir-repair --dsh-package "/path/to/node_modules/@deepseek-ai/dsh" "/path/to/session.v4.jsonl.zstd"
49
+ npm exec --yes --package=dsh-memoir@0.9.2 -- dsh-memoir-repair --dsh-package "/path/to/node_modules/@deepseek-ai/dsh" "/path/to/session.v4.jsonl.zstd"
50
50
  ```
51
51
 
52
- The official DSH directory supplies the reviewed v4 validators and native lease dependencies (JSONL backends **0.2.0-rc.1 / 0.2.0-rc.2 only**). `npm root -g` locates global packages; Windows and WSL have separate installations. An independently installed official npm DSH can validate desktop logs without editing the desktop installation.
52
+ The official DSH directory supplies the reviewed v4 validators and native lease dependencies. **0.9.2 supports 0.2.0-rc.1 / 0.2.0-rc.2 / 0.2.1-alpha.1**. Other backends, including unaudited alpha.2, are rejected. `npm root -g` locates global packages; Windows and WSL have separate installations. An independently installed official npm DSH can validate desktop logs without editing the desktop installation.
53
53
 
54
54
  `npm exec` may download the package from npm, but the recovery script runs locally and never uploads logs. For an entirely offline invocation of an already installed npm copy, use `node "/path/to/profile/node_modules/dsh-memoir/scripts/repair-session-receipts.mjs"` with the same arguments. In a source checkout with the pinned official SDK devDependencies installed, `--dsh-package` may be omitted. The script never downloads dependencies itself.
55
55
 
@@ -58,7 +58,7 @@ Default operation is read-only: no home scan, no host startup, no migration, and
58
58
  Exit **every** Web/CLI/desktop/background host using the file and independently back up the session directory. After a successful audit, apply explicitly:
59
59
 
60
60
  ```sh
61
- npm exec --yes --package=dsh-memoir@0.9.1 -- dsh-memoir-repair --dsh-package "/path/to/node_modules/@deepseek-ai/dsh" --apply --host-stopped "/path/to/session.v4.jsonl.zstd"
61
+ npm exec --yes --package=dsh-memoir@0.9.2 -- dsh-memoir-repair --dsh-package "/path/to/node_modules/@deepseek-ai/dsh" --apply --host-stopped "/path/to/session.v4.jsonl.zstd"
62
62
  ```
63
63
 
64
64
  The script takes the official session lease and adds only `ignorable: true` to exact legacy receipt envelopes, preserving event order, seq, timestamps, payloads and untouched compressed frames. A unique adjacent `.memoir-repair-<id>.bak` stores the verified original bytes before atomic replacement. Backups are retained; a second run makes no change.
package/lib/client.js CHANGED
@@ -30,7 +30,7 @@ __export(index_exports, {
30
30
  module.exports = __toCommonJS(index_exports);
31
31
 
32
32
  // <define:__MEMOIR_PACKAGE_INFO__>
33
- var define_MEMOIR_PACKAGE_INFO_default = { version: "0.9.1", hostRange: ">=0.2.0-rc.1 <0.3.0-0", sdkBaseline: "0.2.0-rc.1" };
33
+ var define_MEMOIR_PACKAGE_INFO_default = { version: "0.9.2", hostRange: ">=0.2.0-rc.1 <0.3.0-0 || >=0.2.1-alpha.1 <0.2.1", sdkBaseline: "0.2.0-rc.1" };
34
34
 
35
35
  // src/client/index.tsx
36
36
  var import_react5 = require("react");
@@ -170,7 +170,7 @@ var dictionaries = {
170
170
  "notice.title": "\u672C\u7248\u66F4\u65B0",
171
171
  "notice.dismiss": "\u77E5\u9053\u4E86",
172
172
  "notice.reopen": "\u67E5\u770B\u672C\u7248\u66F4\u65B0",
173
- "notice.compat": "\u9002\u914D DSH 0.2.0-rc.1 / rc.2\uFF1B0.9.1 \u4FEE\u590D\u4E86 0.8.1\u20130.9.0 \u5199\u5165\u56DE\u6267\u5BFC\u81F4\u4F1A\u8BDD\u65E0\u6CD5\u91CD\u65B0\u6253\u5F00\u7684\u95EE\u9898\u3002",
173
+ "notice.compat": "0.9.2 \u9884\u9002\u914D DSH 0.2.1-alpha.1\uFF0C\u4FDD\u7559 0.2.0-rc.1 / rc.2 \u652F\u6301\uFF1B\u4FEE\u590D\u8DE8\u9879\u76EE\u53EC\u56DE\u4E2D\u5DF2\u5C55\u793A\u8BB0\u5FC6\u88AB\u8BEF\u62A5\u4E3A\u622A\u65AD\u7684\u95EE\u9898\u3002",
174
174
  "notice.features": "\u5347\u7EA7\u963B\u6B62\u65B0\u589E\u5F02\u5E38\uFF0C\u4F46\u4E0D\u4F1A\u81EA\u52A8\u6539\u5199\u65E7\u65E5\u5FD7\u3002\u65E7\u4F1A\u8BDD\u4ECD\u6253\u4E0D\u5F00\u65F6\uFF0C\u8BF7\u6309 README \u7684\u5386\u53F2\u6062\u590D\u8BF4\u660E\uFF1A\u5148\u53EA\u8BFB\u68C0\u67E5\uFF0C\u5168\u90E8\u5BBF\u4E3B\u9000\u51FA\u5E76\u5907\u4EFD\u540E\uFF0C\u518D\u663E\u5F0F\u6267\u884C\u6062\u590D\u3002",
175
175
  "notice.privacy": "\u516C\u544A\u968F\u5305\u5185\u7F6E\uFF0C\u4E0D\u8054\u7F51\u3001\u4E0D\u6539\u8BB0\u5FC6\u3002\u786E\u8BA4\u540E\u672C\u7248\u672C\u4E0D\u518D\u81EA\u52A8\u663E\u793A\uFF1B\u53EF\u5728\u201C\u5173\u4E8E\u4E0E\u5E2E\u52A9\u201D\u91CD\u770B\u3002",
176
176
  "about.host": "\u652F\u6301\u7684 DSH \u8303\u56F4",
@@ -393,7 +393,7 @@ var dictionaries = {
393
393
  "notice.title": "What\u2019s new",
394
394
  "notice.dismiss": "Got it",
395
395
  "notice.reopen": "View release highlights",
396
- "notice.compat": "Supports DSH 0.2.0-rc.1 / rc.2. Version 0.9.1 fixes receipts from 0.8.1\u20130.9.0 that prevented sessions from reopening.",
396
+ "notice.compat": "0.9.2 prepares support for DSH 0.2.1-alpha.1 while retaining 0.2.0-rc.1 / rc.2. Fixes misleading truncation counts for memories already displayed during cross-project recall.",
397
397
  "notice.features": "Upgrading prevents new invalid receipts; it does not rewrite old logs. If an old session still fails to open, follow the recovery guide linked in README: audit first, stop every host and back up, then explicitly apply the repair.",
398
398
  "notice.privacy": "Bundled offline; no memory changes. Acknowledge once per version, or reopen from About & help.",
399
399
  "about.host": "Supported DSH range",
@@ -628,7 +628,7 @@ var import_react2 = require("react");
628
628
  var import_react = require("react");
629
629
 
630
630
  // src/client/announcement.ts
631
- var ANNOUNCEMENT_VERSION = "0.9.1";
631
+ var ANNOUNCEMENT_VERSION = "0.9.2";
632
632
  var ANNOUNCEMENT_KEY = "dsh-memoir:announcement:last-acknowledged";
633
633
  var EVENT = "dsh-memoir:announcement-acknowledged";
634
634
  var acknowledged = /* @__PURE__ */ new WeakMap();