@deepseek-ai/dsh-subagent-fork-in-process 0.2.1-alpha.1 → 0.2.1-alpha.3

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 CHANGED
@@ -27,26 +27,26 @@
27
27
  en: d6058c358890c64c
28
28
  zh: 93f8cc2b60975d42
29
29
  /deepseek-ai-dsh-subagent-fork-in-process/use-this-package/what-a-fork-delegation-does:
30
- en: 221626f65c2faf04
31
- zh: dfa8200b5349340f
30
+ en: 461063deda821a1b
31
+ zh: 18d2d41d64884f22
32
32
  /deepseek-ai-dsh-subagent-fork-in-process/understand-the-implementation:
33
33
  en: 6a0fe4b9cc780aaa
34
34
  zh: 50cd69ceb8296827
35
35
  /deepseek-ai-dsh-subagent-fork-in-process/understand-the-implementation/design-concept:
36
- en: 3917de9c152828e0
37
- zh: 4c48bb580510ef0e
36
+ en: 49c8725fee5330ed
37
+ zh: 9050680f2011820a
38
38
  /deepseek-ai-dsh-subagent-fork-in-process/understand-the-implementation/source-map:
39
39
  en: f1f45255fd9f71c1
40
40
  zh: 9a3f016b8fe9754a
41
41
  /deepseek-ai-dsh-subagent-fork-in-process/understand-the-implementation/run-flow:
42
- en: 59b82d0f46c21967
43
- zh: aacc5455eaabc8f7
42
+ en: cca92ec964b4314b
43
+ zh: edd8ecd4b59dbe8f
44
44
  /deepseek-ai-dsh-subagent-fork-in-process/understand-the-implementation/lifecycle-binding:
45
- en: 8f9a94404f719707
46
- zh: 60d2318aad2c2935
45
+ en: 8dad0155ed1b32d2
46
+ zh: f4d82d5ede03c4d7
47
47
  /deepseek-ai-dsh-subagent-fork-in-process/further-exploration:
48
- en: 40cb89910f190f45
49
- zh: ab9728a53d4b6123
48
+ en: 29ea6e0669b665a8
49
+ zh: 46d435e79d356898
50
50
  /deepseek-ai-dsh-subagent-fork-in-process/model-experience:
51
51
  en: 215e7ba838619b7b
52
52
  zh: a311da3843709f90
@@ -54,20 +54,20 @@
54
54
  en: 91a5bd22001586e9
55
55
  zh: 456e5bf20881a70d
56
56
  /deepseek-ai-dsh-subagent-fork-in-process/model-experience/child-agent-history-and-envelope/what-the-model-sees:
57
- en: fe88f3e65bb01009
58
- zh: 64e05acfe80e81f3
57
+ en: d4d51c5937bab67c
58
+ zh: e7c07b5a38d68d8e
59
59
  /deepseek-ai-dsh-subagent-fork-in-process/model-experience/child-agent-history-and-envelope/token-effect:
60
- en: db9ae2edb5ee28ce
61
- zh: 5a342ffa3e7a7b40
60
+ en: 19b588baaa87126b
61
+ zh: 7010e93bbe7d71ba
62
62
  /deepseek-ai-dsh-subagent-fork-in-process/model-experience/child-agent-history-and-envelope/kv-cache-effect:
63
- en: 63138e06a9c24fa0
64
- zh: dca65fe91ff3534b
63
+ en: 1e8f8bbab3052b39
64
+ zh: 1efff4da78d60ef9
65
65
  /deepseek-ai-dsh-subagent-fork-in-process/model-experience/parent-tool-result-indirectly:
66
66
  en: 75d061c2151624a7
67
67
  zh: 71e58e020b60ff90
68
68
  /deepseek-ai-dsh-subagent-fork-in-process/model-experience/parent-tool-result-indirectly/what-the-model-sees:
69
- en: 0521a7cac72c880d
70
- zh: 6ac7c5f25c7d55f6
69
+ en: 54d10ba4da6cdece
70
+ zh: bb9cb4d685098483
71
71
  /deepseek-ai-dsh-subagent-fork-in-process/model-experience/parent-tool-result-indirectly/token-effect:
