@xiaoso/dsh-tool-plus 0.1.9 → 0.1.10-beta.2
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.en.md +12 -5
- package/README.md +11 -4
- package/THIRD_PARTY_NOTICES.md +36 -0
- package/lib/client.js +377 -906
- package/lib/index.mjs +885 -1087
- package/lib/{scrapers-mhvFrvjH.mjs → scrapers-DSArdJ6N.mjs} +1 -1
- package/lib/types/client/ToolPlusSection.d.ts +3 -3
- package/lib/types/client/forms.d.ts +6 -6
- package/lib/types/client/index.d.ts +29 -12
- package/lib/types/client/locales.d.ts +1 -1
- package/lib/types/client/preset-panel.d.ts +54 -42
- package/lib/types/config/settings.d.ts +202 -21
- package/lib/types/host/browser-probe-rpc.d.ts +2 -1
- package/lib/types/host/preset-host.d.ts +103 -0
- package/lib/types/host/preset-rpc.d.ts +37 -72
- package/lib/types/presets/compare.d.ts +14 -37
- package/lib/types/presets/conflicts.d.ts +59 -0
- package/lib/types/presets/delta.d.ts +23 -18
- package/lib/types/presets/plan.d.ts +55 -0
- package/lib/types/presets/rows.d.ts +84 -0
- package/lib/types/presets/status.d.ts +56 -47
- package/lib/types/tools/bash/background.d.ts +20 -5
- package/lib/types/tools/bash/streaming-output.d.ts +4 -2
- package/lib/types/tools/shared/browser-rpc-channel.d.ts +84 -42
- package/lib/types/web/client/labels.d.ts +1 -1
- package/lib/types/web/client/row-utils.d.ts +26 -1
- package/lib/{utils-eiUz9n8I.mjs → utils-DA8R1_Q8.mjs} +1 -1
- package/package.json +166 -151
- package/presets/tool-plus-ptc.patch.yml +164 -0
- package/presets/tool-plus-standard.patch.yml +158 -0
- package/lib/types/client/BashPlusCard.d.ts +0 -53
- package/lib/types/presets/install.d.ts +0 -44
- package/lib/types/presets/paths.d.ts +0 -41
- package/lib/types/presets/rewrite.d.ts +0 -86
- package/presets/install-presets.mjs +0 -143
- package/presets/package.json +0 -42
- package/presets/tool-plus-ptc/agent.cordis.yml +0 -284
- package/presets/tool-plus-ptc/preset.yml +0 -3
- package/presets/tool-plus-standard/agent.cordis.yml +0 -269
- package/presets/tool-plus-standard/preset.yml +0 -3
package/package.json
CHANGED
|
@@ -1,151 +1,166 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@xiaoso/dsh-tool-plus",
|
|
3
|
-
"description": "Oh My Pi bash runtime ported as a deepseek-harness tool plugin: persistent shell session, output minimizer, managed background jobs, command interception",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"deepseek-harness",
|
|
8
|
-
"dsh",
|
|
9
|
-
"dsh-plugin",
|
|
10
|
-
"cli",
|
|
11
|
-
"coding-agent",
|
|
12
|
-
"agent-tools",
|
|
13
|
-
"bash",
|
|
14
|
-
"persistent-shell",
|
|
15
|
-
"file-tools",
|
|
16
|
-
"code-search",
|
|
17
|
-
"code-editing",
|
|
18
|
-
"ast-grep",
|
|
19
|
-
"tool-enhancement",
|
|
20
|
-
"oh-my-pi"
|
|
21
|
-
],
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/xiaoso456/dsh-tool-plus.git"
|
|
25
|
-
},
|
|
26
|
-
"homepage": "https://github.com/xiaoso456/dsh-tool-plus#readme",
|
|
27
|
-
"bugs": {
|
|
28
|
-
"url": "https://github.com/xiaoso456/dsh-tool-plus/issues"
|
|
29
|
-
},
|
|
30
|
-
"type": "module",
|
|
31
|
-
"publishConfig": {
|
|
32
|
-
"access": "public",
|
|
33
|
-
"tag": "latest"
|
|
34
|
-
},
|
|
35
|
-
"engines": {
|
|
36
|
-
"node": "^22.19.0 || >=24.0.0"
|
|
37
|
-
},
|
|
38
|
-
"main": "lib/index.mjs",
|
|
39
|
-
"types": "lib/types/index.d.ts",
|
|
40
|
-
"exports": {
|
|
41
|
-
".": {
|
|
42
|
-
"types": "./lib/types/index.d.ts",
|
|
43
|
-
"default": "./lib/index.mjs"
|
|
44
|
-
},
|
|
45
|
-
"./client": {
|
|
46
|
-
"types": "./lib/types/client/index.d.ts",
|
|
47
|
-
"default": "./lib/client.js"
|
|
48
|
-
},
|
|
49
|
-
"./
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"@deepseek-ai/
|
|
91
|
-
"@deepseek-ai/dsh-
|
|
92
|
-
"@deepseek-ai/dsh-
|
|
93
|
-
"@deepseek-ai/dsh-
|
|
94
|
-
"@deepseek-ai/dsh-
|
|
95
|
-
"@deepseek-ai/dsh-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"@deepseek-ai/dsh-
|
|
102
|
-
"@deepseek-ai/dsh-
|
|
103
|
-
"@deepseek-ai/
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"@
|
|
118
|
-
"@
|
|
119
|
-
"@
|
|
120
|
-
"@
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
"@deepseek-ai/
|
|
128
|
-
"@deepseek-ai/dsh-
|
|
129
|
-
"@deepseek-ai/dsh-
|
|
130
|
-
"@deepseek-ai/dsh-
|
|
131
|
-
"@deepseek-ai/dsh-
|
|
132
|
-
"@deepseek-ai/dsh-
|
|
133
|
-
"@deepseek-ai/dsh-
|
|
134
|
-
"@deepseek-ai/dsh-
|
|
135
|
-
"@deepseek-ai/dsh-
|
|
136
|
-
"@deepseek-ai/dsh-
|
|
137
|
-
"@deepseek-ai/dsh-
|
|
138
|
-
"@deepseek-ai/dsh-
|
|
139
|
-
"@deepseek-ai/dsh-
|
|
140
|
-
"@
|
|
141
|
-
"@
|
|
142
|
-
"@
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@xiaoso/dsh-tool-plus",
|
|
3
|
+
"description": "Oh My Pi bash runtime ported as a deepseek-harness tool plugin: persistent shell session, output minimizer, managed background jobs, command interception",
|
|
4
|
+
"version": "0.1.10-beta.2",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"deepseek-harness",
|
|
8
|
+
"dsh",
|
|
9
|
+
"dsh-plugin",
|
|
10
|
+
"cli",
|
|
11
|
+
"coding-agent",
|
|
12
|
+
"agent-tools",
|
|
13
|
+
"bash",
|
|
14
|
+
"persistent-shell",
|
|
15
|
+
"file-tools",
|
|
16
|
+
"code-search",
|
|
17
|
+
"code-editing",
|
|
18
|
+
"ast-grep",
|
|
19
|
+
"tool-enhancement",
|
|
20
|
+
"oh-my-pi"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/xiaoso456/dsh-tool-plus.git"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/xiaoso456/dsh-tool-plus#readme",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/xiaoso456/dsh-tool-plus/issues"
|
|
29
|
+
},
|
|
30
|
+
"type": "module",
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public",
|
|
33
|
+
"tag": "latest"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
37
|
+
},
|
|
38
|
+
"main": "lib/index.mjs",
|
|
39
|
+
"types": "lib/types/index.d.ts",
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./lib/types/index.d.ts",
|
|
43
|
+
"default": "./lib/index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./client": {
|
|
46
|
+
"types": "./lib/types/client/index.d.ts",
|
|
47
|
+
"default": "./lib/client.js"
|
|
48
|
+
},
|
|
49
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
50
|
+
"./presets/*.patch.yml": "./presets/*.patch.yml",
|
|
51
|
+
"./package.json": "./package.json"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"lib",
|
|
55
|
+
"cordis.patch.yml",
|
|
56
|
+
"presets/tool-plus-standard.patch.yml",
|
|
57
|
+
"presets/tool-plus-ptc.patch.yml",
|
|
58
|
+
"scripts/patch-pi-natives.mjs",
|
|
59
|
+
"src/bash-runtime/shell-snapshot-fn-env.sh",
|
|
60
|
+
"README.md",
|
|
61
|
+
"LICENSE",
|
|
62
|
+
"THIRD_PARTY_NOTICES.md"
|
|
63
|
+
],
|
|
64
|
+
"dsh": {
|
|
65
|
+
"manifestVersion": 1,
|
|
66
|
+
"bundle": {
|
|
67
|
+
"patch": [
|
|
68
|
+
"./cordis.patch.yml",
|
|
69
|
+
"./presets/tool-plus-standard.patch.yml",
|
|
70
|
+
"./presets/tool-plus-ptc.patch.yml"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"client": {
|
|
74
|
+
"inject": [
|
|
75
|
+
"@deepseek-ai/dsh-client-locale",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
77
|
+
],
|
|
78
|
+
"platform": "web"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"scripts": {
|
|
82
|
+
"build": "tsdown -c tsdown.config.ts && tsc -p tsconfig.json && node scripts/copy-assets.mjs",
|
|
83
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
84
|
+
"test": "vitest run --config vitest.config.ts",
|
|
85
|
+
"presets:build": "node scripts/build-preset-patches.mjs",
|
|
86
|
+
"presets:check": "node scripts/build-preset-patches.mjs --check",
|
|
87
|
+
"postinstall": "node scripts/patch-pi-natives.mjs"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
91
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
92
|
+
"@deepseek-ai/dsh-agent-preset": "0.1.7-rc.2",
|
|
93
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.1.7-rc.2",
|
|
94
|
+
"@deepseek-ai/dsh-attachment": "0.1.7-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-client-connection": "0.1.7-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-fs": "0.1.7-rc.2",
|
|
97
|
+
"@deepseek-ai/dsh-jobs": "0.1.7-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-sandbox": "0.1.7-rc.2",
|
|
100
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
101
|
+
"@deepseek-ai/dsh-settings": "0.1.7-rc.2",
|
|
102
|
+
"@deepseek-ai/dsh-shell": "0.1.7-rc.2",
|
|
103
|
+
"@deepseek-ai/dsh-shell-env": "0.1.7-rc.2",
|
|
104
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
|
|
105
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2"
|
|
106
|
+
},
|
|
107
|
+
"optionalPeerDependencies": {
|
|
108
|
+
"sharp": ">=0.33"
|
|
109
|
+
},
|
|
110
|
+
"dependencies": {
|
|
111
|
+
"@deepseek-ai/dsh-brand": "0.1.7-rc.2",
|
|
112
|
+
"@deepseek-ai/dsh-invariants": "0.1.7-rc.2",
|
|
113
|
+
"@deepseek-ai/schemastery": "~3.18.4",
|
|
114
|
+
"@oh-my-pi/omptype": "18.1.17",
|
|
115
|
+
"@oh-my-pi/pi-agent-core": "18.1.17",
|
|
116
|
+
"@oh-my-pi/pi-ai": "18.1.17",
|
|
117
|
+
"@oh-my-pi/pi-catalog": "18.1.17",
|
|
118
|
+
"@oh-my-pi/pi-natives": "18.1.17",
|
|
119
|
+
"@oh-my-pi/pi-tui": "18.1.17",
|
|
120
|
+
"@oh-my-pi/pi-utils": "18.1.17",
|
|
121
|
+
"json5": "^2.2.3",
|
|
122
|
+
"puppeteer-core": "^25.3.0",
|
|
123
|
+
"trash": "10.1.1",
|
|
124
|
+
"yaml": "^2.9.0"
|
|
125
|
+
},
|
|
126
|
+
"devDependencies": {
|
|
127
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
128
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-api-remotes": "0.1.7-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-api-session-controller": "0.1.7-rc.2",
|
|
131
|
+
"@deepseek-ai/dsh-client-connection": "0.1.7-rc.2",
|
|
132
|
+
"@deepseek-ai/dsh-client-locale": "0.1.7-rc.2",
|
|
133
|
+
"@deepseek-ai/dsh-client-store": "0.1.7-rc.2",
|
|
134
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.1.7-rc.2",
|
|
135
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2",
|
|
136
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2",
|
|
137
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2",
|
|
138
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2",
|
|
139
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.7-rc.2",
|
|
140
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2",
|
|
141
|
+
"@deepseek-ai/dsh-client-ui-tool": "0.1.7-rc.2",
|
|
142
|
+
"@deepseek-ai/dsh-fs-local": "0.1.7-rc.2",
|
|
143
|
+
"@deepseek-ai/dsh-jobs": "0.1.7-rc.2",
|
|
144
|
+
"@deepseek-ai/dsh-jobs-local": "0.1.7-rc.2",
|
|
145
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2",
|
|
146
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
147
|
+
"@deepseek-ai/dsh-settings": "0.1.7-rc.2",
|
|
148
|
+
"@deepseek-ai/dsh-shell": "0.1.7-rc.2",
|
|
149
|
+
"@deepseek-ai/dsh-shell-env": "0.1.7-rc.2",
|
|
150
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
|
|
151
|
+
"@deepseek-ai/dsh-token-meter": "0.1.7-rc.2",
|
|
152
|
+
"@deepseek-ai/dsh-tool-jobs": "0.1.7-rc.2",
|
|
153
|
+
"@deepseek-ai/dsh-tool-str-replace-editor": "0.1.7-rc.2",
|
|
154
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
|
|
155
|
+
"@types/node": "^22.19.0",
|
|
156
|
+
"@types/react": "^19.0.0",
|
|
157
|
+
"@types/react-dom": "^19.0.0",
|
|
158
|
+
"react": "^19.0.0",
|
|
159
|
+
"react-dom": "^19.0.0",
|
|
160
|
+
"sharp": "^0.35.4",
|
|
161
|
+
"tsdown": "^0.22.2",
|
|
162
|
+
"tsx": "^4.22.4",
|
|
163
|
+
"typescript": "^6.0.3",
|
|
164
|
+
"vitest": "^4.1.8"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# Agent preset `tool-plus-ptc` — declared as one `@deepseek-ai/dsh-agent-preset` row.
|
|
2
|
+
#
|
|
3
|
+
# GENERATED by scripts/build-preset-patches.mjs from
|
|
4
|
+
# presets/baseline/ptc.patch.yml (the shipped `ptc` composition of the dsh
|
|
5
|
+
# release this plugin pins). Do not edit by hand: the generator is what keeps
|
|
6
|
+
# our delta honest across dsh upgrades, and tests/unit/preset-patches.spec.ts
|
|
7
|
+
# fails when this file and the generator disagree.
|
|
8
|
+
#
|
|
9
|
+
# Delta over the baseline:
|
|
10
|
+
# - tool-bash, tool-fs, tool-fs-search are removed — the host plane already serves them
|
|
11
|
+
# through this plugin's `cordis.patch.yml`, and mounting them again in the
|
|
12
|
+
# agent plane would create a per-session shadow instance
|
|
13
|
+
# - tool-pwsh is forced `disabled: true` (neither Tool Plus preset enables pwsh)
|
|
14
|
+
# - an inert `tool-plus` row documents where an agent-plane plugin row would go
|
|
15
|
+
# - everything else is the baseline, byte-equivalent
|
|
16
|
+
#
|
|
17
|
+
# A profile patch overriding this row BY THE ROW ID BELOW replaces the whole
|
|
18
|
+
# `config`, so an override must restate `id`, `name`, `description`, `order` and
|
|
19
|
+
# `plugins`. That is what `@xiaoso/dsh-tool-plus`'s settings panel writes.
|
|
20
|
+
- insert:
|
|
21
|
+
- id: preset-tool-plus-ptc
|
|
22
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
23
|
+
config:
|
|
24
|
+
id: tool-plus-ptc
|
|
25
|
+
name: Tool Plus PTC 增强版
|
|
26
|
+
description: PTC 模式全部能力 + tool-plus 增强:文件/Shell 工具集替换为 @xiaoso/dsh-tool-plus(移植 oh-my-pi:read 单参数 file_path 内联行选择器、edit 三模式、bash/grep/glob),经 Code Mode SDK 以 run_code 组合多步操作;pwsh 默认禁用。
|
|
27
|
+
order: 21
|
|
28
|
+
plugins:
|
|
29
|
+
- id: persona
|
|
30
|
+
name: '@deepseek-ai/dsh-persona'
|
|
31
|
+
config:
|
|
32
|
+
suffix: Your working directory is {{cwd}}.
|
|
33
|
+
prefix: You are a coding agent powered by the {{model}} model.
|
|
34
|
+
- id: agent-instructions
|
|
35
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
36
|
+
config:
|
|
37
|
+
maxBytes: 65536
|
|
38
|
+
- id: tool-plus
|
|
39
|
+
name: '@xiaoso/dsh-tool-plus'
|
|
40
|
+
disabled: true
|
|
41
|
+
- id: tool-pwsh
|
|
42
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
43
|
+
disabled: true
|
|
44
|
+
- id: tool-jobs
|
|
45
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
46
|
+
- id: skill-filesystem
|
|
47
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
48
|
+
- id: tool-skill
|
|
49
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
50
|
+
- id: command-goal
|
|
51
|
+
name: '@deepseek-ai/dsh-command-goal'
|
|
52
|
+
- id: tool-goal
|
|
53
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
54
|
+
- id: planning
|
|
55
|
+
name: cordis:group
|
|
56
|
+
group: true
|
|
57
|
+
isolate:
|
|
58
|
+
planMode: true
|
|
59
|
+
config:
|
|
60
|
+
- id: plan-mode
|
|
61
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
62
|
+
config:
|
|
63
|
+
section: |
|
|
64
|
+
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.
|
|
65
|
+
|
|
66
|
+
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.
|
|
67
|
+
|
|
68
|
+
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.
|
|
69
|
+
|
|
70
|
+
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.
|
|
71
|
+
|
|
72
|
+
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.
|
|
73
|
+
|
|
74
|
+
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.
|
|
75
|
+
- id: compaction
|
|
76
|
+
name: cordis:group
|
|
77
|
+
group: true
|
|
78
|
+
isolate:
|
|
79
|
+
compaction: true
|
|
80
|
+
toolResultPruner: true
|
|
81
|
+
config:
|
|
82
|
+
- id: compaction-basic
|
|
83
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
84
|
+
- id: command-compact
|
|
85
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
86
|
+
- id: tool-result-pruner
|
|
87
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
88
|
+
config:
|
|
89
|
+
thresholdChars: 8192
|
|
90
|
+
headChars: 4096
|
|
91
|
+
tailChars: 1024
|
|
92
|
+
- id: delegation
|
|
93
|
+
name: cordis:group
|
|
94
|
+
group: true
|
|
95
|
+
isolate:
|
|
96
|
+
workflowEngine: true
|
|
97
|
+
config:
|
|
98
|
+
- id: tool-subagent-control
|
|
99
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
100
|
+
- id: tool-subagent-list-agents
|
|
101
|
+
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
|
|
102
|
+
- id: tool-subagent
|
|
103
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
104
|
+
config:
|
|
105
|
+
provider: spawn
|
|
106
|
+
toolName: subagent
|
|
107
|
+
modelSelectionSettings: true
|
|
108
|
+
backgroundMode: continuable
|
|
109
|
+
- id: tool-subagent-fork
|
|
110
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
111
|
+
config:
|
|
112
|
+
provider: fork
|
|
113
|
+
toolName: subagent_fork
|
|
114
|
+
backgroundMode: continuable
|
|
115
|
+
- id: tool-subagent-codex
|
|
116
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
117
|
+
disabled: true
|
|
118
|
+
config:
|
|
119
|
+
provider: codex
|
|
120
|
+
toolName: subagent_codex
|
|
121
|
+
backgroundMode: one-shot
|
|
122
|
+
maxDepth: provider-managed
|
|
123
|
+
- id: tool-subagent-claude-code
|
|
124
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
125
|
+
disabled: true
|
|
126
|
+
config:
|
|
127
|
+
provider: claude-code
|
|
128
|
+
toolName: subagent_claude_code
|
|
129
|
+
backgroundMode: one-shot
|
|
130
|
+
maxDepth: provider-managed
|
|
131
|
+
- id: workflow-ptc
|
|
132
|
+
name: '@deepseek-ai/dsh-workflow-ptc'
|
|
133
|
+
disabled: true
|
|
134
|
+
config:
|
|
135
|
+
provider: spawn
|
|
136
|
+
- id: tool-workflow
|
|
137
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
138
|
+
disabled: true
|
|
139
|
+
- id: tool-ralph
|
|
140
|
+
name: '@deepseek-ai/dsh-tool-ralph'
|
|
141
|
+
disabled: true
|
|
142
|
+
config:
|
|
143
|
+
subagentProvider: spawn
|
|
144
|
+
maxRounds: 64
|
|
145
|
+
- id: tool-ask-user
|
|
146
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
147
|
+
- id: tool-todo
|
|
148
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
149
|
+
config:
|
|
150
|
+
allowParallelInProgress: true
|
|
151
|
+
- id: tool-web
|
|
152
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
153
|
+
config:
|
|
154
|
+
fetch: true
|
|
155
|
+
searchTimeoutMs: 60000
|
|
156
|
+
- id: tool-presentation
|
|
157
|
+
name: '@deepseek-ai/dsh-agent-tool-presentation'
|
|
158
|
+
config:
|
|
159
|
+
mode: ptc
|
|
160
|
+
- id: present
|
|
161
|
+
name: '@deepseek-ai/dsh-tool-present'
|
|
162
|
+
- id: tool-plugin-manager
|
|
163
|
+
name: '@deepseek-ai/dsh-plugin-manager/tools'
|
|
164
|
+
disabled: true
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Agent preset `tool-plus-standard` — declared as one `@deepseek-ai/dsh-agent-preset` row.
|
|
2
|
+
#
|
|
3
|
+
# GENERATED by scripts/build-preset-patches.mjs from
|
|
4
|
+
# presets/baseline/standard.patch.yml (the shipped `standard` composition of the dsh
|
|
5
|
+
# release this plugin pins). Do not edit by hand: the generator is what keeps
|
|
6
|
+
# our delta honest across dsh upgrades, and tests/unit/preset-patches.spec.ts
|
|
7
|
+
# fails when this file and the generator disagree.
|
|
8
|
+
#
|
|
9
|
+
# Delta over the baseline:
|
|
10
|
+
# - tool-bash, tool-fs, tool-fs-search are removed — the host plane already serves them
|
|
11
|
+
# through this plugin's `cordis.patch.yml`, and mounting them again in the
|
|
12
|
+
# agent plane would create a per-session shadow instance
|
|
13
|
+
# - tool-pwsh is forced `disabled: true` (neither Tool Plus preset enables pwsh)
|
|
14
|
+
# - an inert `tool-plus` row documents where an agent-plane plugin row would go
|
|
15
|
+
# - everything else is the baseline, byte-equivalent
|
|
16
|
+
#
|
|
17
|
+
# A profile patch overriding this row BY THE ROW ID BELOW replaces the whole
|
|
18
|
+
# `config`, so an override must restate `id`, `name`, `description`, `order` and
|
|
19
|
+
# `plugins`. That is what `@xiaoso/dsh-tool-plus`'s settings panel writes.
|
|
20
|
+
- insert:
|
|
21
|
+
- id: preset-tool-plus-standard
|
|
22
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
23
|
+
config:
|
|
24
|
+
id: tool-plus-standard
|
|
25
|
+
name: Tool Plus 标准增强版
|
|
26
|
+
description: 标准模式全部能力 + tool-plus 增强:文件/Shell 工具集替换为 @xiaoso/dsh-tool-plus(移植 oh-my-pi:read 单参数 file_path 内联行选择器、edit 三模式、bash/grep/glob);pwsh 默认禁用。
|
|
27
|
+
order: 20
|
|
28
|
+
plugins:
|
|
29
|
+
- id: persona
|
|
30
|
+
name: '@deepseek-ai/dsh-persona'
|
|
31
|
+
config:
|
|
32
|
+
suffix: Your working directory is {{cwd}}.
|
|
33
|
+
prefix: You are a coding agent powered by the {{model}} model.
|
|
34
|
+
- id: agent-instructions
|
|
35
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
36
|
+
config:
|
|
37
|
+
maxBytes: 65536
|
|
38
|
+
- id: tool-plus
|
|
39
|
+
name: '@xiaoso/dsh-tool-plus'
|
|
40
|
+
disabled: true
|
|
41
|
+
- id: tool-pwsh
|
|
42
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
43
|
+
disabled: true
|
|
44
|
+
- id: tool-jobs
|
|
45
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
46
|
+
- id: skill-filesystem
|
|
47
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
48
|
+
- id: tool-skill
|
|
49
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
50
|
+
- id: command-goal
|
|
51
|
+
name: '@deepseek-ai/dsh-command-goal'
|
|
52
|
+
- id: tool-goal
|
|
53
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
54
|
+
- id: planning
|
|
55
|
+
name: cordis:group
|
|
56
|
+
group: true
|
|
57
|
+
isolate:
|
|
58
|
+
planMode: true
|
|
59
|
+
config:
|
|
60
|
+
- id: plan-mode
|
|
61
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
62
|
+
config:
|
|
63
|
+
section: |
|
|
64
|
+
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.
|
|
65
|
+
|
|
66
|
+
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.
|
|
67
|
+
|
|
68
|
+
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.
|
|
69
|
+
|
|
70
|
+
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.
|
|
71
|
+
|
|
72
|
+
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.
|
|
73
|
+
|
|
74
|
+
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.
|
|
75
|
+
- id: compaction
|
|
76
|
+
name: cordis:group
|
|
77
|
+
group: true
|
|
78
|
+
isolate:
|
|
79
|
+
compaction: true
|
|
80
|
+
toolResultPruner: true
|
|
81
|
+
config:
|
|
82
|
+
- id: compaction-basic
|
|
83
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
84
|
+
- id: command-compact
|
|
85
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
86
|
+
- id: tool-result-pruner
|
|
87
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
88
|
+
config:
|
|
89
|
+
thresholdChars: 8192
|
|
90
|
+
headChars: 4096
|
|
91
|
+
tailChars: 1024
|
|
92
|
+
- id: delegation
|
|
93
|
+
name: cordis:group
|
|
94
|
+
group: true
|
|
95
|
+
isolate:
|
|
96
|
+
workflowEngine: true
|
|
97
|
+
config:
|
|
98
|
+
- id: tool-subagent-control
|
|
99
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
100
|
+
- id: tool-subagent-list-agents
|
|
101
|
+
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
|
|
102
|
+
- id: tool-subagent
|
|
103
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
104
|
+
config:
|
|
105
|
+
provider: spawn
|
|
106
|
+
toolName: subagent
|
|
107
|
+
modelSelectionSettings: true
|
|
108
|
+
backgroundMode: continuable
|
|
109
|
+
- id: tool-subagent-fork
|
|
110
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
111
|
+
config:
|
|
112
|
+
provider: fork
|
|
113
|
+
toolName: subagent_fork
|
|
114
|
+
backgroundMode: continuable
|
|
115
|
+
- id: tool-subagent-codex
|
|
116
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
117
|
+
disabled: true
|
|
118
|
+
config:
|
|
119
|
+
provider: codex
|
|
120
|
+
toolName: subagent_codex
|
|
121
|
+
backgroundMode: one-shot
|
|
122
|
+
maxDepth: provider-managed
|
|
123
|
+
- id: tool-subagent-claude-code
|
|
124
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
125
|
+
disabled: true
|
|
126
|
+
config:
|
|
127
|
+
provider: claude-code
|
|
128
|
+
toolName: subagent_claude_code
|
|
129
|
+
backgroundMode: one-shot
|
|
130
|
+
maxDepth: provider-managed
|
|
131
|
+
- id: workflow-ptc
|
|
132
|
+
name: '@deepseek-ai/dsh-workflow-ptc'
|
|
133
|
+
config:
|
|
134
|
+
provider: spawn
|
|
135
|
+
- id: tool-workflow
|
|
136
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
137
|
+
- id: tool-ralph
|
|
138
|
+
name: '@deepseek-ai/dsh-tool-ralph'
|
|
139
|
+
disabled: true
|
|
140
|
+
config:
|
|
141
|
+
subagentProvider: spawn
|
|
142
|
+
maxRounds: 64
|
|
143
|
+
- id: tool-ask-user
|
|
144
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
145
|
+
- id: tool-todo
|
|
146
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
147
|
+
config:
|
|
148
|
+
allowParallelInProgress: true
|
|
149
|
+
- id: tool-web
|
|
150
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
151
|
+
config:
|
|
152
|
+
fetch: true
|
|
153
|
+
searchTimeoutMs: 60000
|
|
154
|
+
- id: present
|
|
155
|
+
name: '@deepseek-ai/dsh-tool-present'
|
|
156
|
+
- id: tool-plugin-manager
|
|
157
|
+
name: '@deepseek-ai/dsh-plugin-manager/tools'
|
|
158
|
+
disabled: true
|