dsh-session-curator 0.1.1 → 0.1.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.md +4 -11
- package/README.zh-CN.md +4 -7
- package/lib/client.js +1343 -1425
- package/lib/host/fs-utils.js +64 -0
- package/lib/host/manifest.js +22 -0
- package/lib/host/paths.js +47 -0
- package/lib/host/routes.js +113 -0
- package/lib/host/session-manager.js +230 -0
- package/lib/host/trash.js +190 -0
- package/lib/host/update.js +67 -0
- package/lib/index.js +12 -677
- package/package.json +11 -4
- package/scripts/build.mjs +96 -0
- package/scripts/client.mjs +124 -2
package/README.md
CHANGED
|
@@ -4,10 +4,7 @@
|
|
|
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
|
|
8
|
-
work itself, and designs deletion as a **recoverable soft delete**: the session directory is moved to
|
|
9
|
-
a trash folder together with its metadata, and restoring it puts the session back into its original
|
|
10
|
-
workspace.
|
|
7
|
+
DSH can archive and pin a session but offers no API to delete one. This plugin does the file-level work itself, and designs deletion as a **recoverable soft delete**: the session directory is moved to a trash folder together with its metadata, and restoring it puts the session back into its original workspace.
|
|
11
8
|
|
|
12
9
|
## Features
|
|
13
10
|
|
|
@@ -18,8 +15,7 @@ workspace.
|
|
|
18
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 |
|
|
19
16
|
| Confirmation dialog | Delete and permanent delete (permanent delete needs an explicit "I cannot undo this" tick) |
|
|
20
17
|
|
|
21
|
-
Deleting is always reversible: every trashed entry keeps its original workspace folder, title and
|
|
22
|
-
deletion time, and running sessions are never touched.
|
|
18
|
+
Deleting is always reversible: every trashed entry keeps its original workspace folder, title and deletion time, and running sessions are never touched.
|
|
23
19
|
|
|
24
20
|
## Install
|
|
25
21
|
|
|
@@ -37,12 +33,9 @@ From GitHub instead of npm:
|
|
|
37
33
|
dsh plugin --profile desktop add github:Motues/dsh-session-curator
|
|
38
34
|
```
|
|
39
35
|
|
|
40
|
-
The command runs pnpm inside that profile and records the package in both `dependencies` and
|
|
41
|
-
`dsh.profile.bundles`. Restart DSH to pick up the host half; the client half only needs a page
|
|
42
|
-
refresh.
|
|
36
|
+
The command runs pnpm inside that profile and records the package in both `dependencies` and `dsh.profile.bundles`. Restart DSH to pick up the host half; the client half only needs a page efresh.
|
|
43
37
|
|
|
44
|
-
The
|
|
45
|
-
`lib/client.js` is a hand-written client bundle.
|
|
38
|
+
The published package is dependency-free and needs no build: `lib/` is plain ESM JavaScript(`lib/index.js` for the host half, `lib/client.js` for the client bundle). Sources live in `src/` as TypeScript; contributors run `npm install` once and `npm run build` (tsc for the host half, esbuild for the client bundle) to regenerate `lib/`.
|
|
46
39
|
|
|
47
40
|
## License
|
|
48
41
|
|
package/README.zh-CN.md
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
给 DSH(DeepSeek Harness)补上**删除会话**与**归档会话管理**的插件。
|
|
6
6
|
|
|
7
|
-
DSH 能归档和置顶会话,却没有删除会话的 API。这个插件自己做文件级操作,并把"删除"
|
|
8
|
-
**可完整恢复的软删除**:会话目录连同元数据一起移入回收站,恢复时能回到原来的工作区。
|
|
7
|
+
DSH 能归档和置顶会话,却没有删除会话的 API。这个插件自己做文件级操作,并把"删除"做成**可完整恢复的软删除**:会话目录连同元数据一起移入回收站,恢复时能回到原来的工作区。
|
|
9
8
|
|
|
10
9
|
## 能力
|
|
11
10
|
|
|
@@ -16,8 +15,7 @@ DSH 能归档和置顶会话,却没有删除会话的 API。这个插件自己
|
|
|
16
15
|
| 设置 → **会话管理** → **配置** | 基础设置(默认页签 / 分组 / **侧边栏是否显示已归档** / 行内信息 / 排序)、当前版本号,以及 npm 上有新版本时的升级提示与命令 |
|
|
17
16
|
| 确认弹窗 | 删除与永久删除(永久删除需要勾选"我明白这无法撤销") |
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
不会被删除。
|
|
18
|
+
删除始终可逆:回收站里的每条记录都保留原来的工作区文件夹、标题和删除时间;正在运行的会话不会被删除。
|
|
21
19
|
|
|
22
20
|
## 安装
|
|
23
21
|
|
|
@@ -35,10 +33,9 @@ dsh plugin --profile web add dsh-session-curator
|
|
|
35
33
|
dsh plugin --profile desktop add github:Motues/dsh-session-curator
|
|
36
34
|
```
|
|
37
35
|
|
|
38
|
-
这条命令在那个 profile 目录里跑 pnpm,并把这个包同时记进 `dependencies` 和
|
|
39
|
-
`dsh.profile.bundles`。宿主半区需要重启 DSH 生效,客户端半区刷新页面即可。
|
|
36
|
+
这条命令在那个 profile 目录里跑 pnpm,并把这个包同时记进 `dependencies` 和 `dsh.profile.bundles`。宿主半区需要重启 DSH 生效,客户端半区刷新页面即可。
|
|
40
37
|
|
|
41
|
-
|
|
38
|
+
发布出去的包零运行时依赖、安装方无需构建:`lib/` 就是普通 ESM JavaScript(`lib/index.js` 宿主半区,`lib/client.js` 客户端束)。源码是 `src/` 下的 TypeScript:贡献者 `npm install` 一次,再用`npm run build`(宿主半区走 tsc、客户端束走 esbuild)重新生成 `lib/`。
|
|
42
39
|
|
|
43
40
|
## 许可
|
|
44
41
|
|