dsh-subagent-library 0.3.2 → 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 CHANGED
@@ -4,6 +4,25 @@
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
+
7
26
  ## [0.3.2] — 2026-10-04
8
27
 
9
28
  ### 变更 / Changed
package/README.en.md CHANGED
@@ -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 card: edit roster entries visually" /><br>
34
- <em>The Subagent Library settings card: visually add, edit, remove, enable or disable entries; configure the model, transport, output limit, depth, denied tools, reasoning effort, background mode and persona.</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">
@@ -161,14 +161,27 @@ npx @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-subagent-lib
161
161
 
162
162
  ## Settings page
163
163
 
164
- A **Subagent Library** card appears under Settings: visually add/edit/remove entries
165
- (description / provider / model / subagentProvider transport / maxTokens / denied tools /
166
- depth / background mode / persona / enable switch), written back to `<id>.yaml` in the
167
- roster directory, hot-reloaded.
168
- The add card offers the same fields as an entry card (ID / description / provider / model /
169
- transport / output cap / denied tools / depth / background mode / persona), so a role is
170
- fully configured in one step; legacy entries carry a `legacy` badge and are promoted to
171
- files on save.
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.
172
185
 
173
186
  > **Security note:** the roster settings endpoint (`/subagent-library/api`) follows the
174
187
  > DSH Web Host's local trust boundary — the plugin itself adds no separate authentication
package/README.md CHANGED
@@ -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="设置页「子代理库」卡片:可视化编辑名册条目" /><br>
41
- <em>设置页「子代理库」卡片:可视化增删改与启停,配置模型、传输层、输出上限、深度、禁用工具、思考强度、后台模式和角色提示词。</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">
@@ -165,10 +165,16 @@ npx @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-subagent-lib
165
165
 
166
166
  ## 设置页
167
167
 
168
- Settings → 设置 里新增「子代理库」卡片:可视化增删改条目(描述 / Provider / 模型 /
169
- 传输层 subagentProvider / 输出上限 maxTokens / 禁用工具 / 深度 / 后台模式 / 角色提示词 / 启用开关),写回名册目录下的 `<id>.yaml`,热生效。
170
- 新增卡与条目卡字段一致(ID / 描述 / Provider / 模型 / 传输层 / 输出上限 / 禁用工具 / 深度 / 后台模式 / 角色提示词),一次配置完整角色;
171
- legacy 条目带 `legacy` 徽标,保存时自动晋升为文件。
168
+ Settings → 设置 里新增「子代理库」页面:**每个条目是一张默认收起的卡片**,点击名称展开编辑。
169
+
170
+ - **分层卡片**:名称与启用开关位于首行,角色描述独占一段(最多两行),模型与 Provider 单独展示;可续聊、思考强度、深度、输出上限、角色提示词与工具限制统一排在下方。长名称和模型路由自动换行,标签不再挤占描述空间。
171
+ - **摘要带**常驻页面顶部:条目 / 启用 / 已停用 / 未保存计数 + 名册目录。
172
+ - **筛选框**匹配 id、描述、模型等,配合 全部展开 / 收起 在长名册里定位。
173
+ - **展开后**字段分组为「概述 / 路由与执行 / 工具与提示词」,宽面板两列、窄面板单列;底部是 还原 / 删除 / 保存。界面随宿主切换明暗主题,并支持键盘操作。
174
+ - 开关修改先保留为草稿:折叠卡片上会出现「未保存」提示和「还原 / 保存修改」,保存后才生效。保存一个条目不会提交其他条目的草稿;还原会完整恢复该条目的已保存配置。
175
+ - 停用条目在列表末尾显示;带「旧版条目」徽标的条目保存时自动晋升为文件。页面底部可展开存储与备份说明。
176
+
177
+ 保存后的改动写回名册目录下的 `<id>.yaml`,热生效。
172
178
 
173
179
  > **安全提示**:子代理库的设置接口(`/subagent-library/api`)遵循 DSH Web Host 的本地可信边界,插件自身不含独立身份验证层。若将 DSH Web 绑定到局域网 / 公网 / 反向代理,请在外层配置认证与访问控制,不要把该接口暴露给不可信客户端——子代理 persona 与配置可能包含内部工作规则。
174
180