dsh-subagent-library 0.3.1 → 0.3.3
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/CHANGELOG.md +28 -0
- package/README.en.md +33 -12
- package/README.md +22 -8
- package/assets/readme/screenshot-settings.png +0 -0
- package/lib/client.js +1440 -746
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,34 @@
|
|
|
4
4
|
|
|
5
5
|
This file documents user-facing changes. Format loosely follows [Keep a Changelog]; versions follow [SemVer].
|
|
6
6
|
|
|
7
|
+
## [0.3.3] — 2026-10-09
|
|
8
|
+
|
|
9
|
+
### 变更 / Changed
|
|
10
|
+
|
|
11
|
+
- **设置页重做为分层折叠卡片**:名称与启用开关、角色描述、模型与 Provider、执行标签各自排布;长名称和路由自动换行,描述最多展示两行,不再与标签争抢宽度。展开后字段按「概述 / 路由与执行 / 工具与提示词」分组,宽面板两列、窄面板单列。
|
|
12
|
+
- **Reworked Settings as layered, collapsible cards**: identity and enable state, description, model/provider, and execution tags each have their own space. Long names and routes wrap; descriptions show up to two lines without competing with tags. The grouped editor uses two columns in wide panels and one in narrow panels.
|
|
13
|
+
- 设置页新增顶部摘要带(条目 / 启用 / 已停用 / 未保存计数 + 名册目录)、筛选框(匹配 id、描述、模型…)、全部展开 / 收起,以及新增条目的折叠卡。
|
|
14
|
+
- Added a summary band (entry / enabled / disabled / unsaved counts + roster directory), a filter box (matches id, description, model…), expand/collapse all, and a collapsed add-entry card.
|
|
15
|
+
- 切换启用状态后,折叠卡片直接显示「未保存 / 还原 / 保存修改」;保存后生效,其他条目的未保存草稿继续保留。停用条目排在列表末尾。
|
|
16
|
+
- Toggling enable state exposes an unsaved badge and Revert / Save changes directly on the collapsed card. Changes take effect on save and other drafts are preserved; disabled entries appear last.
|
|
17
|
+
- 界面使用宿主 `--dsw-alias-*` 主题变量并提供回退;统一间距、字号与标签样式,存储和备份说明移入页尾折叠区。
|
|
18
|
+
- Host theme tokens with fallbacks support light/dark modes; spacing, typography and tags are consistent, with storage and backup details in a footer disclosure.
|
|
19
|
+
- 字段校验失败时自动展开出错的那一行,便于定位。
|
|
20
|
+
- A failed field validation now opens the offending row so the problem is visible.
|
|
21
|
+
- 折叠按钮与启用开关使用独立原生控件,补齐字段标签与键盘焦点提示;修复「还原」无法移除新加可选字段的问题。
|
|
22
|
+
- Separate native disclosure and switch controls improve keyboard operation and field labeling. Revert now removes newly added optional fields.
|
|
23
|
+
- 本次变化限于设置页展示与交互:名册 YAML、委派、迁移、存储位置与 API 均未改动。
|
|
24
|
+
- Changes are confined to Settings presentation and interaction: roster YAML, delegation, migration, storage location, and the API are unchanged.
|
|
25
|
+
|
|
26
|
+
## [0.3.2] — 2026-10-04
|
|
27
|
+
|
|
28
|
+
### 变更 / Changed
|
|
29
|
+
|
|
30
|
+
- 插件列表和详情页新增随 DeepSeek Harness 界面语言切换的中英文名称与简介。
|
|
31
|
+
- Added localized English and Chinese names and descriptions for the plugin list and detail page.
|
|
32
|
+
- 仅修改展示元数据;YAML 名册、委派、迁移和设置页行为不变。
|
|
33
|
+
- Display metadata only; YAML roster, delegation, migration, and Settings behavior are unchanged.
|
|
34
|
+
|
|
7
35
|
## [0.3.1] — 2026-09-29(DSH 0.1.7-rc.2 适配)
|
|
8
36
|
|
|
9
37
|
### 修复 / Fixed
|
package/README.en.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<img src="https://img.shields.io/github/actions/workflow/status/MaRi23333/dsh-subagent-library/ci.yml?style=flat-square&label=CI" alt="CI" />
|
|
11
11
|
<img src="https://img.shields.io/github/license/MaRi23333/dsh-subagent-library?style=flat-square" alt="License: MIT" />
|
|
12
|
-
<img src="https://img.shields.io/badge/DeepSeek%20Harness-0.
|
|
12
|
+
<img src="https://img.shields.io/badge/DeepSeek%20Harness-0.2.0--rc.2-4d6bfe?style=flat-square" alt="DeepSeek Harness 0.2.0-rc.2" />
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
## Overview
|
|
@@ -30,8 +30,8 @@ Adding entries needs no hand-written config either: ask the main agent to do it,
|
|
|
30
30
|
## Screenshots
|
|
31
31
|
|
|
32
32
|
<p align="center">
|
|
33
|
-
<img src="./assets/readme/screenshot-settings.png" width="75%" alt="Subagent Library settings
|
|
34
|
-
<em>
|
|
33
|
+
<img src="./assets/readme/screenshot-settings.png" width="75%" alt="Subagent Library settings: layered, collapsible cards and roster filtering" /><br>
|
|
34
|
+
<em>Cards start collapsed for a quick view of roles, models and execution settings. Filter and expand to edit; enable-state changes take effect after saving.</em>
|
|
35
35
|
</p>
|
|
36
36
|
|
|
37
37
|
<p align="center">
|
|
@@ -122,6 +122,14 @@ The 0.2.8 legacy `entries` fallback is for DSH ≤0.1.6 only; on DSH ≥0.1.7 th
|
|
|
122
122
|
> Mind the two provider concepts: `provider` is the LLM route (`agentOptions.provider`),
|
|
123
123
|
> while `subagentProvider` is the subagent transport (`ctx.subagents` registration name, e.g. `spawn`/`fork`/`acp`).
|
|
124
124
|
|
|
125
|
+
## Host and desktop compatibility
|
|
126
|
+
|
|
127
|
+
`0.3.1` adapts to the SettingsForms mechanism introduced in DSH `0.1.7-rc.2`. On 2026-09-30, the development team additionally reported it working with DSH `0.2.0-rc.2` and the desktop client of the same version. The roster retains the 0.3 series directory-backed storage and migration rules; this documentation update does not migrate data again.
|
|
128
|
+
|
|
129
|
+
**0.3.2** adds English and Chinese names and descriptions to the plugin manager, following the client language. Roster and delegation behavior are unchanged. See [CHANGELOG.md](./CHANGELOG.md) for update notes.
|
|
130
|
+
|
|
131
|
+
The desktop client uses the Web plugin UI, so no separate desktop-specific package is needed. This compatibility statement reflects maintainer usage feedback. Online model calls still depend on each provider's configuration and service; a working settings page does not establish acceptance of every model or cross-platform scenario.
|
|
132
|
+
|
|
125
133
|
## Install
|
|
126
134
|
|
|
127
135
|
One command, from npm (recommended):
|
|
@@ -153,14 +161,27 @@ npx @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-subagent-lib
|
|
|
153
161
|
|
|
154
162
|
## Settings page
|
|
155
163
|
|
|
156
|
-
A **Subagent Library**
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
A **Subagent Library** page appears under Settings. **Each entry is a card, closed by
|
|
165
|
+
default**; click its name to open the editor.
|
|
166
|
+
|
|
167
|
+
- **Layered cards** separate the name and enable switch, a description of up to two lines,
|
|
168
|
+
the model and provider, and a wrapping group of execution settings. Long names and model
|
|
169
|
+
routes wrap without squeezing the description or hiding the switch.
|
|
170
|
+
- A **summary band** stays at the top of the page: entry / enabled / disabled / unsaved counts
|
|
171
|
+
plus the roster directory.
|
|
172
|
+
- A **filter box** matches id, description, model and more; Expand/collapse all helps in a long
|
|
173
|
+
roster.
|
|
174
|
+
- **Expanded**, fields are grouped as Overview (description) / Routing & execution (provider,
|
|
175
|
+
model, transport, background mode, reasoning effort, depth, output cap) / Tools & prompt
|
|
176
|
+
(denied tools, persona), with Revert / Delete / Save at the bottom. Fields use two columns
|
|
177
|
+
in wider panels and one in narrow panels, with host light/dark themes and keyboard support.
|
|
178
|
+
- Toggling enable state creates a draft. The collapsed card exposes an unsaved badge and
|
|
179
|
+
Revert / Save changes; the setting takes effect only after saving. Saving one entry does
|
|
180
|
+
not submit other drafts, and Revert restores the entire saved entry.
|
|
181
|
+
- Disabled entries appear last; entries marked as legacy are promoted to files on save.
|
|
182
|
+
Storage and backup details are available in a disclosure at the bottom of the page.
|
|
183
|
+
|
|
184
|
+
Saved changes are written back to `<id>.yaml` in the roster directory and hot-reloaded.
|
|
164
185
|
|
|
165
186
|
> **Security note:** the roster settings endpoint (`/subagent-library/api`) follows the
|
|
166
187
|
> DSH Web Host's local trust boundary — the plugin itself adds no separate authentication
|
|
@@ -182,7 +203,7 @@ pnpm run typecheck
|
|
|
182
203
|
pnpm run build # host: lib/index.js; client: lib/client.js
|
|
183
204
|
```
|
|
184
205
|
|
|
185
|
-
- Dev dependencies remain pinned to DSH `0.1.0-rc.6` (see package.json devDependencies); the
|
|
206
|
+
- Dev dependencies remain pinned to DSH `0.1.0-rc.6` (see package.json devDependencies); this is not the current runtime host version. See "Host and desktop compatibility" above for current support and usage feedback. If the interfaces drift on other versions, adjust against the corresponding tag of the [deepseek-harness repo](https://github.com/deepseek-ai/deepseek-harness).
|
|
186
207
|
|
|
187
208
|
## License
|
|
188
209
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<img src="https://img.shields.io/github/actions/workflow/status/MaRi23333/dsh-subagent-library/ci.yml?style=flat-square&label=CI" alt="CI" />
|
|
11
11
|
<img src="https://img.shields.io/github/license/MaRi23333/dsh-subagent-library?style=flat-square" alt="License: MIT" />
|
|
12
|
-
<img src="https://img.shields.io/badge/DeepSeek%20Harness-0.
|
|
12
|
+
<img src="https://img.shields.io/badge/DeepSeek%20Harness-0.2.0--rc.2-4d6bfe?style=flat-square" alt="DeepSeek Harness 0.2.0-rc.2" />
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
> **English:** dsh-subagent-library is a named subagent roster plugin for the
|
|
@@ -37,8 +37,8 @@ DeepSeek Harness 的具名子代理库插件:把常用角色(代码审查、
|
|
|
37
37
|
## 界面
|
|
38
38
|
|
|
39
39
|
<p align="center">
|
|
40
|
-
<img src="./assets/readme/screenshot-settings.png" width="75%" alt="
|
|
41
|
-
<em
|
|
40
|
+
<img src="./assets/readme/screenshot-settings.png" width="75%" alt="子代理库设置页:分层折叠卡片与名册筛选" /><br>
|
|
41
|
+
<em>默认收起的名册卡片:一眼查看角色、模型与执行设置,筛选后展开编辑;启停修改保存后生效。</em>
|
|
42
42
|
</p>
|
|
43
43
|
|
|
44
44
|
<p align="center">
|
|
@@ -127,6 +127,14 @@ backgroundMode: continuable
|
|
|
127
127
|
> 注意区分两个 provider 概念:`provider` 指 LLM 路由(`agentOptions.provider`),
|
|
128
128
|
> `subagentProvider` 指子代理传输层(`ctx.subagents` 注册名,如 `spawn`/`fork`/`acp`)。
|
|
129
129
|
|
|
130
|
+
## 宿主与桌面端兼容
|
|
131
|
+
|
|
132
|
+
`0.3.1` 已适配 DSH `0.1.7-rc.2` 引入的 SettingsForms 设置机制;开发侧于 2026-09-30 进一步报告,它在 DSH `0.2.0-rc.2` 与同版本桌面客户端中可用。名册仍采用 0.3 系列的目录化存储与原有迁移规则,没有因本次说明更新再次迁移数据。
|
|
133
|
+
|
|
134
|
+
**0.3.2** 为插件管理页增加随客户端语言切换的中英文名称与简介,名册和委派行为不变。更新说明见 [CHANGELOG.md](./CHANGELOG.md)。
|
|
135
|
+
|
|
136
|
+
桌面客户端沿用 Web 插件界面,无需另装桌面专用包。该兼容说明依据维护者使用反馈;模型在线调用仍取决于各 Provider 的配置与服务,不能由设置页可用推断全部模型或跨平台场景已验收。
|
|
137
|
+
|
|
130
138
|
## 安装
|
|
131
139
|
|
|
132
140
|
一条命令,从 npm 安装(推荐):
|
|
@@ -157,10 +165,16 @@ npx @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-subagent-lib
|
|
|
157
165
|
|
|
158
166
|
## 设置页
|
|
159
167
|
|
|
160
|
-
Settings → 设置
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
168
|
+
Settings → 设置 里新增「子代理库」页面:**每个条目是一张默认收起的卡片**,点击名称展开编辑。
|
|
169
|
+
|
|
170
|
+
- **分层卡片**:名称与启用开关位于首行,角色描述独占一段(最多两行),模型与 Provider 单独展示;可续聊、思考强度、深度、输出上限、角色提示词与工具限制统一排在下方。长名称和模型路由自动换行,标签不再挤占描述空间。
|
|
171
|
+
- **摘要带**常驻页面顶部:条目 / 启用 / 已停用 / 未保存计数 + 名册目录。
|
|
172
|
+
- **筛选框**匹配 id、描述、模型等,配合 全部展开 / 收起 在长名册里定位。
|
|
173
|
+
- **展开后**字段分组为「概述 / 路由与执行 / 工具与提示词」,宽面板两列、窄面板单列;底部是 还原 / 删除 / 保存。界面随宿主切换明暗主题,并支持键盘操作。
|
|
174
|
+
- 开关修改先保留为草稿:折叠卡片上会出现「未保存」提示和「还原 / 保存修改」,保存后才生效。保存一个条目不会提交其他条目的草稿;还原会完整恢复该条目的已保存配置。
|
|
175
|
+
- 停用条目在列表末尾显示;带「旧版条目」徽标的条目保存时自动晋升为文件。页面底部可展开存储与备份说明。
|
|
176
|
+
|
|
177
|
+
保存后的改动写回名册目录下的 `<id>.yaml`,热生效。
|
|
164
178
|
|
|
165
179
|
> **安全提示**:子代理库的设置接口(`/subagent-library/api`)遵循 DSH Web Host 的本地可信边界,插件自身不含独立身份验证层。若将 DSH Web 绑定到局域网 / 公网 / 反向代理,请在外层配置认证与访问控制,不要把该接口暴露给不可信客户端——子代理 persona 与配置可能包含内部工作规则。
|
|
166
180
|
|
|
@@ -178,7 +192,7 @@ pnpm run typecheck
|
|
|
178
192
|
pnpm run build # host: lib/index.js;client: lib/client.js
|
|
179
193
|
```
|
|
180
194
|
|
|
181
|
-
- 开发依赖仍锁定 DSH `0.1.0-rc.6`(见 package.json devDependencies
|
|
195
|
+
- 开发依赖仍锁定 DSH `0.1.0-rc.6`(见 package.json devDependencies),不等于当前使用宿主版本;当前兼容范围与反馈见上方「宿主与桌面端兼容」。其他版本如接口漂移请对照 [deepseek-harness 仓库](https://github.com/deepseek-ai/deepseek-harness) 相应 tag 调整。
|
|
182
196
|
|
|
183
197
|
## License
|
|
184
198
|
|
|
Binary file
|