dsh-better-goal 0.3.0 → 0.4.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.md CHANGED
@@ -1,292 +1,88 @@
1
- <div align="center">
2
-
3
- <h1>dsh-better-goal</h1>
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/omdsh-dev/dsh-better-goal/main/docs/assets/banner-dark.svg">
4
+ <img src="https://raw.githubusercontent.com/omdsh-dev/dsh-better-goal/main/docs/assets/banner-light.svg" width="100%" alt="Part of Better DSH — dsh-better-goal">
5
+ </picture>
6
+ </p>
4
7
 
5
- <p><strong>让目标持续推进,也能在必须人介入时明确停下。</strong></p>
8
+ <h1 align="center">dsh-better-goal</h1>
6
9
 
7
- <p>替换 DSH 原生 goal:保留持久目标与自动续跑,补上即时失败停止、可控的提问等待和更简单的目标操作。步骤仍然交给 <code>todo_write</code>。</p>
10
+ <p align="center">把一次会话变成一个可持续的目标:暂停、恢复、轮数策略都由你控制。</p>
8
11
 
9
- <p>
12
+ <p align="center">
10
13
  <a href="https://www.npmjs.com/package/dsh-better-goal"><img src="https://img.shields.io/npm/v/dsh-better-goal.svg" alt="npm 版本"></a>
11
- <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="许可证:Apache-2.0"></a>
12
- <a href="package.json"><img src="https://img.shields.io/badge/DSH-0.2.1--rc.2_%3C0.3.0-6f42c1.svg" alt="DSH 0.2.1-rc.2 至 0.3.0 之前"></a>
13
- <a href="package.json"><img src="https://img.shields.io/badge/node-%5E22.19_%7C%7C_%3E%3D24-339933.svg" alt="Node.js ^22.19.0 或 >=24.0.0"></a>
14
+ <a href="LICENSE"><img alt="Apache-2.0" src="https://img.shields.io/github/license/omdsh-dev/dsh-better-goal?color=blue"></a>
15
+ <a href="package.json"><img alt="DSH 0.2.2-rc.1" src="https://img.shields.io/badge/DSH-0.2.2--rc.1-4B32C3"></a>
16
+ <a href="https://github.com/omdsh-dev/dsh-better-dsh"><img alt="Part of Better DSH" src="https://img.shields.io/badge/part%20of-dsh--better--dsh-2F80B7"></a>
14
17
  </p>
15
18
 
