dsh-plugin-prompt-tool 2.0.1 → 2.1.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.
- package/README.md +6 -6
- package/engine/actions/catalog.mjs +1 -1
- package/engine/actions/inbox-prepend.mjs +1 -2
- package/engine/actions/shared.mjs +1 -2
- package/engine/branch.mjs +1 -1
- package/engine/compositions/source/local/instruction-hint.yml +2 -3
- package/engine/conditions/composite.mjs +1 -1
- package/engine/conditions/count.mjs +1 -2
- package/engine/conditions/phase.mjs +1 -2
- package/engine/conditions/subject.mjs +1 -1
- package/engine/layers.mjs +3 -4
- package/engine/rule-spec.mjs +1 -1
- package/engine/shared.mjs +1 -13
- package/engine/subagent-tool-policy.mjs +2 -2
- package/engine/tool-config-engine.mjs +1 -1
- package/engine/trigger-spec.mjs +3 -3
- package/engine/trigger.mjs +2 -2
- package/lib/index.d.mts +1380 -1
- package/lib/index.mjs +33 -3
- package/lib/migrate-rules.mjs +572 -1
- package/lib/{module-package-CHPFweqK.mjs → module-package-DqJZaE71.mjs} +1 -1
- package/lib/{module-package-Cnd1_mwx.mjs → module-package-q2gDRu9H.mjs} +19 -22
- package/lib/{rules-migration-DJ6vASB5.mjs → rule-builder-DMrJten6.mjs} +28 -595
- package/package.json +4 -2
- package/skills/dsh-module/SKILL.md +199 -0
- package/skills/dsh-module/reference.md +158 -0
- package/templates/61-deny-tools-presentation.yml +27 -0
- package/templates/62-guard-deny-tools.yml +20 -0
- package/templates/63-append-context.yml +22 -0
- package/templates/64-pre-step-filter.yml +23 -0
- package/templates/67-inbox-prepend.yml +22 -0
- package/templates/80-tool-surface.yml +6 -6
- package/engine/compositions/library/agent-instructions.yml +0 -9
- package/engine/compositions/library/command-goal.yml +0 -7
- package/engine/compositions/library/compaction.yml +0 -22
- package/engine/compositions/library/delegation-ptc.yml +0 -58
- package/engine/compositions/library/delegation.yml +0 -56
- package/engine/compositions/library/persistent-shell.yml +0 -50
- package/engine/compositions/library/planning.yml +0 -26
- package/engine/compositions/library/skill-filesystem-cordis.yml +0 -10
- package/engine/compositions/library/skill-filesystem.yml +0 -7
- package/engine/compositions/library/tool-ask-user.yml +0 -7
- package/engine/compositions/library/tool-bash.yml +0 -8
- package/engine/compositions/library/tool-cordis.yml +0 -7
- package/engine/compositions/library/tool-fs-search.yml +0 -9
- package/engine/compositions/library/tool-fs.yml +0 -7
- package/engine/compositions/library/tool-goal.yml +0 -7
- package/engine/compositions/library/tool-jobs.yml +0 -7
- package/engine/compositions/library/tool-plugin-manager-disabled.yml +0 -8
- package/engine/compositions/library/tool-plugin-manager.yml +0 -8
- package/engine/compositions/library/tool-present.yml +0 -7
- package/engine/compositions/library/tool-presentation.yml +0 -9
- package/engine/compositions/library/tool-pwsh.yml +0 -8
- package/engine/compositions/library/tool-skill.yml +0 -7
- package/engine/compositions/library/tool-todo.yml +0 -9
- package/engine/compositions/library/tool-web.yml +0 -10
- package/engine/compositions/source/local/declared-triggers.yml +0 -12
- package/lib/paths-CyP0IkaM.d.mts +0 -1390
- package/lib/preset-transfer.d.mts +0 -2
- package/lib/preset-transfer.mjs +0 -3
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# module: delegation
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/standard.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: delegation
|
|
7
|
-
name: cordis:group
|
|
8
|
-
group: true
|
|
9
|
-
isolate:
|
|
10
|
-
workflowEngine: true
|
|
11
|
-
config:
|
|
12
|
-
- id: tool-subagent-control
|
|
13
|
-
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
14
|
-
- id: tool-subagent-list-agents
|
|
15
|
-
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
|
|
16
|
-
- id: tool-subagent
|
|
17
|
-
name: '@deepseek-ai/dsh-tool-subagent'
|
|
18
|
-
config:
|
|
19
|
-
provider: spawn
|
|
20
|
-
toolName: subagent
|
|
21
|
-
modelSelectionSettings: true
|
|
22
|
-
backgroundMode: continuable
|
|
23
|
-
- id: tool-subagent-fork
|
|
24
|
-
name: '@deepseek-ai/dsh-tool-subagent'
|
|
25
|
-
config:
|
|
26
|
-
provider: fork
|
|
27
|
-
toolName: subagent_fork
|
|
28
|
-
backgroundMode: continuable
|
|
29
|
-
- id: tool-subagent-codex
|
|
30
|
-
name: '@deepseek-ai/dsh-tool-subagent'
|
|
31
|
-
disabled: true
|
|
32
|
-
config:
|
|
33
|
-
provider: codex
|
|
34
|
-
toolName: subagent_codex
|
|
35
|
-
backgroundMode: one-shot
|
|
36
|
-
maxDepth: provider-managed
|
|
37
|
-
- id: tool-subagent-claude-code
|
|
38
|
-
name: '@deepseek-ai/dsh-tool-subagent'
|
|
39
|
-
disabled: true
|
|
40
|
-
config:
|
|
41
|
-
provider: claude-code
|
|
42
|
-
toolName: subagent_claude_code
|
|
43
|
-
backgroundMode: one-shot
|
|
44
|
-
maxDepth: provider-managed
|
|
45
|
-
- id: workflow-ptc
|
|
46
|
-
name: '@deepseek-ai/dsh-workflow-ptc'
|
|
47
|
-
config:
|
|
48
|
-
provider: spawn
|
|
49
|
-
- id: tool-workflow
|
|
50
|
-
name: '@deepseek-ai/dsh-tool-workflow'
|
|
51
|
-
- id: tool-ralph
|
|
52
|
-
name: '@deepseek-ai/dsh-tool-ralph'
|
|
53
|
-
disabled: true
|
|
54
|
-
config:
|
|
55
|
-
subagentProvider: spawn
|
|
56
|
-
maxRounds: 64
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# module: persistent-shell
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/minimal.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: persistent-shell
|
|
7
|
-
name: cordis:group
|
|
8
|
-
group: true
|
|
9
|
-
isolate:
|
|
10
|
-
terminals: true
|
|
11
|
-
config:
|
|
12
|
-
- id: pty
|
|
13
|
-
name: '@deepseek-ai/dsh-terminal'
|
|
14
|
-
- id: terminal-bash
|
|
15
|
-
name: '@deepseek-ai/dsh-terminal-bash'
|
|
16
|
-
disabled: !!js process.platform === 'win32'
|
|
17
|
-
config:
|
|
18
|
-
timeoutMs: 300000
|
|
19
|
-
- id: persistent-bash
|
|
20
|
-
name: '@deepseek-ai/dsh-tool-bash-persistent'
|
|
21
|
-
disabled: !!js process.platform === 'win32'
|
|
22
|
-
config:
|
|
23
|
-
timeoutMs: 300000
|
|
24
|
-
description: |-
|
|
25
|
-
Run commands in a bash shell
|
|
26
|
-
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
27
|
-
* Network access depends on the task environment. Prefer configured mirrors/proxies when they are available.
|
|
28
|
-
* State is persistent across command calls and discussions with the user.
|
|
29
|
-
* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
|
|
30
|
-
* Please avoid commands that may produce a very large amount of output.
|
|
31
|
-
* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
|
|
32
|
-
- id: terminal-pwsh
|
|
33
|
-
name: '@deepseek-ai/dsh-terminal-bash'
|
|
34
|
-
disabled: !!js process.platform !== 'win32'
|
|
35
|
-
config:
|
|
36
|
-
shellDialect: pwsh
|
|
37
|
-
timeoutMs: 300000
|
|
38
|
-
- id: persistent-pwsh
|
|
39
|
-
name: '@deepseek-ai/dsh-tool-pwsh-persistent'
|
|
40
|
-
disabled: !!js process.platform !== 'win32'
|
|
41
|
-
config:
|
|
42
|
-
timeoutMs: 300000
|
|
43
|
-
description: |-
|
|
44
|
-
Run commands in a PowerShell shell
|
|
45
|
-
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
46
|
-
* You don't have access to the internet via this tool.
|
|
47
|
-
* State is persistent across command calls and discussions with the user.
|
|
48
|
-
* Use native Windows paths (C:\...) and $env:NAME variables; this is PowerShell, not bash.
|
|
49
|
-
* Please avoid commands that may produce a very large amount of output.
|
|
50
|
-
* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# module: planning
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/standard.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: planning
|
|
7
|
-
name: cordis:group
|
|
8
|
-
group: true
|
|
9
|
-
isolate:
|
|
10
|
-
planMode: true
|
|
11
|
-
config:
|
|
12
|
-
- id: plan-mode
|
|
13
|
-
name: '@deepseek-ai/dsh-plan-mode'
|
|
14
|
-
config:
|
|
15
|
-
section: |
|
|
16
|
-
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.
|
|
17
|
-
|
|
18
|
-
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.
|
|
19
|
-
|
|
20
|
-
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.
|
|
21
|
-
|
|
22
|
-
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.
|
|
23
|
-
|
|
24
|
-
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.
|
|
25
|
-
|
|
26
|
-
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.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# module: skill-filesystem-cordis
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/cordis.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: skill-filesystem
|
|
7
|
-
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
8
|
-
config:
|
|
9
|
-
customSkillDirs:
|
|
10
|
-
- !!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')
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# module: tool-bash
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/standard.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: tool-bash
|
|
7
|
-
name: '@deepseek-ai/dsh-tool-bash'
|
|
8
|
-
disabled: !!js process.platform === 'win32'
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# module: tool-fs-search
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/standard.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: tool-fs-search
|
|
7
|
-
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
8
|
-
config:
|
|
9
|
-
sampleOverCapGlobResults: false
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# module: tool-plugin-manager-disabled
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/standard.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: tool-plugin-manager
|
|
7
|
-
name: '@deepseek-ai/dsh-plugin-manager/tools'
|
|
8
|
-
disabled: true
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# module: tool-plugin-manager
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/cordis.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: tool-plugin-manager
|
|
7
|
-
name: '@deepseek-ai/dsh-plugin-manager/tools'
|
|
8
|
-
disabled: !!js "!ctx.get('profileContext')"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# module: tool-presentation
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/ptc.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: tool-presentation
|
|
7
|
-
name: '@deepseek-ai/dsh-agent-tool-presentation'
|
|
8
|
-
config:
|
|
9
|
-
mode: ptc
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# module: tool-pwsh
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/standard.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: tool-pwsh
|
|
7
|
-
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
8
|
-
disabled: !!js process.platform !== 'win32'
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# module: tool-web
|
|
2
|
-
# source: master/packages/bundle/web-app/presets/standard.patch.yml
|
|
3
|
-
# commit: 4878cdabd87d4041bdaff61d04c966883b9fd07a
|
|
4
|
-
# local patches: 0
|
|
5
|
-
|
|
6
|
-
- id: tool-web
|
|
7
|
-
name: '@deepseek-ai/dsh-tool-web'
|
|
8
|
-
config:
|
|
9
|
-
fetch: true
|
|
10
|
-
searchTimeoutMs: 60000
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# module: declared-triggers
|
|
2
|
-
# source: 本地新增(B7 声明式触发器:preset.yml 顶层 triggers 段 → triggers.yml → 本模块注册)
|
|
3
|
-
# 声明由预设提供,引擎不带默认(2026-09-22 拍板):triggers.yml 缺失 = 没有声明,不注册任何
|
|
4
|
-
# 触发器、也不让预设启动失败(与 subagent-tool-policy 的 ENOENT 降级同一纪律)。
|
|
5
|
-
# 本行由 writePreset 按「有 triggers 段」自动装配(见 src/host/manifest.ts 的 implied modules)。
|
|
6
|
-
# triggersFile 是**初值**:迁移/物化时由 preset-install 的 ENGINE_MANAGED_PATHS 改写成
|
|
7
|
-
# ../<presetId>/triggers.yml(与 subagent-tool-policy 的 policyFile 同一规则)。
|
|
8
|
-
|
|
9
|
-
- id: declared-triggers
|
|
10
|
-
name: ./engine/declared-triggers.mjs
|
|
11
|
-
config:
|
|
12
|
-
triggersFile: ../triggers.yml
|