@deepseek-ai/dsh-tool-subagent 0.1.7-rc.1 → 0.2.0-rc.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.
- package/README.i18n.yaml +120 -5
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/index.js +4 -4
- package/package.json +27 -27
package/README.i18n.yaml
CHANGED
|
@@ -1,6 +1,121 @@
|
|
|
1
|
-
# Bilingual-pair consistency record (docs/i18n/README.md):
|
|
2
|
-
#
|
|
3
|
-
#
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/subagent/tool-subagent/README.md
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/:
|
|
6
|
+
en: c6db6e2344a91be8
|
|
7
|
+
zh: 4febc8331d506a22
|
|
8
|
+
/deepseek-ai-dsh-tool-subagent:
|
|
9
|
+
en: 686fb5136bef0a3b
|
|
10
|
+
zh: d25d6569174a01b5
|
|
11
|
+
/deepseek-ai-dsh-tool-subagent/summary:
|
|
12
|
+
en: 04da983479776bfa
|
|
13
|
+
zh: 17b955b0390dc448
|
|
14
|
+
/deepseek-ai-dsh-tool-subagent/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 09388d293f9be9cb
|
|
17
|
+
/deepseek-ai-dsh-tool-subagent/use-this-package:
|
|
18
|
+
en: 3248a28bba2ef809
|
|
19
|
+
zh: 807cc32c49fcb0cb
|
|
20
|
+
/deepseek-ai-dsh-tool-subagent/use-this-package/minimal-configuration:
|
|
21
|
+
en: a8809e00166c7f2f
|
|
22
|
+
zh: 261432232638c445
|
|
23
|
+
/deepseek-ai-dsh-tool-subagent/use-this-package/foreground-and-background-modes:
|
|
24
|
+
en: 8e7319bc2887ae5c
|
|
25
|
+
zh: 87d5abdfbe7562df
|
|
26
|
+
/deepseek-ai-dsh-tool-subagent/use-this-package/selecting-a-child-llm:
|
|
27
|
+
en: 0d37e3b3957515e4
|
|
28
|
+
zh: ea1a94b2f29e7d9a
|
|
29
|
+
/deepseek-ai-dsh-tool-subagent/understand-the-implementation:
|
|
30
|
+
en: 6ce5f749256a7e6c
|
|
31
|
+
zh: a4f2adb04a70d9cf
|
|
32
|
+
/deepseek-ai-dsh-tool-subagent/understand-the-implementation/design-concept:
|
|
33
|
+
en: 5ceacfed4ea0c648
|
|
34
|
+
zh: 005284534923d854
|
|
35
|
+
/deepseek-ai-dsh-tool-subagent/understand-the-implementation/foreground-settlement:
|
|
36
|
+
en: ccb36af6884ec89f
|
|
37
|
+
zh: 41e9aa6d3cd75a41
|
|
38
|
+
/deepseek-ai-dsh-tool-subagent/understand-the-implementation/background-routes:
|
|
39
|
+
en: dfd6306019a63bea
|
|
40
|
+
zh: 5055b66e19885e8d
|
|
41
|
+
/deepseek-ai-dsh-tool-subagent/understand-the-implementation/context-sensitive-wording:
|
|
42
|
+
en: 1733728ac5aa6bb0
|
|
43
|
+
zh: 341ffc6e21a289af
|
|
44
|
+
/deepseek-ai-dsh-tool-subagent/understand-the-implementation/source-map:
|
|
45
|
+
en: 1f52c5f5c7caf04a
|
|
46
|
+
zh: dba288fd0cf51e5d
|
|
47
|
+
/deepseek-ai-dsh-tool-subagent/further-exploration:
|
|
48
|
+
en: bfe8b6bc5af43b98
|
|
49
|
+
zh: dbc040e7c9ad6838
|
|
50
|
+
/deepseek-ai-dsh-tool-subagent/model-experience:
|
|
51
|
+
en: 215e7ba838619b7b
|
|
52
|
+
zh: a311da3843709f90
|
|
53
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/tool-schema:
|
|
54
|
+
en: e4c7376d4f29dbd5
|
|
55
|
+
zh: 6b7a9eaf69c9ea53
|
|
56
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/tool-schema/what-the-model-sees:
|
|
57
|
+
en: 5d88050d9496b928
|
|
58
|
+
zh: 1278b3b7da4335db
|
|
59
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/tool-schema/token-effect:
|
|
60
|
+
en: 1aa53b7a4c24cc25
|
|
61
|
+
zh: bebd5c5ce6443259
|
|
62
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/tool-schema/kv-cache-effect:
|
|
63
|
+
en: 46f736c6c389052a
|
|
64
|
+
zh: a7765541030e9104
|
|
65
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/model-selection-and-discovery:
|
|
66
|
+
en: a4ca31b9cbacda6b
|
|
67
|
+
zh: 91ac3e0784a14697
|
|
68
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/model-selection-and-discovery/what-the-model-sees:
|
|
69
|
+
en: 1c9dd328eaf96683
|
|
70
|
+
zh: 3be88d3b00f51cfa
|
|
71
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/model-selection-and-discovery/token-effect:
|
|
72
|
+
en: 8137e72f630f0190
|
|
73
|
+
zh: 73b1d9374b6cbccd
|
|
74
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/model-selection-and-discovery/kv-cache-effect:
|
|
75
|
+
en: 7dc47a34d5574fbd
|
|
76
|
+
zh: bd7bd2a4da2f8ae2
|
|
77
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/system-prompt:
|
|
78
|
+
en: cf78b9dd5596495f
|
|
79
|
+
zh: bd44560f8c2435e8
|
|
80
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/system-prompt/what-the-model-sees:
|
|
81
|
+
en: 875f8a89292dde21
|
|
82
|
+
zh: 670f911b0a149690
|
|
83
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/system-prompt/what-the-model-sees/tool-guidance-section:
|
|
84
|
+
en: 82b3cd08b3961c98
|
|
85
|
+
zh: bdc2a34bcea16cac
|
|
86
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/system-prompt/token-effect:
|
|
87
|
+
en: ed03868e8f551001
|
|
88
|
+
zh: 53c10b979a48cf9b
|
|
89
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/system-prompt/kv-cache-effect:
|
|
90
|
+
en: 5f2491d0ee8f440c
|
|
91
|
+
zh: 14c06b9fe7096e09
|
|
92
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/foreground-result:
|
|
93
|
+
en: d83f1f25a3719c54
|
|
94
|
+
zh: 445ca808e28dc936
|
|
95
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/foreground-result/what-the-model-sees:
|
|
96
|
+
en: 7e5d19839fa69495
|
|
97
|
+
zh: 0e7ff0d92571ec60
|
|
98
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/foreground-result/token-effect:
|
|
99
|
+
en: 995810727b29f85f
|
|
100
|
+
zh: 4ede7b437091d6ee
|
|
101
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/foreground-result/kv-cache-effect:
|
|
102
|
+
en: f5d5f97a153f7c70
|
|
103
|
+
zh: 3d6bc05b9eadfbc2
|
|
104
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/background-result:
|
|
105
|
+
en: 3f23f9211197b0b9
|
|
106
|
+
zh: 8cff3c78249b66ff
|
|
107
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/background-result/what-the-model-sees:
|
|
108
|
+
en: d2ba2d8a3e88478d
|
|
109
|
+
zh: dee910d1d271f75c
|
|
110
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/background-result/token-effect:
|
|
111
|
+
en: 3c67cdb1cbf53647
|
|
112
|
+
zh: bfed5f2945a79c9d
|
|
113
|
+
/deepseek-ai-dsh-tool-subagent/model-experience/background-result/kv-cache-effect:
|
|
114
|
+
en: f5d5f97a153f7c70
|
|
115
|
+
zh: 3d6bc05b9eadfbc2
|
|
116
|
+
/deepseek-ai-dsh-tool-subagent/known-limitations-and-deferred-work:
|
|
117
|
+
en: 30b202766dae2b9d
|
|
118
|
+
zh: e2654c858b5a2378
|
|
119
|
+
/deepseek-ai-dsh-tool-subagent/known-limitations-and-deferred-work/dev-note:
|
|
120
|
+
en: e67f633dc6fe7773
|
|
121
|
+
zh: 3bb0c20c93f16f98
|
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ When `enableRunInBackground` and `backgroundMode: continuable` are both set, the
|
|
|
162
162
|
##### Tool-guidance section
|
|
163
163
|
|
|
164
164
|
```markdown
|
|
165
|
-
|
|
165
|
+
Start independent subagent delegations together in one assistant message and continue useful work while they run.
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
#### Token effect
|
package/README.zh.md
CHANGED
|
@@ -162,7 +162,7 @@ Session 携带策略的 settings 控制实例会公开子级 LLM 选择字段与
|
|
|
162
162
|
##### 工具指导 section
|
|
163
163
|
|
|
164
164
|
```markdown
|
|
165
|
-
|
|
165
|
+
Start independent subagent delegations together in one assistant message and continue useful work while they run.
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
#### Token 影响
|
package/lib/index.js
CHANGED
|
@@ -347,7 +347,7 @@ function providerWording(inheritsConversation) {
|
|
|
347
347
|
promptDescription: "The task for the subagent. It already sees this conversation's completed turns, so build on them freely and state only what is new."
|
|
348
348
|
};
|
|
349
349
|
return {
|
|
350
|
-
description: "Delegate a self-contained task to a subagent (a separate agent that works in its own context) to offload focused, independent work — research, a scoped implementation, an analysis — so it does not consume this conversation's context. The subagent returns its result, not its intermediate steps.
|
|
350
|
+
description: "Delegate a self-contained task to a subagent (a separate agent that works in its own context) to offload focused, independent work — research, a scoped implementation, an analysis — so it does not consume this conversation's context. The subagent returns its result, not its intermediate steps.",
|
|
351
351
|
promptDescription: "The complete, self-contained task for the subagent. It does not share this conversation's context, so include everything it needs."
|
|
352
352
|
};
|
|
353
353
|
}
|
|
@@ -397,7 +397,7 @@ function apply(ctx, config, session) {
|
|
|
397
397
|
subagentProvider,
|
|
398
398
|
disposeTool: runtimeCtx.tools.register(defineTool({
|
|
399
399
|
name: toolName,
|
|
400
|
-
description: wording.description + (backgroundEnabled ? continuable ? "
|
|
400
|
+
description: wording.description + (backgroundEnabled ? continuable ? " It runs in the background by default and returns a subagent id you can continue with `send_message`; you are notified when the run settles." : " This call waits for the result by default." : " This call waits for the subagent and returns its result.") + choiceDescription,
|
|
401
401
|
parameters: {
|
|
402
402
|
description: {
|
|
403
403
|
type: "string",
|
|
@@ -425,7 +425,7 @@ function apply(ctx, config, session) {
|
|
|
425
425
|
} : {},
|
|
426
426
|
...backgroundEnabled ? { run_in_background: {
|
|
427
427
|
type: "boolean",
|
|
428
|
-
description: continuable ? "
|
|
428
|
+
description: continuable ? "Defaults to true. Set false only when your next action depends on the result." : "Run as a background job and return its id (collect with job_output, stop with job_kill). Defaults to false."
|
|
429
429
|
} } : {}
|
|
430
430
|
},
|
|
431
431
|
output: {
|
|
@@ -576,7 +576,7 @@ function apply(ctx, config, session) {
|
|
|
576
576
|
if (backgroundEnabled && continuable) runtimeCtx.systemPrompt.section({
|
|
577
577
|
name: `tool:${toolName}`,
|
|
578
578
|
order: runtimeCtx.systemPrompt.getSectionOrder("TOOL_SUBAGENT"),
|
|
579
|
-
text: (context) => mounted === void 0 || runtimeCtx.tools.get(toolName, context.scope) === void 0 ? "" : `
|
|
579
|
+
text: (context) => mounted === void 0 || runtimeCtx.tools.get(toolName, context.scope) === void 0 ? "" : `Start independent ${toolName} delegations together in one assistant message and continue useful work while they run.`
|
|
580
580
|
});
|
|
581
581
|
};
|
|
582
582
|
if (config.modelSelectionSettings !== true) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-tool-subagent",
|
|
3
3
|
"description": "Model-facing subagent delegation tool over the ctx.subagents seam",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
],
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@deepseek-ai/dsh-invariants": "0.
|
|
41
|
-
"@deepseek-ai/dsh-llm": "0.
|
|
42
|
-
"@deepseek-ai/dsh-agent": "0.
|
|
43
|
-
"@deepseek-ai/dsh-session": "0.
|
|
44
|
-
"@deepseek-ai/dsh-session-projection": "0.
|
|
45
|
-
"@deepseek-ai/dsh-
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-system-prompt": "0.
|
|
48
|
-
"@deepseek-ai/dsh-jobs": "0.
|
|
49
|
-
"@deepseek-ai/dsh-tools": "0.
|
|
40
|
+
"@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
|
|
41
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.1",
|
|
42
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.1",
|
|
43
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.1",
|
|
44
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.1",
|
|
45
|
+
"@deepseek-ai/dsh-subagent": "0.2.0-rc.1",
|
|
46
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.1",
|
|
47
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.1",
|
|
48
|
+
"@deepseek-ai/dsh-jobs": "0.2.0-rc.1",
|
|
49
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.1",
|
|
50
50
|
"@deepseek-ai/cordis": "~4.0.4"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
@@ -54,22 +54,22 @@
|
|
|
54
54
|
"@deepseek-ai/schemastery": "~3.18.4"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
|
|
57
59
|
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
|
|
58
|
-
"@deepseek-ai/dsh-
|
|
59
|
-
"@deepseek-ai/dsh-
|
|
60
|
-
"@deepseek-ai/dsh-
|
|
61
|
-
"@deepseek-ai/dsh-session": "0.
|
|
62
|
-
"@deepseek-ai/dsh-session-persistence": "0.
|
|
63
|
-
"@deepseek-ai/dsh-
|
|
64
|
-
"@deepseek-ai/dsh-
|
|
65
|
-
"@deepseek-ai/dsh-
|
|
66
|
-
"@deepseek-ai/dsh-
|
|
67
|
-
"@deepseek-ai/dsh-jobs": "0.
|
|
68
|
-
"@deepseek-ai/dsh-jobs
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
70
|
-
"@deepseek-ai/
|
|
71
|
-
"@deepseek-ai/dsh-session-projection": "0.
|
|
72
|
-
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.1",
|
|
73
|
-
"@deepseek-ai/cordis": "~4.0.4"
|
|
60
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.0-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-subagent": "0.2.0-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.0-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-jobs": "0.2.0-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-jobs-local": "0.2.0-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.0-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.1",
|
|
72
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
73
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.1"
|
|
74
74
|
}
|
|
75
75
|
}
|