@morlay/dsh-subagent 0.0.6 → 0.0.7

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.md CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  上游 `@deepseek-ai/dsh-subagent` 的**薄壳 fork**:接管官方 `subagent` 行,改两处文案——
4
4
 
5
- 1. continuable 子代理首条任务后面的**回报指引**换成中文,**默认对任意会话生效**(官方四个 shipped preset、还没绑
5
+ 1. 子代理首条任务后面的**回报指引**换成中文,**默认对任意会话生效**(官方四个 shipped preset、还没绑
6
6
  preset 的会话都在内);只有在装配面给了 `localizedReturnGuidancePresets` 名单时才收窄成「只有名单里的 preset
7
- 用中文」,其余会话保持上游那套;
8
- 2. 子代理自己的**委派范围说明**(运行时上下文 `subagent:delegation`)换成中文,两条派发路径(continuable 与一次性)
9
- 一起覆盖。
7
+ 用中文」,其余会话保持上游那套。有指引这件事本身跟上游一致:只在"通知父智能体"的派发上加(上游 0.2.1-alpha.2
8
+ 起由 `delivery` 区分,`delivery: 'caller'` 那条不给指引);
9
+ 2. 子代理自己的**委派范围说明**(运行时上下文 `subagent:delegation`)换成中文,两条派发路径(`delivery` 为
10
+ `parent` / `caller`)一起覆盖。
10
11
 
11
12
  ## 用法
12
13
 
@@ -17,5 +18,5 @@
17
18
  ## 委派范围说明怎么换的
18
19
 
19
20
  `subagent:delegation` 由上游在**子代理自己的 agent 作用域**上注册,两条常规接管手法都不通:同层重复注册同名 context
20
- 会抛错;fork `child-agent.ts` 也不改变运行期(注册这条文本的调用方都在上游未复制的文件里)。所以本包改的是**装配
21
+ 会抛错;fork `child-agent.ts` 只影响本包 `manager.ts` 那条路径、对外部 backend 的子代理无效。所以本包改的是**装配
21
22
  结果**——`system-prompt/assemble` 瀑布里把该名字那条的文本换成中文(`src/delegation-context.ts`),在该次装配内生效。