dsh-group-mode 0.0.0-stage → 0.3.4
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/CHANGELOG.md +37 -0
- package/LICENSE +18 -0
- package/README.en.md +56 -0
- package/README.md +132 -2
- package/channel.js +961 -0
- package/client.js +5940 -0
- package/cordis.patch.yml +149 -0
- package/docs/preview.png +0 -0
- package/icon.svg +11 -0
- package/index.js +3247 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +68 -3
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
- insert:
|
|
2
|
+
- id: group-mode
|
|
3
|
+
name: 'dsh-group-mode'
|
|
4
|
+
- id: preset-group-channel
|
|
5
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
6
|
+
config:
|
|
7
|
+
id: group-channel
|
|
8
|
+
name: '频道记录'
|
|
9
|
+
description: '频道插件使用的会话,用于接收用户在频道界面的操作。'
|
|
10
|
+
order: 999
|
|
11
|
+
plugins: []
|
|
12
|
+
- id: preset-group-member
|
|
13
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
14
|
+
config:
|
|
15
|
+
id: group-member
|
|
16
|
+
name: '频道临时成员'
|
|
17
|
+
description: '在新建小组时命名、单独选择模型的成员。使用 DSH 标准会话工具,遵循成员会话的权限设置。'
|
|
18
|
+
order: 998
|
|
19
|
+
# Match the shipped standard preset for the DSH version pinned in engines.
|
|
20
|
+
plugins:
|
|
21
|
+
- id: persona
|
|
22
|
+
name: '@deepseek-ai/dsh-persona'
|
|
23
|
+
config:
|
|
24
|
+
prefix: 你在自己的会话里工作。使用当前身份中的频道名和成员名区分任务来源。
|
|
25
|
+
- id: agent-instructions
|
|
26
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
27
|
+
config:
|
|
28
|
+
maxBytes: 65536
|
|
29
|
+
- id: time-context
|
|
30
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
31
|
+
- id: tool-bash
|
|
32
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
33
|
+
disabled: !!js process.platform === 'win32'
|
|
34
|
+
- id: tool-pwsh
|
|
35
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
36
|
+
disabled: !!js process.platform !== 'win32'
|
|
37
|
+
- id: tool-fs
|
|
38
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
39
|
+
config:
|
|
40
|
+
# Set false to drop the apply_patch tool beside edit.
|
|
41
|
+
applyPatch: false
|
|
42
|
+
- id: tool-fs-search
|
|
43
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
44
|
+
config:
|
|
45
|
+
sampleOverCapGlobResults: false
|
|
46
|
+
- id: tool-jobs
|
|
47
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
48
|
+
- id: tool-schedule
|
|
49
|
+
name: '@deepseek-ai/dsh-tool-schedule'
|
|
50
|
+
- id: skill-filesystem
|
|
51
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
52
|
+
config:
|
|
53
|
+
customSkillDirs:
|
|
54
|
+
- !!js process.getBuiltinModule('node:path').join(process.getBuiltinModule('node:path').dirname(process.getBuiltinModule('node:module').createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json')), 'skills')
|
|
55
|
+
- id: tool-skill
|
|
56
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
57
|
+
- id: command-goal
|
|
58
|
+
name: '@deepseek-ai/dsh-command-goal'
|
|
59
|
+
- id: tool-goal
|
|
60
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
61
|
+
- id: planning
|
|
62
|
+
name: cordis:group
|
|
63
|
+
group: true
|
|
64
|
+
isolate:
|
|
65
|
+
planMode: true
|
|
66
|
+
config:
|
|
67
|
+
- id: plan-mode
|
|
68
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
69
|
+
config:
|
|
70
|
+
section: |
|
|
71
|
+
You are in plan mode. Stay in plan mode until the user approves your plan through exit_plan_mode or switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
|
|
72
|
+
|
|
73
|
+
Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
|
|
74
|
+
|
|
75
|
+
The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
|
|
76
|
+
|
|
77
|
+
Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
|
|
78
|
+
|
|
79
|
+
Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
|
|
80
|
+
|
|
81
|
+
When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
|
|
82
|
+
- id: compaction
|
|
83
|
+
name: cordis:group
|
|
84
|
+
group: true
|
|
85
|
+
isolate:
|
|
86
|
+
compaction: true
|
|
87
|
+
toolResultPruner: true
|
|
88
|
+
config:
|
|
89
|
+
- id: compaction-basic
|
|
90
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
91
|
+
- id: command-compact
|
|
92
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
93
|
+
- id: tool-result-pruner
|
|
94
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
95
|
+
config:
|
|
96
|
+
thresholdChars: 8192
|
|
97
|
+
headChars: 4096
|
|
98
|
+
tailChars: 1024
|
|
99
|
+
- id: delegation
|
|
100
|
+
name: cordis:group
|
|
101
|
+
group: true
|
|
102
|
+
isolate:
|
|
103
|
+
workflowEngine: true
|
|
104
|
+
config:
|
|
105
|
+
- id: tool-subagent-control
|
|
106
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
107
|
+
config:
|
|
108
|
+
interrupt: false
|
|
109
|
+
- id: tool-subagent
|
|
110
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
111
|
+
config:
|
|
112
|
+
provider: spawn
|
|
113
|
+
toolName: subagent
|
|
114
|
+
modelSelection: true
|
|
115
|
+
modelDiscovery: true
|
|
116
|
+
- id: tool-subagent-fork
|
|
117
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
118
|
+
config:
|
|
119
|
+
provider: fork
|
|
120
|
+
toolName: subagent_fork
|
|
121
|
+
- id: workflow-ptc
|
|
122
|
+
name: '@deepseek-ai/dsh-workflow-ptc'
|
|
123
|
+
config:
|
|
124
|
+
provider: spawn
|
|
125
|
+
- id: tool-workflow
|
|
126
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
127
|
+
- id: tool-ask-user
|
|
128
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
129
|
+
- id: tool-todo
|
|
130
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
131
|
+
config:
|
|
132
|
+
allowParallelInProgress: true
|
|
133
|
+
- id: tool-web
|
|
134
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
135
|
+
config:
|
|
136
|
+
fetch: true
|
|
137
|
+
searchTimeoutMs: 60000
|
|
138
|
+
- id: present
|
|
139
|
+
name: '@deepseek-ai/dsh-tool-present'
|
|
140
|
+
- id: tool-office
|
|
141
|
+
name: '@deepseek-ai/dsh-tool-office'
|
|
142
|
+
- id: tool-plugin-manager
|
|
143
|
+
name: '@deepseek-ai/dsh-plugin-manager/tools'
|
|
144
|
+
disabled: !!js "!ctx.get('profileContext')"
|
|
145
|
+
- id: tool-plugin-market
|
|
146
|
+
name: '@deepseek-ai/dsh-plugin-market/tools'
|
|
147
|
+
disabled: true
|
|
148
|
+
- id: ui-sidebar-browser
|
|
149
|
+
disabled: false
|
package/docs/preview.png
ADDED
|
Binary file
|
package/icon.svg
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36">
|
|
2
|
+
<g stroke="#247bbf" stroke-width="1.6" stroke-linecap="round">
|
|
3
|
+
<path d="m18 13.5-8 9m8-9V22m0-8.5 8 9"/>
|
|
4
|
+
</g>
|
|
5
|
+
<circle cx="18" cy="9.5" r="5.5" fill="#247bbf"/>
|
|
6
|
+
<g fill="#7fb3d8">
|
|
7
|
+
<circle cx="9.5" cy="26.5" r="4.2"/>
|
|
8
|
+
<circle cx="18" cy="26.8" r="4.2"/>
|
|
9
|
+
<circle cx="26.5" cy="26.5" r="4.2"/>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|