16
- </div>
17
-
18
- > **目标管“要完成什么”,`todo_write` 管“下一步做什么”。** 两者分开,长任务不会只剩一页待办,目标也不会在重开后消失。
19
-
20
- ## 与 DSH 原生 goal 对比
21
-
22
- **自动续跑不应该变成“明知做不了,还继续跑”。** 原生 goal 已经提供持久目标与自动续跑;better-goal 改进的是遇到阻塞时及时停下、可控的提问等待,以及更简单的目标操作。
23
-
24
- > 对比以 DSH `0.2.1-rc.2` 的默认行为为基准。原生也支持完成、用户暂停和清除,并非完全不能停止;关键差异是**自主续跑中的模型能否在需要人介入时立即暂停**。
25
-
26
- | 场景 | DSH 原生 goal | dsh-better-goal |
27
- | --- | --- | --- |
28
- | **缺密钥、缺权限,必须由人介入** | 自主续跑时不能直接自行暂停;报告受阻有轮数门槛,目标仍在进行中就会继续排下一轮 | 立即 `pause`,在回复里说明缺什么,停止自动续跑;不会为了“完成”而伪造、跳过或缩小范围 |
29
- | **阻塞已经确认,还要不要凑轮数** | 自主续跑时,默认至少经过 **3 个目标轮次**才接受受阻报告;刚开始就确认缺密钥,也不能立即用它停下 | 不设这个门槛;明确无法自行解决时即可停下,不必重复空转 |
30
- | **向用户提问后没人回答** | 默认提问会阻塞当前执行;需另行启用定时提问模式才有超时 | 由独立的 **dsh-better-ask-user** 统一管理提问等待;超时后仍可回答,Agent 可先做不依赖答案的工作 |
31
- | **希望始终等人确认** | 默认阻塞等待;定时模式另外配置 | 在 **dsh-better-ask-user** 设置中把等待设为 **`-1`**,即可一直等待;超时从不代表同意 |
32
- | **阻塞解除后继续** | 模型恢复受直接人类请求限制;已暂停目标由 Web 或 `/goal resume` 恢复 | 用户或 Agent 都可明确继续,不要求先出现一条新的人类消息;保留原目标与已用轮数 |
33
- | **轮数控制** | 默认每个目标上限 **256 轮**,达到配置上限会停止;但有限的重试额度不等于能够立即报告阻塞 | **Agent 决定 / 无上限 / 固定数字**三档策略;主动暂停与轮数上限分开处理 |
34
- | **模型如何管理目标** | 分散在 3 个工具中,操作还受状态与授权条件限制 | 一个工具、五个动作:**获取 / 覆盖写入 / 暂停 / 成功 / 继续** |
35
-
36
- 两者都能保存目标、跨轮推进、暂停和恢复;**这些不是本插件独有的能力**。提问等待已拆到独立的 **dsh-better-ask-user**,本插件只负责目标、续跑与轮数策略。
37
-
38
- ### 例子:任务卡在必需的 API 密钥
39
-
40
- 如果后续步骤必须请求外部服务,而当前没有可用密钥,Agent 不能靠“再努力一轮”把密钥变出来。**应当先说明缺失项并停下,而不是反复请求、重复验证,或把未完成的任务标成成功。**
41
-
42
- 原生默认行为下,这里容易落入两种困境:
43
-
44
- - **没有成功报告受阻**:目标仍在进行中,回合结束后继续排下一轮,缺失的密钥却不会因此出现。
45
- - **改为提问等待**:默认会卡在当前提问上,直到用户回答或中止;即使还有独立工作能做,也不能先从这次等待返回。轮数上限不是等待超时,不能解决这个问题。
46
-
47
- ```mermaid
48
- flowchart TD
49
- A["自动执行目标"] --> B["发现缺少必需的 API 密钥<br/>Agent 无法自行补齐"]
50
- B --> N["原生 goal<br/>报告受阻有轮数门槛"]
51
- N -->|"目标仍在进行中"| L["下一轮继续尝试<br/>缺失条件并未改变"]
52
- L --> N
53
- N -->|"满足受阻条件并报告 / 到上限 / 用户停止"| X["停止续跑"]
54
- B --> G["better-goal<br/>立即暂停并说明缺失项"]
55
- G --> S["停止自动续跑<br/>不假装完成"]
56
- S -->|"补齐密钥后,用户或 Agent 明确继续"| R["沿用目标与计数<br/>继续执行"]
57
- ```
58
-
59
- 原生并不一定无限循环:报告受阻、达到轮数上限或用户停止都能结束续跑。这里要避免的是**在无法改变的阻塞上继续消耗回合**;如果还有可以独立推进的有效工作,Agent 应先完成那些工作,再判断是否需要停下。
60
-
61
- ## 安装:只选一个入口
62
-
63
- 需要 [DSH](https://github.com/deepseek-ai/deepseek-harness) `>=0.2.1-rc.2 <0.3.0` 和 Node.js `^22.19.0 || >=24.0.0`。无构建步骤。
64
-
65
- ### 通过 Apollo 安装(推荐)
66
-
67
- [Apollo](https://github.com/Menghuan1918/dsh-apollo)([npm 包](https://www.npmjs.com/package/@menghuan1918/dsh-apollo))是包含流程技能、工程模式和本插件的集合,goal 是其中一个独立子插件。从 npm 安装 Apollo 会自动带入 `dsh-better-goal`,**不需要再安装一次**:
68
-
69
- ```sh
70
- dsh plugin --profile <profile> add @menghuan1918/dsh-apollo@0.4.1
71
- ```
19
+ <p align="center">
20
+ <a href="https://github.com/omdsh-dev/dsh-better-dsh">Better DSH 插件集合</a> ·
21
+ <a href="#安装">安装</a> ·
22
+ <a href="#它拥有什么">它拥有什么</a> ·
23
+ <a href="#设置">设置</a> ·
24
+ <a href="#与-better-dsh-的关系">与 Better DSH 的关系</a>
25
+ </p>
72
26
 
73
- 安装后,目标设置出现在 **Plugins → @menghuan1918/dsh-apollo → dsh-better-goal 行**。只保留 Apollo 入口即可。
27
+ ## 它做什么
74
28
 
75
- 旧版通过 GitHub 安装的 Apollo,在 Plugins 里仍显示为 `dsh-apollo`;迁移到 `@menghuan1918/dsh-apollo` 时先移除旧入口,再安装新包。会话记录保留,`/goal` 用法不变;迁移后请检查插件设置。
29
+ - 一个持久 goal,跨轮次自动续跑
30
+ - 暂停 / 恢复 / 轮数上限
31
+ - 增强实现与原生实现可切换
32
+ - 兼容旧 goal 的 `questionTimeoutSeconds`
76
33
 
77
- ### 只安装目标插件(独立安装)
34
+ <p align="center">
35
+ <picture>
36
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/omdsh-dev/dsh-better-goal/main/docs/assets/ownership-dark.svg">
37
+ <img src="https://raw.githubusercontent.com/omdsh-dev/dsh-better-goal/main/docs/assets/ownership-light.svg" width="100%" alt="dsh-better-goal 与 Better DSH 的装配关系">
38
+ </picture>
39
+ </p>
78
40
 
79
- 如果不需要 Apollo,可从 npm 单独安装本插件:
41
+ ## 安装
80
42
 
81
43
  ```sh
82
- # npm 安装(推荐)
83
- dsh plugin --profile <profile> add dsh-better-goal@0.2.0
84
-
85
- # 或从 GitHub main 源码安装(次入口)
86
- dsh plugin --profile <profile> add github:Menghuan1918/dsh-better-goal
87
- ```
88
-
89
- 完成后,目标设置出现在 **Plugins → dsh-better-goal → dsh-better-goal 行**。npm 包页面:[dsh-better-goal](https://www.npmjs.com/package/dsh-better-goal)。
90
-
91
- > **安装或升级后要重启对应的 DSH profile。** 刷新网页只会重载界面,不会替换正在运行的实现;插件也不会自动修改你当前打开的 GUI。
92
-
93
- 本地开发安装见[开发文档](docs/DEVELOPMENT.md)。
94
-
95
- ## 用起来
96
-
97
- 典型流程:
98
-
99
- ```mermaid
100
- flowchart TD
101
- A["提出一个完整目标<br/>/goal 目标,或让 Agent 创建"] --> B["目标进入进行中<br/>开始自动续跑"]
102
- B --> C{"这一轮结束"}
103
- C -->|"还有未完成的工作"| D["自动开始下一轮"]
104
- D --> C
105
- C -->|"当前证据证明完成"| E["标记完成<br/>GoalBar 隐藏"]
106
- C -->|"需要人介入(缺密钥 / 权限 / 决定)"| F["Agent 暂停并说明缺什么"]
107
- C -->|"用户暂停或中断"| G["暂停<br/>不再自动续跑"]
108
- F --> H["用户或 Agent 显式恢复"]
109
- G --> H
110
- H --> B
111
- J["重开、恢复或 fork 会话"] --> K["恢复目标与轮数<br/>自动续跑保持关闭"]
112
- K --> H
113
- ```
114
-
115
- 计划模式或待提交选择期间,自动轮次会先让路;等待提问、还有子代理在运行时也不会抢跑。你打断当前回合时,进行中的目标会停在暂停状态,而不是自己重新启动。
116
-
117
- ### Agent 侧:五个动作
118
-
119
- 模型侧只用一个 `goal` 工具,你不需要记调用格式,也没有内部编号要填:
120
-
121
- | 动作 | 用户语义 |
122
- | --- | --- |
123
- | `get` | 读取当前目标、状态和进度 |
124
- | `set` | 用完整目标替换当前目标;轮数清零并立即开始 |
125
- | `resume` | 继续现有目标;保留目标和已用轮数 |
126
- | `complete` | 在当前证据证明完成时结束目标 |
127
- | `pause` | 需要你提供密钥、权限或决定时停下;目标保留,可随时继续 |
128
-
129
- 只在确实要替换总目标时用 `set`;不要用它绕过轮数上限或丢掉未完成的范围。Agent 不会用 mock、硬编码或跳过检查来“完成”目标;缺条件就暂停并说明缺什么。清除仍由 GoalBar 或 `/goal clear` 完成。
130
-
131
- > **0.2.0 变更**:模型侧的 `fail` 改为 `pause`。`/goal fail <原因>` 保留为人类命令,会记录原因并标记受阻;历史上由模型记录的受阻目标仍可读取和恢复。
132
-
133
- ### 人类命令
44
+ # 只安装这个插件
45
+ dsh plugin --profile <profile> add dsh-better-goal@0.4.1
134
46
 
135
- | 你想做 | 命令 |
136
- | --- | --- |
137
- | 开始或整体替换目标 | `/goal <目标>` 或 `/goal set <目标>` |
138
- | 查看当前目标和进度 | `/goal` |
139
- | 修改目标内容(保留进度) | `/goal edit <新目标>` |
140
- | 暂停 / 恢复 | `/goal pause` / `/goal resume` |
141
- | 暂停 / 恢复的短别名 | `/goal off` / `/goal on` |
142
- | 标记完成 | `/goal complete` |
143
- | 报告阻塞原因(仅人类) | `/goal fail <原因>` |
144
- | 清除目标 | `/goal clear` |
145
-
146
- 例如:
147
-
148
- ```text
149
- /goal 给导出接口补上分页,并用现有测试证明没有回归
150
- # Agent 自动接续;需要你决定时会提问
151
- /goal pause
152
- /goal resume
47
+ # 或安装 Better DSH(会自动带上所有独立插件)
48
+ dsh plugin --profile <profile> add dsh-better-dsh@0.10.0
153
49
  ```
154
50
 
155
- `/goal` 命令由插件直接提供,不依赖模型是否记得调用工具。`/goal create <目标>` 是 `/goal set` 的显式别名。编辑一个已经完成的目标会新建目标;旧目标仍保留在会话历史里。
156
-
157
- ### GoalBar
51
+ > 安装 / 升级 / 换包后必须重启对应 profile;只刷新网页不够。
158
52
 
159
- 输入框上方的目标条显示状态、目标摘要和轮数;固定上限还显示进度。点击摘要查看完整目标,编辑时支持多行,使用 Ctrl/⌘ + Enter 保存。暂停、恢复、编辑和清除按钮按状态出现。
53
+ ## 它拥有什么
160
54
 
161
- 完成后收起当前目标,历史入口继续保留。点击历史图标可搜索、按状态筛选并展开已完成或已清除的目标;历史跟随会话恢复。
162
-
163
- > 目标条不负责新建或整体替换目标:用 `/goal <目标>`(或 `/goal set <目标>`),或让 Agent 设定。
55
+ | | |
56
+ |---|---|
57
+ | 稳定行 id | `dsh-better-goal` |
58
+ | 入口 / 工具 | `goal` 工具 · `/goal` 命令 · GoalBar / 设置页 |
59
+ | 设置 | 轮数策略、实现选择、原生参数 |
60
+ | npm 包 | `dsh-better-goal@0.4.1` |
61
+ | 仓库 | https://github.com/omdsh-dev/dsh-better-goal |
164
62
 
165
63
  ## 设置
166
64
 
167
- 打开 **Plugins → dsh-better-goal → dsh-better-goal 行**;由 `@menghuan1918/dsh-apollo` 装配时,打开 **Plugins → @menghuan1918/dsh-apollo → dsh-better-goal 行**。两处操作同一份配置。增强轮数策略保存后热更新;目标实现和两项原生参数保存后需要重启对应 DSH profile,页面会区分已保存配置与实际运行配置。
168
-
169
- ### 默认设置速览
170
-
171
- | 设置与默认值 | 说明 |
172
- | --- | --- |
173
- | **目标实现**<br>`implementation`<br>默认 **`enhanced`**(增强 Goal) | **`enhanced`**:本插件自己的服务、单一 `goal` 工具、`/goal` 命令与续跑驱动。**`native`**:宿主原生 `dsh-goal` 服务、`get_goal`/`create_goal`/`update_goal` 工具、命令与续跑驱动。两套实现读写同一份目标记录,不会同时运行;切换保存后**重载 profile** 才替换装配。 |
174
- | **原生默认轮数**<br>`nativeDefaultMaxGoalRounds`<br>默认 **`256`** | 只在 `native` 实现生效:调用方未指定轮数时原生服务使用的默认上限。保存后重载 profile 生效。 |
175
- | **原生受阻轮数**<br>`nativeBlockedAfterConsecutiveRounds`<br>默认 **`3`** | 只在 `native` 实现生效:原生自主目标轮次达到该累计轮数后,模型才可报告受阻。保存后重载 profile 生效。 |
176
- | **轮数上限策略**<br>`roundLimitMode`<br>默认 **`agent`**(由 Agent 决定) | 只在 `enhanced` 实现生效:默认让 Agent 决定;创建时没有给上限,就不设轮数上限。 |
177
- | **固定轮数上限**<br>`roundLimit`<br>默认 **`256`** | 只在“固定轮数”模式生效;达到后停止自动续跑。 |
178
- | **旧提问超时字段**<br>`questionTimeoutSeconds` | **已弃用,仅保留读取**;新的等待、续期和超时行为在 **dsh-better-ask-user** 中配置。 |
179
-
180
- > **默认组合:`enhanced` + `agent` + `256`。** 其中 `256` 只在切到“固定轮数”后生效。`implementation` 与两个 `native*` 字段是装配时输入:保存写入配置,重载 profile 才换装配;`roundLimitMode`/`roundLimit` 热更新、立即生效。旧配置里的 `120` 秒只用于一次性迁移到 ask-user,不再影响本插件的运行。
181
-
182
- 增强轮数策略只影响之后的新轮次,不重置已用轮数,也不会自动恢复已经停下的目标。原生模式使用本页的原生参数,增强轮数策略保留但不生效。
183
-
184
- ### 轮数上限:三种模式
185
-
186
- ```mermaid
187
- flowchart TD
188
- S["轮数上限策略"] --> A{"选择"}
189
- A -->|"agent(默认)"| AG["由 Agent 决定<br/>可显式设上限;创建时没给就不设"]
190
- A -->|"unlimited"| UN["无上限<br/>忽略模型传来的轮数"]
191
- A -->|"fixed"| FX["固定轮数<br/>默认 256,忽略模型传来的值"]
192
- AG --> R["设了有限上限时<br/>达到后停下,调高后可继续"]
193
- FX --> R
194
- UN --> OK["不会因轮数自动停下"]
195
- ```
196
-
197
- - **`agent`(默认)**:Agent 可以给目标设一个轮数上限;新建时没给就不设上限,编辑或恢复时没给则沿用原值。
198
- - **`unlimited`**:统一无上限,模型传入的轮数会被忽略。
199
- - **`fixed`**:统一使用设置里的固定值(默认 `256`),模型传入的轮数会被忽略。
200
-
201
- 达到上限时,目标会变为受阻并停止自动续跑。把上限调高后,可以 `/goal resume` 继续;把上限调到已用轮数以下不会让计数倒退,只会让运行中的目标停下。
202
-
203
- ### 提问等待
204
-
205
- 提问等待、输入续期、Web 卡片和超时行为已经迁移到独立插件 **dsh-better-ask-user**。本插件不再注册 `ask_user_question` 影子,也不再消费 `questionTimeoutSeconds`;该字段只作为旧配置保留,供 ask-user 做一次性迁移。
206
-
207
- 超时仍然不是同意,也不是跳过。原生 pending 行为会让问题保持可回答;默认选择模式会把结果明确标记为自动选择,模型侧会收到警告。
208
-
209
- ## 恢复、暂停与完成
210
-
211
- | 状态 | GoalBar 与续跑 | 怎么继续 |
212
- | --- | --- | --- |
213
- | 进行中 | 显示“进行中的目标”;自动续跑开启 | 等它推进,或随时暂停 / 编辑 |
214
- | 已暂停 | 显示“已暂停的目标”;自动续跑关闭 | 点恢复或 `/goal resume` |
215
- | 受阻 | 显示“受阻的目标”和原因;自动续跑关闭 | 处理阻塞后 `/goal resume`,或编辑目标 |
216
- | 已完成 | 目标条隐藏;自动续跑关闭 | 需要新目标时 `/goal <目标>` |
217
-
218
- - **重开、恢复或 fork**:恢复目标、状态和已用轮数,但自动续跑保持关闭;必须显式恢复。
219
- - **用户中断**:停止自动续跑,并在安全的回合边界保存为暂停;不会把暂停通知当成新提示自动启动。
220
- - **计划模式**:计划模式或待提交的选择不会自动续跑。
221
- - **完成**:Agent 会按目标逐项核对当前文件、命令结果、测试和运行状态;局部进度或“应该可以”不算完成证据。你也可以用 `/goal complete` 直接标记完成。
222
- - **失败**:遇到明确阻塞时,Agent 会带着具体原因立即停下,不会为了凑轮数继续空转。
223
-
224
- ## FAQ
65
+ 可以在 Plugins 页的 `dsh-better-goal` 行设置,也可以在 Better DSH 详情页的「集成设置」里打开同名页面。两个入口共用同一份配置和同一个设置组件,不会产生第二份存储。
225
66
 
226
- <details>
227
- <summary><strong>我已经用 Apollo,还要再装一次吗?</strong></summary>
67
+ - 轮数策略保存即生效;实现选择与原生参数需要重载 profile。
68
+ - 独立安装和 Better DSH 组合使用同一稳定行,不产生第二份配置。
228
69
 
229
- 不用。Apollo 已经把本插件作为依赖装配,只保留 Apollo 入口即可。两者都被显式选中时,DSH 0.2.1-rc.2 可能把目标设置行锁成只读;**推荐只保留 Apollo 入口**。技术原因见[开发文档](docs/DEVELOPMENT.md)。
70
+ ## 与 Better DSH 的关系
230
71
 
231
- </details>
72
+ - **同一个稳定行**:独立安装或由 `dsh-better-dsh` 装配,行 id 和设置命名空间都不变。
73
+ - **旧入口兼容**:早期 Apollo 集成使用的行配置键仍然注册,指向同一份配置。
74
+ - **可以单独使用**:不安装 Better DSH 也能工作;只是不会得到工程预设、流程技能或后台 job 守卫。
75
+ - **Apache-2.0**:本仓库与 Better DSH 的其他仓库统一使用 Apache License 2.0。
232
76
 
233
- <details>
234
- <summary><strong>设置在哪里?保存后要重启吗?</strong></summary>
235
-
236
- 独立安装时在 **Plugins → dsh-better-goal → dsh-better-goal 行**;由 `@menghuan1918/dsh-apollo` 装配时在 **Plugins → @menghuan1918/dsh-apollo → dsh-better-goal 行**。增强轮数策略保存后热更新;`implementation` 和两项 `native*` 参数保存后需要重启 DSH profile。刷新网页不会替换运行中的实现。安装、升级或改动插件组合后也需重启 profile。
237
-
238
- </details>
239
-
240
- <details>
241
- <summary><strong>重开或 fork 后,为什么没有自动继续?</strong></summary>
242
-
243
- 这是有意的安全行为。会话重开、恢复或 fork 只恢复目标和轮数,不会自动续跑。你可以点 GoalBar 的恢复按钮、执行 `/goal resume`,或由 Agent 明确调用“继续”动作;不要求必须由人类恢复。
244
-
245
- </details>
246
-
247
- <details>
248
- <summary><strong>提问超时是不是等于同意或跳过?</strong></summary>
249
-
250
- 不是。超时只表示这一批回答还没到;问题仍可回答,Agent 不应把超时当成授权或默认选项。真正被答案阻塞时,Agent 应报告失败并等你处理,而不是伪造答案。具体的等待与默认选择规则见 **dsh-better-ask-user**。
251
-
252
- </details>
253
-
254
- <details>
255
- <summary><strong>达到轮数上限后怎么办?</strong></summary>
256
-
257
- 把轮数上限调高,或切换到无上限,再执行 `/goal resume`。如果目标是“固定轮数”模式,直接提高“固定轮数上限”即可;已经用掉的轮数不会被重置。
258
-
259
- </details>
260
-
261
- <details>
262
- <summary><strong>为什么安装后当前页面没有变化?</strong></summary>
263
-
264
- 安装或升级改变的是 DSH 进程加载的插件。刷新网页只会重载界面,不会替换正在运行的实现;请重启对应的 DSH profile。插件也不会自动修改你当前打开的 GUI。
265
-
266
- </details>
267
-
268
- <details>
269
- <summary><strong>怎么卸载?</strong></summary>
270
-
271
- 独立安装时执行:
77
+ ## 开发
272
78
 
273
79
  ```sh
274
- dsh plugin --profile <profile> remove dsh-better-goal
80
+ npm test # 单元 / 组件测试
81
+ npm run smoke # 如仓库提供运行时冒烟
275
82
  ```
276
83
 
277
- 如果 Apollo 仍在装配这一行,移除独立包不会移除 Apollo 插入的目标行;要彻底移除 goal 能力,需要同时移除 Apollo,或显式禁用该行,然后重启 profile。卸载不会清空已有会话记录。
278
-
279
- </details>
280
-
281
- <details>
282
- <summary><strong>原来的目标数据会丢吗?</strong></summary>
283
-
284
- 不会因为安装、升级或卸载插件而清空会话记录。旧目标会继续保存在会话里;重新安装后可以恢复,恢复执行前仍需要显式恢复。更多兼容与回退细节见[开发文档](docs/DEVELOPMENT.md)。
285
-
286
- </details>
84
+ 实现与测试说明见 [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md)。
287
85
 
288
- ## 开发与许可
86
+ ## 许可
289
87
 
290
- - [开发文档](docs/DEVELOPMENT.md):数据兼容、双入口限制、测试与真实 DSH 冒烟、卸载回退。
291
- - 许可证:[Apache-2.0](LICENSE)。移植的 DeepSeek Harness 代码保留 MIT 声明,见[第三方声明](third-party/NOTICE)和 [MIT 许可证](third-party/LICENSE-MIT-dsh)。
292
- - 项目地址:[Menghuan1918/dsh-better-goal](https://github.com/Menghuan1918/dsh-better-goal)。
88
+ [Apache License 2.0](LICENSE)。
@@ -4,11 +4,10 @@
4
4
 
5
5
  ## 状态与兼容性
6
6
 
7
- - 当前包版本:`0.2.0`。
8
- - DSH 基准:`0.2.1-rc.2`;`package.json` 的 engines 声明为 `>=0.2.1-rc.2 <0.3.0`。
9
- - Node.js:`^22.19.0 || >=24.0.0`。
7
+ - 当前源码版本:`0.4.0`(此迁移不发布 npm)。
8
+ - 仅支持 DSH `0.2.2-rc.1`;`package.json` 的 engines 与 DSH peers 均精确限定此版本,不承诺其他 RC 或旧版本。
9
+ - Node.js:`>=24.9.0`;Cordis `~4.1.0`、Schemastery `~3.19.0`。
10
10
  - 纯 ESM,无构建步骤,没有需要生成的资源文件。
11
- - 版本范围会纳入预发布版;`0.2.1-rc.2` 之后的 RC 可能被接受,但版本范围不等于逐版验证保证。
12
11
 
13
12
  本仓库的测试和冒烟不包含“当前正在使用的浏览器 GUI 已完成验收”,也没有对 PTC 工具呈现模式或其他自定义提问工具做专项验证。不要把这些未覆盖场景写成已验证。
14
13
 
@@ -26,7 +25,7 @@
26
25
  1. 禁用原生 `goal`、`goal-round-driver`、`command-goal`、`tool-goal`、`ui-goal` 行。
27
26
  2. 插入顶层行 `id: dsh-better-goal`、`name: dsh-better-goal`。
28
27
 
29
- 插件不会修改 DSH 安装目录,也不依赖实验性的 plugin records。`implementation: 'enhanced'`(默认)时,[src/index.js](../src/index.js) 对旧 Agent 上仍可见的 `get_goal` / `create_goal` / `update_goal` 在 Agent 的 tools 作用域内做 deny 过滤,并在每个 pre-step 重新检查,避免预设换代后残留旧工具。`implementation: 'native'` 时不做该过滤,由本行通过宿主 Loader 加载原生服务、round driver、命令和工具,旧三工具就是当前实现本身。
28
+ 插件不会修改 DSH 安装目录,也不依赖实验性的 plugin records。`implementation: 'enhanced'`(默认)时,[src/index.js](../src/index.js) 对旧 Agent 上仍可见的 `get_goal` / `create_goal` / `update_goal` 在 Agent 的 tools 作用域内做 deny 过滤,并在本行 volatile 配置提交时重新检查。热 schema 刷新发生在下一次 tools step admission 之前,不再修改 `system-prompt/assemble` 的 presentation;next 的工具声明由 provider 持有。`implementation: 'native'` 时不做该过滤,由本行通过宿主 Loader 加载原生服务、round driver、命令和工具,旧三工具就是当前实现本身。
30
29
 
31
30
  ## 后端选择与运行状态
32
31
 
@@ -74,6 +73,7 @@
74
73
 
75
74
  ## 数据、兼容与恢复
76
75
 
76
+ - goal service 在 `Service.init` 等待 projection 注册并保留 handle;历史 projection 也等待注册完成。运行时通过 handle 读取,不使用弃用的按 key 查询。`turn/end` 的 disposed 中止仅 disarm,不写入用户暂停。
77
77
  - 持久格式沿用 DSH 原生 `goal/change` v1 事件;projection 保持 `stateVersion: 6`。没有独立 sidecar 状态,也不使用日志截断式 rewind。
78
78
  - 写入通过 revision-based CAS 校验;旧 revision 的编辑、暂停、恢复等操作会被拒绝,不会覆盖新状态。
79
79
  - 会话重开、宿主重启或 fork 时,从会话日志前缀恢复 goal 和 `roundsStarted`;activation 是 process-local 状态,恢复后为 `disarmed`,必须显式 `resume` 才会重新排队自动轮次。`disarm` 不写持久 revision。
@@ -87,13 +87,13 @@
87
87
 
88
88
  ## 原生 Goal 对比的核验边界
89
89
 
90
- 用户 README 的对比以本项目验证基线 DSH `0.2.1-rc.2` 的默认装配为准,核对了该版本的 `dsh-tool-goal`、`dsh-goal-round-driver`、`dsh-goal`、`dsh-tool-ask-user` 发布代码及 standard 预设。公开规则见[原生 Goal 工具说明](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/goal/tool-goal/README.md);该链接跟随上游演进,不代替已验证版本。
90
+ 用户 README 的对比以本项目验证基线 DSH `0.2.2-rc.1` 的默认装配为准,核对了该版本的 `dsh-tool-goal`、`dsh-goal-round-driver`、`dsh-goal`、`dsh-tool-ask-user` 发布代码及 standard 预设。公开规则见[原生 Goal 工具说明](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/goal/tool-goal/README.md);该链接跟随上游演进,不代替已验证版本。
91
91
 
92
92
  - 原生并非没有停止路径:模型可 `complete` 或在满足门槛后 `blocked`,用户还可暂停、清除;不能把它描述成绝对无法终止或必然无限运行。
93
93
  - 原生自主目标轮次不具备 direct-human authority,不能主动 `pause`;`blocked` 默认在 `roundsStarted < 3` 时被拒绝。文档要求同一阻塞持续多个轮次,代码门槛实际比较累计目标轮数,不证明每轮都是同一阻塞。README 因此只说“默认至少经过 3 个目标轮次”。
94
94
  - 原生模型的 `resume` 需要直接人类请求,且拒绝恢复 durable paused 状态;该状态由用户 Web 或 `/goal resume` 路径恢复。本插件不保留这些人类授权门槛,但保留目标状态与预算校验。
95
95
  - 原生默认轮数上限是 256,达到有效上限后 driver 会记录 `round-limit` 并停续;可配置的轮数上限不是固定值,也不是提问等待的时间上限。
96
- - 原生 `ask_user_question` 默认是阻塞式 legacy 模式;timed 是同一工具已有的可选模式,默认 120 秒且支持 `-1`。本插件并不独占 pending / late-answer 能力,而是在 active + armed 目标中统一应用用户配置的等待策略。
96
+ - 原生 `ask_user_question` 默认是阻塞式 legacy 模式;timed 是同一工具已有的可选模式,默认 120 秒且支持 `-1`。本插件不持有提问等待策略;pending / late-answer 由原生 timed 工具或独立 dsh-better-ask-user 负责,旧 goal 的 `questionTimeoutSeconds` 不影响它们。
97
97
  - 目标持久化、自动续跑、用户暂停、重开或 fork 后 disarm 都是原生已有能力,不应写成本插件相对原生的独有优势。
98
98
 
99
99
  ## 单工具与动作契约
@@ -176,10 +176,10 @@ volatile schema 让全部字段可写并可热投递到活 fiber,但 `implemen
176
176
 
177
177
  这是 README 只保留一句提示、本文档保留完整原理的部分。
178
178
 
179
- Apollo 在 `package.json` 中把 `dsh-better-goal` 声明为精确 npm 依赖 `0.2.0`(不是 Git commit、分支、范围或 `file:` 说明符);它的顶层 patch 自己插入了 `id/name` 都是 `dsh-better-goal` 的行。独立包也插入同一行。
179
+ Apollo 在 `package.json` 中把 `dsh-better-goal` 声明为精确 npm 依赖 `0.4.0`(不是 Git commit、分支、范围或 `file:` 说明符);它的顶层 patch 自己插入了 `id/name` 都是 `dsh-better-goal` 的行。独立包也插入同一行。
180
180
 
181
181
  - 两个 bundle 同时被显式选中时,DSH Loader 按行 id 去重,通常只激活一个实例,浏览器模块也只有一个 active source。
182
- - 但 DSH `0.2.1-rc.2` 的插件管理器会把组合行开关标成只读(`unaddressable`),配置编辑器也可能拒绝保存目标设置。
182
+ - 但 DSH `0.2.2-rc.1` 的插件管理器会把组合行开关标成只读(`unaddressable`),配置编辑器也可能拒绝保存目标设置。
183
183
  - 这不是两个服务同时运行,也不是通过修改 DSH 核心可以安全绕过的行为;推荐只保留 Apollo 入口,不重复 add。
184
184
  - [src/client.js](../src/client.js) 注册三个 row-config key:`dsh-better-goal#dsh-better-goal`(独立安装)、`@menghuan1918/dsh-apollo#dsh-better-goal`(scoped Apollo)和 `dsh-apollo#dsh-better-goal`(历史 Apollo)。三者指向同一个设置页、同一份配置和同一个行 id。
185
185
  - Apollo 自身的 `apollo-skills` 行用 `@menghuan1918/dsh-apollo#apollo-skills`,并保留 `dsh-apollo#apollo-skills` 旧键;两键同样指向同一行配置。行 id、预设 ID 和 CLI 路由不随包名改名。
@@ -242,9 +242,9 @@ GOAL_SMOKE_MODE=both DSH_PACKAGE_ROOT=/path/to/node_modules/@deepseek-ai/dsh npm
242
242
  GOAL_SMOKE_MODE=both GOAL_SMOKE_IMPLEMENTATION=native DSH_PACKAGE_ROOT=/path/to/node_modules/@deepseek-ai/dsh npm run smoke
243
243
  ```
244
244
 
245
- 冒烟使用临时 home/profile、真实 DSH AgentLoop 和脚本化模型适配器,不调用付费模型,也不启动替代 GUI。通过条件是进程退出码为 0、输出 `BETTER_GOAL_RUNTIME_SMOKE_PASSED`(enhanced)或 `BETTER_GOAL_NATIVE_SMOKE_PASSED`(native),以及临时目录 `results.json` 的 `passed` 为 `true`。`apollo` / `both` 模式默认从 `../dsh-apollo` 读取 Apollo 仓库,可用 `APOLLO_PACKAGE_ROOT` 指定其他位置。
245
+ 冒烟使用临时 home/profile、真实 DSH AgentLoop 和脚本化模型适配器,不调用付费模型,也不启动替代 GUI。通过条件是进程退出码为 0、输出 `BETTER_GOAL_RUNTIME_SMOKE_PASSED`(enhanced)或 `BETTER_GOAL_NATIVE_SMOKE_PASSED`(native),以及临时目录 `results.json` 的 `passed` 为 `true`。`apollo` / `both` 模式默认从 `../dsh-apollo` 读取 Apollo 仓库,可用 `APOLLO_PLUGIN_SOURCE_ROOT` 指定包含各 sibling 的目录(其下 `dsh-apollo/` 为 Apollo),或用 `APOLLO_PACKAGE_ROOT` 直接指定 Apollo 包目录。冒烟把 shipped files 复制进临时 profile,不携带各源码包自己的 `node_modules`;显式以临时 manifest 为 installAnchor,避免解析到宿主祖先的旧插件。
246
246
 
247
- 实际检查分实现分支。`enhanced`(默认):真实 profile 启动、单 `goal` 工具、五动作枚举、无 `goal_id` / `revision` 参数、旧三工具隐藏、`/goal` 命令、创建/替换/暂停/恢复/完成/清除、真实工具 dispatch、native goal RPC、自动轮次、冷恢复 disarmed、fork disarmed、Agent 无需新人类消息即可控制完整生命周期。`native`:上游 `dsh-goal` 服务归本行所有、`get_goal`/`create_goal`/`update_goal` 为当前工具、原生默认轮数上限生效、`/goal` 命令可暂停/编辑、真实工具 dispatch、`implementation` 保存写入但运行中不换装配。`GOAL_SMOKE_HOT=1` 还检查热设置持久化和迟到回答。冒烟路径覆盖 `standard`(standalone)以及 `eng` / `eng-ptc`(apollo / both);`apollo` / `both` 模式会检查 `eng-ptc` 同样只有一个 `goal` 工具(或 native 模式下为原生三工具)、实现不重挂。`both` 模式下目标行被宿主标只读,冒烟改为断言设置写入被正确拒绝。
247
+ 实际检查分实现分支。`enhanced`(默认):真实 profile 启动、单 `goal` 工具、五动作枚举、无 `goal_id` / `revision` 参数、旧三工具隐藏、`/goal` 命令、创建/替换/暂停/恢复/完成/清除、真实工具 dispatch、native goal RPC、自动轮次、冷恢复 disarmed、fork disarmed、Agent 无需新人类消息即可控制完整生命周期。`native`:上游 `dsh-goal` 服务归本行所有、`get_goal`/`create_goal`/`update_goal` 为当前工具、原生默认轮数上限生效、`/goal` 命令可暂停/编辑、真实工具 dispatch、`implementation` 保存写入但运行中不换装配。`GOAL_SMOKE_HOT=1` 还检查热设置持久化、首个新 request 的 goal schema、提问 owner 不被 goal 设置替换,以及独立提问 owner 的 pending / 迟到回答。standalone 显式启用原生 timed 工具,Apollo 则配置独立 ask-user;不会断言旧 goal 超时字段拥有提问等待。冒烟路径覆盖 `standard`(standalone)以及 `eng` / `eng-ptc`(apollo / both);`apollo` / `both` 模式会检查 `eng-ptc` 同样只有一个 `goal` 工具(或 native 模式下为原生三工具)、实现不重挂。`both` 模式下目标行被宿主标只读,冒烟改为断言设置写入被正确拒绝。
248
248
 
249
249
  未覆盖:PTC 模式下 `run_code` 内调用 goal 的真实回合、其他自定义提问工具、当前浏览器 GUI 的人工验收。单元测试或冒烟通过都不代表这些场景已验证。
250
250
 
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1600" height="240" viewBox="0 0 1600 240" role="img" aria-labelledby="title desc"><title id="title">Part of Better DSH — Better Goal</title><desc id="desc">Better Goal 属于 Better DSH 插件集合,也可以独立安装。</desc><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M40 0H0V40" fill="none" stroke="#122033" stroke-width="1" opacity="0.7"/></pattern><radialGradient id="glow" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="#4EB0E8" stop-opacity="0.18"/><stop offset="100%" stop-color="#4EB0E8" stop-opacity="0"/></radialGradient></defs><rect x="0" y="0" width="1600" height="240" fill="#0A101B"/><rect x="0" y="0" width="1600" height="240" fill="url(#grid)" opacity="0.55"/><rect x="0.5" y="0.5" width="1599" height="239" fill="none" stroke="#22314A" stroke-width="1" opacity="0.9"/><ellipse cx="420" cy="120" rx="520" ry="220" fill="url(#glow)"/><rect x="80" y="40" width="286" height="32" rx="16" fill="#101A2A" stroke="#22314A" stroke-width="1" opacity="1"/><circle cx="100" cy="56" r="4.5" fill="#4EB0E8" opacity="1"/><text x="114" y="56" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="600" fill="#8FD3F5" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0.5">PART OF dsh-better-dsh</text><text x="80" y="116" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="44" font-weight="700" fill="#F1F5F9" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">Better Goal</text><text x="80" y="154" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="17" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh-better-goal</text><text x="80" y="192" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="18" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">长期目标 · 暂停 · 轮数</text><rect x="820" y="56" width="700" height="128" rx="16" fill="#101A2A" stroke="#22314A" stroke-width="1" opacity="1"/><text x="844" y="80" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" font-weight="600" fill="#6B7C93" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="1">BETTER DSH ECOSYSTEM</text><rect x="844" y="112" width="138" height="40" rx="9" fill="#0D1624" stroke="#22314A" stroke-width="1" opacity="1"/><text x="913" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#CBD5E1" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Better DSH</text><rect x="990" y="112" width="92" height="40" rx="9" fill="#5BD39A" stroke="#5BD39A" stroke-width="1" opacity="1"/><text x="1036" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="600" fill="#FFFFFF" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Goal</text><circle cx="1036" cy="100" r="3" fill="#5BD39A" opacity="1"/><rect x="1090" y="112" width="124" height="40" rx="9" fill="#0D1624" stroke="#22314A" stroke-width="1" opacity="1"/><text x="1152" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#CBD5E1" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Subagent</text><rect x="1222" y="112" width="116" height="40" rx="9" fill="#0D1624" stroke="#22314A" stroke-width="1" opacity="1"/><text x="1280" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#CBD5E1" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Compact</text><rect x="1346" y="112" width="80" height="40" rx="9" fill="#0D1624" stroke="#22314A" stroke-width="1" opacity="1"/><text x="1386" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#CBD5E1" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Ask</text><rect x="1434" y="112" width="70" height="40" rx="9" fill="#0D1624" stroke="#22314A" stroke-width="1" opacity="1"/><text x="1469" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#CBD5E1" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">PTC</text><text x="844" y="208" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">同一份 profile · 同一稳定行 · 可独立安装</text></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1600" height="240" viewBox="0 0 1600 240" role="img" aria-labelledby="title desc"><title id="title">Part of Better DSH — Better Goal</title><desc id="desc">Better Goal 属于 Better DSH 插件集合,也可以独立安装。</desc><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M40 0H0V40" fill="none" stroke="#E6EDF5" stroke-width="1" opacity="0.7"/></pattern><radialGradient id="glow" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="#2F80B7" stop-opacity="0.18"/><stop offset="100%" stop-color="#2F80B7" stop-opacity="0"/></radialGradient></defs><rect x="0" y="0" width="1600" height="240" fill="#F6F8FB"/><rect x="0" y="0" width="1600" height="240" fill="url(#grid)" opacity="0.55"/><rect x="0.5" y="0.5" width="1599" height="239" fill="none" stroke="#DCE5F0" stroke-width="1" opacity="0.9"/><ellipse cx="420" cy="120" rx="520" ry="220" fill="url(#glow)"/><rect x="80" y="40" width="286" height="32" rx="16" fill="#FFFFFF" stroke="#DCE5F0" stroke-width="1" opacity="1"/><circle cx="100" cy="56" r="4.5" fill="#2F80B7" opacity="1"/><text x="114" y="56" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="600" fill="#14587F" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0.5">PART OF dsh-better-dsh</text><text x="80" y="116" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="44" font-weight="700" fill="#0B1524" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">Better Goal</text><text x="80" y="154" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="17" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh-better-goal</text><text x="80" y="192" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="18" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">长期目标 · 暂停 · 轮数</text><rect x="820" y="56" width="700" height="128" rx="16" fill="#FFFFFF" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="844" y="80" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" font-weight="600" fill="#8A99AC" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="1">BETTER DSH ECOSYSTEM</text><rect x="844" y="112" width="138" height="40" rx="9" fill="#F1F5F9" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="913" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#334155" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Better DSH</text><rect x="990" y="112" width="92" height="40" rx="9" fill="#2E9E6B" stroke="#2E9E6B" stroke-width="1" opacity="1"/><text x="1036" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="600" fill="#FFFFFF" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Goal</text><circle cx="1036" cy="100" r="3" fill="#2E9E6B" opacity="1"/><rect x="1090" y="112" width="124" height="40" rx="9" fill="#F1F5F9" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="1152" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#334155" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Subagent</text><rect x="1222" y="112" width="116" height="40" rx="9" fill="#F1F5F9" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="1280" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#334155" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Compact</text><rect x="1346" y="112" width="80" height="40" rx="9" fill="#F1F5F9" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="1386" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#334155" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">Ask</text><rect x="1434" y="112" width="70" height="40" rx="9" fill="#F1F5F9" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="1469" y="132" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="500" fill="#334155" text-anchor="middle" dominant-baseline="middle" opacity="1" letter-spacing="0">PTC</text><text x="844" y="208" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">同一份 profile · 同一稳定行 · 可独立安装</text></svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1600" height="600" viewBox="0 0 1600 600" role="img" aria-labelledby="title desc"><title id="title">Better Goal 与 Better DSH 的装配关系</title><desc id="desc">Better Goal 由 Better DSH 装配,或独立安装;使用同一稳定行。</desc><defs>
2
+ <pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M40 0H0V40" fill="none" stroke="#122033" stroke-width="1" opacity="0.7"/></pattern>
3
+ <radialGradient id="glow" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="#4EB0E8" stop-opacity="0.18"/><stop offset="100%" stop-color="#4EB0E8" stop-opacity="0"/></radialGradient>
4
+ <marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#22314A"/></marker>
5
+ <marker id="arrowA" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#4EB0E8"/></marker>
6
+ </defs><rect x="0" y="0" width="1600" height="600" fill="#0A101B"/><rect x="0" y="0" width="1600" height="600" fill="url(#grid)" opacity="0.55"/><rect x="0.5" y="0.5" width="1599" height="599" fill="none" stroke="#22314A" stroke-width="1" opacity="0.9"/><text x="80" y="72" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="38" font-weight="700" fill="#F1F5F9" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">与 Better DSH 的装配关系</text><text x="80" y="110" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="18" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">同一稳定行;独立安装或由 Better DSH 装配</text><rect x="80" y="150" width="400" height="300" rx="16" fill="#0F2A3D" stroke="#4EB0E8" stroke-width="1" opacity="1"/><text x="108" y="190" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="24" font-weight="700" fill="#F1F5F9" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">Better DSH bundle</text><text x="108" y="220" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="16" font-weight="400" fill="#8FD3F5" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh-better-dsh</text><circle cx="116" cy="264" r="3.5" fill="#4EB0E8" opacity="1"/><text x="132" y="264" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">bundle patch 插入同一行</text><circle cx="116" cy="298" r="3.5" fill="#4EB0E8" opacity="1"/><text x="132" y="298" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">精确依赖 / 独立安装</text><circle cx="116" cy="332" r="3.5" fill="#4EB0E8" opacity="1"/><text x="132" y="332" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">旧 profile 兼容键保留</text><rect x="108" y="388" width="344" height="34" rx="9" fill="#060B12" stroke="#22314A" stroke-width="1" opacity="1"/><text x="124" y="405" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="12" font-weight="400" fill="#7CC8F2" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh plugin add dsh-better-goal</text><rect x="520" y="150" width="560" height="300" rx="16" fill="#101A2A" stroke="#22314A" stroke-width="1" opacity="1"/><rect x="520" y="150" width="560" height="6" rx="3" fill="#5BD39A"/><text x="548" y="190" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="26" font-weight="700" fill="#F1F5F9" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">Better Goal</text><text x="548" y="220" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="15" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh-better-goal</text><rect x="548" y="240" width="190" height="28" rx="14" fill="#0D1624" stroke="#22314A" stroke-width="1" opacity="1"/><text x="566" y="254" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="12" font-weight="500" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh-better-goal</text><text x="548" y="300" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="600" fill="#6B7C93" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="1">这个插件拥有</text><circle cx="558" cy="330" r="3.5" fill="#5BD39A" opacity="1"/><text x="574" y="330" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">goal 工具与 goal 行</text><circle cx="558" cy="358" r="3.5" fill="#5BD39A" opacity="1"/><text x="574" y="358" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">持久目标 / 自动续跑</text><circle cx="558" cy="386" r="3.5" fill="#5BD39A" opacity="1"/><text x="574" y="386" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">暂停 / 恢复 / 轮数策略</text><circle cx="558" cy="414" r="3.5" fill="#5BD39A" opacity="1"/><text x="574" y="414" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">原生参数兼容</text><rect x="1120" y="150" width="400" height="300" rx="16" fill="#0D1624" stroke="#22314A" stroke-width="1" opacity="1"/><text x="1148" y="190" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="24" font-weight="700" fill="#F1F5F9" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">DSH host</text><text x="1148" y="220" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="15" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">profile / Loader / settings</text><circle cx="1156" cy="264" r="3.5" fill="#4EB0E8" opacity="1"/><text x="1172" y="264" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">加载 bundle</text><circle cx="1156" cy="298" r="3.5" fill="#4EB0E8" opacity="1"/><text x="1172" y="298" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">注册行 / 工具 / client</text><circle cx="1156" cy="332" r="3.5" fill="#4EB0E8" opacity="1"/><text x="1172" y="332" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#CBD5E1" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">设置写回 profile</text><text x="1148" y="396" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">设置:轮数 / 实现选择</text><line x1="480" y1="300" x2="518" y2="300" stroke="#4EB0E8" stroke-width="1.5" stroke-dasharray="5 7" marker-end="url(#arrowA)" opacity="1"/><text x="486" y="282" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">同一行</text><line x1="1080" y1="300" x2="1118" y2="300" stroke="#4EB0E8" stroke-width="1.5" marker-end="url(#arrowA)" opacity="1"/><text x="1086" y="282" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">注册</text><rect x="80" y="500" width="1440" height="52" rx="12" fill="#0D1624" stroke="#22314A" stroke-width="1" opacity="1"/><text x="104" y="526" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#9AA9BD" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">独立安装或随 Better DSH 安装都使用同一行;所有行 id 与设置命名空间保持稳定。</text></svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1600" height="600" viewBox="0 0 1600 600" role="img" aria-labelledby="title desc"><title id="title">Better Goal 与 Better DSH 的装配关系</title><desc id="desc">Better Goal 由 Better DSH 装配,或独立安装;使用同一稳定行。</desc><defs>
2
+ <pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M40 0H0V40" fill="none" stroke="#E6EDF5" stroke-width="1" opacity="0.7"/></pattern>
3
+ <radialGradient id="glow" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="#2F80B7" stop-opacity="0.18"/><stop offset="100%" stop-color="#2F80B7" stop-opacity="0"/></radialGradient>
4
+ <marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#DCE5F0"/></marker>
5
+ <marker id="arrowA" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#2F80B7"/></marker>
6
+ </defs><rect x="0" y="0" width="1600" height="600" fill="#F6F8FB"/><rect x="0" y="0" width="1600" height="600" fill="url(#grid)" opacity="0.55"/><rect x="0.5" y="0.5" width="1599" height="599" fill="none" stroke="#DCE5F0" stroke-width="1" opacity="0.9"/><text x="80" y="72" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="38" font-weight="700" fill="#0B1524" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">与 Better DSH 的装配关系</text><text x="80" y="110" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="18" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">同一稳定行;独立安装或由 Better DSH 装配</text><rect x="80" y="150" width="400" height="300" rx="16" fill="#E8F2FA" stroke="#2F80B7" stroke-width="1" opacity="1"/><text x="108" y="190" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="24" font-weight="700" fill="#0B1524" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">Better DSH bundle</text><text x="108" y="220" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="16" font-weight="400" fill="#14587F" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh-better-dsh</text><circle cx="116" cy="264" r="3.5" fill="#2F80B7" opacity="1"/><text x="132" y="264" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">bundle patch 插入同一行</text><circle cx="116" cy="298" r="3.5" fill="#2F80B7" opacity="1"/><text x="132" y="298" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">精确依赖 / 独立安装</text><circle cx="116" cy="332" r="3.5" fill="#2F80B7" opacity="1"/><text x="132" y="332" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">旧 profile 兼容键保留</text><rect x="108" y="388" width="344" height="34" rx="9" fill="#0F172A" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="124" y="405" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="12" font-weight="400" fill="#7CC8F2" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh plugin add dsh-better-goal</text><rect x="520" y="150" width="560" height="300" rx="16" fill="#FFFFFF" stroke="#DCE5F0" stroke-width="1" opacity="1"/><rect x="520" y="150" width="560" height="6" rx="3" fill="#2E9E6B"/><text x="548" y="190" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="26" font-weight="700" fill="#0B1524" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">Better Goal</text><text x="548" y="220" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="15" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh-better-goal</text><rect x="548" y="240" width="190" height="28" rx="14" fill="#F1F5F9" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="566" y="254" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="12" font-weight="500" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">dsh-better-goal</text><text x="548" y="300" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" font-weight="600" fill="#8A99AC" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="1">这个插件拥有</text><circle cx="558" cy="330" r="3.5" fill="#2E9E6B" opacity="1"/><text x="574" y="330" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">goal 工具与 goal 行</text><circle cx="558" cy="358" r="3.5" fill="#2E9E6B" opacity="1"/><text x="574" y="358" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">持久目标 / 自动续跑</text><circle cx="558" cy="386" r="3.5" fill="#2E9E6B" opacity="1"/><text x="574" y="386" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">暂停 / 恢复 / 轮数策略</text><circle cx="558" cy="414" r="3.5" fill="#2E9E6B" opacity="1"/><text x="574" y="414" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">原生参数兼容</text><rect x="1120" y="150" width="400" height="300" rx="16" fill="#F1F5F9" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="1148" y="190" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="24" font-weight="700" fill="#0B1524" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">DSH host</text><text x="1148" y="220" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace" font-size="15" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">profile / Loader / settings</text><circle cx="1156" cy="264" r="3.5" fill="#2F80B7" opacity="1"/><text x="1172" y="264" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">加载 bundle</text><circle cx="1156" cy="298" r="3.5" fill="#2F80B7" opacity="1"/><text x="1172" y="298" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">注册行 / 工具 / client</text><circle cx="1156" cy="332" r="3.5" fill="#2F80B7" opacity="1"/><text x="1172" y="332" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="400" fill="#334155" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">设置写回 profile</text><text x="1148" y="396" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">设置:轮数 / 实现选择</text><line x1="480" y1="300" x2="518" y2="300" stroke="#2F80B7" stroke-width="1.5" stroke-dasharray="5 7" marker-end="url(#arrowA)" opacity="1"/><text x="486" y="282" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">同一行</text><line x1="1080" y1="300" x2="1118" y2="300" stroke="#2F80B7" stroke-width="1.5" marker-end="url(#arrowA)" opacity="1"/><text x="1086" y="282" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">注册</text><rect x="80" y="500" width="1440" height="52" rx="12" fill="#F1F5F9" stroke="#DCE5F0" stroke-width="1" opacity="1"/><text x="104" y="526" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="400" fill="#5B6B80" text-anchor="start" dominant-baseline="middle" opacity="1" letter-spacing="0">独立安装或随 Better DSH 安装都使用同一行;所有行 id 与设置命名空间保持稳定。</text></svg>