dsh-archived-chats 0.11.0 → 1.0.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.
Files changed (41) hide show
  1. package/README.en.md +94 -29
  2. package/README.md +94 -29
  3. package/assets/screenshots/01-archive-entry.png +0 -0
  4. package/assets/screenshots/01b-archive-success.png +0 -0
  5. package/assets/screenshots/02-archived-overview.png +0 -0
  6. package/assets/screenshots/03-full-text-search.png +0 -0
  7. package/assets/screenshots/04-conversation-preview.png +0 -0
  8. package/assets/screenshots/05-metadata-editor.png +0 -0
  9. package/assets/screenshots/06-bulk-selection.png +0 -0
  10. package/assets/screenshots/07-import-preview.png +0 -0
  11. package/assets/screenshots/08-move-undo.png +0 -0
  12. package/assets/screenshots/09-recycle-restore.png +0 -0
  13. package/assets/screenshots/10-permanent-delete.png +0 -0
  14. package/assets/screenshots/11-storage-retention.png +0 -0
  15. package/assets/screenshots/12-storage-details.png +0 -0
  16. package/assets/screenshots/13-retention-preview.png +0 -0
  17. package/assets/screenshots/14-origins-branches.png +0 -0
  18. package/docs/ARCHITECTURE.en.md +38 -8
  19. package/docs/ARCHITECTURE.md +38 -8
  20. package/lib/client.js +1437 -25
  21. package/lib/history-restore.js +286 -0
  22. package/lib/history.js +326 -0
  23. package/lib/index.js +341 -3
  24. package/lib/insights.js +190 -0
  25. package/lib/lineage.js +247 -0
  26. package/lib/recycle.js +48 -15
  27. package/lib/retention-service.js +217 -0
  28. package/lib/retention.js +263 -0
  29. package/lib/snapshot.js +210 -1
  30. package/lib/types/client/index.d.ts +149 -3
  31. package/lib/types/index.d.ts +149 -1
  32. package/package.json +17 -2
  33. package/assets/screenshots/1-archived-chats.png +0 -0
  34. package/assets/screenshots/2-search.png +0 -0
  35. package/assets/screenshots/3-delete-confirm.png +0 -0
  36. package/assets/screenshots/4-group-menu.png +0 -0
  37. package/assets/screenshots/5-metadata-editor.png +0 -0
  38. package/assets/screenshots/6-bulk-actions.png +0 -0
  39. package/assets/screenshots/7-import-preview.png +0 -0
  40. package/assets/screenshots/8-conversation-preview.png +0 -0
  41. package/assets/screenshots/9-recycle-bin.png +0 -0
