@michengai/dsh-archive-manager 1.0.5 → 1.0.6
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 +6 -0
- package/CHANGELOG.zh-CN.md +6 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/archive-discovery.js +1 -1
- package/lib/client.js +61 -61
- package/lib/session-repair.js +25 -4
- package/lib/workspace.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
Published release notes are retained below; new versions are added without removing earlier entries.
|
|
6
6
|
|
|
7
|
+
## 1.0.6 - 2026-09-27
|
|
8
|
+
|
|
9
|
+
- Batch delete no longer rereads the remaining archived sessions, so cleanup is faster.
|
|
10
|
+
- Diagnosis and repair can convert early reference-document and working-agreement sources as well as legacy automation sources. Message text and the original log stay unchanged.
|
|
11
|
+
- On DSH 0.1.7, legacy-source repair lets the host perform the format conversion.
|
|
12
|
+
|
|
7
13
|
## 1.0.5 - 2026-09-25
|
|
8
14
|
|
|
9
15
|
- Works with DSH 0.1.7-rc.2. Versions that already worked still work.
|
package/CHANGELOG.zh-CN.md
CHANGED
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Put inactive conversations away and find them again when needed, keeping everyda
|
|
|
34
34
|
|
|
35
35
|
## Session diagnosis and repair
|
|
36
36
|
|
|
37
|
-
The archive page collects read failures, including archived IDs with missing summaries. Expand **Diagnosis and repair**, choose **Diagnose session**, then **Confirm repair** only when eligible. Repair converts supported legacy automation
|
|
37
|
+
The archive page collects read failures, including archived IDs with missing summaries. Expand **Diagnosis and repair**, choose **Diagnose session**, then **Confirm repair** only when eligible. Repair converts supported legacy sources, including automation and early hint sources, while retaining the original log and conversation text. Sessions must be archived and closed in every DSH process. Missing files, permission failures, and unsupported corruption are reported; messages are never truncated or deleted to force recovery. Eligibility is verified from artifacts and the host format, not solely from error wording.
|
|
38
38
|
|
|
39
39
|
## Search and preview
|
|
40
40
|
|
package/README.zh-CN.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
## 异常会话诊断与修复
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
归档页自动汇总读取异常,展开「诊断与修复」可查看原因和处理建议。点击「诊断会话」,符合规则时再点击「确认修复」。当前支持旧自动化来源,以及早期的参考文档提示和工作约定来源,保留原日志与正文。修复要求会话已归档且未在任何 DSH 进程中打开;文件缺失、权限问题与未知损坏只给出处理建议,不删除或截断日志。
|
|
38
38
|
|
|
39
39
|
## 检索与预览
|
|
40
40
|
|
package/lib/archive-discovery.js
CHANGED
|
@@ -196,7 +196,7 @@ function classifySessionError(error) {
|
|
|
196
196
|
const message = errorMessage(error);
|
|
197
197
|
const descriptions = {
|
|
198
198
|
"repair-frame": ["\u65E7\u7248\u4FEE\u590D\u751F\u6210\u7684\u538B\u7F29\u683C\u5F0F\u4E0D\u7B26\u5408\u5BBF\u4E3B\u8981\u6C42", "\u91CD\u65B0\u8BCA\u65AD\u53EF\u7EA0\u6B63\u538B\u7F29\u5E27\u683C\u5F0F\uFF0C\u539F\u59CB\u65E5\u5FD7\u4FDD\u6301\u4E0D\u53D8\u3002"],
|
|
199
|
-
"legacy-source": ["\u65E7\u7248\u6D88\u606F\u6765\u6E90\u4E0D\u53D7\u65B0\u7248 DSH \u652F\u6301", "\u8FD0\u884C\u8BCA\u65AD\uFF0C\u68C0\u67E5\u662F\u5426\u4E3A\u53EF\u8F6C\u6362\u7684\u65E7\
|
|
199
|
+
"legacy-source": ["\u65E7\u7248\u6D88\u606F\u6765\u6E90\u4E0D\u53D7\u65B0\u7248 DSH \u652F\u6301", "\u8FD0\u884C\u8BCA\u65AD\uFF0C\u68C0\u67E5\u662F\u5426\u4E3A\u53EF\u8F6C\u6362\u7684\u65E7\u7248\u6765\u6E90\u3002"],
|
|
200
200
|
missing: ["\u4F1A\u8BDD\u65E5\u5FD7\u6216\u9644\u4EF6\u8DEF\u5F84\u4E0D\u5B58\u5728", "\u68C0\u67E5\u539F\u76EE\u5F55\u6216\u78C1\u76D8\u662F\u5426\u53EF\u7528\uFF1B\u7F3A\u5931\u6B63\u6587\u4E0D\u80FD\u901A\u8FC7\u91CD\u5EFA\u7F13\u5B58\u6062\u590D\u3002"],
|
|
201
201
|
permission: ["\u6CA1\u6709\u6743\u9650\u8BFB\u53D6\u4F1A\u8BDD\u6587\u4EF6", "\u68C0\u67E5\u76EE\u5F55\u8BBF\u95EE\u6743\u9650\u3001\u6587\u4EF6\u5360\u7528\u4E0E\u5B89\u5168\u8F6F\u4EF6\u9650\u5236\uFF0C\u518D\u91CD\u8BD5\u3002"],
|
|
202
202
|
corrupt: ["\u4F1A\u8BDD\u65E5\u5FD7\u53EF\u80FD\u635F\u574F\u6216\u672A\u5B8C\u6574\u5199\u5165", "\u4FDD\u7559\u73B0\u6709\u65E5\u5FD7\uFF0C\u68C0\u67E5\u78C1\u76D8\u548C\u539F\u59CB\u6587\u4EF6\uFF1B\u4E0D\u81EA\u52A8\u622A\u65AD\u6216\u5220\u9664\u6D88\u606F\u3002"],
|