dsh-session-actively 1.0.0 → 1.0.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 +31 -22
- package/README_zh.md +81 -0
- package/assets/icon-180.png +0 -0
- package/assets/screenshot-1.png +0 -0
- package/package.json +4 -1
- package/screenshots.json +3 -0
package/README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
# Session activity
|
|
1
|
+
# Session activity
|
|
2
2
|
|
|
3
|
-
A left-sidebar page for **DeepSeek Harness (DSH)**: running sessions on top, every other session ordered by its last activity below
|
|
3
|
+
A left-sidebar page for **DeepSeek Harness (DSH)**: running sessions on top, every other session ordered by its last activity below, each with its last-active time. Click a row to switch to that session.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
English | [Chinese](README_zh.md)
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Screenshot
|
|
8
|
+
|
|
9
|
+
<img src="assets/screenshot-1.png" width="900" alt="The Session activity page: running sessions on top, other sessions ordered by last activity below, and the sidebar entry highlighted.">
|
|
10
|
+
|
|
11
|
+
## What it does
|
|
8
12
|
|
|
9
13
|
- **Running first.** Sessions with an active turn appear in the top section, newest activity first, with a live status pill and their last-active time.
|
|
10
14
|
- **Recently active below.** Every other session follows, sorted by `updatedAt` (newest first), with its last-active time. The first 20 show by default; **Show all N** expands the rest and **Show less** collapses it again.
|
|
@@ -13,30 +17,32 @@ A left-sidebar page for **DeepSeek Harness (DSH)**: running sessions on top, eve
|
|
|
13
17
|
- **Clean lists.** Draft sessions (never sent a message) and archived sessions stay out, matching the sidebar's own session navigation.
|
|
14
18
|
- **Bilingual UI.** English and Simplified Chinese dictionaries; follows the app locale.
|
|
15
19
|
|
|
16
|
-
## Install
|
|
20
|
+
## Install
|
|
17
21
|
|
|
18
|
-
**From the app (recommended):** open **Plugins → Add plugin
|
|
22
|
+
**From the app (Desktop, recommended):** open **Plugins → Add plugin**, enter `dsh-session-actively`, and install. Then enable **Session activity** in the plugin list if it is not enabled automatically.
|
|
19
23
|
|
|
20
|
-
**From
|
|
21
|
-
|
|
22
|
-
**CLI:** with the profile that serves your DSH GUI (`web` for a plain web profile, `desktop` for the Desktop app):
|
|
24
|
+
**From npm (Web and CLI):**
|
|
23
25
|
|
|
24
26
|
```sh
|
|
25
|
-
dsh plugin --profile
|
|
27
|
+
dsh plugin --profile web add dsh-session-actively
|
|
26
28
|
```
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
Use the profile that serves your DSH GUI (`web` for a plain web profile). The Desktop app manages its own `desktop` profile, so install there with the in-app **Add plugin** button instead of `dsh plugin`.
|
|
31
|
+
|
|
32
|
+
**From dsh-market:** open **Plugins → Discover**, search for *Session activity*, and click Install.
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
The package ships prebuilt client code, so no build step runs on install.
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
## Usage
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
After enabling, the left sidebar gets an entry **Recently active** (a list glyph with a green live dot).
|
|
39
|
+
|
|
40
|
+
- Top section **Running**: sessions currently running a turn.
|
|
41
|
+
- Bottom section **Recently active**: everything else, newest activity first.
|
|
36
42
|
- Click any row to switch to that session; the app navigates to it as if you picked it in the sidebar.
|
|
37
|
-
- When more than 20 sessions are in the recent list, use
|
|
43
|
+
- When more than 20 sessions are in the recent list, use **Show all N** below it.
|
|
38
44
|
|
|
39
|
-
## Data and privacy
|
|
45
|
+
## Data and privacy
|
|
40
46
|
|
|
41
47
|
| What is shown | Where it comes from |
|
|
42
48
|
| --- | --- |
|
|
@@ -46,20 +52,23 @@ After enabling, the left sidebar gets an entry **最近活跃的会话 / Recentl
|
|
|
46
52
|
|
|
47
53
|
The plugin adds no Host service, projection, RPC, tool, network request, or storage. It never sends session data anywhere. Turning the bundle off removes both the sidebar entry and the page; the layout falls back to the Conversation view.
|
|
48
54
|
|
|
49
|
-
##
|
|
55
|
+
## Security
|
|
56
|
+
|
|
57
|
+
This is a client-only bundle with no Host half. It reads the two Client snapshots above and calls the app's own `openSession`; it makes no network requests, reads no files, runs no shell commands, and stores nothing. A static capability scan therefore reports no shell, file, network, credential, environment, or host-runtime capability, which is the expected result for a UI-only plugin.
|
|
58
|
+
|
|
59
|
+
## Compatibility
|
|
50
60
|
|
|
51
61
|
- Built and tested against **DSH 0.2.2-rc.5** (Web/Desktop client). Targets DSH 0.2.x.
|
|
52
62
|
- Node.js **>= 22**.
|
|
53
|
-
- Client-only bundle: no host dependencies, no peer `@deepseek-ai/*` packages.
|
|
54
63
|
|
|
55
|
-
## Limitations
|
|
64
|
+
## Limitations
|
|
56
65
|
|
|
57
66
|
- "Running" means the session has an active agent turn, as DSH reports it — not merely that a chat window is open.
|
|
58
67
|
- The recent list is capped at 20 rows until you press **Show all**; the list itself still holds every non-archived session.
|
|
59
68
|
- Draft sessions and archived sessions are intentionally hidden.
|
|
60
69
|
- The page reads the live Client snapshot only; nothing is persisted, so a fresh install starts from the current session list.
|
|
61
70
|
|
|
62
|
-
## Development
|
|
71
|
+
## Development
|
|
63
72
|
|
|
64
73
|
```sh
|
|
65
74
|
npm run check # validates locale key parity, manifest files and client registration
|
|
@@ -67,6 +76,6 @@ npm run check # validates locale key parity, manifest files and client registr
|
|
|
67
76
|
|
|
68
77
|
The client half is plain browser code loaded through DSH's `window.__ModuleLoader__`; it requires no bundler. A local directory can be linked into a profile for development, and the Client module system reloads an edited `client.js` through DSH's HMR transport.
|
|
69
78
|
|
|
70
|
-
## License
|
|
79
|
+
## License
|
|
71
80
|
|
|
72
81
|
[MIT](LICENSE) © 2026 RabbitWaKuWaKu
|
package/README_zh.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# 会话活跃度
|
|
2
|
+
|
|
3
|
+
一个给 **DeepSeek Harness (DSH)** 用的左侧栏页面:上方列出正在运行的会话,下方按最近活跃时间排列其他会话,并显示最近活跃时间;点击任意一行即可切换。
|
|
4
|
+
|
|
5
|
+
[English](README.md) | 中文
|
|
6
|
+
|
|
7
|
+
## 截图
|
|
8
|
+
|
|
9
|
+
<img src="assets/screenshot-1.png" width="900" alt="会话活跃度页面:上方是运行中的会话,下方按最近活跃时间排列其他会话,左侧栏入口高亮。">
|
|
10
|
+
|
|
11
|
+
## 它会做什么
|
|
12
|
+
|
|
13
|
+
- **运行中优先**:有活跃轮次的会话排在上方,按最近活动排序,带运行状态胶囊和最近活跃时间。
|
|
14
|
+
- **下方是最近活跃**:其余会话按 `updatedAt` 从新到旧排列,并显示最近活跃时间。默认显示 20 条;点 **显示全部 N 个** 展开其余,点 **收起** 恢复。
|
|
15
|
+
- **点击即切换**:点击任意一行,通过应用自身的导航(`ctx.uiWorkspace.openSession`)打开该会话。
|
|
16
|
+
- **实时、无轮询循环**:两个列表都跟随现有的客户端会话快照;唯一的计时器是 30 秒一次的刷新,用来保持「3 分钟前」这类相对时间准确。
|
|
17
|
+
- **列表干净**:草稿会话(从未发过消息)和已归档会话不会出现,与侧边栏自身的会话导航一致。
|
|
18
|
+
- **中英双语界面**:提供英文和简体中文字典,跟随应用语言。
|
|
19
|
+
|
|
20
|
+
## 安装
|
|
21
|
+
|
|
22
|
+
**应用内安装(Desktop,推荐):** 打开 **插件 → 添加插件**,输入 `dsh-session-actively` 安装;如果没有自动启用,在插件列表里启用 **会话活跃度**。
|
|
23
|
+
|
|
24
|
+
**从 npm 安装(Web 与 CLI):**
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
dsh plugin --profile web add dsh-session-actively
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
`<profile>` 用实际为 DSH 界面提供服务的 profile(普通 Web 版是 `web`)。Desktop 版由应用管理自己的 `desktop` profile,请改用应用内的 **添加插件** 按钮,不要用 `dsh plugin`。
|
|
31
|
+
|
|
32
|
+
**从 dsh-market 安装:** 打开 **插件 → 发现**,搜索 *会话活跃度* 或 `dsh-session-actively`,点安装。
|
|
33
|
+
|
|
34
|
+
包内已经包含预构建的客户端代码,安装时不需要执行构建。
|
|
35
|
+
|
|
36
|
+
## 使用
|
|
37
|
+
|
|
38
|
+
启用后,左侧栏会出现 **最近活跃的会话** 入口(一个带绿色圆点的列表图标)。
|
|
39
|
+
|
|
40
|
+
- 上方 **运行中**:当前正在跑一轮任务的会话。
|
|
41
|
+
- 下方 **最近活跃**:其余会话,按最近活跃时间从新到旧。
|
|
42
|
+
- 点击任意一行即可切换;应用会像你在侧边栏里选中它一样导航过去。
|
|
43
|
+
- 最近活跃超过 20 条时,列表下方会出现 **显示全部 N 个**。
|
|
44
|
+
|
|
45
|
+
## 数据与隐私
|
|
46
|
+
|
|
47
|
+
| 展示内容 | 来源 |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| 会话列表、标题、运行状态、最近活动 | `ctx.sessions.list`,Host 推送的客户端快照 |
|
|
50
|
+
| 工作区名称 | `ctx.workspaces.list`(按 `sessionIds` 归属反查),查不到时回退为 `cwd` 目录名 |
|
|
51
|
+
| 切换会话 | `ctx.uiWorkspace.openSession(sessionId)`,DSH 自身的导航 |
|
|
52
|
+
|
|
53
|
+
插件不新增 Host 服务、projection、RPC、工具、网络请求或存储,也不会把会话数据发到任何地方。禁用插件后,侧边栏入口和页面都会移除,布局回落到会话视图。
|
|
54
|
+
|
|
55
|
+
## 安全说明
|
|
56
|
+
|
|
57
|
+
这是一个纯客户端 bundle,没有 Host 端代码。它只读取上面两个客户端快照,并调用应用自身的 `openSession`;不联网、不读写文件、不执行命令、不保存任何数据。因此静态能力扫描不会报出 shell、文件、网络、凭据、环境变量或宿主运行时能力,这对纯 UI 插件是预期结果。
|
|
58
|
+
|
|
59
|
+
## 兼容性
|
|
60
|
+
|
|
61
|
+
- 在 **DSH 0.2.2-rc.5**(Web/Desktop 客户端)上构建和测试,面向 DSH 0.2.x。
|
|
62
|
+
- Node.js **>= 22**。
|
|
63
|
+
|
|
64
|
+
## 限制
|
|
65
|
+
|
|
66
|
+
- 「运行中」指会话当前有活跃的 agent 轮次,由 DSH 上报,而不是聊天窗口开着。
|
|
67
|
+
- 最近活跃默认只显示 20 行,点 **显示全部** 才会展开其余;列表本身仍包含所有未归档会话。
|
|
68
|
+
- 草稿会话和已归档会话会被有意隐藏。
|
|
69
|
+
- 页面只读实时客户端快照,不做持久化,所以新装后从当前会话列表开始。
|
|
70
|
+
|
|
71
|
+
## 开发
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
npm run check # 校验中英文字典键集、清单文件与客户端注册
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
客户端部分是普通浏览器代码,通过 DSH 的 `window.__ModuleLoader__` 加载,不需要打包器。本地目录可以 link 进 profile 开发;客户端模块系统会通过 DSH 的 HMR 传输自动重载修改后的 `client.js`。
|
|
78
|
+
|
|
79
|
+
## 许可证
|
|
80
|
+
|
|
81
|
+
[MIT](LICENSE) © 2026 RabbitWaKuWaKu
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-actively",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Left sidebar page for DeepSeek Harness: running sessions on top, other sessions by last activity below, one click to switch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,8 +32,11 @@
|
|
|
32
32
|
"cordis.patch.yml",
|
|
33
33
|
"locale",
|
|
34
34
|
"docs",
|
|
35
|
+
"assets",
|
|
36
|
+
"screenshots.json",
|
|
35
37
|
"icon.svg",
|
|
36
38
|
"README.md",
|
|
39
|
+
"README_zh.md",
|
|
37
40
|
"LICENSE"
|
|
38
41
|
],
|
|
39
42
|
"scripts": {
|
package/screenshots.json
ADDED