package/README.en.md CHANGED
@@ -1,14 +1,30 @@
1
1
  # dsh-archived-chats
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/dsh-archived-chats)](https://www.npmjs.com/package/dsh-archived-chats)
4
+ [![npm downloads](https://img.shields.io/npm/dm/dsh-archived-chats)](https://www.npmjs.com/package/dsh-archived-chats)
5
+ [![CI](https://github.com/Ultronen/dsh-archived-chats/actions/workflows/ci.yml/badge.svg)](https://github.com/Ultronen/dsh-archived-chats/actions/workflows/ci.yml)
6
+ [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com/p/Ultronen/dsh-archived-chats/)
7
+
3
8
  [English](README.en.md) | [中文](README.md)
4
9
 
5
- > 🔎 **Archived no longer means lost.** Search conversation content, read complete messages and tool calls, then back up, restore, or delete safely.
10
+ > 🔎 **Archived no longer means lost.** Search and read complete conversations, inspect local history versions, then back up, restore as a copy, or delete safely.
11
+
12
+ > ♻️ **Removing an archived chat from this plugin is undoable.** The plugin first creates a local recovery snapshot containing the session and attachments, then moves it to the Recycle Bin. Physical removal happens only after an explicit **Delete permanently** action in the Recycle Bin.
13
+
14
+ A local archived-chat manager for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): search and preview complete conversations, retain a validated local version after archive, restore any healthy version as a new archived copy, and manage old chats through backups, an undoable Recycle Bin, retention policies, and Origins & Branches.
6
15
 
7
- > ♻️ **Ordinary deletion is now undoable.** The plugin first creates a local protection snapshot containing the session and attachments, then moves it to the Recycle Bin. Physical removal happens only after an explicit **Delete permanently** action in the Recycle Bin.
16
+ Once a conversation is archived in DeepSeek Harness it disappears from the sidebar, and there is no built-in way to browse it again — only the workspace store (`~/.dsh/storages/workspace.json`) still remembers it. This plugin adds a **Session Archive** page under Settings where every archived session is visible, searchable, and manageable.
8
17
 
9
- A local conversation archive center for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): recover, search, read, back up, restore, or delete archived sessions.
18
+ [Plugin market](https://awesome-dsh-plugin.com/p/Ultronen/dsh-archived-chats/) · [npm](https://www.npmjs.com/package/dsh-archived-chats) · [Releases](https://github.com/Ultronen/dsh-archived-chats/releases) · [Questions and feedback](https://github.com/Ultronen/dsh-archived-chats/discussions) · [Private vulnerability reporting](https://github.com/Ultronen/dsh-archived-chats/security/advisories/new)
10
19
 
11
- Once a conversation is archived in DeepSeek Harness it disappears from the sidebar, and there is no built-in way to browse it again — only the workspace store (`~/.dsh/storages/workspace.json`) still remembers it. This plugin adds an **Archived Chats** page under Settings where every archived session is visible, searchable, and manageable.
20
+ <p align="center">
21
+ <a href="assets/screenshots/04-conversation-preview.png"><img src="assets/screenshots/04-conversation-preview.png" width="49%" alt="Full-text search and read-only preview for archived chats"></a>
22
+ <a href="assets/screenshots/11-storage-retention.png"><img src="assets/screenshots/11-storage-retention.png" width="49%" alt="Storage and Retention with session directories, recovery snapshots, and policy controls"></a>
23
+ </p>
24
+
25
+ <p align="center"><sub>Search and read without unarchiving first; removing an archived chat here moves it through a recovery-snapshot Recycle Bin.</sub></p>
26
+
27
+ If this plugin helps you recover or protect an important conversation, consider starring the repository so people who need archived-chat recovery can discover it more easily.
12
28
 
13
29
  ## 🚀 Install
14
30
 
@@ -16,7 +32,7 @@ Once a conversation is archived in DeepSeek Harness it disappears from the sideb
16
32
  dsh plugin --profile web add dsh-archived-chats@latest
17
33
  ```
18
34
 
19
- Restart DSH once after installing, then open **Settings → Archived Chats**.
35
+ Restart DSH once after installing, then open **Settings → Session Archive**.
20
36
 
21
37
  To update an existing installation:
22
38
 
@@ -26,32 +42,43 @@ dsh plugin --profile web update dsh-archived-chats
26
42
 
27
43
  ## Compatibility
28
44
 
29
- The full 0.11.0 feature target is DeepSeek Harness `0.1.1-rc.2`. Older hosts can still expose the archive list, but a missing persistence, attachment, or live-session lifecycle capability produces an explicit capability error instead of guessed internal writes or an incomplete snapshot. The v0.9.0 UI was checked on Harness `0.1.0-rc.8`; v0.10.0 search, preview, and stored-image reads were checked on `0.1.1-rc.2`.
45
+ Version 1.0.0 has been verified to load in a DeepSeek Harness `0.1.1-rc.2` Web profile, register all 30 routes, and expose the archive/history read boundaries. That rc.2 Web Host does not publish the persistence writer required by ZIP import or **Restore as copy**, so preparation returns `501 restore-unsupported` without writing data; full restore requires a Host that explicitly exposes that public capability. Before downgrading from 1.0, back up `$DSH_HOME/plugin-data/archived-chats/`; 0.12 can still validate, retain, and purge version-one snapshots, but it does not show the History tab.
30
46
 
31
47
  ## Preview
32
48
 
33
- Screenshots 1–7 were captured from 0.9.0 in a local DeepSeek Harness `0.1.0-rc.8` web profile. The archived preview is from 0.10.0 and the Recycle Bin is from 0.11.0, both captured in an isolated real DeepSeek Harness `0.1.1-rc.2` host.
34
-
35
- ![Archived Chats overview](assets/screenshots/1-archived-chats.png)
36
- ![Search and filters](assets/screenshots/2-search.png)
37
- ![Read-only archived conversation preview](assets/screenshots/8-conversation-preview.png)
38
- ![Recycle Bin with automatic protection snapshot](assets/screenshots/9-recycle-bin.png)
39
- ![Group actions](assets/screenshots/4-group-menu.png)
40
- ![Metadata editor](assets/screenshots/5-metadata-editor.png)
41
- ![Bulk actions](assets/screenshots/6-bulk-actions.png)
42
- ![Import preview](assets/screenshots/7-import-preview.png)
49
+ These screenshots are the `0.12.0` UI baseline, captured in an isolated real DeepSeek Harness `0.1.1-rc.2` Chinese light-theme web profile with synthetic demo conversations and no real user data. The 1.0 History UI has not yet replaced this release screenshot set, so the established paths and headings remain unchanged below.
50
+
51
+ ![Archive a conversation from its session menu](assets/screenshots/01-archive-entry.png)
52
+ ![Three-second archive success notice](assets/screenshots/01b-archive-success.png)
53
+ ![Session Archive overview](assets/screenshots/02-archived-overview.png)
54
+ ![Full-text conversation and tool-result search](assets/screenshots/03-full-text-search.png)
55
+ ![Read-only archived conversation preview](assets/screenshots/04-conversation-preview.png)
56
+ ![Tags and notes editor](assets/screenshots/05-metadata-editor.png)
57
+ ![On-demand bulk selection](assets/screenshots/06-bulk-selection.png)
58
+ ![Import backup preview](assets/screenshots/07-import-preview.png)
59
+ ![Undo notice after moving a chat to Recycle Bin](assets/screenshots/08-move-undo.png)
60
+ ![Recycle Bin with recovery snapshots and restore actions](assets/screenshots/09-recycle-restore.png)
61
+ ![Permanent deletion confirmation for the chat and protection snapshot](assets/screenshots/10-permanent-delete.png)
62
+ ![Storage and Retention overview](assets/screenshots/11-storage-retention.png)
63
+ ![Protection snapshot details](assets/screenshots/12-storage-details.png)
64
+ ![Retention cleanup preview](assets/screenshots/13-retention-preview.png)
65
+ ![Origins & Branches relationship view](assets/screenshots/14-origins-branches.png)
43
66
 
44
67
  ## Usage
45
68
 
46
- 1. Archive a conversation from the normal DSH session menu. Archiving removes it from the sidebar but keeps its session data in the workspace store.
47
- 2. Open **Settings → Archived Chats**. The page groups archived conversations by workspace and remembers collapsed groups in this browser.
48
- 3. Search titles, tags, notes, conversation text, or tool output. Open the row preview to read an archived conversation without unarchiving it. Click **Select multiple** only when you need bulk actions.
49
- 4. Click **Import backup** to choose a ZIP produced by this plugin and confirm non-conflicting sessions after the preview. Click **Export backup** to export the current selection, or every archived chat when nothing is selected. Individual rows also have an export action.
50
- 5. Choose **Unarchive** to return a conversation to the sidebar. **Move to Recycle Bin** creates a protection snapshot and offers immediate **Undo**; the session can also be restored later from the **Recycle Bin** tab. Only **Delete permanently / Empty Recycle Bin** removes originals and snapshots irreversibly.
69
+ 1. Archive a conversation from the normal DSH session menu. After Host success, the notice first reports **saving history version** and starts its three-second dismissal only after save. Snapshot failure never rolls back archive success; the notice retains **Retry save**, **View**, **Undo**, and close actions.
70
+ 2. Open **Settings → Session Archive → History**. Groups can be searched by safe title/workspace and expanded to preview any healthy version read-only or choose **Restore as copy**. The Host generates a new session ID and registers the result as archived; it never overwrites, unarchives, or deletes the source.
71
+ 3. Use **Archived** to manage chats by workspace and search titles, tags, notes, message text, or tool output. Row preview does not require unarchive.
72
+ 4. Use **Import backup / Export backup** for ZIP backups. ZIP import and history restore are separate flows.
73
+ 5. **Move to Recycle Bin** reuses a healthy snapshot for the same revision when possible and otherwise publishes a new protection snapshot. Only **Delete permanently / Empty Recycle Bin** irreversibly removes the original and every validated snapshot for that source.
74
+ 6. Use **Storage & Retention** to preview and explicitly apply history-count, age, quota, and recycle-age policy. **Origins & Branches** remains a read-only tree of necessary relationship context.
51
75
 
52
76
  ## Features
53
77
 
54
78
  - **Complete archived-session list**, grouped by workspace (project) with a per-group count. Every group can be collapsed or expanded, and the state is remembered per browser.
79
+ - **Archive success notice**: after a chat is archived, a compact frame-wide notice remains for three seconds with **View**, **Undo**, and close actions. Pointer hover or keyboard focus pauses the timer, active View/Undo work cannot time out, and failures retain a retry action.
80
+ - **Local history after archive**: only a successful browser-originated archive captures a validated version, deduplicated by the same non-null source revision. The plugin never scans unrelated active chats and performs no startup, scheduled, or background capture.
81
+ - **History timeline, restore, and deletion**: the fifth History tab shows timestamp, size, attachment count, recycle-protection state, and opaque degraded items by original chat. Preview is read-only and restore always creates a new archived ID. Ordinary history can be deleted individually or cleared globally after confirmation and cannot then be recovered. Original chats remain unchanged; recycle-protection and degraded snapshots are skipped.
55
82
  - **Full-text conversation search**: one search field matches titles, workspaces, tags, notes, user messages, assistant answers, and tool results, with a readable hit excerpt on each matching row.
56
83
  - **Native archived conversation preview and turn navigation**: follow the Harness conversation layout with user messages on the right and assistant messages on the left; present Markdown, reasoning, tool activity, JSON, code, and available stored images read-only, while retaining a responsive turn rail for quick jumps. If the host lacks attachment capability, only images degrade and the rest of the preview remains readable.
57
84
  - **Filter and sort** by type (all / regular / subagent), project, and tag; then order results by newest, oldest, or title.
@@ -62,17 +89,22 @@ Screenshots 1–7 were captured from 0.9.0 in a local DeepSeek Harness `0.1.0-rc
62
89
  - **Compact top-level actions**: common **Import backup** / **Export backup** actions are direct, while the low-frequency destructive action lives under **More**. The page stays focused on DSH archive management without a persistent source selector or redundant menus.
63
90
  - **On-demand multi-select**: checkboxes stay hidden by default and appear only after clicking **Select multiple**. Select individual chats, every visible result, or an entire project; the selection bar can export, unarchive, or move the chosen chats to the Recycle Bin, while selections hidden by another filter remain intact.
64
91
  - **Unarchive** a single chat or a whole project group from the group's `⋯` menu — restored chats reappear in the sidebar immediately.
65
- - **Archived / Recycle Bin tabs**: recycled rows stay grouped by their original workspace, each group can collapse independently, and rows show trash time, snapshot size, attachment count, and `trashed` / `degraded` / `purge-pending` state. Checkboxes stay hidden until **Select multiple** is activated.
66
- - **Automatic protection snapshots**: moving a session captures all conversation events plus verified stored-image bytes before the recycle record commits. One current protection snapshot is kept per session; 0.11 does not provide historical retention or conversation-tree restoration.
92
+ - **Five archive-management views**: Archived, History, Recycle Bin, Storage & Retention, and Origins & Branches. History loads only on first activation; Recycle Bin stays grouped by original workspace with independent disclosure state.
93
+ - **Storage analysis**: separately measures archived/recycled session directories and plugin-owned snapshots, with unavailable/degraded diagnostics and repeated snapshot-attachment bytes. Searchable detail dialogs open from the summary cards, so long inventories never push retention controls down the page. It does not label these numbers as globally reclaimable Harness attachment storage.
94
+ - **Preview-first retention policies**: plan by retained recovery snapshots per original chat, snapshot age, snapshot quota, and recycle age. The default keeps one recovery snapshot per original chat. Saving never runs cleanup; snapshots in use by Recycle Bin or unavailable snapshots are excluded and permanent recycle purges start unselected.
95
+ - **Read-only Origins & Branches**: uses durable Harness `parentSession` fields to show the sources, forks, and subagent trees of archived/recycled chats, retaining only the parent/child context needed to explain them. Unrelated active chats are not sent to the browser. Managed cards keep source copy inside the card and put a centered disclosure arrow on its own bottom row; users can click the whole card or arrow to fold, copy the full ID, use project/status filters, and expand or collapse all. Searching titles, projects, or IDs automatically reveals matching paths; an independently scrolling tree keeps large datasets from extending the page, and root branches default to collapsed above 50 nodes. Missing parents, cycles, and delegation-depth mismatches render in full inside the affected managed card without rewriting relationships.
96
+ - **Automatic recovery snapshots and retained history**: moving an archived chat to Recycle Bin captures all events plus verified image bytes. Restore removes the recycle record but deliberately retains the validated snapshot, so retained recovery storage can exist with an empty archive list. Repeated restore/recycle cycles retain older valid snapshots until the user explicitly applies retention or permanently purges the chat.
67
97
  - **Two-level restore**: when the original session is intact, restore only removes the recycle marker and does not rewrite persistence. If the original is missing, the plugin falls back to the validated session-and-attachment snapshot through public writer capabilities, never overwriting an existing ID.
68
98
  - **Explicit permanent purge**: only the Recycle Bin exposes permanent delete and empty. The plugin records durable `purge-pending` crash intent before deleting the original and snapshot; interrupted purges retry at startup.
69
99
  - Works in light and dark schemes; localized in English and 中文.
70
100
 
71
101
  ## Recycle Bin, privacy, and attachment limits
72
102
 
73
- The recycle catalog (`trash.json`) and protection snapshots live under `$DSH_HOME/plugin-data/archived-chats/` and stay on this machine. Attachment bytes are read one at a time, digest-verified, and atomically published; neither conversations nor attachments are uploaded. Recycle previews use a separate authorized scope.
103
+ The recycle catalog (`trash.json`) plus history/protection snapshots live under `$DSH_HOME/plugin-data/archived-chats/` and stay on this machine. Attachment bytes are read one at a time, digest-verified, and atomically published. Conversations and attachments are never uploaded, cloud-synced, background-scanned, or scheduled for capture.
74
104
 
75
- Permanent purge removes the snapshot's attachment copies, but Harness's global attachment store may retain identical bytes because another session still references them or because the host applies its own garbage-collection policy. This plugin does not claim immediate global attachment GC.
105
+ Retention policy lives in `retention.json` under the same directory. Policies never run in the background, at startup, or on a timer; every cleanup requires a single-use five-minute preview followed by explicit selection and confirmation.
106
+
107
+ Permanent Recycle Bin purge removes every validated snapshot attachment copy for that source, but Harness's global attachment store may retain identical bytes because another session still references them or because the host applies its own garbage-collection policy. This plugin does not claim immediate global attachment GC.
76
108
 
77
109
  ## Tags, notes, and statistics
78
110
 
@@ -105,6 +137,13 @@ No. DSH hides the conversation from the sidebar and keeps its archived session r
105
137
 
106
138
  </details>
107
139
 
140
+ <details>
141
+ <summary><b>Are history versions screenshots, and can restore overwrite the source?</b></summary>
142
+
143
+ No. They are locally stored, validated copies of session records and attachments, and preview is read-only. **Restore as copy** asks the Host for a new ID and creates a new archived chat. It never overwrites, deletes, or unarchives the source or mutates the selected snapshot.
144
+
145
+ </details>
146
+
108
147
  <details>
109
148
  <summary><b>What happens when an imported backup contains an existing session ID?</b></summary>
110
149
 
@@ -126,9 +165,16 @@ Yes. The success notice includes **Undo**, and the Recycle Bin keeps a Restore a
126
165
 
127
166
  </details>
128
167
 
168
+ <details>
169
+ <summary><b>Why are recovery snapshots shown when there are no archived chats?</b></summary>
170
+
171
+ A recovery snapshot is created before an archived chat moves to the Recycle Bin. Restoring removes the recycle record but deliberately keeps the validated snapshot as recovery history, so it may still use storage after the archive list becomes empty. Delete one ordinary version or use **Clear history versions** from History; a snapshot still protecting Recycle Bin recovery is skipped. Alternatively, set retention count to `0` and run **Preview cleanup → Apply selected cleanup**.
172
+
173
+ </details>
174
+
129
175
  ## Implementation overview
130
176
 
131
- The plugin has two halves: the Host service manages archives, snapshots, the recycle catalog, and restore/purge transactions, while the browser page provides search, preview, backup, restore, and explicit confirmations. Mutations go through guarded local routes. Ordinary removal commits only a recycle record; physical removal is reachable only through the Recycle Bin's crash-safe purge flow.
177
+ The plugin has two halves: the Host service manages archives, version snapshots, the recycle catalog, and restore/purge transactions, while the browser page provides search, history timelines, read-only preview, backup, restore-as-copy, and explicit confirmations. Mutations go through guarded local routes. Ordinary removal commits only a recycle record; physical removal is reachable only through the Recycle Bin's crash-safe purge flow.
132
178
 
133
179
  User-facing storage, backup limits, deletion outcomes, and compatibility notes stay in this README. Maintainer details such as route contracts, data flow, restore transactions, live-deletion lifecycle, and failure fallbacks are documented in [ARCHITECTURE.md](docs/ARCHITECTURE.en.md).
134
180
 
@@ -138,10 +184,29 @@ User-facing storage, backup limits, deletion outcomes, and compatibility notes s
138
184
  npm test
139
185
  ```
140
186
 
141
- The suite (`test/*.test.mjs`) covers export records and real ZIP decoding, bounded import validation, restore transactions, metadata and statistics, full-text search, conversation preview, and host-and-browser smoke tests. It uses an isolated temporary DSH home plus mocked host and browser runtimes; it never reads or changes real sessions.
187
+ The suite (`test/*.test.mjs`) covers export/import, history capture/inventory/preview/image authorization, single-use restore-as-copy transactions and rollback, retention, full-text search, and Host/browser smoke and responsive behavior. It uses an isolated temporary DSH home plus mocked host and browser runtimes; it never reads or changes real sessions.
142
188
 
143
189
  ## Version history
144
190
 
191
+ ### 1.0.0
192
+
193
+ - Added the fifth **History** tab for validated local versions, recycle-protection state, safe search, and opaque degraded entries grouped by source chat.
194
+ - Browser archive success now captures by stable revision; capture failure never rolls back archive and the notice retains safe retry.
195
+ - Reused the conversation preview for snapshot timestamps and verified images. Restore always creates a new archived ID and never overwrites the source.
196
+ - Added confirmed single-version deletion and global History clearing without selection checkboxes; recycle-protection and degraded snapshots are not removed by these actions.
197
+ - Recycle moves may reuse the same healthy non-null revision. Retention continues to govern history, and permanent purge removes every validated snapshot for the source.
198
+ - A real `0.1.1-rc.2` Web Host verified plugin loading, safe inventory, and capability degradation; without a writer, restore fails without mutation as `restore-unsupported`.
199
+ - **Downgrade reminder:** 0.12 does not show History, but it can validate, retain, and purge version-one snapshots. Back up `$DSH_HOME/plugin-data/archived-chats/` before downgrading.
200
+
201
+ ### 0.12.0
202
+
203
+ - Added a three-second top notice after archive success, with direct View and Undo, hover/focus pause, and retryable failures.
204
+ - Added separate session/snapshot accounting, repeated snapshot-attachment totals, and unavailable/degraded diagnostics.
205
+ - Added count/age/quota retention planning with separate save/apply, short-lived single-use previews, and execution-time revalidation.
206
+ - Added a read-only Origins & Branches tree scoped to archived/recycled chats and necessary relationship context, with diagnostics for missing parents, cycles, and delegation-depth anomalies.
207
+ - Recycle cycles retain prior valid snapshots; permanent purge still removes the original and every valid snapshot through `purge-pending`.
208
+ - **Downgrade warning:** 0.11.x does not display or govern multiple histories, though it tolerates them and removes them on permanent purge. Back up `$DSH_HOME/plugin-data/archived-chats/` before downgrading.
209
+
145
210
  ### 0.11.0
146
211
 
147
212
  - Added persistent **Archived / Recycle Bin** tabs, independent recycle selection, trash-scoped preview, restore, permanent purge, and empty actions.
@@ -203,7 +268,7 @@ The suite (`test/*.test.mjs`) covers export records and real ZIP decoding, bound
203
268
 
204
269
  ### 0.3.0
205
270
 
206
- - First published release of the Archived Chats settings page.
271
+ - First published release of the Session Archive settings page.
207
272
  - Added workspace-grouped browsing, title search, type/project filters, unarchive, and confirmed single/group/all deletion.
208
273
  - Added host routes, the browser settings section, and the pending-deletion sweep for live sessions.
209
274
 
@@ -217,7 +282,7 @@ The suite (`test/*.test.mjs`) covers export records and real ZIP decoding, bound
217
282
  dsh plugin --profile web remove dsh-archived-chats
218
283
  ```
219
284
 
220
- Uninstalling does not remove `metadata.json`, `trash.json`, protection snapshots, or a legacy `pending-deletions.json` under `$DSH_HOME/plugin-data/archived-chats/`, and it never triggers permanent purge. Restore or back up anything you need before manually handling that directory.
285
+ Uninstalling does not remove `metadata.json`, `trash.json`, `retention.json`, protection snapshots, or a legacy `pending-deletions.json` under `$DSH_HOME/plugin-data/archived-chats/`, and it never triggers permanent purge. Restore or back up anything you need before manually handling that directory.
221
286
 
222
287
  ## License
223
288
 
package/README.md CHANGED
@@ -1,14 +1,30 @@
1
1
  # dsh-archived-chats
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/dsh-archived-chats)](https://www.npmjs.com/package/dsh-archived-chats)
4
+ [![npm downloads](https://img.shields.io/npm/dm/dsh-archived-chats)](https://www.npmjs.com/package/dsh-archived-chats)
5
+ [![CI](https://github.com/Ultronen/dsh-archived-chats/actions/workflows/ci.yml/badge.svg)](https://github.com/Ultronen/dsh-archived-chats/actions/workflows/ci.yml)
6
+ [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com/p/Ultronen/dsh-archived-chats/)
7
+
3
8
  [English](README.en.md) | 中文
4
9
 
5
- > 🔎 **归档不再等于消失。** 直接搜索聊天正文、阅读完整对话和工具调用,然后安全备份、恢复或删除。
10
+ > 🔎 **归档不再等于消失。** 直接搜索和阅读完整对话,查看本地历史版本,再安全备份、恢复为副本或删除。
11
+
12
+ > ♻️ **在本插件中移除归档聊天可以撤销。** 插件会先创建包含会话与附件的本地恢复快照,再移入回收站;只有在回收站中明确选择「永久删除」才会物理清除。
13
+
14
+ 为 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 新增一个本地归档聊天中心:搜索和预览完整对话,在每次成功归档后保留已验证的历史版本,把任意健康版本恢复为新的已归档副本,并通过备份、可撤销回收站、保留策略及来源与分支管理历史聊天。
6
15
 
7
- > ♻️ **普通删除现在可撤销。** 插件会先创建包含会话与附件的本地保护快照,再移入回收站;只有在回收站中明确选择「永久删除」才会物理清除。
16
+ 在 DeepSeek Harness 里,聊天一旦归档就会从侧边栏消失,界面中没有任何入口可以再看到它,只有工作区存档(`~/.dsh/storages/workspace.json`)还记得它。这个插件在「设置」中补上一个「会话档案」页面,让所有归档会话都可见、可搜索、可管理。
8
17
 
9
- 为 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 新增一个本地会话归档中心:找回、搜索、阅读、备份、恢复或删除被归档的会话。
18
+ [插件市场](https://awesome-dsh-plugin.com/p/Ultronen/dsh-archived-chats/) · [npm](https://www.npmjs.com/package/dsh-archived-chats) · [版本发布](https://github.com/Ultronen/dsh-archived-chats/releases) · [问题交流](https://github.com/Ultronen/dsh-archived-chats/discussions) · [私密报告漏洞](https://github.com/Ultronen/dsh-archived-chats/security/advisories/new)
10
19
 
11
- 在 DeepSeek Harness 里,聊天一旦归档就会从侧边栏消失,界面中没有任何入口可以再看到它,只有工作区存档(`~/.dsh/storages/workspace.json`)还记得它。这个插件在「设置」中补上一个「已归档的聊天」页面,让所有归档会话都可见、可搜索、可管理。
20
+ <p align="center">
21
+ <a href="assets/screenshots/04-conversation-preview.png"><img src="assets/screenshots/04-conversation-preview.png" width="49%" alt="归档聊天正文搜索与只读对话预览"></a>
22
+ <a href="assets/screenshots/11-storage-retention.png"><img src="assets/screenshots/11-storage-retention.png" width="49%" alt="空间与策略中的会话目录、恢复快照和保留策略"></a>
23
+ </p>
24
+
25
+ <p align="center"><sub>无需先取消归档即可搜索和阅读;从本插件移除归档聊天时会先进入带恢复快照的回收站。</sub></p>
26
+
27
+ 如果它帮你找回或保护过一次重要对话,欢迎给仓库一个 Star——这能帮助真正需要归档恢复功能的用户更容易发现它。
12
28
 
13
29
  ## 🚀 安装
14
30
 
@@ -16,7 +32,7 @@
16
32
  dsh plugin --profile web add dsh-archived-chats@latest
17
33
  ```
18
34
 
19
- 安装后重启一次 DSH,然后打开 **设置 → 已归档的聊天**。
35
+ 安装后重启一次 DSH,然后打开 **设置 → 会话档案**。
20
36
 
21
37
  更新已有安装:
22
38
 
@@ -26,32 +42,43 @@ dsh plugin --profile web update dsh-archived-chats
26
42
 
27
43
  ## 兼容性
28
44
 
29
- 0.11.0 的完整功能目标是 DeepSeek Harness `0.1.1-rc.2`。较旧宿主仍可使用归档列表,但缺少持久层、附件或运行中会话生命周期能力时,回收操作会返回明确的能力错误,不会猜测宿主内部结构或写入不完整快照。v0.9.0 界面已在 Harness `0.1.0-rc.8` 复核;v0.10.0 搜索、预览和图片读取已在 `0.1.1-rc.2` 复核。
45
+ 1.0.0 已在 DeepSeek Harness `0.1.1-rc.2` Web profile 中验证能正常加载、注册 30 条路由并提供归档/历史读取边界。该 rc.2 Web Host 未公开导入与「恢复为副本」所需的持久层 writer,因此确认准备会返回 `501 restore-unsupported`且不写入数据;完整恢复需要宿主明确提供该公开能力。从 1.0 降级前请先备份 `$DSH_HOME/plugin-data/archived-chats/`;0.12 可继续校验、保留和清理 version 1 快照,但不会显示「历史版本」页签。
30
46
 
31
47
  ## 预览
32
48
 
33
- 截图 1–7 来自 `0.9.0` 在本地 DeepSeek Harness `0.1.0-rc.8` Web profile 中的实际操作;归档对话预览来自 `0.10.0`,回收站来自 `0.11.0`,两者都在 DeepSeek Harness `0.1.1-rc.2` 隔离真实宿主中捕获。
34
-
35
- ![已归档的聊天总览](assets/screenshots/1-archived-chats.png)
36
- ![搜索与筛选](assets/screenshots/2-search.png)
37
- ![归档对话只读预览](assets/screenshots/8-conversation-preview.png)
38
- ![回收站与自动保护快照](assets/screenshots/9-recycle-bin.png)
39
- ![分组操作](assets/screenshots/4-group-menu.png)
40
- ![标签与备注编辑](assets/screenshots/5-metadata-editor.png)
41
- ![批量操作](assets/screenshots/6-bulk-actions.png)
42
- ![导入预览](assets/screenshots/7-import-preview.png)
49
+ 以下截图是 `0.12.0` 界面基线,在隔离的真实 DeepSeek Harness `0.1.1-rc.2` 中文浅色 Web profile 中捕获,只使用合成演示会话,不包含真实用户数据。1.0 的「历史版本」界面尚未替换这组发布截图,因此下方仍保留原有路径和标题。
50
+
51
+ ![从会话菜单点击归档](assets/screenshots/01-archive-entry.png)
52
+ ![归档成功后的三秒提示](assets/screenshots/01b-archive-success.png)
53
+ ![会话档案总览](assets/screenshots/02-archived-overview.png)
54
+ ![聊天正文与工具结果全文搜索](assets/screenshots/03-full-text-search.png)
55
+ ![归档对话只读预览](assets/screenshots/04-conversation-preview.png)
56
+ ![标签与备注编辑](assets/screenshots/05-metadata-editor.png)
57
+ ![按需批量选择](assets/screenshots/06-bulk-selection.png)
58
+ ![导入归档备份预览](assets/screenshots/07-import-preview.png)
59
+ ![移至回收站后的撤销提示](assets/screenshots/08-move-undo.png)
60
+ ![回收站中的恢复快照与恢复操作](assets/screenshots/09-recycle-restore.png)
61
+ ![永久删除会话与保护快照确认](assets/screenshots/10-permanent-delete.png)
62
+ ![空间与策略概览](assets/screenshots/11-storage-retention.png)
63
+ ![保护快照明细](assets/screenshots/12-storage-details.png)
64
+ ![保留策略清理预览](assets/screenshots/13-retention-preview.png)
65
+ ![来源与分支关系视图](assets/screenshots/14-origins-branches.png)
43
66
 
44
67
  ## 使用流程
45
68
 
46
- 1. 在 DSH 正常聊天的会话菜单中点击归档。归档只会把会话从侧边栏隐藏,工作区存档仍会保留会话数据。
47
- 2. 打开 **设置 → 已归档的聊天**。页面按工作区分组,并在当前浏览器中记住分组的折叠状态。
48
- 3. 搜索标题、标签、备注、聊天正文或工具结果;点击行内预览按钮可直接阅读归档对话,无需先取消归档。需要多选时点击 **批量选择** 显示复选框。
49
- 4. 点击顶部 **导入备份** 选择本插件导出的 ZIP,预览后确认无冲突会话;点击 **导出备份** 导出当前选中项,未选择时导出全部归档会话。单条会话也可以从行内操作导出。
50
- 5. 点击 **取消归档** 将会话放回侧边栏;点击 **移至回收站** 会创建保护快照,可立即点击 **撤销**,也可稍后在 **回收站** 标签恢复。只有回收站中的 **永久删除 / 清空回收站** 会不可撤销地移除原会话和快照。
69
+ 1. 在 DSH 正常聊天的会话菜单中点击归档。宿主确认成功后,顶部提示会先显示「正在保存历史版本」,保存完成后才开始 3 秒关闭计时。快照失败不会回滚已成功的归档,提示会保留「重试保存」、**查看**、**撤销** 和关闭操作。
70
+ 2. 打开 **设置 → 会话档案 → 历史版本**。这里按原会话分组,可搜索安全标题/项目,展开后可只读预览任意健康版本,或选择 **恢复为副本**。恢复由 Host 生成新会话 ID,始终作为已归档副本,不覆盖、取消归档或删除来源。
71
+ 3. 在 **归档** 页签按工作区管理会话,搜索标题、标签、备注、聊天正文或工具结果;行内预览无需先取消归档。
72
+ 4. 使用顶部 **导入备份 / 导出备份** 管理 ZIP 备份;ZIP 导入与历史恢复是两条独立流程。
73
+ 5. 点击 **取消归档** 将会话放回侧边栏;点击 **移至回收站** 会在同一修订已有健康快照时复用它,否则创建新的保护快照。只有回收站中的 **永久删除 / 清空回收站** 会不可撤销地移除原会话与该来源的全部已验证历史快照。
74
+ 6. 打开 **空间与策略** 预览并明确应用历史数量、年龄、容量和回收站年龄策略。**来源与分支** 仍以只读分支树展示必要关系上下文。
51
75
 
52
76
  ## 功能
53
77
 
54
78
  - **完整归档列表**:按工作区(项目)分组并显示每组数量;每个分组都可折叠/展开,状态按浏览器记忆。
79
+ - **归档成功提示**:会话归档成功后,在 DSH 全局浮层显示 3 秒的紧凑提示,提供 **查看**、**撤销** 和关闭操作;鼠标悬停或键盘聚焦会暂停计时,查看/撤销进行中不会自动消失,失败时保留重试入口。
80
+ - **归档后本地历史**:浏览器触发的普通归档成功后才抓取一个已验证版本;相同非空修订去重。不扫描无关活动会话,不在后台、定时器或启动时自动抓取。
81
+ - **历史时间线、恢复与删除**:第五个「历史版本」页签按原会话展示时间、大小、附件数和回收保护状态;预览只读,恢复始终生成新的已归档 ID。普通历史可经确认后单条删除或全局清空,删除后无法恢复;原聊天不受影响,回收站保护和降级快照会跳过。
55
82
  - **聊天正文全文搜索**:同一个搜索框同时匹配标题、项目、标签、备注、用户消息、助手回答与工具结果,并在结果行显示命中摘要。
56
83
  - **原生归档对话预览与轮次导航**:沿用 Harness 会话布局,用户消息靠右、助手消息靠左;以只读方式展示 Markdown、思考过程、工具活动、JSON、代码和可用的已存储图片,并保留可快速跳转的响应式轮次轨道。宿主缺少附件能力时只影响图片,其他预览内容仍可阅读。
57
84
  - **筛选与排序**:用类型(全部 / 普通会话 / 子代理会话)、项目和标签筛选,并按最新、最早或标题排序。
@@ -62,17 +89,22 @@ dsh plugin --profile web update dsh-archived-chats
62
89
  - **紧凑顶部操作**:常用的 **导入备份** / **导出备份** 直接可用,低频危险操作收纳在 **更多**;页面专注于 DSH 归档管理,不常驻来源选择器或冗余菜单。
63
90
  - **按需多选**:复选框默认隐藏,点击 **批量选择** 后才显示;可逐条选择、选择当前筛选结果或整个项目。选中后可一次导出、取消归档或移至回收站,隐藏在其他筛选结果中的选择不会丢失。
64
91
  - **取消归档**单个聊天,或从分组的 `⋯` 菜单整组取消——恢复的聊天会立刻回到侧边栏。
65
- - **归档 / 回收站双标签**:回收站按原工作区分组并可独立折叠,显示移入时间、快照大小、附件数和 `trashed` / `degraded` / `purge-pending` 状态;复选框默认隐藏,点击 **批量选择** 后才显示。
66
- - **自动保护快照**:移入回收站前保存完整会话事件和经校验的图片附件字节。每个会话只保留一个当前保护快照;本版不提供按时间的多代保留或会话树恢复。
92
+ - **五个归档管理视图**:归档、历史版本、回收站、空间与策略、来源与分支。历史页首次激活时才加载;回收站按原工作区分组并可独立折叠。
93
+ - **空间分析**:分别统计归档/回收会话目录与插件保护快照,标出无法统计项、降级快照和重复快照附件字节;会话目录与快照明细从摘要卡片进入可搜索弹窗,不会把保留策略持续向下推,也不会把这些数字描述为 Harness 全局附件可回收空间。
94
+ - **预览优先的保留策略**:可按每个原会话的保留快照数、快照年龄、快照容量和回收站年龄生成候选;默认每个原会话保留一份恢复快照。保存策略绝不自动执行,回收站正在使用或不可用的快照不会被选中,回收站永久删除默认不勾选。
95
+ - **只读来源与分支**:使用 Harness 持久化 `parentSession` 展示已归档/回收站会话的来源、分叉和子代理树,并保留解释关系所需的父子上下文;无关活动会话不会发送到浏览器。管理卡片把来源说明放在卡片内容中,底部独立一排居中显示折叠箭头;可复制完整 ID、点击整张卡片或箭头折叠,使用项目/状态筛选和全局展开/折叠。搜索标题、项目或 ID 时会自动展开命中路径,独立滚动区域避免大树持续推长页面,超过 50 个节点时根分支默认折叠。本版只诊断缺失父节点、循环与委派深度不一致,诊断在对应管理卡片内完整换行显示,不修改关系。
96
+ - **自动恢复快照与保留历史**:已归档聊天移入回收站前保存完整会话事件和经校验的图片附件字节。恢复只移除回收记录,不自动删除快照;它会显示为“已保留的恢复快照”,即使当前没有归档聊天。重复恢复/回收会继续保留旧的有效快照,直到用户明确应用保留策略或永久删除该会话。
67
97
  - **两级恢复**:原会话仍完好时只移除回收标记,不重写持久层;原件丢失时才使用已验证快照和官方写入能力回退恢复,且绝不覆盖同 ID 会话。
68
98
  - **明确的永久删除**:仅回收站提供永久删除与清空。插件先写入 `purge-pending` 崩溃恢复意图,再删除原会话和保护快照;中途失败会在下次启动重试。
69
99
  - 适配浅色/深色主题,支持中文和英文界面。
70
100
 
71
101
  ## 回收站、隐私与附件限制
72
102
 
73
- 回收目录 `trash.json` 与保护快照位于 `$DSH_HOME/plugin-data/archived-chats/`,全部只保存在本机。快照会逐个读取附件、校验摘要并使用原子发布;不会上传会话或附件。回收站中的预览也使用单独授权范围。
103
+ 回收目录 `trash.json` 与历史/保护快照位于 `$DSH_HOME/plugin-data/archived-chats/`,全部只保存在本机。快照会逐个读取附件、校验摘要并使用原子发布;不会上传、云同步或定时扫描会话与附件。
74
104
 
75
- 永久删除会删掉该会话的快照附件副本,但 Harness 全局附件存储可能仍因其他会话引用或宿主垃圾回收策略保留相同字节;本插件不声称会立即清理宿主的全局附件库。
105
+ 保留策略保存在同目录的 `retention.json`。插件不会在后台、启动时或定时自动应用策略;每次清理都要先生成五分钟有效的单次预览,再由用户选择并确认。
106
+
107
+ 回收站永久删除会删掉该来源的全部已验证快照附件副本,但 Harness 全局附件存储可能仍因其他会话引用或宿主垃圾回收策略保留相同字节;本插件不声称会立即清理宿主的全局附件库。
76
108
 
77
109
  ## 标签、备注与统计
78
110
 
@@ -105,6 +137,13 @@ JSON 会保留附件引用,但**本版不复制附件二进制,也不包含
105
137
 
106
138
  </details>
107
139
 
140
+ <details>
141
+ <summary><b>历史版本是界面截图吗?恢复会覆盖原聊天吗?</b></summary>
142
+
143
+ 不是。它们是插件在本机保存并校验的会话记录与附件副本,预览只读。**恢复为副本** 会请 Host 生成新 ID,创建新的已归档聊天;来源会话和所选快照均不会被覆盖、删除或取消归档。
144
+
145
+ </details>
146
+
108
147
  <details>
109
148
  <summary><b>导入备份包含已存在的会话 ID 时会怎样?</b></summary>
110
149
 
@@ -126,9 +165,16 @@ JSON 会保留附件引用,但**本版不复制附件二进制,也不包含
126
165
 
127
166
  </details>
128
167
 
168
+ <details>
169
+ <summary><b>为什么没有已归档聊天,空间页仍显示恢复快照?</b></summary>
170
+
171
+ 恢复快照是在已归档聊天移入回收站前创建的。恢复聊天时插件会移除回收记录,但故意保留已经验证的快照作为恢复历史,因此当前归档列表为空时仍可能占用空间。可在「历史版本」中单条删除或使用「清空历史版本」;回收站正在使用的保护版本会跳过。也可将保留数量改为 `0`,再执行 **预览清理 → 应用所选清理**。
172
+
173
+ </details>
174
+
129
175
  ## 实现概览
130
176
 
131
- 插件由两部分组成:Host 服务层负责读取本地归档、快照、回收目录和恢复/清除事务,浏览器设置页负责搜索、预览、备份、恢复与明确确认。所有修改都通过受保护的本地路由完成;普通移除只提交回收记录,物理清除仅由回收站的崩溃安全 purge 流程触发。
177
+ 插件由两部分组成:Host 服务层负责读取本地归档、版本快照、回收目录和恢复/清除事务,浏览器设置页负责搜索、历史时间线、只读预览、备份、恢复为副本与明确确认。所有修改都通过受保护的本地路由完成;普通移除只提交回收记录,物理清除仅由回收站的崩溃安全 purge 流程触发。
132
178
 
133
179
  普通用户需要了解的数据保存、备份限制、删除结果和兼容性说明已列在本 README 中。路由清单、数据流、恢复事务、实时删除生命周期和失败回退等维护者细节请参阅 [架构文档](docs/ARCHITECTURE.md)。
134
180
 
@@ -138,10 +184,29 @@ JSON 会保留附件引用,但**本版不复制附件二进制,也不包含
138
184
  npm test
139
185
  ```
140
186
 
141
- 测试套件(`test/*.test.mjs`)覆盖导出记录与真实 ZIP 解包、有界导入校验、恢复事务、元数据存储、统计服务、全文搜索、对话预览,以及宿主+浏览器冒烟测试。测试使用隔离的临时 DSH 主目录和模拟运行时,不会读取或修改真实会话。
187
+ 测试套件(`test/*.test.mjs`)覆盖导出与导入、历史抓取/清单/预览/图片授权、单次确认的恢复为副本事务、回滚、保留策略、全文搜索,以及 Host+浏览器冒烟/响应式行为。测试使用隔离的临时 DSH 主目录和模拟运行时,不会读取或修改真实会话。
142
188
 
143
189
  ## 版本更新记录
144
190
 
191
+ ### 1.0.0
192
+
193
+ - 新增第五个 **历史版本** 页签:按原会话查看本地已验证版本、回收保护状态和不透明降级项。
194
+ - 浏览器归档成功后按稳定修订去重抓取;失败不回滚归档,通知保留安全重试。
195
+ - 复用原有对话预览显示快照时间与已验证图片;恢复始终生成新的已归档 ID,不覆盖来源。
196
+ - 新增经过危险确认的单条历史删除和全局清空;不使用复选框,回收站保护/降级快照不会被该操作删除。
197
+ - 回收移动可复用相同非空修订快照;保留策略继续治理历史,永久删除会清掉该来源的全部已验证快照。
198
+ - 真实 `0.1.1-rc.2` Web Host 验证了插件加载、安全清单与能力降级;宿主缺少 writer 时恢复以 `restore-unsupported` 无写入失败。
199
+ - **降级提醒:** 0.12 不显示「历史版本」页签,但仍能校验、保留和清理 version 1 快照。降级前仍应备份 `$DSH_HOME/plugin-data/archived-chats/`。
200
+
201
+ ### 0.12.0
202
+
203
+ - 归档成功后新增 3 秒顶部提示,可立即查看归档中心或撤销;悬停/聚焦暂停,操作失败保留重试。
204
+ - 新增会话目录与保护快照分账、重复快照附件统计和不可用/降级诊断。
205
+ - 新增按历史数、年龄与容量规划的保留策略;保存与执行分离,清理使用单次短效预览并在执行前重检。
206
+ - 新增只读“来源与分支”树,只展示已归档/回收站会话和必要关系上下文,并诊断缺失父节点、循环和委派深度异常。
207
+ - 重复回收周期不再立即删除上一份有效保护快照;永久删除仍通过 `purge-pending` 事务移除原会话和全部有效快照。
208
+ - **降级提醒:** 0.11.x 不显示或治理多份历史快照,但能容忍它们并在永久删除时清理。降级前请备份 `$DSH_HOME/plugin-data/archived-chats/`。
209
+
145
210
  ### 0.11.0
146
211
 
147
212
  - 新增 **归档 / 回收站** 双标签、独立批量选择、回收站范围预览、恢复、永久删除和清空。
@@ -203,7 +268,7 @@ npm test
203
268
 
204
269
  ### 0.3.0
205
270
 
206
- - 首个公开发布版本,提供「已归档的聊天」设置页。
271
+ - 首个公开发布版本,提供「会话档案」设置页。
207
272
  - 新增按工作区分组浏览、标题搜索、类型/项目筛选、取消归档,以及带确认的单条/分组/全部删除。
208
273
  - 新增 Host 路由、浏览器设置区块,以及用于处理运行中会话的待删队列清扫。
209
274
 
@@ -217,7 +282,7 @@ npm test
217
282
  dsh plugin --profile web remove dsh-archived-chats
218
283
  ```
219
284
 
220
- 卸载不会删除 `$DSH_HOME/plugin-data/archived-chats/` 中的 `metadata.json`、`trash.json`、保护快照或旧版 `pending-deletions.json`,也不会触发永久删除。这是故意的本地数据保护;请先恢复或备份需要的会话,再手动处理该目录。
285
+ 卸载不会删除 `$DSH_HOME/plugin-data/archived-chats/` 中的 `metadata.json`、`trash.json`、`retention.json`、保护快照或旧版 `pending-deletions.json`,也不会触发永久删除。这是故意的本地数据保护;请先恢复或备份需要的会话,再手动处理该目录。
221
286
 
222
287
  ## License
223
288