72
72
  en: 8c81bab3c5d6a38a
73
73
  zh: 44c798432a4bfdfb
@@ -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: 7d520a5d0e01baac
79
- zh: 5291cab4e8a11574
78
+ en: 193d3fea02c7ec47
79
+ zh: 8a616bcfb97a99c1
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
@@ -55,7 +55,7 @@ The generated [configuration catalog](../../../docs/config-catalog.md#deepseek-a
55
55
 
56
56
  ### What a fork delegation does
57
57
 
58
- One tool call starts one child seeded with the completed turns and waits for its result: the child sees the conversation up to the parent's last completed turn, works in its own session, and the parent receives only its final output — or an errored tool result for cancellation, refusal, token-limit truncation, or startup rejection. The seed is captured once at start; later parent turns never reach the child.
58
+ One tool call creates a background child and returns its session id immediately. The child works in its own session; the parent receives its final answer in a completion notice. The child can also send messages through `send_message`. A rejected start leaves no published child. Programmatic callers such as workflows can await the activation result directly.
59
59
 
60
60
  -----
61
61
 
@@ -69,7 +69,7 @@ This section explains the design decisions behind the backend and where the beha
69
69
 
70
70
  ### Design concept
71
71
 
72
- One difference from spawn, expressed as data: the backend computes the balanced completed-turn prefix of the parent's log and hands it to the shared in-process driver as the child's session seed. Because live sequence numbers equal array indexes, the prefix stays a valid seed beginning at sequence zero, and the driver records its length so the result reader never mistakes a seeded parent message for child output.
72
+ This backend supplies the balanced completed-turn prefix of the parent log as the child session seed. The subagent service records the inherited range so results contain only the child’s own output.
73
73
 
74
74
  ### Source map
75
75
 
@@ -79,11 +79,11 @@ One difference from spawn, expressed as data: the backend computes the balanced
79
79
 
80
80
  ### Run flow
81
81
 
82
- On `start`, the prefix is sliced from the parent's event log up to and including the last `turn/end`; the shared driver then creates the child with that seed, applies the same persona, tool-filter, and structured-output setup, drives one task, reads the child's own final output, and disposes quiescently. The provider advertises `agentOptions` plus the same output, depth, filter, and persona capabilities as spawn. `prepareContinuable` captures the prefix once, at creation, because it becomes part of the child's own durable transcript.
82
+ `prepareContinuable()` captures the parent’s completed-turn prefix once at creation. `startActivation()` creates the child with that seed, and the subagent service composes the inherited preset and optional structured output. The provider advertises agent options, output, and depth capabilities; independent preset selection is unsupported.
83
83
 
84
84
  ### Lifecycle binding
85
85
 
86
- The base bundle and ACP/headless examples bind this provider to `backgroundMode: one-shot`, while the CLI presets select `continuable`. Both preserve the inherited request prefix: parent and child receive the same messaging tool definition and ordering, and the continuable child's parent id and return guidance live in its initial user task after inherited history ([cache-preserving fork Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md)).
86
+ The delegation tool creates a background activation and returns a stable child session id. Parent and child share the same messaging tool definitions and ordering; the parent id and return guidance follow inherited history in the initial task. Workflows await results with caller delivery and send no completion notice to the parent.
87
87
 
88
88
  </details>
89
89
 
@@ -92,14 +92,13 @@ The base bundle and ACP/headless examples bind this provider to `backgroundMode:
92
92
  <a id="further-exploration"></a>
93
93
  ## Further Exploration
94
94
 
95
- Read these pages when the package-level contract is not enough; they move from the shared subagent model to the sibling backends and the design evidence for the one-shot binding.
95
+ Read these pages when the package-level contract is not enough; they move from the shared subagent model to the sibling backends and the design evidence for preserving the inherited request prefix.
96
96
 
97
97
  - [Subagent subsystem](../../../docs/subsystems/subagent.md) — start requests, results, provider contract, and in-process depth and seed.
98
- - [dsh-subagent-in-process-driver](../subagent-in-process-driver/README.md) — the shared run driver this backend calls.
99
98
  - [dsh-subagent-spawn-in-process](../subagent-spawn-in-process/README.md) — the fresh-child sibling backend.
100
99
  - [dsh-tool-subagent](../tool-subagent/README.md) — the model-facing delegation tool that reaches this provider.
101
100
  - [Generated configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-subagent-fork-in-process) — every accepted config field and its source declaration.
102
- - [Fork children stay one-shot](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md) — why shipped compositions bind fork to one-shot.
101
+ - [Forked children preserve the parent request prefix](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md) — why continuable fork preserves the inherited request prefix.
103
102
 
104
103
  -----
105
104
 
@@ -110,21 +109,21 @@ Read these pages when the package-level contract is not enough; they move from t
110
109
 
111
110
  #### What the model sees
112
111
 
113
- The child receives the parent's balanced completed-turn prefix, then the new task content verbatim. A configured persona shadows prompt text in the child's fresh scope; a tool restriction filters its global wire schemas, executable lookup, and PTC mode SDK bindings but not standalone guidance. The parent's tool view and authority are not inherited; an optional structured-output request adds a child-only contract; the parent's current in-flight turn is excluded.
112
+ The child receives the parent's balanced completed-turn prefix, then the new task content verbatim. It joins the parent's preset revision, which supplies persona and tools. Parent agent-local restrictions are not copied. An optional structured-output request adds a child-only tool; the parent's current in-flight turn is excluded.
114
113
 
115
114
  #### Token effect
116
115
 
117
- Forking duplicates retained completed history into the child's request, which then accumulates its own tokens independently. A persona changes repeated prompt cost; filtering changes schema or generated SDK cost; a first-turn fork has no inherited history.
116
+ Forking duplicates retained completed history into the child's request, which then accumulates its own tokens independently. A first-turn fork has no inherited history.
118
117
 
119
118
  #### KV Cache effect
120
119
 
121
- The child may reuse the inherited byte-identical prefix under the same provider and model. Persona, tool-filter, generated-SDK, or route changes may invalidate reuse before inherited history; later child history is append-only. Continuable messaging adds no child-only system-prompt section or tool schema; the parent id and return guidance follow inherited history in the initial user task ([cache-preserving fork Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md)).
120
+ The child may reuse the inherited byte-identical prefix under the same provider and model. Structured output, generated-SDK, route changes, or historical descriptor overrides on cold resume can invalidate reuse before inherited history; later child history is append-only. Continuable messaging adds no child-only system-prompt section or tool schema; the parent id and return guidance follow inherited history in the initial user task ([cache-preserving fork Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md)).
122
121
 
123
122
  ### Parent tool result, indirectly
124
123
 
125
124
  #### What the model sees
126
125
 
127
- The parent receives only the child's own final output through `dsh-tool-subagent`, not the inherited prefix or intermediate work.
126
+ Through `dsh-tool-subagent`, the parent first receives the child session id, then a completion notice with its final answer. Child-authored messages arrive through `send_message`; the inherited prefix and internal work remain in the child session.
128
127
 
129
128
  #### Token effect
130
129
 
@@ -142,7 +141,7 @@ Append-only; newly visible content follows the reusable request prefix and does
142
141
  These limits define when the backend is the wrong choice; they are current package constraints.
143
142
 
144
143
  - **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.
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).
144
+ - **Prefix reuse depends on matching request inputs** — parent and child messaging definitions match byte for byte; structured output, generated-SDK, route changes, or restored historical overrides can still break equality. Rationale: the [cache-preserving fork Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.md).
146
145
  - **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.
147
146
 
148
147
  <a id="dev-note"></a>
package/README.zh.md CHANGED
@@ -55,7 +55,7 @@ kind: "package-reference"
55
55
 
56
56
  ### 一次 fork 委派会做什么
57
57
 
58
- 一次工具调用启动一个以已完成轮次为初始内容的子 agent,并等待其结果:子 agent 能看到截至父级最后一个已完成轮次的对话,在自有会话中工作,父级只接收其最终输出——取消、拒绝、token 上限截断或启动被拒时则收到出错的工具结果。初始内容在启动时只捕获一次;此后的父级轮次绝不会到达子 agent。
58
+ 一次工具调用创建后台子 agent 并立即返回子会话 ID。子级在自己的会话中工作,父级通过完成通知收到其最终答案。子级也可以通过 `send_message` 发送消息。被拒绝的启动不会留下已发布的子 agent;工作流等程序调用方可以直接等待 activation 的结果。
59
59
 
60
60
  -----
61
61
 
@@ -69,7 +69,7 @@ kind: "package-reference"
69
69
 
70
70
  ### 设计理念
71
71
 
72
- 与 spawn 的差异只有一处,且以数据表达:后端计算父级日志的已配平已完成轮次前缀,并把它作为子 agent 的会话初始内容交给共享进程内驱动器。由于实际序号等于数组下标,前缀始终是自序号零开始的合法初始内容;驱动器记录其长度,使结果读取器不会把作为初始内容的父级消息误认为子 agent 输出。
72
+ 本后端把父级日志中已配平的已完成轮次前缀作为子会话初始内容。subagent 服务记录继承范围,因此结果只包含子级自己的输出。
73
73
 
74
74
  ### 源码地图
75
75
 
@@ -79,11 +79,11 @@ kind: "package-reference"
79
79
 
80
80
  ### 运行流程
81
81
 
82
- `start` 时,从父级事件日志中截取截至最后一个 `turn/end` 的前缀;共享驱动器随后以该初始内容创建子 agent,应用相同的 persona、工具过滤器与结构化输出设置,驱动一项任务,读取子 agent 自身的最终输出,并执行 dispose(资源释放)以等待所有工作完全停稳。该提供方声明 `agentOptions`,以及与 spawn 相同的输出、深度、过滤与 persona 能力。`prepareContinuable` 在创建时只捕获一次前缀,因为该前缀会成为子 agent 自身持久保存的 transcript(文本记录)的一部分。
82
+ `prepareContinuable()` 在创建时捕获一次父级已完成轮次前缀。`startActivation()` 以此创建子 agent,由 subagent 服务组装继承的 preset 和可选的结构化输出。提供方声明 agent 选项、输出及深度能力;不支持独立选择 preset。
83
83
 
84
84
  ### 生命周期绑定
85
85
 
86
- base 组合包与 ACP(Agent Client Protocol)/headless 示例在委派工具上把本提供方绑定为 `backgroundMode: one-shot`,CLI(命令行界面)预设则选择 `continuable`。两者都保留继承的请求前缀:父级与子级获得定义和顺序相同的消息工具,可继续子级的父级 ID 与返回指导位于继承历史之后的初始用户任务中(见[保持 fork 缓存的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md))。
86
+ 委派工具以后台 activation 创建子级,并返回稳定的子会话 ID。父级与子级共享相同的消息工具定义及顺序;父级 ID 与返回指导位于继承历史之后的初始任务中。工作流以调用方收集模式等待结果,不向父级发送完成通知。
87
87
 
88
88
  </details>
89
89
 
@@ -92,14 +92,13 @@ base 组合包与 ACP(Agent Client Protocol)/headless 示例在委派工具
92
92
  <a id="further-exploration"></a>
93
93
  ## 进一步探索
94
94
 
95
- 当包级约定不够用时阅读以下页面;它们从共享 subagent 模型进入兄弟后端,以及一次性绑定的设计证据。
95
+ 当包级约定不够用时阅读以下页面;它们从共享 subagent 模型进入兄弟后端,以及保留继承请求前缀的设计证据。
96
96
 
97
97
  - [Subagent 子系统](../../../docs/subsystems/subagent.zh.md)——启动请求、结果、提供方约定与进程内深度和初始内容。
98
- - [dsh-subagent-in-process-driver](../subagent-in-process-driver/README.zh.md)——本后端调用的共享运行驱动器。
99
98
  - [dsh-subagent-spawn-in-process](../subagent-spawn-in-process/README.zh.md)——全新子级的兄弟后端。
100
99
  - [dsh-tool-subagent](../tool-subagent/README.zh.md)——指向该提供方的面向模型委派工具。
101
100
  - [生成配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-subagent-fork-in-process)——每个受支持配置字段及其源声明。
102
- - [fork 保持 one-shot](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md)——随附组合为何把 fork 绑定为 one-shot。
101
+ - [Fork child 保留 parent 请求前缀](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md)——可继续 fork 为何保留继承的请求前缀。
103
102
 
104
103
  -----
105
104
 
@@ -110,21 +109,21 @@ base 组合包与 ACP(Agent Client Protocol)/headless 示例在委派工具
110
109
 
111
110
  #### 模型看到什么
112
111
 
113
- 子 agent 先接收由父级已配平的已完成轮次构成的前缀,再逐字接收新的任务内容。配置的 persona 会在子 agent 的全新作用域中遮蔽提示词文本;工具限制会过滤其全局协议 schema、可执行工具查找与 PTC mode SDK 绑定,但不影响独立指导内容。父级的工具视图与权限不会被继承;可选的结构化输出请求会添加仅属于子 agent 的约定;父级当前进行中的轮次会被排除。
112
+ 子 agent 先接收由父级已配平的已完成轮次构成的前缀,再逐字接收新的任务内容。它加入父级的 preset 代际,由 preset 提供 persona 和工具。父级 agent 局部限制不会被复制。可选的结构化输出请求会添加仅属于子 agent 的工具;父级当前进行中的轮次会被排除。
114
113
 
115
114
  #### Token 影响
116
115
 
117
- fork 会把保留的已完成历史复制到子 agent 的请求中,子 agent 随后独立累积自己的 token。persona 会改变重复提示词的成本;过滤会改变 schema 或生成 SDK 的成本;首轮 fork 没有继承历史。
116
+ fork 会把保留的已完成历史复制到子 agent 的请求中,子 agent 随后独立累积自己的 token。首轮 fork 没有继承历史。
118
117
 
119
118
  #### KV Cache 影响
120
119
 
121
- 在提供方与模型相同的前提下,子 agent 可以复用继承的逐字节相同前缀。persona、工具过滤、生成 SDK 或路由变化可能在继承历史之前使复用失效;后续子 agent 历史仅追加。可继续消息不会增加子级专属的系统提示词区段或工具 schema;父级 ID 与返回指导在初始用户任务中位于继承历史之后(见[保持 fork 缓存的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md))。
120
+ 在提供方与模型相同的前提下,子 agent 可以复用继承的逐字节相同前缀。结构化输出、生成 SDK、路由变化,或冷恢复时的历史 descriptor 覆盖,可能在继承历史之前使复用失效;后续子 agent 历史仅追加。可继续消息不会增加子级专属的系统提示词区段或工具 schema;父级 ID 与返回指导在初始用户任务中位于继承历史之后(见[保持 fork 缓存的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md))。
122
121
 
123
122
  ### 父级工具结果(间接)
124
123
 
125
124
  #### 模型看到什么
126
125
 
127
- 父级只通过 `dsh-tool-subagent` 接收子 agent 自身的最终输出,不接收继承的前缀或中间工作。
126
+ 父级通过 `dsh-tool-subagent` 先收到子会话 ID,随后收到包含最终答案的完成通知。子级自行编写的消息通过 `send_message` 到达;继承的前缀与内部工作保留在子会话中。
128
127
 
129
128
  #### Token 影响
130
129
 
@@ -142,7 +141,7 @@ fork 会把保留的已完成历史复制到子 agent 的请求中,子 agent
142
141
  这些限制说明何时选择该后端是错误的;它们是当前包约束。
143
142
 
144
143
  - **初始内容是一次性快照**——子 agent 只能看到 fork 时父级已完成的轮次,看不到父级此后记录的任何内容;不会实时共享上下文。
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)。
144
+ - **前缀复用取决于请求输入是否匹配**——父级与子级的消息定义都逐字节相同;结构化输出、生成 SDK、路由变化或恢复的历史覆盖仍可破坏相等性。理由见[保持 fork 缓存的 Agent Note](../../../.agents/notes/implemented/architecture/2026-08-10-fork-children-stay-one-shot.zh.md)。
146
145
  - **随附 fork 工具不公开子级 LLM(大语言模型)路由选择**——它们继承父级提供方与模型,使复制的历史仍有资格复用 KV Cache。在某项改动能保留复用或公开有界重算成本前,路由选择保持禁用。
147
146
 
148
147
  <a id="dev-note"></a>
package/lib/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import z from "@deepseek-ai/schemastery";
2
- import { startInProcessRun } from "@deepseek-ai/dsh-subagent-in-process-driver";
3
2
  //#region lib/types/index.js
4
3
  /**
5
4
  * The in-process FORK subagent backend: registers a {@link SubagentProvider} on
@@ -29,26 +28,20 @@ function completedTurnPrefix(parent) {
29
28
  /**
30
29
  * The fork provider. Supports `depthLimit` and `outputSchema` (via the shared
31
30
  * in-process structured runtime), `agentOptions` (merged over the parent
32
- * route), and `toolFilter`/`persona` (scoped restrict() and a scoped shadowing
33
- * persona section).
31
+ * route). The child inherits its parent's preset composition.
34
32
  */
35
33
  var ForkInProcessProvider = class {
36
34
  name;
37
35
  capabilities = {
38
36
  agentOptions: true,
37
+ agentPreset: false,
39
38
  outputSchema: true,
40
- depthLimit: true,
41
- toolFilter: true,
42
- persona: true
39
+ depthLimit: true
43
40
  };
44
41
  inheritsParentContext = true;
45
42
  constructor(name) {
46
43
  this.name = name;
47
44
  }
48
- start(request) {
49
- const seed = completedTurnPrefix(request.parent);
50
- return startInProcessRun(request, { ...seed.length > 0 ? { seed } : {} });
51
- }
52
45
  prepareContinuable(request) {
53
46
  const seed = completedTurnPrefix(request.parent);
54
47
  return Promise.resolve(seed.length > 0 ? { seed } : {});
package/locale/en.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "meta": {
3
+ "title": "subagent-fork-in-process"
4
+ }
5
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "继承上下文子智能体后端",
4
+ "description": "使用父会话的一段历史创建子智能体。"
5
+ }
6
+ }
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.1-alpha.1",
4
+ "version": "0.2.1-alpha.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -19,34 +19,34 @@
19
19
  "default": "./lib/index.js"
20
20
  },
21
21
  "./src/*": "./src/*",
22
- "./package.json": "./package.json"
22
+ "./package.json": "./package.json",
23
+ "./locale/*.json": "./locale/*.json"
23
24
  },
24
25
  "files": [
26
+ "locale/*.json",
25
27
  "lib/index.js",
26
28
  "lib/types/**/*.d.ts"
27
29
  ],
28
30
  "license": "MIT",
29
31
  "peerDependencies": {
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"
32
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.3",
33
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.3",
34
+ "@deepseek-ai/dsh-subagent": "0.2.1-alpha.3",
35
+ "@deepseek-ai/cordis": "~4.0.5-alpha.2"
35
36
  },
36
37
  "dependencies": {
37
- "@deepseek-ai/schemastery": "~3.18.5-alpha.1"
38
+ "@deepseek-ai/schemastery": "~3.18.5-alpha.2"
38
39
  },
39
40
  "devDependencies": {
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"
41
+ "@deepseek-ai/cordis-plugin-loader": "~1.0.6-alpha.2",
42
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.3",
43
+ "@deepseek-ai/dsh-agent-loop": "0.2.1-alpha.3",
44
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-alpha.3",
45
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.3",
46
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.3",
47
+ "@deepseek-ai/dsh-subagent": "0.2.1-alpha.3",
48
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-alpha.3",
49
+ "@deepseek-ai/cordis": "~4.0.5-alpha.2",
50
+ "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.3"
51
51
  }
52
52
  }