@dsh-plus/subagent-model 0.3.28 → 0.3.30

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/package.json +14 -14
  2. package/src/delegation.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plus/subagent-model",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "description": "dsh-plus service+ui plugin: 为 subagent/subagent_fork 等子代理按提供商配置模型与思考程度(或继承主代理)",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -19,23 +19,23 @@
19
19
  "src"
20
20
  ],
21
21
  "dependencies": {
22
- "@dsh-plus/shared": "0.1.38"
22
+ "@dsh-plus/shared": "0.1.40"
23
23
  },
24
24
  "peerDependencies": {
25
- "@deepseek-ai/cordis": "^4.0.5-alpha.1",
26
- "@deepseek-ai/dsh-host-webserver": "^0.2.1-alpha.2",
27
- "@deepseek-ai/dsh-llm": "^0.2.1-alpha.2",
28
- "@deepseek-ai/dsh-settings": "^0.2.1-alpha.2",
29
- "@deepseek-ai/dsh-subagent": "^0.2.1-alpha.2",
30
- "@deepseek-ai/schemastery": "^3.18.5-alpha.1"
25
+ "@deepseek-ai/cordis": "^4.0.5-alpha.2",
26
+ "@deepseek-ai/dsh-host-webserver": "^0.2.1-alpha.3",
27
+ "@deepseek-ai/dsh-llm": "^0.2.1-alpha.3",
28
+ "@deepseek-ai/dsh-settings": "^0.2.1-alpha.3",
29
+ "@deepseek-ai/dsh-subagent": "^0.2.1-alpha.3",
30
+ "@deepseek-ai/schemastery": "^3.18.5-alpha.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@deepseek-ai/cordis": "4.0.5-alpha.1",
34
- "@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.2",
35
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
36
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.2",
37
- "@deepseek-ai/dsh-subagent": "0.2.1-alpha.2",
38
- "@deepseek-ai/schemastery": "3.18.5-alpha.1",
33
+ "@deepseek-ai/cordis": "4.0.5-alpha.2",
34
+ "@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.3",
35
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.3",
36
+ "@deepseek-ai/dsh-settings": "0.2.1-alpha.3",
37
+ "@deepseek-ai/dsh-subagent": "0.2.1-alpha.3",
38
+ "@deepseek-ai/schemastery": "3.18.5-alpha.2",
39
39
  "@types/node": "26.4.0",
40
40
  "@types/react": "~18.3.31",
41
41
  "react": "^18.2.0"
package/src/delegation.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * 运行时挂钩:子代理模型路由的注入点。
3
3
  *
4
- * 机制依据(官方 dsh-subagent 0.2.1-alpha.2):子代理的模型由【创建时】的
5
- * AgentOptions 决定——`resolveChildAgentOptions(parent, request.agentOptions,
4
+ * 机制依据(官方 dsh-subagent 0.2.1-alpha.3 复核:字段与解析链未变):子代理的模型由
5
+ * 【创建时】的 AgentOptions 决定——`resolveChildAgentOptions(parent, request.agentOptions,
6
6
  * childDepth)` = 父 options 快照 + 显式 agentOptions(后者胜出),且原生读取
7
7
  * provider/model/reasoningEffort 三个字段(materialize → agents.create/resume
8
8
  * → agentLoop.options),冷恢复经 descriptor 持久化保持。因此只需在