dsh-subagent-library 0.3.5 → 0.4.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/CHANGELOG.md CHANGED
@@ -4,6 +4,42 @@
4
4
 
5
5
  This file documents user-facing changes. Format loosely follows [Keep a Changelog]; versions follow [SemVer].
6
6
 
7
+ ## [Unreleased]
8
+
9
+ ## [0.4.0] — 2026-11-25
10
+
11
+ ### 新增 / Added
12
+
13
+ - 在设置页管理「角色名册」与「编队」。编队可为成员设置代号、默认分工和顺序,并查看每个成员引用的角色及其模型配置。可复制角色 ID 或直接用作成员代号,格式和重名问题随输入提示。
14
+ - Manage the role roster and groups in Settings. Set member slots and default assignments, reorder members, and see each member’s role and model configuration. Copy a role ID or use it as a slot, with format and duplicate checks as you type.
15
+ - 每次派遣可为独立角色或编队成员选择 DSH 已向当前会话开放的模型和思考等级。下次派遣仍按角色的默认配置启动。
16
+ - Choose a session-authorized model and reasoning effort for a direct or group dispatch. Later dispatches continue to use the role defaults.
17
+
18
+ ### 变更 / Changed
19
+
20
+ - 按角色 ID 或编队成员代号启动一名可续聊的原生子代理。同一轮可分别派遣多位成员。关闭智能体团队时仍可使用编队、分工和向父会话汇报,开启后可使用官方共享任务板。
21
+ - Start a resumable native subagent by role ID or group slot. Dispatch multiple members in one turn with one call per member. Groups, assignments, and parent-session reporting work with Agent Teams off. Enabling Agent Teams adds the native shared task board.
22
+ - `delegate` 返回成员名、会话 ID 和启动路由,任务结果随后交付到父会话。原生成员列表和 `list_agents` 显示启动模型及已知思考等级。旧的前台正文、后台 Job 和 `run_in_background` 调用方式见[迁移指南](./MIGRATION.md)。
23
+ - `delegate` returns the member name, session ID, and launch route. Results arrive separately in the parent session. Native member titles and `list_agents` show the launch model and known reasoning effort. See the [migration guide](./MIGRATION.md) for callers that used foreground results, background jobs, or `run_in_background`.
24
+ - 本版自有代码采用 [Apache-2.0](./LICENSE)。既有已发布版本及内联第三方代码沿用原有许可,见[第三方许可声明](./THIRD_PARTY_NOTICES.md)。
25
+ - Project-owned code in this release adopts [Apache-2.0](./LICENSE). Previously published versions and bundled third-party code retain their original licenses. See the [third-party notices](./THIRD_PARTY_NOTICES.md).
26
+
27
+ ### 修复 / Fixed
28
+
29
+ - 主会话切换模型后,继承历史并跟随主会话的成员即使在切换当轮启动,也会从首个请求起采用当前模型和思考等级。角色已有模型配置或本次派遣临时选模时,首个请求也会使用本次选定的模型。
30
+ - A child that inherits the parent’s history and follows its model uses the parent’s current model and reasoning effort from the first request, even when dispatched in the same turn as the model switch. Configured role models and one-time overrides also take effect on the first request.
31
+ - 直接派遣时,成员标题保留角色 ID,并在有值时显示启动模型、思考等级和简短任务描述。设置编辑遇到配置冲突时保留草稿。
32
+ - Direct dispatch titles retain the role ID, followed by the launch model, reasoning effort, and task summary when available. Settings keep the draft if a save encounters a configuration conflict.
33
+ - 名册浏览和普通派遣减少写锁争用,Windows 遇到文件暂时被占用时会重试解锁。宿主未使用 profile 时,可在设置页编辑共享模型配置。
34
+ - Browsing the roster and dispatching members take fewer write locks. Lock cleanup retries when a file is briefly busy on Windows. On hosts without profiles, shared model settings can be edited in Settings.
35
+
36
+ ## [0.3.6] — 2026-11-06
37
+
38
+ ### 修复 / Fixed
39
+
40
+ - 通过 DSH 0.2.2 的原生设置图标插槽显示子代理库机器人图标,修复新版设置侧栏中的图标回退;尺寸与颜色随宿主显示。
41
+ - Use the native DSH 0.2.2 settings icon slot to restore the library's robot icon in the updated sidebar, with host-controlled sizing and theme colors.
42
+
7
43
  ## [0.3.5] — 2026-10-17
8
44
 
9
45
  ### 修复 / Fixed
