@deepseek-ai/dsh-subagent-fork-in-process 0.2.0-rc.1 → 0.2.1-alpha.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.i18n.yaml +4 -4
- package/README.md +1 -2
- package/README.zh.md +1 -2
- package/package.json +18 -19
package/README.i18n.yaml
CHANGED
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
en: 3917de9c152828e0
|
|
37
37
|
zh: 4c48bb580510ef0e
|
|
38
38
|
/deepseek-ai-dsh-subagent-fork-in-process/understand-the-implementation/source-map:
|
|
39
|
-
en:
|
|
40
|
-
zh:
|
|
39
|
+
en: f1f45255fd9f71c1
|
|
40
|
+
zh: 9a3f016b8fe9754a
|
|
41
41
|
/deepseek-ai-dsh-subagent-fork-in-process/understand-the-implementation/run-flow:
|
|
42
42
|
en: 59b82d0f46c21967
|
|
43
43
|
zh: aacc5455eaabc8f7
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
en: f5d5f97a153f7c70
|
|
76
76
|
zh: 3d6bc05b9eadfbc2
|
|
77
77
|
/deepseek-ai-dsh-subagent-fork-in-process/known-limitations-and-deferred-work:
|
|
78
|
-
en:
|
|
79
|
-
zh:
|
|
78
|
+
en: 7d520a5d0e01baac
|
|
79
|
+
zh: 5291cab4e8a11574
|
|
80
80
|
/deepseek-ai-dsh-subagent-fork-in-process/known-limitations-and-deferred-work/dev-note:
|
|
81
81
|
en: e67f633dc6fe7773
|
|
82
82
|
zh: 3bb0c20c93f16f98
|
package/README.md
CHANGED
|
@@ -76,7 +76,6 @@ One difference from spawn, expressed as data: the backend computes the balanced
|
|
|
76
76
|
| File | Role |
|
|
77
77
|
|---|---|
|
|
78
78
|
| [`src/index.ts`](src/index.ts) | Provider registration: prefix computation, `Config` schema, capability declaration |
|
|
79
|
-
| — | No runtime invariant companion is published; this package exposes no independent event sequence or mutable data relation beyond contracts enforced at its owning seam. |
|
|
80
79
|
|
|
81
80
|
### Run flow
|
|
82
81
|
|
|
@@ -144,7 +143,7 @@ These limits define when the backend is the wrong choice; they are current packa
|
|
|
144
143
|
|
|
145
144
|
- **The seed is a one-time snapshot** — the child sees the parent's completed turns as of the fork and nothing the parent logs afterwards; there is no live context sharing.
|
|
146
145
|
- **Fork lifecycle policy differs by composition** — the base bundle and ACP/headless examples use one-shot fork, while the CLI presets use continuable fork. Both keep the inherited prefix eligible for reuse because parent and child messaging definitions match byte for byte; explicit persona, tool filtering, generated-SDK, or route changes can still break equality. Rationale: the [cache-preserving fork Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md).
|
|
147
|
-
- **Shipped fork tools do not expose child LLM route selection** — they inherit the parent's provider and model so the copied history remains eligible for KV Cache reuse. Route selection stays disabled until a change can preserve reuse or expose a bounded recomputation cost
|
|
146
|
+
- **Shipped fork tools do not expose child LLM route selection** — they inherit the parent's provider and model so the copied history remains eligible for KV Cache reuse. Route selection stays disabled until a change can preserve reuse or expose a bounded recomputation cost.
|
|
148
147
|
|
|
149
148
|
<a id="dev-note"></a>
|
|
150
149
|
### Dev Note
|
package/README.zh.md
CHANGED
|
@@ -76,7 +76,6 @@ kind: "package-reference"
|
|
|
76
76
|
| 文件 | 职责 |
|
|
77
77
|
|---|---|
|
|
78
78
|
| [`src/index.ts`](src/index.ts) | 提供方注册:前缀计算、`Config` schema、能力声明 |
|
|
79
|
-
| — | 不发布运行时不变式伴生入口;本包没有独立事件序列或可变数据关系,相关约定在所属 seam 强制执行。 |
|
|
80
79
|
|
|
81
80
|
### 运行流程
|
|
82
81
|
|
|
@@ -144,7 +143,7 @@ fork 会把保留的已完成历史复制到子 agent 的请求中,子 agent
|
|
|
144
143
|
|
|
145
144
|
- **初始内容是一次性快照**——子 agent 只能看到 fork 时父级已完成的轮次,看不到父级此后记录的任何内容;不会实时共享上下文。
|
|
146
145
|
- **fork 生命周期策略因组合而异**——base 组合包与 ACP/headless 示例使用一次性 fork,CLI 预设使用可继续 fork。两者都因父级与子级的消息定义逐字节相同而让继承前缀保持可复用;显式 persona、工具过滤、生成 SDK 或路由变化仍可破坏相等性。理由见[保持 fork 缓存的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md)。
|
|
147
|
-
- **随附 fork 工具不公开子级 LLM(大语言模型)路由选择**——它们继承父级提供方与模型,使复制的历史仍有资格复用 KV Cache
|
|
146
|
+
- **随附 fork 工具不公开子级 LLM(大语言模型)路由选择**——它们继承父级提供方与模型,使复制的历史仍有资格复用 KV Cache。在某项改动能保留复用或公开有界重算成本前,路由选择保持禁用。
|
|
148
147
|
|
|
149
148
|
<a id="dev-note"></a>
|
|
150
149
|
### 开发备注
|
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.2.
|
|
4
|
+
"version": "0.2.1-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,27 +27,26 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
31
|
-
"@deepseek-ai/dsh-
|
|
32
|
-
"@deepseek-ai/dsh-
|
|
33
|
-
"@deepseek-ai/dsh-subagent-in-process-driver": "0.2.
|
|
34
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
30
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.1",
|
|
31
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.1",
|
|
32
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-alpha.1",
|
|
33
|
+
"@deepseek-ai/dsh-subagent-in-process-driver": "0.2.1-alpha.1",
|
|
34
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@deepseek-ai/schemastery": "~3.18.
|
|
37
|
+
"@deepseek-ai/schemastery": "~3.18.5-alpha.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@deepseek-ai/cordis-plugin-loader": "~1.0.
|
|
41
|
-
"@deepseek-ai/dsh-agent
|
|
42
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
43
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.
|
|
44
|
-
"@deepseek-ai/dsh-
|
|
45
|
-
"@deepseek-ai/dsh-
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-subagent": "0.2.
|
|
48
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
49
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-subagent-in-process-driver": "0.2.0-rc.1"
|
|
40
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.0.6-alpha.1",
|
|
41
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.1",
|
|
42
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-alpha.1",
|
|
43
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-alpha.1",
|
|
44
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
|
|
45
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-alpha.1",
|
|
46
|
+
"@deepseek-ai/dsh-subagent-in-process-driver": "0.2.1-alpha.1",
|
|
47
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-alpha.1",
|
|
48
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
49
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-alpha.1",
|
|
50
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.1"
|
|
52
51
|
}
|
|
53
52
|
}
|