dsh-better-goal 0.4.3 → 0.4.4

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
@@ -12,7 +12,7 @@
12
12
  <p align="center">
13
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>
14
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>
15
+ <a href="package.json"><img alt="DSH 0.2.2-rc.2" src="https://img.shields.io/badge/DSH-0.2.2--rc.2-4B32C3"></a>
16
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>
17
17
  </p>
18
18
 
@@ -42,7 +42,7 @@
42
42
 
43
43
  ```sh
44
44
  # 只安装这个插件
45
- dsh plugin --profile <profile> add dsh-better-goal@0.4.3
45
+ dsh plugin --profile <profile> add dsh-better-goal@0.4.4
46
46
 
47
47
  # 或安装 Better DSH(会自动带上所有独立插件)
48
48
  dsh plugin --profile <profile> add dsh-better-dsh@0.10.0
@@ -57,7 +57,7 @@ dsh plugin --profile <profile> add dsh-better-dsh@0.10.0
57
57
  | 稳定行 id | `dsh-better-goal` |
58
58
  | 入口 / 工具 | `goal` 工具 · `/goal` 命令 · GoalBar / 设置页 |
59
59
  | 设置 | 轮数策略、实现选择、原生参数 |
60
- | npm 包 | `dsh-better-goal@0.4.3` |
60
+ | npm 包 | `dsh-better-goal@0.4.4` |
61
61
  | 仓库 | https://github.com/omdsh-dev/dsh-better-goal |
62
62
 
63
63
  ## 设置
@@ -4,8 +4,8 @@
4
4
 
5
5
  ## 状态与兼容性
6
6
 
7
- - 当前源码版本:`0.4.0`(此迁移不发布 npm)。
8
- - 仅支持 DSH `0.2.2-rc.1`;`package.json` 的 engines 与 DSH peers 均精确限定此版本,不承诺其他 RC 或旧版本。
7
+ - 当前源码版本:`0.4.4`。
8
+ - 仅支持 DSH `0.2.2-rc.2`;`package.json` 的 engines 与 DSH peers 均精确限定此版本,不承诺其他 RC 或旧版本。
9
9
  - Node.js:`>=24.9.0`;Cordis `~4.1.0`、Schemastery `~3.19.0`。
10
10
  - 纯 ESM,无构建步骤,没有需要生成的资源文件。
11
11
 
@@ -87,7 +87,7 @@
87
87
 
88
88
  ## 原生 Goal 对比的核验边界
89
89
 
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);该链接跟随上游演进,不代替已验证版本。
90
+ 用户 README 的对比以本项目验证基线 DSH `0.2.2-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);该链接跟随上游演进,不代替已验证版本。
91
91
 
92
92
  - 原生并非没有停止路径:模型可 `complete` 或在满足门槛后 `blocked`,用户还可暂停、清除;不能把它描述成绝对无法终止或必然无限运行。
93
93
  - 原生自主目标轮次不具备 direct-human authority,不能主动 `pause`;`blocked` 默认在 `roundsStarted < 3` 时被拒绝。文档要求同一阻塞持续多个轮次,代码门槛实际比较累计目标轮数,不证明每轮都是同一阻塞。README 因此只说“默认至少经过 3 个目标轮次”。
@@ -179,10 +179,10 @@ volatile schema 让全部字段可写并可热投递到活 fiber,但 `implemen
179
179
 
180
180
  这是 README 只保留一句提示、本文档保留完整原理的部分。
181
181
 
182
- Apollo 在 `package.json` 中把 `dsh-better-goal` 声明为精确 npm 依赖 `0.4.0`(不是 Git commit、分支、范围或 `file:` 说明符);它的顶层 patch 自己插入了 `id/name` 都是 `dsh-better-goal` 的行。独立包也插入同一行。
182
+ Apollo 在 `package.json` 中把 `dsh-better-goal` 声明为精确 npm 依赖 `0.4.4`(不是 Git commit、分支、范围或 `file:` 说明符);它的顶层 patch 自己插入了 `id/name` 都是 `dsh-better-goal` 的行。独立包也插入同一行。
183
183
 
184
184
  - 两个 bundle 同时被显式选中时,DSH Loader 按行 id 去重,通常只激活一个实例,浏览器模块也只有一个 active source。
185
- - 但 DSH `0.2.2-rc.1` 的插件管理器会把组合行开关标成只读(`unaddressable`),配置编辑器也可能拒绝保存目标设置。
185
+ - 但 DSH `0.2.2-rc.2` 的插件管理器会把组合行开关标成只读(`unaddressable`),配置编辑器也可能拒绝保存目标设置。
186
186
  - 这不是两个服务同时运行,也不是通过修改 DSH 核心可以安全绕过的行为;推荐只保留 Apollo 入口,不重复 add。
187
187
  - [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。
188
188
  - Apollo 自身的 `apollo-skills` 行用 `@menghuan1918/dsh-apollo#apollo-skills`,并保留 `dsh-apollo#apollo-skills` 旧键;两键同样指向同一行配置。行 id、预设 ID 和 CLI 路由不随包名改名。
@@ -193,7 +193,7 @@ Apollo 在 `package.json` 中把 `dsh-better-goal` 声明为精确 npm 依赖 `0
193
193
  ### npm 安装
194
194
 
195
195
  ```sh
