@deepseek-ai/dsh-subagent-in-process-driver 0.1.3-alpha.2 → 0.1.5-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.
Files changed (2) hide show
  1. package/lib/index.js +3 -2
  2. package/package.json +24 -24
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(childCtx.agent.session, inherited);
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.3-alpha.2",
4
+ "version": "0.1.5-alpha.1",
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.3-alpha.2",
30
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
31
31
  "@deepseek-ai/cordis": "^4.0.2",
32
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
33
- "@deepseek-ai/dsh-subagent": "^0.1.3-alpha.2",
34
- "@deepseek-ai/dsh-system-prompt": "^0.1.3-alpha.2",
35
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
36
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2"
32
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
33
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
34
+ "@deepseek-ai/dsh-subagent": "^0.1.5-alpha.1",
35
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.1",
36
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1"
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.3-alpha.2",
42
- "@deepseek-ai/cordis": "^4.0.2",
43
- "@deepseek-ai/dsh-agent-loop": "^0.1.3-alpha.2",
44
- "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.3-alpha.2",
45
- "@deepseek-ai/dsh-fs-sandbox": "^0.1.3-alpha.2",
46
- "@deepseek-ai/dsh-invariants": "^0.1.3-alpha.2",
47
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
48
- "@deepseek-ai/dsh-sandbox-policy": "^0.1.3-alpha.2",
49
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
50
- "@deepseek-ai/dsh-subagent": "^0.1.3-alpha.2",
51
- "@deepseek-ai/dsh-system-prompt": "^0.1.3-alpha.2",
52
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
53
- "@deepseek-ai/dsh-user-approval": "^0.1.3-alpha.2",
54
- "@deepseek-ai/dsh-session-projection": "^0.1.3-alpha.2",
55
- "@deepseek-ai/dsh-agent-presets": "^0.1.3-alpha.2",
56
- "@deepseek-ai/dsh-tool-fs": "^0.1.3-alpha.2"
42
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
43
+ "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.5-alpha.1",
44
+ "@deepseek-ai/dsh-agent-loop": "^0.1.5-alpha.1",
45
+ "@deepseek-ai/dsh-agent-presets": "^0.1.5-alpha.1",
46
+ "@deepseek-ai/dsh-invariants": "^0.1.5-alpha.1",
47
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
48
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
49
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.1",
50
+ "@deepseek-ai/dsh-fs-sandbox": "^0.1.5-alpha.1",
51
+ "@deepseek-ai/dsh-subagent": "^0.1.5-alpha.1",
52
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.1",
53
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1",
54
+ "@deepseek-ai/dsh-sandbox-policy": "^0.1.5-alpha.1",
55
+ "@deepseek-ai/dsh-user-approval": "^0.1.5-alpha.1",
56
+ "@deepseek-ai/dsh-tool-fs": "^0.1.5-alpha.1"
57
57
  },
58
58
  "dependencies": {
59
- "@deepseek-ai/dsh-brand": "^0.1.3-alpha.2"
59
+ "@deepseek-ai/dsh-brand": "^0.1.5-alpha.1"
60
60
  }
61
61
  }