dsh-archived-chats 1.4.2 → 1.4.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.
- package/CHANGELOG.md +30 -0
- package/README.md +4 -2
- package/README.zh-CN.md +4 -2
- package/docs/ARCHITECTURE.en.md +5 -1
- package/docs/ARCHITECTURE.md +5 -1
- package/docs/USER_GUIDE.md +1 -1
- package/docs/USER_GUIDE.zh-CN.md +1 -1
- package/lib/persistence-compat.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,36 @@
|
|
|
4
4
|
|
|
5
5
|
Entries describe behavior at each release, not necessarily current behavior. Consult the READMEs and user guides for current usage.
|
|
6
6
|
|
|
7
|
+
## 1.4.4 — 2026-09-27
|
|
8
|
+
|
|
9
|
+
### 中文
|
|
10
|
+
|
|
11
|
+
- 运行时代码无变化,本次发布只更新包元数据中的已验证 Host 版本。可选 peer 范围原本就通过 `>=0.1.2-alpha.1 <0.2.0-0` 覆盖 0.1.7,现在额外显式列出已验证的 `0.1.7-rc.2`。
|
|
12
|
+
- 发布验证的 Host fixture 从 `0.1.5-rc.2`(会话格式 v3)升级到 `0.1.7-rc.2`(v4),CI 因此在 Ubuntu、macOS 和 Windows 上真正执行 v4 路径。1.4.3 的缺陷此前无法被 CI 复现,正是因为旧 fixture 的会话格式是 v3。
|
|
13
|
+
- 已安装 1.4.3 或更高版本并运行在 DSH `0.1.7-rc.2` 上的用户,本版没有需要采取的动作。
|
|
14
|
+
|
|
15
|
+
### English
|
|
16
|
+
|
|
17
|
+
- No runtime code changes. This release only updates the verified Host version in the package metadata. The optional peer range already admitted 0.1.7 through `>=0.1.2-alpha.1 <0.2.0-0`; it now also lists the verified `0.1.7-rc.2` explicitly.
|
|
18
|
+
- The release-verification Host fixture moves from `0.1.5-rc.2` (session format v3) to `0.1.7-rc.2` (v4), so CI now exercises the v4 path on Ubuntu, macOS, and Windows. The 1.4.3 defect could not be reproduced by CI before this change precisely because the old fixture's session format was v3.
|
|
19
|
+
- Users already on 1.4.3 or later running DSH `0.1.7-rc.2` have no action to take for this release.
|
|
20
|
+
|
|
21
|
+
## 1.4.3 — 2026-09-26
|
|
22
|
+
|
|
23
|
+
### 中文
|
|
24
|
+
|
|
25
|
+
- 修复在 DSH `0.1.7-rc.2` 等新版 Host 上删除归档会话失败的问题。该版本把会话格式提升为 v4,磁盘上的 `header.version` 因此变为 `4`;插件的持久化兼容层只接受 v2 和 v3,在读取列表时就拒绝,删除随即以 `persistence-response-invalid` 中止。现在兼容层接受 v4。
|
|
26
|
+
- v4 相对 v3 只是版本号递增,header 字段形状不变,因此接受 v4 时其余校验(必需字段类型、`cwd` 必须为绝对路径、`createdAt`/`delegationDepth` 的取值范围、未知扩展字段保留等)全部保持原样。
|
|
27
|
+
- 新增 v4 header 的读取用例,覆盖列表与检查两条路径;该用例在放宽前失败,可阻止回归。
|
|
28
|
+
- 删除归档依赖读取列表,因此此缺陷同时影响删除、批量删除、预览与搜索等所有走持久化兼容层的入口。
|
|
29
|
+
|
|
30
|
+
### English
|
|
31
|
+
|
|
32
|
+
- Fix deleting archived chats on DSH `0.1.7-rc.2` and later Hosts. Those versions raise the session format to v4, so the on-disk `header.version` is now `4`; the plugin's persistence compatibility layer accepted only v2 and v3, rejected the header during list, and the deletion aborted with `persistence-response-invalid`. The compatibility layer now accepts v4.
|
|
33
|
+
- v4 differs from v3 by the version number alone and keeps the same header field shape. Accepting v4 therefore leaves every other check intact: required field types, `cwd` having to be absolute, the `createdAt` and `delegationDepth` ranges, and preserving unknown extension fields.
|
|
34
|
+
- Add a v4 header read test covering both list and inspect; it failed before the relaxation, so it guards against regression.
|
|
35
|
+
- Deletion reads the list first, so the defect also affected every entry point that goes through the compatibility layer, including bulk deletion, preview, and search.
|
|
36
|
+
|
|
7
37
|
## 1.4.2 — 2026-09-22
|
|
8
38
|
|
|
9
39
|
### 中文
|
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Archive Management gives DeepSeek Harness a place to find chats hidden from the
|
|
|
32
32
|
|
|
33
33
|
> The English name is **Archive Management**, and the Chinese name is **归档管理**. The installation package remains `dsh-archived-chats`.
|
|
34
34
|
>
|
|
35
|
-
> This document follows the `main` branch. This guide targets 1.4.
|
|
35
|
+
> This document follows the `main` branch. This guide targets 1.4.4, whose runtime code is unchanged from 1.4.3; package metadata now lists DSH `0.1.7-rc.2` among the verified Hosts. 1.4.3 accepts the v4 session format those Hosts publish. The 1.4.2 export writer no longer carries a dependency that prevents startup on newer Hosts. See the [changelog](CHANGELOG.md) for release history, including 1.4.1's English rename and feedback improvements.
|
|
36
36
|
|
|
37
37
|
## Quick start
|
|
38
38
|
|
|
@@ -141,10 +141,12 @@ Archive Management is actively maintained. The latest stable npm release receive
|
|
|
141
141
|
|
|
142
142
|
```sh
|
|
143
143
|
npm test
|
|
144
|
+
npm ci --prefix test/fixtures/native-host --ignore-scripts --include=optional
|
|
145
|
+
node scripts/run-native-integration.mjs
|
|
144
146
|
npm pack --dry-run --json
|
|
145
147
|
```
|
|
146
148
|
|
|
147
|
-
The suite covers Host and browser behavior, export/import, snapshot fallback recovery, Recycle Bin, retention, search, responsive layout, public types, package contents, and repository hygiene.
|
|
149
|
+
The suite covers Host and browser behavior, export/import, snapshot fallback recovery, Recycle Bin, retention, search, responsive layout, public types, package contents, and repository hygiene. The native commands install the locked `@deepseek-ai/dsh-session@0.1.7-rc.2` fixture and require all five native round-trip cases to run without skips. All checks use isolated temporary data and never read real sessions.
|
|
148
150
|
|
|
149
151
|
## Uninstall
|
|
150
152
|
|
package/README.zh-CN.md
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
> 中文名称为「归档管理」,英文名称为 Archive Management;安装包名始终为 `dsh-archived-chats`。
|
|
32
32
|
>
|
|
33
|
-
> 本文跟随 `main` 分支维护。本文适用于 1.4.2
|
|
33
|
+
> 本文跟随 `main` 分支维护。本文适用于 1.4.4,其运行时代码与 1.4.3 相同;包元数据现将 DSH `0.1.7-rc.2` 列为已验证 Host。1.4.3 接受这些 Host 发出的 v4 会话格式。1.4.2 的导出实现不再携带会导致新版 Host 启动失败的依赖;已安装用户请先升级。版本变更见[更新日志](CHANGELOG.md),其中包含 1.4.1 的英文名称统一与交互提示优化。
|
|
34
34
|
|
|
35
35
|
## 快速开始
|
|
36
36
|
|
|
@@ -139,10 +139,12 @@ dsh plugin --profile web update dsh-archived-chats
|
|
|
139
139
|
|
|
140
140
|
```sh
|
|
141
141
|
npm test
|
|
142
|
+
npm ci --prefix test/fixtures/native-host --ignore-scripts --include=optional
|
|
143
|
+
node scripts/run-native-integration.mjs
|
|
142
144
|
npm pack --dry-run --json
|
|
143
145
|
```
|
|
144
146
|
|
|
145
|
-
测试覆盖 Host
|
|
147
|
+
测试覆盖 Host 与浏览器行为、导出导入、快照恢复、回收站、保留策略、全文搜索、响应式布局、公开类型、包内容和仓库卫生。原生集成命令会安装锁定的 `@deepseek-ai/dsh-session@0.1.7-rc.2` fixture,并要求五个原生往返用例全部执行且不能跳过。所有检查只使用隔离临时数据,不读取真实会话。
|
|
146
148
|
|
|
147
149
|
## 卸载
|
|
148
150
|
|
package/docs/ARCHITECTURE.en.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English · [中文](ARCHITECTURE.md) · [User guide](USER_GUIDE.md)
|
|
4
4
|
|
|
5
|
-
This document follows `main`, covering 1.4.
|
|
5
|
+
This document follows `main`, covering 1.4.4 behavior, whose runtime code is unchanged from 1.4.3 (1.4.3 accepts the v4 session format in the persistence compatibility layer, 1.4.2 switched export ZIP generation to `fflate`); see the [changelog](../CHANGELOG.md) for release history. Runtime code is the authority for interfaces and behavior; user-facing documentation should agree with it.
|
|
6
6
|
|
|
7
7
|
## Product boundary and modules
|
|
8
8
|
|
|
@@ -208,8 +208,12 @@ Tests cover retained modules: export/import rollback, snapshots/recycle states,
|
|
|
208
208
|
|
|
209
209
|
```sh
|
|
210
210
|
npm test
|
|
211
|
+
npm ci --prefix test/fixtures/native-host --ignore-scripts --include=optional
|
|
212
|
+
node scripts/run-native-integration.mjs
|
|
211
213
|
npm pack --dry-run --json
|
|
212
214
|
git diff --check
|
|
213
215
|
```
|
|
214
216
|
|
|
217
|
+
The native commands install the locked `@deepseek-ai/dsh-session@0.1.7-rc.2` fixture and require all five native round-trip cases to run without skips. This is the local equivalent of the mandatory native Host integration gate in CI.
|
|
218
|
+
|
|
215
219
|
The declared DSH `>=0.1.0-rc.7` range remains capability-based. Release automation passed Node.js 18 on Ubuntu and Node.js 24 on Ubuntu, macOS, and Windows; the Node.js 24 matrix required the official Host backend integration (5/5) and package checks. The installed 1.4.0 artifact also passed the official native round trip (5/5) against `@deepseek-ai/dsh-session@0.1.5-rc.2`. Existing screenshots are from v1.3.1 and include retired snapshot UI; they remain historical examples rather than current behavior documentation.
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](ARCHITECTURE.en.md) · 中文 · [用户指南](USER_GUIDE.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
本文跟随 `main` 分支,功能对应 1.4.2
|
|
5
|
+
本文跟随 `main` 分支,功能对应 1.4.4,其运行时代码与 1.4.3 相同(1.4.3 在持久化兼容层接受 v4 会话格式,1.4.2 改用 `fflate` 生成导出 ZIP);版本变更见[更新日志](../CHANGELOG.md)。运行时代码是接口与行为的依据;用户操作说明与本文应保持一致。
|
|
6
6
|
|
|
7
7
|
## 产品边界与模块
|
|
8
8
|
|
|
@@ -208,8 +208,12 @@ apply 只接受凭据,不接受调用方增补会话 ID。每条执行前在
|
|
|
208
208
|
|
|
209
209
|
```sh
|
|
210
210
|
npm test
|
|
211
|
+
npm ci --prefix test/fixtures/native-host --ignore-scripts --include=optional
|
|
212
|
+
node scripts/run-native-integration.mjs
|
|
211
213
|
npm pack --dry-run --json
|
|
212
214
|
git diff --check
|
|
213
215
|
```
|
|
214
216
|
|
|
217
|
+
原生集成命令会安装锁定的 `@deepseek-ai/dsh-session@0.1.7-rc.2` fixture,并要求五个原生往返用例全部执行且不能跳过;这是 CI 强制原生 Host 集成门禁的本地等价检查。
|
|
218
|
+
|
|
215
219
|
声明的 DSH `>=0.1.0-rc.7` 范围仍以 Host 公开能力为准。发布自动化已通过 Ubuntu 上的 Node.js 18,以及 Ubuntu、macOS 和 Windows 上的 Node.js 24;Node.js 24 矩阵强制运行官方 Host 后端集成(5/5)与打包检查。已安装的 1.4.0 产物也已在 `@deepseek-ai/dsh-session@0.1.5-rc.2` 上通过官方 native 闭环(5/5)。现有截图来自 v1.3.1,含退役快照界面;它们仍是历史示例,不作为当前行为说明。
|
package/docs/USER_GUIDE.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English · [简体中文](USER_GUIDE.zh-CN.md) · [Back to README](../README.md)
|
|
4
4
|
|
|
5
|
-
Archive Management provides a place to browse and manage DSH's archived chats, plus workspace bulk archiving. This document follows the `main` branch. This guide targets 1.4.
|
|
5
|
+
Archive Management provides a place to browse and manage DSH's archived chats, plus workspace bulk archiving. This document follows the `main` branch. This guide targets 1.4.4, whose runtime code is unchanged from 1.4.3; package metadata now lists DSH `0.1.7-rc.2` among the verified Hosts. 1.4.3 accepts the v4 session format those Hosts publish. The 1.4.2 export writer no longer carries a dependency that prevents startup on newer Hosts. See the [changelog](../CHANGELOG.md) for release history, including 1.4.1's English rename and feedback improvements. For interfaces and data formats, see the [architecture](ARCHITECTURE.en.md).
|
|
6
6
|
|
|
7
7
|
## Understand the three locations
|
|
8
8
|
|
package/docs/USER_GUIDE.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](USER_GUIDE.md) · 简体中文 · [返回 README](../README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
归档管理为 DSH 已归档聊天提供查看和管理页面,并扩展按工作区批量归档。本文跟随 `main` 分支维护。本文适用于 1.4.2
|
|
5
|
+
归档管理为 DSH 已归档聊天提供查看和管理页面,并扩展按工作区批量归档。本文跟随 `main` 分支维护。本文适用于 1.4.4,其运行时代码与 1.4.3 相同;包元数据现将 DSH `0.1.7-rc.2` 列为已验证 Host。1.4.3 接受这些 Host 发出的 v4 会话格式。1.4.2 的导出实现不再携带会导致新版 Host 启动失败的依赖;已安装用户请先升级。版本变更见[更新日志](../CHANGELOG.md),其中包含 1.4.1 的英文名称统一与交互提示优化。接口和数据格式见[架构说明](ARCHITECTURE.md)。
|
|
6
6
|
|
|
7
7
|
## 先理解三个位置
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ function objectLike(value) {
|
|
|
10
10
|
|
|
11
11
|
function validatedHeader(value, expectedId) {
|
|
12
12
|
if (!objectLike(value)
|
|
13
|
-
|| (value.version !== 2 && value.version !== 3)
|
|
13
|
+
|| (value.version !== 2 && value.version !== 3 && value.version !== 4)
|
|
14
14
|
|| typeof value.id !== 'string'
|
|
15
15
|
|| value.id === ''
|
|
16
16
|
|| (expectedId !== undefined && value.id !== expectedId)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-archived-chats",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "查看、搜索和恢复已归档会话,支持按工作区批量归档、备份导入导出与回收站管理。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ultronen",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
99
|
-
"@deepseek-ai/dsh-session": ">=0.1.0-rc.7 <0.1.1-0 || >=0.1.1-rc.1 <0.1.2-0 || >=0.1.2-alpha.1 <0.2.0-0 || 0.1.5-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-session": ">=0.1.0-rc.7 <0.1.1-0 || >=0.1.1-rc.1 <0.1.2-0 || >=0.1.2-alpha.1 <0.2.0-0 || 0.1.5-rc.2 || 0.1.7-rc.2",
|
|
100
100
|
"react": "^18.2.0"
|
|
101
101
|
},
|
|
102
102
|
"peerDependenciesMeta": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"fflate": "^0.8.3"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@deepseek-ai/dsh-session": "0.1.
|
|
111
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
112
112
|
"typescript": "^5.9.3"
|
|
113
113
|
}
|
|
114
114
|
}
|