@gehennawu/dsh-service 1.0.0 → 1.1.1
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 -2
- package/README.md +5 -2
- package/client.js +1 -1
- package/index.js +156 -29
- package/package.json +1 -2
package/README.en.md
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<em>DeepSeek Harness (DSH) Web 服务控制与运维插件。</em>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
|
-
[](package.json)
|
|
13
13
|
[](LICENSE)
|
|
14
|
-
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
14
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
15
15
|
[](https://cordis.moe/)
|
|
16
16
|
[](https://github.com/gehennawu/dsh-service)
|
|
17
17
|
[](https://github.com/gehennawu/dsh-service/issues)
|
|
@@ -157,6 +157,7 @@ Under **Plugins → Plugin configuration**, ten host-level switches: **Health di
|
|
|
157
157
|
- Custom mode optionally selects a **reasoning effort**: the dropdown appears only for the exact provider/model when its adapter declares selectable levels; leaving it empty means "use the target model default", materialized by the adapter
|
|
158
158
|
- Values come from adapter metadata (`reasoning.efforts[].id`); effort ids are opaque to the host. Models with no declared levels disable the dropdown and show a hint
|
|
159
159
|
- **inherit / follow / feature gate off** inject no provider, model, or reasoning effort at all; subagents that carry an explicit provider/model are unaffected
|
|
160
|
+
- **Fallback models (in order)** — both Follow and Custom modes accept an ordered fallback list: when the primary route is unavailable (channel unloaded, or quota state marks it unserviceable), the next model is tried in order; if none works, delegations fall back to native inheritance instead of failing. Fallback entries pass the same allow-list check as the primary route, with an optional reasoning effort per entry
|
|
160
161
|
- Config stored in `$DSH_HOME/dsh-service-subagent-route.json` (atomic writes, `0600`); one-click reset
|
|
161
162
|
|
|
162
163
|
### Task notifications
|
|
@@ -297,6 +298,8 @@ pm2 start "dsh web --host 127.0.0.1" --name dsh-web
|
|
|
297
298
|
|
|
298
299
|
Requirements: Node.js `>=22`, and a DSH Web installation capable of loading both Host and Client plugin halves. Update checks require access to `registry.npmjs.org`; network failures do not affect other features.
|
|
299
300
|
|
|
301
|
+
**DSH compatibility statement**: adapted to DSH `0.1.2-alpha.2` conversation UI changes (chat view split into its own package, draggable conversation pane width, turn navigation rail) — the mobile immersive swipe and the up-arrow reply jump work fully on alpha.2. Older DSH releases (`>=0.1.1-rc.2`) remain supported: the plugin installs and runs normally, and only a few alpha.2-specific mobile style tweaks are inert there (purely cosmetic, no functional loss).
|
|
302
|
+
|
|
300
303
|
## 🔒 Security design
|
|
301
304
|
|
|
302
305
|
| Area | Boundary |
|
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<em>A service-control & operations plugin for DeepSeek Harness (DSH) Web.</em>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
|
-
[](package.json)
|
|
13
13
|
[](LICENSE)
|
|
14
|
-
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
14
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
15
15
|
[](https://cordis.moe/)
|
|
16
16
|
[](https://github.com/gehennawu/dsh-service)
|
|
17
17
|
[](https://github.com/gehennawu/dsh-service/issues)
|
|
@@ -159,6 +159,7 @@ DSH Web 服务控制与运维插件:安全重启、版本管理与一键升级
|
|
|
159
159
|
- 自定义模式可选**思考等级**:仅当所选的 **exact provider/model** 由适配器声明了可选等级时才显示下拉;留空表示「使用目标模型默认」,由适配器在请求时物化默认值
|
|
160
160
|
- 该字段来自适配器 metadata(`reasoning.efforts[].id`),等级 ID 对宿主不透明;无等级声明的模型禁用下拉并提示
|
|
161
161
|
- **inherit / follow / 功能开关关闭** 均不注入任何 provider、model 或思考等级;显式指定 provider/model 的子代理不受影响
|
|
162
|
+
- **回退模型(按顺序)**:跟随与自定义模式都可配置回退列表——第一路由不可用时(渠道已卸载、额度查询判定其不可服务)依次尝试后续模型;全部不可用则回落原生继承,不让派生失败。回退条目与主路由同一道白名单校验,思考等级逐条可选
|
|
162
163
|
- 配置存 `$DSH_HOME/dsh-service-subagent-route.json`(原子写入、`0600`),可一键重置
|
|
163
164
|
|
|
164
165
|
### 任务通知
|
|
@@ -299,6 +300,8 @@ pm2 start "dsh web --host 127.0.0.1" --name dsh-web
|
|
|
299
300
|
|
|
300
301
|
运行要求:Node.js `>=22`,DSH Web 能加载 Host 与 Client 两半插件。更新检查需访问 `registry.npmjs.org`;网络失败不影响其他功能。
|
|
301
302
|
|
|
303
|
+
**DSH 适配口径**:已针对 DSH `0.1.2-alpha.2` 的会话界面调整(聊天视图拆包、对话主框手动调宽、回合导航条)完成适配——移动端滑动沉浸、上箭头跳转在 alpha.2 上全部生效;旧版 DSH(`>=0.1.1-rc.2`)保持兼容,可正常安装运行,个别针对 alpha.2 结构的移动端样式微调在旧版上不生效(纯展示,无功能损失)。
|
|
304
|
+
|
|
302
305
|
## 🔒 安全设计
|
|
303
306
|
|
|
304
307
|
| 领域 | 边界 |
|