dsh-session-curator 0.2.0 → 0.3.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.md +6 -5
- package/README.zh-CN.md +6 -5
- package/lib/client.js +124 -458
- package/lib/host/delete.js +77 -0
- package/lib/host/fs-utils.js +1 -15
- package/lib/host/open.js +9 -15
- package/lib/host/paths.js +5 -13
- package/lib/host/routes.js +3 -20
- package/lib/host/session-manager.js +22 -159
- package/lib/index.js +6 -10
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +5 -5
- package/lib/host/retention.js +0 -24
- package/lib/host/trash.js +0 -279
package/README.md
CHANGED
|
@@ -4,18 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
A DSH (DeepSeek Harness) plugin that adds **session deletion** and **archive management**.
|
|
6
6
|
|
|
7
|
-
DSH can archive and pin a session but offers no API to delete one. This plugin does the file-level work itself, and
|
|
7
|
+
DSH can archive and pin a session but offers no API to delete one. This plugin does the file-level work itself, and deletion is **permanent**: the session directory and its projection cache are removed from disk. If you want to be able to bring a session back later, **archive it instead** — archiving also hides it from the sidebar and is fully reversible.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
11
|
| Where | What |
|
|
12
12
|
| --- | --- |
|
|
13
|
-
| Session row `⋯` menu | **Delete session** —
|
|
14
|
-
| Settings → **Session manager** |
|
|
13
|
+
| Session row `⋯` menu | **Delete session** — permanently removes it from disk after a confirmation |
|
|
14
|
+
| Settings → **Session manager** | Two tabs — **archived / pinned** — grouped by the session's original workspace folder, with per-row and bulk actions |
|
|
15
15
|
| Settings → **Session manager** → **Settings** | Basics (default tab, grouping, **sidebar archived visibility**, row details, order), the installed version, and an upgrade hint with the exact command when npm has a newer release |
|
|
16
|
-
| Confirmation dialog |
|
|
16
|
+
| Confirmation dialog | Permanent deletion; it warns that this cannot be undone and hints to use **Archive** instead, and needs an explicit "I cannot undo this" tick |
|
|
17
|
+
| Disk usage tab | Read-only totals plus largest / least-recently-opened sessions, each archivable in place |
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
Deletion is permanent and never touches a running session (or the session currently in use). Anything you want to keep should be archived instead.
|
|
19
20
|
|
|
20
21
|
## Install
|
|
21
22
|
|
package/README.zh-CN.md
CHANGED
|
@@ -4,18 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
给 DSH(DeepSeek Harness)补上**删除会话**与**归档会话管理**的插件。
|
|
6
6
|
|
|
7
|
-
DSH 能归档和置顶会话,却没有删除会话的 API
|
|
7
|
+
DSH 能归档和置顶会话,却没有删除会话的 API。这个插件自己做文件级操作,删除是**真正的物理删除**:会话目录连同投影缓存一起从磁盘移除。如果想以后还能找回,请改用**归档** —— 归档同样能让会话从侧边栏消失,而且随时可以恢复。
|
|
8
8
|
|
|
9
9
|
## 能力
|
|
10
10
|
|
|
11
11
|
| 位置 | 内容 |
|
|
12
12
|
| --- | --- |
|
|
13
|
-
| 会话行 `⋯` 菜单 | **删除会话** ——
|
|
14
|
-
| 设置 → **会话管理** |
|
|
13
|
+
| 会话行 `⋯` 菜单 | **删除会话** —— 确认后从磁盘永久删除 |
|
|
14
|
+
| 设置 → **会话管理** | 两个页签:**已归档 / 已置顶**,按会话原来的工作区文件夹分组,支持逐行与批量操作 |
|
|
15
15
|
| 设置 → **会话管理** → **配置** | 基础设置(默认页签 / 分组 / **侧边栏是否显示已归档** / 行内信息 / 排序)、当前版本号,以及 npm 上有新版本时的升级提示与命令 |
|
|
16
|
-
| 确认弹窗 |
|
|
16
|
+
| 确认弹窗 | 物理删除:写明"不可恢复"并提示改用「归档」,需要勾选"我明白这无法撤销" |
|
|
17
|
+
| 磁盘占用页签 | 只读的占用合计 + 最占地方 / 最久没打开的榜单,榜单每行可直接归档 |
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
删除不可逆,且绝不会碰正在运行、或当前正在使用的会话。想留退路就用归档。
|
|
19
20
|
|
|
20
21
|
## 安装
|
|
21
22
|
|