dsh-better-goal 0.4.0 → 0.4.2
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 +58 -262
- package/docs/assets/banner-dark.svg +1 -0
- package/docs/assets/banner-light.svg +1 -0
- package/docs/assets/ownership-dark.svg +6 -0
- package/docs/assets/ownership-light.svg +6 -0
- package/package.json +8 -4
- package/src/client.js +280 -156
package/README.md
CHANGED
|
@@ -1,292 +1,88 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
<
|
|
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
|
-
<
|
|
8
|
+
<h1 align="center">dsh-better-goal</h1>
|
|
6
9
|
|
|
7
|
-
<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/
|
|
12
|
-
<a href="package.json"><img src="https://img.shields.io/badge/DSH-0.2.2--rc.1-
|
|
13
|
-
<a href="
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
> 对比以 DSH `0.2.2-rc.1` 的默认行为为基准。原生也支持完成、用户暂停和清除,并非完全不能停止;关键差异是**自主续跑中的模型能否在需要人介入时立即暂停**。
|
|
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.2-rc.1` 和 Node.js `>=24.9.0`。`0.4.0` 仅面向这个 DSH 版本,无构建步骤;发布版本可在对应 GitHub Release 与 npm registry 核对。安装前请先升级目标 profile 的宿主。
|
|
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.9.0
|
|
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
|
-
|
|
27
|
+
## 它做什么
|
|
74
28
|
|
|
75
|
-
|
|
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
|
-
|
|
41
|
+
## 安装
|
|
80
42
|
|
|
81
43
|
```sh
|
|
82
|
-
#
|
|
83
|
-
dsh plugin --profile <profile> add dsh-better-goal@0.4.
|
|
84
|
-
|
|
85
|
-
# 或从对应 GitHub tag 源码安装(次入口)
|
|
86
|
-
dsh plugin --profile <profile> add github:Menghuan1918/dsh-better-goal#v0.4.0
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
### GoalBar
|
|
51
|
+
> 安装 / 升级 / 换包后必须重启对应 profile;只刷新网页不够。
|
|
158
52
|
|
|
159
|
-
|
|
53
|
+
## 它拥有什么
|
|
160
54
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
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
|
-
|
|
227
|
-
|
|
67
|
+
- 轮数策略保存即生效;实现选择与原生参数需要重载 profile。
|
|
68
|
+
- 独立安装和 Better DSH 组合使用同一稳定行,不产生第二份配置。
|
|
228
69
|
|
|
229
|
-
|
|
70
|
+
## 与 Better DSH 的关系
|
|
230
71
|
|
|
231
|
-
|
|
72
|
+
- **同一个稳定行**:独立安装或由 `dsh-better-dsh` 装配,行 id 和设置命名空间都不变。
|
|
73
|
+
- **旧入口兼容**:早期 Apollo 集成使用的行配置键仍然注册,指向同一份配置。
|
|
74
|
+
- **可以单独使用**:不安装 Better DSH 也能工作;只是不会得到工程预设、流程技能或后台 job 守卫。
|
|
75
|
+
- **Apache-2.0**:本仓库与 Better DSH 的其他仓库统一使用 Apache License 2.0。
|
|
232
76
|
|
|
233
|
-
|
|
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
|
-
|
|
80
|
+
npm test # 单元 / 组件测试
|
|
81
|
+
npm run smoke # 如仓库提供运行时冒烟
|
|
275
82
|
```
|
|
276
83
|
|
|
277
|
-
|
|
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
|
-
|
|
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)。
|
|
@@ -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>
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-better-goal",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Independent DSH goal plugin: one goal tool, persistent continuation, hot settings and native-compatible history.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/omdsh-dev/dsh-better-goal.git"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"registry": "https://registry.npmjs.org/",
|
|
12
|
+
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"main": "src/index.js",
|
|
@@ -79,5 +79,9 @@
|
|
|
79
79
|
"@deepseek-ai/dsh-client-ui-settings"
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
|
+
},
|
|
83
|
+
"homepage": "https://github.com/omdsh-dev/dsh-better-goal#readme",
|
|
84
|
+
"bugs": {
|
|
85
|
+
"url": "https://github.com/omdsh-dev/dsh-better-goal/issues"
|
|
82
86
|
}
|
|
83
87
|
}
|