196
- dsh plugin --profile <profile> add dsh-better-goal@0.2.0
196
+ dsh plugin --profile <profile> add dsh-better-goal@0.4.4
197
197
  ```
198
198
 
199
199
  npm 安装后,目标设置出现在 **Plugins → dsh-better-goal → dsh-better-goal 行**。GitHub main 仍保留为源码安装选项。
@@ -210,7 +210,7 @@ dsh plugin --profile <profile> add link:/absolute/path/to/dsh-better-goal
210
210
 
211
211
  链接后要重启 profile;运行时 `roundLimitMode` / `roundLimit` 仍然支持保存后热更新,`implementation` 与 `native*` 字段保存后需再次重载生效。
212
212
 
213
- Apollo 本地开发时,先在其根目录执行 `npm install`。`dsh plugin add link:` 只链接 Apollo 本身,不代装依赖;Apollo 的依赖是精确 npm 版本 `dsh-better-goal@0.2.0`,本地联调可临时改成 `file:../dsh-better-goal`,但不要提交该改动。GitHub 源码安装同样从 registry 解析这个精确版本。
213
+ Apollo 本地开发时,先在其根目录执行 `npm install`。`dsh plugin add link:` 只链接 Apollo 本身,不代装依赖;Apollo 的依赖是精确 npm 版本 `dsh-better-goal@0.4.4`,本地联调可临时改成 `file:../dsh-better-goal`,但不要提交该改动。GitHub 源码安装同样从 registry 解析这个精确版本。
214
214
 
215
215
  ## 测试与宿主冒烟
216
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-better-goal",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
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": {
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "engines": {
22
22
  "node": ">=24.9.0",
23
- "dsh": "0.2.2-rc.1"
23
+ "dsh": "0.2.2-rc.2"
24
24
  },
25
25
  "scripts": {
26
26
  "test": "node --test",
@@ -40,26 +40,26 @@
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@deepseek-ai/cordis": "~4.1.0",
43
- "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
44
- "@deepseek-ai/dsh-brand": "0.2.2-rc.1",
45
- "@deepseek-ai/dsh-command-goal": "0.2.2-rc.1",
46
- "@deepseek-ai/dsh-goal": "0.2.2-rc.1",
47
- "@deepseek-ai/dsh-goal-round-driver": "0.2.2-rc.1",
48
- "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
49
- "@deepseek-ai/dsh-scope": "0.2.2-rc.1",
50
- "@deepseek-ai/dsh-session": "0.2.2-rc.1",
51
- "@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
52
- "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
53
- "@deepseek-ai/dsh-tool-goal": "0.2.2-rc.1",
54
- "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.1",
55
- "@deepseek-ai/dsh-user-questions": "0.2.2-rc.1",
43
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.2",
44
+ "@deepseek-ai/dsh-brand": "0.2.2-rc.2",
45
+ "@deepseek-ai/dsh-command-goal": "0.2.2-rc.2",
46
+ "@deepseek-ai/dsh-goal": "0.2.2-rc.2",
47
+ "@deepseek-ai/dsh-goal-round-driver": "0.2.2-rc.2",
48
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.2",
49
+ "@deepseek-ai/dsh-scope": "0.2.2-rc.2",
50
+ "@deepseek-ai/dsh-session": "0.2.2-rc.2",
51
+ "@deepseek-ai/dsh-session-projection": "0.2.2-rc.2",
52
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.2",
53
+ "@deepseek-ai/dsh-tool-goal": "0.2.2-rc.2",
54
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.2",
55
+ "@deepseek-ai/dsh-user-questions": "0.2.2-rc.2",
56
56
  "react": "^18.2.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@deepseek-ai/dsh-command-goal": "0.2.2-rc.1",
60
- "@deepseek-ai/dsh-goal": "0.2.2-rc.1",
61
- "@deepseek-ai/dsh-goal-round-driver": "0.2.2-rc.1",
62
- "@deepseek-ai/dsh-tool-goal": "0.2.2-rc.1",
59
+ "@deepseek-ai/dsh-command-goal": "0.2.2-rc.2",
60
+ "@deepseek-ai/dsh-goal": "0.2.2-rc.2",
61
+ "@deepseek-ai/dsh-goal-round-driver": "0.2.2-rc.2",
62
+ "@deepseek-ai/dsh-tool-goal": "0.2.2-rc.2",
63
63
  "js-yaml": "^4.2.0",
64
64
  "react": "18.3.1",
65
65
  "react-test-renderer": "18.3.1"
package/src/driver.js CHANGED
@@ -219,7 +219,7 @@ function apply(ctx, readConfig = () => DEFAULTS) {
219
219
  if (!drivable(goal)) return;
220
220
  const subagents = ctx.get("subagents");
221
221
  if (subagents !== void 0) {
222
- await Promise.race([subagents.waitForChildren(agent), unloading.promise]);
222
+ await Promise.race([subagents.waitForTreeWork(agent), unloading.promise]);
223
223
  if (!readyAfterCheckpoint(state)) return;
224
224
  }
225
225
  // Background jobs left by the previous round get a bounded window of their
package/src/service.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Local, native-compatible same-session goal service.
3
3
  *
4
- * This module is an in-package port of the DSH 0.2.2-rc.1 goal domain. It
4
+ * This module is an in-package port of the DSH 0.2.2-rc.2 goal domain. It
5
5
  * deliberately imports only the public DSH peer packages: the durable
6
6
  * `goal/change` v1 schema, replay fold, projection unit, live view, CAS
7
7
  * mutations, and activation state stay byte-compatible with the host goal