@@ -130,7 +166,9 @@ This file documents user-facing changes. Format loosely follows [Keep a Changelo
130
166
 
131
167
  - 修复设置页保存 400(移除保存期工具名预检,委派期 `tools.restrict` 为准);新条目卡补齐缺失字段。
132
168
 
133
- [Unreleased]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.5...HEAD
169
+ [Unreleased]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.4.0...HEAD
170
+ [0.4.0]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.6...v0.4.0
171
+ [0.3.6]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.5...v0.3.6
134
172
  [0.3.5]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.4...v0.3.5
135
173
  [0.3.4]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.3...v0.3.4
136
174
  [0.3.3]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.2...v0.3.3
package/LICENSE CHANGED
@@ -1,21 +1,203 @@
1
- MIT License
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
2
4
 
3
- Copyright (c) 2026 dsh-subagent-library contributors
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
4
99
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+ Copyright (c) 2026 dsh-subagent-library contributors
package/MIGRATION.md CHANGED
@@ -1,4 +1,20 @@
1
- # 迁移指南:0.2.x → 0.3.x(名册目录化)
1
+ # 子代理库迁移指南 / Migration guide
2
+
3
+ ## 0.3.x → 0.4.0(原生异步派遣 / Native async dispatch)
4
+
5
+ 1. 检查宿主版本。0.4.0 面向提供具名可续聊子代理接口的 DSH,兼容基线为 `0.2.2-rc.5`。较旧宿主可继续使用与其匹配的 0.3.x。
6
+ 2. 保留名册目录及旧配置。已有角色仍可通过原来的 `library_id` 派遣,`_profiles/` 中的模型路由继续生效。编队可选,文件存放在 `_groups/<id>.yaml`,关闭智能体团队时也可使用。
7
+ 3. 更新调用方。移除 `run_in_background`,从启动回执读取 `name` 和 `subagentId`。原先解析前台正文或 `jobId` 的调用方需改为接收单独交付的任务结果。使用宿主的消息、等待和中止工具与成员交互。
8
+ 4. 检查角色限制。两种旧 `backgroundMode` 值都按异步可续聊方式启动。带 `toolFilter` 的角色仍会阻止派遣。需要强制工具限制时,先在宿主落实权限,再移除该字段。角色最大深度取宿主和角色所设上限的较小值。
9
+ 5. 切换版本前备份整个名册目录,包括 `_profiles/` 和 `_groups/`。0.3.x 的设置页只能管理角色,编队仍需在 0.4.0 中管理。
10
+
11
+ 1. Check your host version. Version 0.4.0 targets DSH with named, resumable subagents. Its compatibility baseline is `0.2.2-rc.5`. On an older host, keep the compatible 0.3.x release.
12
+ 2. Keep your roster directory and existing configuration. Roles keep their `library_id` and model routes in `_profiles/`. Optional groups live in `_groups/<id>.yaml` and work with Agent Teams off.
13
+ 3. Update existing callers. Remove `run_in_background` and read `name` and `subagentId` from the start receipt. Callers that parsed a foreground result or `jobId` need to handle the separately delivered task result. Use the host’s messaging, wait, and abort tools to interact with the member.
14
+ 4. Review role restrictions. Both legacy `backgroundMode` values now start an asynchronous, resumable member. A stored `toolFilter` blocks dispatch. If you still need tool restrictions, configure host permissions before removing the field. The lower of the host and role depth limits applies.
15
+ 5. Back up the roster directory, including `_profiles/` and `_groups/`, before switching versions. The 0.3.x settings page manages roles. Use 0.4.0 to manage groups.
16
+
17
+ ## 0.2.x → 0.3.x(名册目录化)
2
18
 
3
19
  **中文指南(English guide below)**
4
20
 
@@ -10,7 +26,7 @@
10
26
  2. **验证**:`/subagent` 或设置页能看到全部旧条目,且名册目录里多了一批 `<id>.yaml`;
11
27
  3. **清理**(可选但推荐):设置页点「清除旧条目」,或按宿主版本手动删掉配置行/`config` 下的旧 `entries` 键,同时保留同一行的其他插件配置。
12
28
 
13
- 旧配置在 0.3.x 全程兜底可读,不清除也不影响使用;**0.4 起才停止读取**。
29
+ 0.3.x 和 0.4.0 都可以继续读取旧配置。使用 0.4.0 时,同名角色文件损坏须先修复才能派遣。
14
30
 
15
31
  ---
16
32
 
@@ -84,7 +100,7 @@ subagent-library:
84
100
  ### 第 1 步:升级 + 重启
85
101
 
86
102
  ```sh
87
- npx @deepseek-ai/dsh plugin --profile web add dsh-subagent-library@latest
103
+ npx @deepseek-ai/dsh plugin --profile web add dsh-subagent-library@0.3.6
88
104
  ```
89
105
 
90
106
  然后重启 dsh web、刷新页面。
@@ -106,7 +122,7 @@ npx @deepseek-ai/dsh plugin --profile web add dsh-subagent-library@latest
106
122
  - **DSH ≤0.1.6**:编辑 `~/.dsh/settings.yaml`,删掉 `subagent-library.entries:` 整段(保留 `subagentProvider` / `entriesDir` 等插件级键);
107
123
  - **DSH ≥0.1.7**:旧段已被宿主导入 web profile 的 `cordis.patch.yml`——删掉其中 `id: subagent-library` 条目 `config` 下的 `entries:` 键即可;**保留同一 `config` 行里的 `entriesDir` / `subagentProvider` 等其他键**,不要删除整个条目,也可以用宿主自带配置编辑器操作。
108
124
 
109
- > 不清理会怎样?——什么都不会坏。文件优先生效,旧段只是躺着(设置页会持续显示提示信息)。0.4 起插件停止读取旧段,届时再删也行。
125
+ > 不清理会怎样?——什么都不会坏。文件优先生效,旧段只是躺着(设置页会持续显示提示信息)。新版仍可读取这些副本。
110
126
 
111
127
  ## 回滚(想退回 0.2.x)
112
128
 
@@ -126,7 +142,7 @@ npx @deepseek-ai/dsh plugin --profile web add dsh-subagent-library@latest
126
142
  这些操作按文件逐个进行,不是目录级多文件事务;写入或收敛失败返回 HTTP 500,且可能已经部分完成。规范 `.yaml` 内容未变时会跳过写入并保留原文件和注释;`.yml` 内容即使未变也会收敛重写为生成的 `.yaml`,原 `.yml` 注释会丢失。若跳过路径的同名 `.yml` 清扫失败,保存仍返回 200 但带 warning,冲突诊断会持续到清扫成功;解除占用后重试保存。遇到错误先检查名册目录和 diagnostics,再重试。
127
143
 
128
144
  **Q:某个文件写坏了会怎样?**
129
- 只有那一个条目失效:它被跳过,并在 `list_subagents`、`/subagent`、设置页 diagnostics 里给出原因,其余条目照常。改好文件即恢复。**特别注意**:如果同名条目在当前宿主配置里还有旧副本(自动迁移后旧副本仍保留;点「清除旧条目」或删除条目后才移除),插件会用**旧副本兜底继续服务**,并在 diagnostics 里以 error 标明「delegate 使用的是旧配置」——看到这条请先修文件。
145
+ 只有那一个条目失效:它被跳过,并在 `list_subagents`、`/subagent`、设置页 diagnostics 里给出原因,其余条目照常。改好文件即恢复。**特别注意**:如果同名条目在当前宿主配置里还有旧副本(自动迁移后旧副本仍保留;点「清除旧条目」或删除条目后才移除),0.3.x 曾使用旧副本派遣,0.4.0 会阻止启动该角色,以免悄悄使用旧的模型、职责或限制。
130
146
 
131
147
  **Q:`.yml` 文件会一直保持 `.yml` 吗?**
132
148
  会正常读取;但设置页保存触达该条目时,即使内容未变也会收敛为生成格式的 `.yaml`(原 `.yml` 移除,避免同 id 双文件),因此原手写注释会丢失。内容未变的规范 `.yaml` 则会跳过写入并保留注释。
@@ -186,7 +202,7 @@ On the newer host, `settings.yaml.imported` is a migration backup, not a verifie
186
202
 
187
203
  **File-name lifecycle** — Both `<id>.yaml` and `<id>.yml` are read. If both spellings already exist for one id, fix that conflict (keep one) before using the settings page. Deleting an entry removes both suffixes. Writes and deletes run per file, not as a directory-wide multi-file transaction: a write or convergence failure returns HTTP 500 and may leave a partial result. If the unchanged canonical `.yaml` skip path cannot sweep a same-id `.yml`, the save returns 200 with a warning and the duplicate diagnostic remains until a retry succeeds; inspect the roster before retrying.
188
204
 
189
- **Automatic migration** — on the first roster use after upgrading, each legacy entry is exported to `<id>.yaml` **only when neither `<id>.yaml` nor `<id>.yml` exists** (if either spelling exists, hand-written files are never overwritten; re-runs are idempotent). The legacy settings copies are **kept** as a rollback fallback; files take precedence. Legacy reading stays working throughout 0.3.x and is **removed in 0.4**. Deleting an entry from the settings page removes both its `<id>.yaml` and `<id>.yml` roster files **and** its legacy copy; the one-click cleanup only removes legacy copies that files already shadow and never touches roster files. Legacy copies persist after automatic migration until you clear them.
205
+ **Automatic migration** — on the first roster use after upgrading, each legacy entry is exported to `<id>.yaml` **only when neither `<id>.yaml` nor `<id>.yml` exists** (if either spelling exists, hand-written files are never overwritten; re-runs are idempotent). The legacy settings copies are **kept** as a rollback fallback; files take precedence. Versions 0.3.x and 0.4.0 both retain legacy reading. Fix a broken same-ID file before dispatching that role. Deleting an entry from the settings page removes both its `<id>.yaml` and `<id>.yml` roster files **and** its legacy copy; the one-click cleanup only removes legacy copies that files already shadow and never touches roster files. Legacy copies persist after automatic migration until you clear them.
190
206
 
191
207
  **Rollback** — the 0.2.8 legacy `entries` fallback is for DSH ≤0.1.6 only; on DSH ≥0.1.7 the plugin cannot be downgraded by itself, and the old settings seam may return 503. Host downgrade and restoration of `settings.yaml.imported` data are unverified, so no downgrade sequence is prescribed. Legacy copies are the rollback data source: editing or deleting them (including deleting entries or one-click cleanup) makes rollback return to the snapshot as of that moment. To restore roster content, use your own `_backups/` copies and verify them manually.
192
208