@gehennawu/dsh-service 0.33.1 → 0.39.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.en.md +5 -5
- package/README.md +5 -5
- package/client.js +415 -260
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<em>面向自托管 DeepSeek Harness (DSH) Web 的服务控制与运维插件。</em>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
|
-
[](package.json)
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
15
15
|
[](https://cordis.moe/)
|
|
@@ -48,7 +48,7 @@ A service-control and operations plugin for self-hosted DSH Web: safe restart, v
|
|
|
48
48
|
|
|
49
49
|
## 🚀 Features
|
|
50
50
|
|
|
51
|
-
The Settings "Service Control" panel has
|
|
51
|
+
The Settings "Service Control" panel has a six-page navigation: **Overview · Model stats · Quota lookup · Health · Maintenance · Configuration**; "Maintenance" aggregates five subpages — Sessions · Skills · Subagents · Backups · Restart — and "Configuration" aggregates Features · Task notifications. Restart, Quota lookup, and Sessions can each enable a **quick entry in the settings left navigation** (off by default; the Skills and Subagents sidebar entries were removed).
|
|
52
52
|
|
|
53
53
|
Under **Plugins → Plugin configuration**, ten host-level switches: **Health diagnostics, Model statistics, Quota lookup, Backup maintenance, Task notifications, Skill manager, Subagent model, Session manager, Mobile adaptation, `/healthz` liveness endpoint** (all on by default except Mobile adaptation). All are live settings: disabling hides the UI, stops polling/subscriptions, and makes the host reject that capability; Overview and Restart stay available.
|
|
54
54
|
|
|
@@ -67,7 +67,7 @@ Under **Plugins → Plugin configuration**, ten host-level switches: **Health di
|
|
|
67
67
|
- Detects active agents, background jobs, and terminals before restart; lists them and requires explicit confirmation
|
|
68
68
|
- `/restart` also works in conversations; automatically refuses while work is running
|
|
69
69
|
- Probes the new process after restart and reloads the page; manual reload offered after 60 seconds
|
|
70
|
-
- Optional "Restart" entry in the settings left navigation (off by default), sharing the same confirmation flow
|
|
70
|
+
- Optional "Restart" entry in the settings left navigation (off by default), sharing the same confirmation flow as the "Maintenance → Restart" subpage
|
|
71
71
|
- A suspected manual terminal launch warns that nothing will bring the process back and gets a yellow caution in Health
|
|
72
72
|
|
|
73
73
|
### Health diagnostics
|
|
@@ -169,7 +169,7 @@ Under **Plugins → Plugin configuration**, ten host-level switches: **Health di
|
|
|
169
169
|
- **Archive**: archived sessions disappear from the official sidebar (official behavior); the panel marks “archiving is one-way”, and the official UI cannot unarchive
|
|
170
170
|
- **Content search**: full-text semantic search over conversations (case-insensitive, whitespace-flexible) with cross-session hits (matched text is highlighted; multiple matches show seq chips for one-click jumps) → **hit-window view**: opening a result centers a context window on the matched seq (15 events on each side; the matched event gets a HIT badge, is highlighted, **auto-scrolled into view and flashes for 2 seconds**), with **previous / next match** navigation and navigator seq chips for direct jumps (mirroring dsh-session-kb's Locate interaction); the window can keep loading later events; optionally restricted to the archived zone
|
|
171
171
|
- **Delete**: Only archived sessions can be deleted, and a session that becomes live is rejected again immediately before execution; the two-phase confirmation shows its id / title / workspace / size, persists the deletion record atomically first, and only then removes the log directory; deleted records stay visible (read-only) under the Deleted filter
|
|
172
|
-
- Entry: “Sessions”
|
|
172
|
+
- Entry: the “Sessions” subpage under “Maintenance” (on by default); the optional settings-sidebar entry is off by default
|
|
173
173
|
- Delete records live at `$DSH_HOME/dsh-service-sessions-deleted.json` (atomic write, `0600`, title/time only — no content, not recoverable)
|
|
174
174
|
|
|
175
175
|
### External liveness probe
|
|
@@ -184,7 +184,7 @@ The plugin is a Cordis two-half structure: the **Host half (`index.js`)** owns a
|
|
|
184
184
|
```mermaid
|
|
185
185
|
flowchart TB
|
|
186
186
|
subgraph Client["🌐 Client browser half (client.js)"]
|
|
187
|
-
UI["Settings : Service Control panel (
|
|
187
|
+
UI["Settings : Service Control panel (six-page navigation + quick entries)<br/>quota ring · notification bell · mobile adaptation"]
|
|
188
188
|
end
|
|
189
189
|
|
|
190
190
|
subgraph Host["⚙️ Host half (index.js)"]
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<em>A service-control & operations plugin for self-hosted DeepSeek Harness (DSH) Web.</em>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
|
-
[](package.json)
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
15
15
|
[](https://cordis.moe/)
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
## 🚀 功能
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
设置页「服务控制」面板六页导航:**概览 · 模型统计 · 额度查询 · 健康诊断 · 维护 · 配置**;其中「维护」聚合 会话管理 · 技能 · 子代理 · 备份维护 · 重启 五个子页,「配置」聚合 功能开关 · 任务通知 两个子页。重启、额度查询、会话管理可另行开启**设置页左列快捷入口**(默认关闭;技能与子代理的左列入口已撤销)。
|
|
52
52
|
|
|
53
53
|
「插件 → 插件配置」提供十个宿主级开关:**健康诊断、模型统计、额度查询、备份维护、任务通知、技能管理、子代理模型、会话管理、移动端适配、`/healthz` 探活**(除移动端适配外默认开启)。全部热生效:关闭即隐藏界面、停止轮询并让宿主拒绝对应能力;概览与重启固定保留。
|
|
54
54
|
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
- 重启前检测活跃 Agent、后台任务与终端,展示清单并要求显式确认
|
|
68
68
|
- 对话输入 `/restart` 也可触发;检测到运行中工作时自动拒绝
|
|
69
69
|
- 重启后自动探测新进程并刷新页面,60 秒未恢复提供手动刷新
|
|
70
|
-
-
|
|
70
|
+
- 可开启「设置页左列显示入口」(默认关闭),与「维护 → 重启」子页共用同一确认流程
|
|
71
71
|
- 疑似终端手动启动时提示「退出后不会自动拉起」,健康诊断以黄色警示标注
|
|
72
72
|
|
|
73
73
|
### 健康诊断
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
- **归档**:归档后从官方侧栏隐藏(官方行为);面板内明确标注「归档为单项操作」,官方不支持恢复
|
|
158
158
|
- **内容搜索**:对话全文语义搜索(大小写不敏感、空白灵活),跨会话命中列表(匹配文本高亮;多命中显示 seq 位置芯片、可一键直达)→ **命中窗口视图**:打开即以命中 seq 为中心展示上下文窗口(命中前后各 15 条事件;命中行标「命中」徽章高亮、**自动滚动定位并闪烁 2 秒**),支持**上一个 / 下一个命中**翻跳与导航条 seq 芯片直达(参考 dsh-session-kb 的 Locate 交互);窗口可继续加载后续事件;可限定仅搜归档区
|
|
159
159
|
- **删除**:仅已归档会话可删除,且执行前再次拒绝运行中的会话;两段式确认先展示会话 id / 标题 / 工作区 / 文件体积,删除记录先原子落盘、再移除日志目录;已删除记录在「已删除」筛选下可见(只读)
|
|
160
|
-
-
|
|
160
|
+
- 入口:「维护」页子标签「会话管理」(默认开),设置页左列入口可选(默认关)
|
|
161
161
|
- 删除记录存 `$DSH_HOME/dsh-service-sessions-deleted.json`(原子写入、`0600`,仅标题/时间,不含内容、不可恢复)
|
|
162
162
|
|
|
163
163
|
### 移动端适配
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
```mermaid
|
|
185
185
|
flowchart TB
|
|
186
186
|
subgraph Client["🌐 Client 浏览器端 (client.js)"]
|
|
187
|
-
UI["
|
|
187
|
+
UI["设置页「服务控制」面板(六页导航 + 快捷入口)<br/>额度圆环 · 通知铃铛 · 移动端适配"]
|
|
188
188
|
end
|
|
189
189
|
|
|
190
190
|
subgraph Host["⚙️ Host 服务端 (index.js)"]
|