@deepseek-ai/dsh-goal-round-driver 0.1.5-rc.2 → 0.1.6-alpha.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.i18n.yaml +1 -1
- package/README.zh.md +2 -2
- package/lib/index.js +1 -4
- package/package.json +17 -17
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/goal/goal-round-driver/README.md
|
|
5
5
|
README.md: c80def6393c0a119c20d59acf4b527856811f47c
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 92f793ac8eba98322bf3781b1ccc30584a0ef66e
|
package/README.zh.md
CHANGED
|
@@ -9,7 +9,7 @@ kind: "package-reference"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
`dsh-goal-round-driver` 会在同一会话内自动继续 active goal,但前提是 agent
|
|
12
|
+
`dsh-goal-round-driver` 会在同一会话内自动继续 active goal,但前提是 agent(智能体)已空闲、续行已启用且配置的 Round 额度仍有剩余。每个 Round 都让模型获得另一次推进目标的机会;只有进入模型历史的 goal Round 才消耗额度,额度耗尽时会记录 blocker。驱动器本身没有配置:goal 定义 Round 上限,`dsh-tool-goal` 定义重复受阻后何时停止续行。若任务需要无人值守的多轮推进,应与 `dsh-goal` 和 `dsh-tool-goal` 一起挂载;若每一步都需要人工 steering(中途引导),则不要挂载。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -71,7 +71,7 @@ Round 只在整个 agent 进入 idle 时启动;完成、暂停和阻塞会阻
|
|
|
71
71
|
- **先预留,后准入。** idle 时驱动器为当前 `{ goalId, revision }` 预留 `roundsStarted + 1`,排入一条携带 goal 消息来源的 `<goal_round>` 提示词;只有进入步骤的 `user/message` 才会增加 `roundsStarted`。因陈旧而被拒绝的预留不会消耗 Round 编号。
|
|
72
72
|
- **竞态防护。** `agent/pre-step` 监听器会在下游监听器前后验证完整的已领取记录与当前 goal,因此陈旧、已取消或竞争中的提示词会在其步骤进入前被拒绝。在预留前到达的人类工作会让自动工作让行,直到 agent 重新进入 idle。
|
|
73
73
|
- **持久性检查点。** `goal/changed` 会产生持久性义务:排队工作前,驱动器会等待 `ctx.sessions.flush()`,并在等待后重新检查 goal revision 与竞争输入。通过 `agent/error` 到达的 flush 失败会停用续行,避免另一 Round 启动。
|
|
74
|
-
-
|
|
74
|
+
- **fail-closed teardown。** Teardown 会关闭准入、停用所有活跃 goal 的续行、以 `parent` 原因取消进行中的工作,并在事件防护仍生效的情况下等待驱动器和 agent 完全停稳。
|
|
75
75
|
|
|
76
76
|
### 源码地图
|
|
77
77
|
|
package/lib/index.js
CHANGED
|
@@ -201,13 +201,10 @@ function apply(ctx) {
|
|
|
201
201
|
ctx.on("agent/error", ({ agent }) => {
|
|
202
202
|
disarm(stateFor(agent));
|
|
203
203
|
});
|
|
204
|
-
ctx.on("agent/created", ({ agent }) => {
|
|
205
|
-
stateFor(agent);
|
|
206
|
-
});
|
|
207
204
|
ctx.on("agent/disposed", ({ agent }) => {
|
|
208
205
|
states.delete(agent);
|
|
209
206
|
});
|
|
210
|
-
ctx.on("agent/
|
|
207
|
+
ctx.on("agent/created", ({ agent }) => {
|
|
211
208
|
const state = stateFor(agent);
|
|
212
209
|
state.attempt = void 0;
|
|
213
210
|
state.competingQueued = false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-goal-round-driver",
|
|
3
3
|
"description": "Race-fenced same-session goal-round driver",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -32,24 +32,24 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-
|
|
36
|
-
"@deepseek-ai/dsh-
|
|
37
|
-
"@deepseek-ai/dsh-
|
|
38
|
-
"@deepseek-ai/
|
|
39
|
-
"@deepseek-ai/dsh-
|
|
40
|
-
"@deepseek-ai/
|
|
35
|
+
"@deepseek-ai/dsh-goal": "^0.1.6-alpha.2",
|
|
36
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
37
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
|
|
38
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
39
|
+
"@deepseek-ai/dsh-invariants": "^0.1.6-alpha.2",
|
|
40
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
44
|
-
"@deepseek-ai/dsh-agent-loop": "^0.1.
|
|
45
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.
|
|
46
|
-
"@deepseek-ai/dsh-goal": "^0.1.
|
|
47
|
-
"@deepseek-ai/dsh-invariants": "^0.1.
|
|
48
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
49
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
50
|
-
"@deepseek-ai/dsh-system-prompt": "^0.1.
|
|
51
|
-
"@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
|
|
43
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-agent-loop": "^0.1.6-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.6-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-goal": "^0.1.6-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-invariants": "^0.1.6-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.2",
|
|
52
51
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
53
|
-
"@deepseek-ai/dsh-
|
|
52
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.6-alpha.2"
|
|
54
54
|
}
|
|
55
55
|
}
|