@xmodelin/dsh-collab-sessions 0.0.0-stage → 0.0.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.
@@ -0,0 +1,195 @@
1
+ # Collaboration sessions: a left-sidebar entry, a dedicated Agent preset, and
2
+ # the Host plugin that prepares each collaboration session's working directory.
3
+ - insert:
4
+ - id: collab-auth-api
5
+ name: '@xmodelin/dsh-collab-auth-api'
6
+ config: {}
7
+
8
+ - id: dsh-collab-sessions
9
+ name: '@xmodelin/dsh-collab-sessions'
10
+ config:
11
+ executionTimeoutMs: 86400000
12
+ perSessionSandbox: true
13
+ lockTimeoutMs: 1000
14
+ lockStaleMs: 10000
15
+
16
+ - id: preset-collab
17
+ name: '@deepseek-ai/dsh-agent-preset'
18
+ config:
19
+ id: collab
20
+ name: 协同会话
21
+ description: >-
22
+ 拥有独立的 `.dsh-collab` 工作目录、共享的 `comm/` 目录和仅本会话可访问的
23
+ `private/` 目录,并提供经过身份验证的会话间通信工具。
24
+ order: 10
25
+ plugins:
26
+ - id: persona
27
+ name: '@deepseek-ai/dsh-persona'
28
+ config:
29
+ prefix: You are a coding agent powered by the {{model}} model, running as a collaboration session.
30
+ - id: agent-instructions
31
+ name: '@deepseek-ai/dsh-agent-instructions'
32
+ config:
33
+ maxBytes: 65536
34
+ - id: time-context
35
+ name: '@deepseek-ai/dsh-time-context'
36
+ - id: tool-bash
37
+ name: '@deepseek-ai/dsh-tool-bash'
38
+ disabled: !!js process.platform === 'win32'
39
+ - id: tool-pwsh
40
+ name: '@deepseek-ai/dsh-tool-pwsh'
41
+ disabled: !!js process.platform !== 'win32'
42
+ - id: tool-fs
43
+ name: '@deepseek-ai/dsh-tool-fs'
44
+ config:
45
+ applyPatch: false
46
+ - id: tool-fs-search
47
+ name: '@deepseek-ai/dsh-tool-fs-search'
48
+ config:
49
+ sampleOverCapGlobResults: false
50
+ - id: tool-jobs
51
+ name: '@deepseek-ai/dsh-tool-jobs'
52
+ - id: tool-schedule
53
+ name: '@deepseek-ai/dsh-tool-schedule'
54
+ - id: skill-filesystem
55
+ name: '@deepseek-ai/dsh-skill-filesystem'
56
+ config:
57
+ customSkillDirs:
58
+ - !!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')
59
+ - id: tool-skill
60
+ name: '@deepseek-ai/dsh-tool-skill'
61
+ - id: command-goal
62
+ name: '@deepseek-ai/dsh-command-goal'
63
+ - id: tool-goal
64
+ name: '@deepseek-ai/dsh-tool-goal'
65
+ - id: planning
66
+ name: cordis:group
67
+ group: true
68
+ isolate:
69
+ planMode: true
70
+ config:
71
+ - id: plan-mode
72
+ name: '@deepseek-ai/dsh-plan-mode'
73
+ config:
74
+ section: |
75
+ 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.
76
+
77
+ 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.
78
+
79
+ 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.
80
+
81
+ 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.
82
+
83
+ 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.
84
+
85
+ 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.
86
+ - id: compaction
87
+ name: cordis:group
88
+ group: true
89
+ isolate:
90
+ compaction: true
91
+ toolResultPruner: true
92
+ config:
93
+ - id: compaction-basic
94
+ name: '@deepseek-ai/dsh-compaction-basic'
95
+ - id: command-compact
96
+ name: '@deepseek-ai/dsh-command-compact'
97
+ - id: tool-result-pruner
98
+ name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
99
+ config:
100
+ thresholdChars: 8192
101
+ headChars: 4096
102
+ tailChars: 1024
103
+ - id: delegation
104
+ name: cordis:group
105
+ group: true
106
+ isolate:
107
+ workflowEngine: true
108
+ config:
109
+ - id: tool-subagent-control
110
+ name: '@deepseek-ai/dsh-tool-subagent-control'
111
+ config:
112
+ interrupt: false
113
+ - id: tool-subagent
114
+ name: '@deepseek-ai/dsh-tool-subagent'
115
+ config:
116
+ provider: spawn
117
+ toolName: subagent
118
+ modelSelection: true
119
+ modelDiscovery: true
120
+ - id: tool-subagent-fork
121
+ name: '@deepseek-ai/dsh-tool-subagent'
122
+ config:
123
+ provider: fork
124
+ toolName: subagent_fork
125
+ - id: workflow-ptc
126
+ name: '@deepseek-ai/dsh-workflow-ptc'
127
+ config:
128
+ provider: spawn
129
+ - id: tool-workflow
130
+ name: '@deepseek-ai/dsh-tool-workflow'
131
+ - id: tool-ask-user
132
+ name: '@deepseek-ai/dsh-tool-ask-user'
133
+ - id: tool-todo
134
+ name: '@deepseek-ai/dsh-tool-todo'
135
+ config:
136
+ allowParallelInProgress: true
137
+ - id: tool-web
138
+ name: '@deepseek-ai/dsh-tool-web'
139
+ config:
140
+ fetch: true
141
+ searchTimeoutMs: 60000
142
+ - id: present
143
+ name: '@deepseek-ai/dsh-tool-present'
144
+ - id: tool-office
145
+ name: '@deepseek-ai/dsh-tool-office'
146
+ - id: tool-plugin-manager
147
+ name: '@deepseek-ai/dsh-plugin-manager/tools'
148
+ disabled: !!js "!ctx.get('profileContext')"
149
+ - id: tool-plugin-market
150
+ name: '@deepseek-ai/dsh-plugin-market/tools'
151
+ disabled: true
152
+
153
+ - id: preset-supervisor
154
+ name: '@deepseek-ai/dsh-agent-preset'
155
+ config:
156
+ id: supervisor
157
+ name: 超级会话
158
+ description: >-
159
+ 负责拆解需求、把子任务分派给已登记的功能会话、核验结果并完成交付;
160
+ 不提供任何实现类工具。
161
+ order: 20
162
+ plugins:
163
+ - id: persona
164
+ name: '@deepseek-ai/dsh-persona'
165
+ config:
166
+ prefix: >-
167
+ You are a supervisor agent powered by the {{model}} model.
168
+ You coordinate functional sessions; you never implement tasks yourself.
169
+ - id: agent-instructions
170
+ name: '@deepseek-ai/dsh-agent-instructions'
171
+ config:
172
+ maxBytes: 65536
173
+ - id: time-context
174
+ name: '@deepseek-ai/dsh-time-context'
175
+ - id: command-goal
176
+ name: '@deepseek-ai/dsh-command-goal'
177
+ - id: compaction
178
+ name: cordis:group
179
+ group: true
180
+ isolate:
181
+ compaction: true
182
+ toolResultPruner: true
183
+ config:
184
+ - id: compaction-basic
185
+ name: '@deepseek-ai/dsh-compaction-basic'
186
+ - id: command-compact
187
+ name: '@deepseek-ai/dsh-command-compact'
188
+ - id: tool-result-pruner
189
+ name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
190
+ config:
191
+ thresholdChars: 8192
192
+ headChars: 4096
193
+ tailChars: 1024
194
+ - id: tool-ask-user
195
+ name: '@deepseek-ai/dsh-tool-ask-user'
package/icon.svg ADDED
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none">
2
+ <path d="M5.5 10.2A3.2 3.2 0 0 1 8.7 7h8.6a3.2 3.2 0 0 1 3.2 3.2v5.6a3.2 3.2 0 0 1-3.2 3.2h-4.9l-4 3.1a1 1 0 0 1-1.6-.8v-2.4a3.2 3.2 0 0 1-1.9-2.9z" fill="#2F7DD1"/>
3
+ <path d="M14.5 21.6a3.2 3.2 0 0 1 3.2-3.2h7.6a3.2 3.2 0 0 1 3.2 3.2v4.6a3.2 3.2 0 0 1-3.2 3.2h-1v2.6a1 1 0 0 1-1.6.8l-3.3-3.4h-1.7a3.2 3.2 0 0 1-3.2-3.2z" fill="#1F5FA8" opacity=".62"/>
4
+ <circle cx="11.2" cy="13.1" r="1.3" fill="#fff"/>
5
+ <circle cx="15.9" cy="13.1" r="1.3" fill="#fff"/>
6
+ <circle cx="23.2" cy="23.1" r="1.2" fill="#fff"/>
7
+ </svg>