@deepseek-ai/dsh-subagent-fork-in-process 0.1.0-rc.8 → 0.1.1-rc.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 +4 -4
- package/package.json +15 -15
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/subagent/subagent-fork-in-process/README.md
|
|
5
5
|
README.md: 74c27ff10c76aa711ed3e954e806c00a27aacfa5
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 43e7ef489b33d52b674420d08f7edf8c89fb0e42
|
package/README.zh.md
CHANGED
|
@@ -14,7 +14,7 @@ subagent 启动时,父 agent 当前的工具调用轮次仍未结束:其日
|
|
|
14
14
|
|
|
15
15
|
## 启动与能力
|
|
16
16
|
|
|
17
|
-
`start(request)` 将已完成轮次的初始内容传给 [`startInProcessRun`](../subagent-in-process-driver/README.md),并等待子 agent 发布。共享驱动器负责取消、深度、定制、结果读取和 dispose(资源释放)。
|
|
17
|
+
`start(request)` 将已完成轮次的初始内容传给 [`startInProcessRun`](../subagent-in-process-driver/README.zh.md),并等待子 agent 发布。共享驱动器负责取消、深度、定制、结果读取和 dispose(资源释放)。
|
|
18
18
|
|
|
19
19
|
fork 声明 `{ outputSchema: true, depthLimit: true, toolFilter: true, persona: true }`,与 spawn 相同。
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ fork 声明 `{ outputSchema: true, depthLimit: true, toolFilter: true, persona:
|
|
|
23
23
|
| 键 | 含义 |
|
|
24
24
|
|---|---|
|
|
25
25
|
| `providerName` | `ctx.subagents` 上的注册表名称(默认 `fork`)。 |
|
|
26
|
-
运行生命周期、模型继承与深度跟踪均为共享行为,见 [`dsh-subagent-spawn-in-process`](../subagent-spawn-in-process/README.md)。
|
|
26
|
+
运行生命周期、模型继承与深度跟踪均为共享行为,见 [`dsh-subagent-spawn-in-process`](../subagent-spawn-in-process/README.zh.md)。
|
|
27
27
|
|
|
28
28
|
## 模型体验
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ fork 会把保留的已完成历史复制到独立的子 agent 请求中;随
|
|
|
39
39
|
|
|
40
40
|
#### KV Cache 影响
|
|
41
41
|
|
|
42
|
-
在提供方和模型相同的前提下,子 agent 可以复用继承的逐字节相同前缀。persona、工具过滤、生成 SDK 或路由变化可能在继承历史之前使复用失效;后续子 agent 历史仅追加。因此随附组合把本提供方绑定为 `backgroundMode: one-shot`:可继续子 agent 还会额外携带作用域局部的 `report` 工具及其提示词 section,而这些增量位于继承历史之前,会使继承历史整体失效(见 [fork 保持 one-shot 的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md))。
|
|
42
|
+
在提供方和模型相同的前提下,子 agent 可以复用继承的逐字节相同前缀。persona、工具过滤、生成 SDK 或路由变化可能在继承历史之前使复用失效;后续子 agent 历史仅追加。因此随附组合把本提供方绑定为 `backgroundMode: one-shot`:可继续子 agent 还会额外携带作用域局部的 `report` 工具及其提示词 section,而这些增量位于继承历史之前,会使继承历史整体失效(见 [fork 保持 one-shot 的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md))。
|
|
43
43
|
|
|
44
44
|
### 父 agent 工具结果(间接)
|
|
45
45
|
|
|
@@ -58,4 +58,4 @@ fork 会把保留的已完成历史复制到独立的子 agent 请求中;随
|
|
|
58
58
|
## 已知限制与暂缓事项
|
|
59
59
|
|
|
60
60
|
- **初始内容是一次性快照**:子 agent 只能看到 fork 时父 agent 已完成的轮次,看不到父 agent 此后记录的任何内容;不会实时共享上下文。
|
|
61
|
-
- **没有任何随附组合会创建可继续的 fork 子 agent**:`prepareContinuable` 仍然实现完好,seam 也接受它,但每份随附的 `cordis.yml` 都在 fork 委派工具上设置 `backgroundMode: one-shot`,因此该提供方的可继续路径没有生产调用方。重新开放它需要子 agent 的系统提示词与工具 schema 与父 agent 逐字节一致,而这一点目前被 [`report` 返回通道](../tool-subagent-report/README.md)阻止。理由与重新开放条件见 [fork 保持 one-shot 的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md)。
|
|
61
|
+
- **没有任何随附组合会创建可继续的 fork 子 agent**:`prepareContinuable` 仍然实现完好,seam 也接受它,但每份随附的 `cordis.yml` 都在 fork 委派工具上设置 `backgroundMode: one-shot`,因此该提供方的可继续路径没有生产调用方。重新开放它需要子 agent 的系统提示词与工具 schema 与父 agent 逐字节一致,而这一点目前被 [`report` 返回通道](../tool-subagent-report/README.zh.md)阻止。理由与重新开放条件见 [fork 保持 one-shot 的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md)。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-subagent-fork-in-process",
|
|
3
3
|
"description": "In-process fork subagent backend: runs a child agent seeded with a prefix of the parent's log",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1-rc.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-
|
|
36
|
-
"@deepseek-ai/dsh-
|
|
37
|
-
"@deepseek-ai/dsh-
|
|
38
|
-
"@deepseek-ai/dsh-subagent": "^0.1.
|
|
39
|
-
"@deepseek-ai/dsh-subagent-in-process-driver": "^0.1.
|
|
35
|
+
"@deepseek-ai/dsh-agent": "^0.1.1-rc.2",
|
|
36
|
+
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
37
|
+
"@deepseek-ai/dsh-session": "^0.1.1-rc.2",
|
|
38
|
+
"@deepseek-ai/dsh-subagent": "^0.1.1-rc.2",
|
|
39
|
+
"@deepseek-ai/dsh-subagent-in-process-driver": "^0.1.1-rc.2",
|
|
40
40
|
"@deepseek-ai/cordis": "^4.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.2",
|
|
47
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
48
|
-
"@deepseek-ai/dsh-agent-loop": "^0.1.
|
|
49
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@deepseek-ai/dsh-
|
|
53
|
-
"@deepseek-ai/dsh-subagent-in-process-driver": "^0.1.
|
|
54
|
-
"@deepseek-ai/dsh-subagent": "^0.1.
|
|
47
|
+
"@deepseek-ai/dsh-agent": "^0.1.1-rc.2",
|
|
48
|
+
"@deepseek-ai/dsh-agent-loop": "^0.1.1-rc.2",
|
|
49
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.1-rc.2",
|
|
50
|
+
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
51
|
+
"@deepseek-ai/dsh-session": "^0.1.1-rc.2",
|
|
52
|
+
"@deepseek-ai/dsh-subagent": "^0.1.1-rc.2",
|
|
53
|
+
"@deepseek-ai/dsh-subagent-in-process-driver": "^0.1.1-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "^0.1.1-rc.2",
|
|
55
55
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
56
|
+
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2"
|
|
57
57
|
}
|
|
58
58
|
}
|