dsh-gitbash-shell 0.31.1 → 0.32.0

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.
@@ -1,256 +0,0 @@
1
- # ERA: dsh <= 0.1.1 text (pre-rename built-in rows). The dsh >= 0.1.2 era text
2
- # lives in agent.cordis.ptc.yml; the plugin probes the roster at materialization
3
- # and writes the picked text as the preset's own agent.cordis.yml.
4
- # The `standard` agent preset: the full coding agent, mounted once per process.
5
- #
6
- # This file is an AGENT-PLANE composition. The roster mounts it ONCE under a
7
- # standing scope; every session naming it joins by scope parentage, so the
8
- # tools and prompt sections registered here cover each joined agent while a
9
- # session's own state stays keyed per Session/Agent inside the plugins. The
10
- # host composition (`base.cordis.yml` + `web.cordis.yml`) keeps everything a
11
- # preset must not own: the registries themselves, the sandbox and approval
12
- # stack, persistence, and the model route.
13
- #
14
- # A service row here MUST sit inside a group carrying an `isolate` realm.
15
- # Without one it publishes into the root realm, where it is process-global —
16
- # another preset publishing the same name collides, and a host reader would
17
- # resolve one preset's instance for every session; `dsh-agent-presets` rejects
18
- # that at mount. `true` means an entry-local realm: this standing mount's own
19
- # private instance, apart from every other preset's. (A shared label does NOT
20
- # pool instances — `provide()` throws on the second registration under the
21
- # same realm symbol; labels join REALMS, and are not what this file needs.)
22
-
23
- # ── identity ────────────────────────────────────────────────────────────────
24
-
25
- # The preset's own persona, shadowing the deployment default for this agent.
26
- # `{{model}}` and `{{cwd}}` resolve from the agent's own route and workspace.
27
- - id: persona
28
- name: '@deepseek-ai/dsh-persona'
29
- config:
30
- text: >-
31
- You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
32
-
33
- - id: agent-instructions
34
- name: '@deepseek-ai/dsh-agent-instructions'
35
- config:
36
- maxBytes: 65536
37
-
38
- # ── shell ───────────────────────────────────────────────────────────────────
39
-
40
- # `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
41
- # publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
42
- # the criterion for host-plane ownership — injection resolves before any session
43
- # exists, so there is no agent to key by. Behind a preset realm those variables
44
- # never reached the model's shell at all. Both shell tools consume the host
45
- # registry from here; the host executor is the Git Bash provider (`dsh-gitbash-shell`)
46
- # host-plane too.
47
- - id: tool-bash
48
- name: '@deepseek-ai/dsh-tool-bash'
49
- # Git Bash on Windows: the host executor is dsh-gitbash-shell (see $DSH_HOME/cordis.patch.yml).
50
- disabled: false
51
-
52
- - id: tool-pwsh
53
- name: '@deepseek-ai/dsh-tool-pwsh'
54
- disabled: true
55
-
56
- # ── filesystem ──────────────────────────────────────────────────────────────
57
-
58
- # Both register into the host `tools` registry and provide nothing, so
59
- # they need no realm. The `fs` service and its policy stay in the host.
60
- - id: tool-fs
61
- name: '@deepseek-ai/dsh-tool-fs'
62
-
63
- - id: tool-fs-search
64
- name: '@deepseek-ai/dsh-tool-fs-search'
65
- config:
66
- sampleOverCapGlobResults: false
67
-
68
- # ── background jobs ────────────────────────────────────────────────────────
69
-
70
- # Only the model-facing controls. The task REGISTRY stays on the host plane:
71
- # its producers sit outside any realm this file could put it in — `tool-bash`
72
- # above resolves it with `ctx.get`, and an entry-local realm here is invisible
73
- # to every sibling row, so `run_in_background` would answer "background jobs
74
- # unavailable" while these controls sat in the catalog. The registry is keyed by
75
- # owning agent anyway, so one host instance serves every session. What a preset
76
- # chooses is whether its agent can collect and stop background work at all.
77
- - id: tool-jobs
78
- name: '@deepseek-ai/dsh-tool-jobs'
79
-
80
- # ── skills ──────────────────────────────────────────────────────────────────
81
-
82
- # The skill REGISTRY lives in the host composition and is layered per scope:
83
- # these rows register into THIS preset's layer of it, so they need no realm.
84
- # `skill-filesystem` contributes local-root discovery for agents on this preset, and
85
- # `tool-skill` gives them the catalog and loader; the merged catalog also
86
- # carries whatever the deployment registered globally (repository plugins).
87
- - id: skill-filesystem
88
- name: '@deepseek-ai/dsh-skill-filesystem'
89
-
90
- - id: tool-skill
91
- name: '@deepseek-ai/dsh-tool-skill'
92
-
93
- # ── goals ───────────────────────────────────────────────────────────────────
94
-
95
- # Only the model-facing tool. The goal SERVICE, its session driver, and the
96
- # `/goal` command stay on the host plane: the Gateway serves the goal domain as
97
- # Remote endpoints whose receiver comes from a generated descriptor, so it
98
- # resolves `goals` on the host and an entry-local realm here would hide it. The
99
- # registry is keyed by session anyway, so one host instance serves every
100
- # session. What a preset chooses is whether its agent can call the goal tool.
101
- - id: tool-goal
102
- name: '@deepseek-ai/dsh-tool-goal'
103
-
104
- # ── plan mode ───────────────────────────────────────────────────────────────
105
-
106
- # Plan state is per-agent by nature, so an entry-local realm is not a
107
- # workaround here — it is the correct lifetime.
108
- - id: planning
109
- name: cordis:group
110
- group: true
111
- isolate:
112
- planMode: true
113
- config:
114
- - id: plan-mode
115
- name: '@deepseek-ai/dsh-plan-mode'
116
- config:
117
- section: |
118
- You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user 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.
119
-
120
- 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.
121
-
122
- 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.
123
-
124
- 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.
125
-
126
- 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.
127
-
128
- 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.
129
-
130
- # ── compaction ──────────────────────────────────────────────────────────────
131
-
132
- # `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
133
- # share this realm rather than sit outside it.
134
- #
135
- # `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
136
- # plane, and the rows here resolve that one instance. It takes no configuration,
137
- # keys every fold by Session, and owns the context-meter projection units the
138
- # browser reads for every session — behind a realm those units would come and go
139
- # with whichever presets happen to be mounted. What a preset chooses is whether
140
- # its agent compacts at all, which is `compaction-basic` below.
141
- - id: compaction
142
- name: cordis:group
143
- group: true
144
- isolate:
145
- compaction: true
146
- toolResultPruner: true
147
- config:
148
- - id: compaction-basic
149
- name: '@deepseek-ai/dsh-compaction-basic'
150
-
151
- - id: command-compact
152
- name: '@deepseek-ai/dsh-command-compact'
153
-
154
- - id: tool-result-pruner
155
- name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
156
- config:
157
- thresholdChars: 8192
158
- headChars: 4096
159
- tailChars: 1024
160
-
161
- # ── delegation and workflows ────────────────────────────────────────────────
162
-
163
- # The `subagents` registry and its spawn/fork backends live in the HOST
164
- # composition: the registry is a process singleton whose cross-session queries
165
- # the api-proxy serves to the browser, and a provider name may only be
166
- # registered once. This preset contributes the delegation TOOLS, which resolve
167
- # that host registry.
168
- #
169
- # `workflows` is different — nothing outside an agent reads it — so every row
170
- # that reaches it shares one entry-local realm here, and a consumer left
171
- # outside would resolve a host registry this preset does not populate.
172
- #
173
- # `tool-subagent-report` is host-plane for the same reason as the registry,
174
- # not because a preset may not want it: it registers a CONTINUABLE SETUP on
175
- # that singleton rather than a tool this agent calls, and the setup list is
176
- # not scope-aware — one copy per mounted preset means every child gets
177
- # `report` registered once per live session, which throws on the second.
178
- - id: delegation
179
- name: cordis:group
180
- group: true
181
- isolate:
182
- workflowEngine: true
183
- config:
184
- - id: tool-subagent-control
185
- name: '@deepseek-ai/dsh-tool-subagent-control'
186
-
187
- - id: tool-subagent-list-agents
188
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
189
-
190
- - id: tool-subagent
191
- name: '@deepseek-ai/dsh-tool-subagent'
192
- config:
193
- provider: spawn
194
- toolName: subagent
195
- backgroundMode: continuable
196
-
197
- - id: tool-subagent-fork
198
- name: '@deepseek-ai/dsh-tool-subagent'
199
- config:
200
- provider: fork
201
- toolName: subagent_fork
202
- backgroundMode: continuable
203
-
204
- # Production dsh does not install these optional providers. Install the
205
- # matching Bundle in this Profile and restart the Host, then copy this
206
- # preset and remove `disabled` from the matching tool row. Host availability
207
- # alone grants no tool.
208
- - id: tool-subagent-codex
209
- name: '@deepseek-ai/dsh-tool-subagent'
210
- disabled: true
211
- config:
212
- provider: codex
213
- toolName: subagent_codex
214
- backgroundMode: one-shot
215
- maxDepth: provider-managed
216
-
217
- - id: tool-subagent-claude-code
218
- name: '@deepseek-ai/dsh-tool-subagent'
219
- disabled: true
220
- config:
221
- provider: claude-code
222
- toolName: subagent_claude_code
223
- backgroundMode: one-shot
224
- maxDepth: provider-managed
225
-
226
- - id: workflow-worker-thread
227
- name: '@deepseek-ai/dsh-workflow-worker-thread'
228
- config:
229
- provider: spawn
230
-
231
- - id: tool-workflow
232
- name: '@deepseek-ai/dsh-tool-workflow'
233
-
234
- - id: tool-ralph
235
- name: '@deepseek-ai/dsh-tool-ralph'
236
- config:
237
- subagentProvider: spawn
238
- maxRounds: 64
239
-
240
- # ── remaining model-facing rows ─────────────────────────────────────────────
241
-
242
- - id: tool-ask-user
243
- name: '@deepseek-ai/dsh-tool-ask-user'
244
-
245
- - id: tool-todo
246
- name: '@deepseek-ai/dsh-tool-todo'
247
- config:
248
- allowParallelInProgress: true
249
-
250
- # The `web` service and its search provider stay in the host composition; only
251
- # the model-facing tool is per-session.
252
- - id: tool-web
253
- name: '@deepseek-ai/dsh-tool-web'
254
- config:
255
- fetch: false
256
- searchTimeoutMs: 60000
@@ -1,3 +0,0 @@
1
- name: 标准模式 · Git Bash
2
- description: 功能完整的编码 Agent,支持文件编辑、Shell、文件与网页检索、Skills、计划、目标、子代理和工作流。(Shell 使用 Git Bash)
3
- order: 1