@deepseek-ai/dsh-subagent-in-process-driver 0.1.3-alpha.2 → 0.1.5-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 +2 -2
- package/README.md +2 -2
- package/README.zh.md +2 -2
- package/lib/index.js +3 -2
- package/package.json +25 -25
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
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-in-process-driver/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 03b72c2f9f02dc7ef2db29f57d4fdd1b5ce83027
|
|
6
|
+
README.zh.md: a75347002a3d2d66e37461dd5e14d140c8f8fc45
|
package/README.md
CHANGED
|
@@ -98,11 +98,11 @@ Read these pages when the package-level contract is not enough; they move from t
|
|
|
98
98
|
|
|
99
99
|
#### What the model sees
|
|
100
100
|
|
|
101
|
-
The shared driver sends the task verbatim as the child's user message and, when requested, shadows the persona and restricts global tool schemas, lookup, execution, and PTC mode SDK bindings in the unpublished child's fresh scope; parent restrictions are not inherited
|
|
101
|
+
The shared driver sends the task verbatim as the child's user message and, when requested, shadows the persona and restricts global tool schemas, lookup, execution, and PTC mode SDK bindings in the unpublished child's fresh scope; parent restrictions are not inherited. Tool-guidance plugins can use the assembly scope to omit unavailable guidance; arbitrary static sections are not rewritten by the driver. Spawn supplies no history; fork supplies its balanced seed.
|
|
102
102
|
|
|
103
103
|
#### Token effect
|
|
104
104
|
|
|
105
|
-
Child input is isolated from the parent and grows through the child's own steps. A persona changes repeated prompt text; filtering changes schema or generated SDK cost
|
|
105
|
+
Child input is isolated from the parent and grows through the child's own steps. A persona changes repeated prompt text; filtering changes schema or generated SDK cost, and scope-aware guidance changes with the visible capabilities.
|
|
106
106
|
|
|
107
107
|
#### KV Cache effect
|
|
108
108
|
|
package/README.zh.md
CHANGED
|
@@ -98,11 +98,11 @@ kind: "package-library"
|
|
|
98
98
|
|
|
99
99
|
#### 模型看到什么
|
|
100
100
|
|
|
101
|
-
共享驱动器把任务逐字作为子 agent 的用户消息发送;若有请求,还会在未发布子 agent 的全新作用域中遮蔽 persona,并限制全局工具 schema、查找、执行与 PTC mode SDK
|
|
101
|
+
共享驱动器把任务逐字作为子 agent 的用户消息发送;若有请求,还会在未发布子 agent 的全新作用域中遮蔽 persona,并限制全局工具 schema、查找、执行与 PTC mode SDK 绑定。父级限制不会被继承。工具指导插件可以使用组装 scope 省略不可用工具的指导;驱动器不会改写任意静态段落。spawn 不提供历史;fork 提供其已配平的初始内容。
|
|
102
102
|
|
|
103
103
|
#### Token 影响
|
|
104
104
|
|
|
105
|
-
子 agent 输入与父级隔离,并随子 agent 自身的步骤增长。persona 会改变重复提示词文本;过滤会改变 schema 或生成 SDK
|
|
105
|
+
子 agent 输入与父级隔离,并随子 agent 自身的步骤增长。persona 会改变重复提示词文本;过滤会改变 schema 或生成 SDK 的成本,使用 scope 的指导内容也会随可见能力变化。
|
|
106
106
|
|
|
107
107
|
#### KV Cache 影响
|
|
108
108
|
|
package/lib/index.js
CHANGED
|
@@ -168,8 +168,8 @@ async function startInProcessRun(request, options) {
|
|
|
168
168
|
const activationBoundary = SessionLogOffset(seed?.length ?? 0);
|
|
169
169
|
const inherited = captureDelegatedPolicyOverrides(parent);
|
|
170
170
|
let structured;
|
|
171
|
-
const setup = (childCtx) => {
|
|
172
|
-
appendDelegatedPolicyOverrides(
|
|
171
|
+
const setup = (childCtx, child) => {
|
|
172
|
+
appendDelegatedPolicyOverrides(child.session, inherited);
|
|
173
173
|
applyChildComposition(childCtx, parent, {
|
|
174
174
|
persona: request.persona,
|
|
175
175
|
toolFilter: request.toolFilter
|
|
@@ -179,6 +179,7 @@ async function startInProcessRun(request, options) {
|
|
|
179
179
|
};
|
|
180
180
|
return drivePublishedRun(await parent.ctx.agents.create({
|
|
181
181
|
sessionId: childId,
|
|
182
|
+
parentAgent: parent,
|
|
182
183
|
meta: childSessionMeta(parent, childDepth, seed !== void 0),
|
|
183
184
|
...seed !== void 0 ? { seed } : {},
|
|
184
185
|
...seed === void 0 ? {} : { inheritedEventCount: activationBoundary },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-subagent-in-process-driver",
|
|
3
3
|
"description": "Shared in-process subagent run driver: drives a child agent on ctx.agents (used by the spawn and fork backends)",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,35 +27,35 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
31
|
-
"@deepseek-ai/
|
|
32
|
-
"@deepseek-ai/dsh-
|
|
33
|
-
"@deepseek-ai/dsh-subagent": "^0.1.
|
|
34
|
-
"@deepseek-ai/dsh-system-prompt": "^0.1.
|
|
35
|
-
"@deepseek-ai/dsh-
|
|
36
|
-
"@deepseek-ai/
|
|
30
|
+
"@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
|
|
31
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
|
|
32
|
+
"@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
|
|
33
|
+
"@deepseek-ai/dsh-subagent": "^0.1.5-alpha.2",
|
|
34
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.2",
|
|
35
|
+
"@deepseek-ai/dsh-tools": "^0.1.5-alpha.2",
|
|
36
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
39
40
|
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
40
41
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
41
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
42
|
-
"@deepseek-ai/
|
|
43
|
-
"@deepseek-ai/dsh-
|
|
44
|
-
"@deepseek-ai/dsh-
|
|
45
|
-
"@deepseek-ai/dsh-
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
48
|
-
"@deepseek-ai/dsh-
|
|
49
|
-
"@deepseek-ai/dsh-
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-system-prompt": "^0.1.
|
|
52
|
-
"@deepseek-ai/dsh-tools": "^0.1.
|
|
53
|
-
"@deepseek-ai/dsh-user-approval": "^0.1.
|
|
54
|
-
"@deepseek-ai/dsh-
|
|
55
|
-
"@deepseek-ai/dsh-
|
|
56
|
-
"@deepseek-ai/dsh-tool-fs": "^0.1.3-alpha.2"
|
|
42
|
+
"@deepseek-ai/dsh-agent-loop": "^0.1.5-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-fs-sandbox": "^0.1.5-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-sandbox-policy": "^0.1.5-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-agent-presets": "^0.1.5-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-subagent": "^0.1.5-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.5-alpha.2",
|
|
52
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-tools": "^0.1.5-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-user-approval": "^0.1.5-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-invariants": "^0.1.5-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-tool-fs": "^0.1.5-alpha.2"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@deepseek-ai/dsh-brand": "^0.1.
|
|
59
|
+
"@deepseek-ai/dsh-brand": "^0.1.5-alpha.2"
|
|
60
60
|
}
|
|
61
61
|
}
|