@shuind/dsh-codex-harness 0.1.10 → 0.1.12
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/LICENSE +21 -21
- package/README.md +27 -6
- package/README.zh.md +3 -3
- package/cordis.patch.yml +5 -5
- package/lib/client.js +633 -0
- package/lib/index.js +445 -4
- package/lib/types/client/index.d.ts +40 -0
- package/lib/types/client/index.js +112 -0
- package/lib/types/context.d.ts +5 -0
- package/lib/types/context.js +5 -0
- package/lib/types/index.d.ts +32 -0
- package/lib/types/index.js +156 -1
- package/lib/types/patch.js +15 -15
- package/lib/types/remote.d.ts +21 -0
- package/lib/types/remote.js +324 -0
- package/package.json +99 -13
- package/presets/codex/agent.cordis.yml +13 -0
- package/presets/codex/preset.yml +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuind/dsh-codex-harness",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "A minimal Codex harness for GPT models that do not fit DSH's native interface, while remaining compatible with the DSH plugin ecosystem.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"types": "./lib/types/installer.d.ts",
|
|
19
19
|
"default": "./lib/installer.js"
|
|
20
20
|
},
|
|
21
|
+
"./client": {
|
|
22
|
+
"types": "./lib/types/client/index.d.ts",
|
|
23
|
+
"default": "./lib/client.js"
|
|
24
|
+
},
|
|
21
25
|
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
22
26
|
"./src/*": "./src/*",
|
|
23
27
|
"./package.json": "./package.json"
|
|
@@ -28,6 +32,7 @@
|
|
|
28
32
|
"lib/installer.js",
|
|
29
33
|
"lib/types/**/*.js",
|
|
30
34
|
"lib/types/**/*.d.ts",
|
|
35
|
+
"lib/client.js",
|
|
31
36
|
"cordis.patch.yml",
|
|
32
37
|
"presets/codex",
|
|
33
38
|
"README.md",
|
|
@@ -58,6 +63,16 @@
|
|
|
58
63
|
"dsh": {
|
|
59
64
|
"bundle": {
|
|
60
65
|
"patch": "./cordis.patch.yml"
|
|
66
|
+
},
|
|
67
|
+
"client": {
|
|
68
|
+
"inject": [
|
|
69
|
+
"@deepseek-ai/dsh-client-locale",
|
|
70
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-slots"
|
|
74
|
+
],
|
|
75
|
+
"platform": "web"
|
|
61
76
|
}
|
|
62
77
|
},
|
|
63
78
|
"dependencies": {
|
|
@@ -67,45 +82,116 @@
|
|
|
67
82
|
"peerDependencies": {
|
|
68
83
|
"@deepseek-ai/cordis": ">=4.0.1",
|
|
69
84
|
"@deepseek-ai/dsh-agent": ">=0.1.0-rc.6",
|
|
85
|
+
"@deepseek-ai/dsh-client-locale": ">=0.1.0-rc.8",
|
|
86
|
+
"@deepseek-ai/dsh-client-runtime": ">=0.1.0-rc.8",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.0-rc.8",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.1.0-rc.8",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.1.0-rc.8",
|
|
90
|
+
"@deepseek-ai/dsh-credentials": ">=0.1.0-rc.8",
|
|
70
91
|
"@deepseek-ai/dsh-fs": ">=0.0.1-rc.1",
|
|
71
92
|
"@deepseek-ai/dsh-invariants": ">=0.0.1-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.8",
|
|
94
|
+
"@deepseek-ai/dsh-settings": ">=0.1.0-rc.8",
|
|
72
95
|
"@deepseek-ai/dsh-sandbox": ">=0.0.1-rc.1",
|
|
73
96
|
"@deepseek-ai/dsh-sandbox-policy": ">=0.0.1-rc.1",
|
|
74
97
|
"@deepseek-ai/dsh-shell": ">=0.0.1-rc.5",
|
|
75
98
|
"@deepseek-ai/dsh-shell-env": ">=0.0.1-rc.3",
|
|
76
99
|
"@deepseek-ai/dsh-system-prompt": ">=0.0.1-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-tool-web": ">=0.1.0-rc.8",
|
|
77
101
|
"@deepseek-ai/dsh-tool-todo": ">=0.0.1-rc.1",
|
|
78
102
|
"@deepseek-ai/dsh-terminal": ">=0.0.1-rc.3",
|
|
79
103
|
"@deepseek-ai/dsh-tools": ">=0.0.1-rc.1"
|
|
80
104
|
},
|
|
81
105
|
"peerDependenciesMeta": {
|
|
82
|
-
"@deepseek-ai/cordis": {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"@deepseek-ai/dsh-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"@deepseek-ai/dsh-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"@deepseek-ai/dsh-
|
|
92
|
-
|
|
93
|
-
|
|
106
|
+
"@deepseek-ai/cordis": {
|
|
107
|
+
"optional": true
|
|
108
|
+
},
|
|
109
|
+
"@deepseek-ai/dsh-agent": {
|
|
110
|
+
"optional": true
|
|
111
|
+
},
|
|
112
|
+
"@deepseek-ai/dsh-client-locale": {
|
|
113
|
+
"optional": true
|
|
114
|
+
},
|
|
115
|
+
"@deepseek-ai/dsh-client-runtime": {
|
|
116
|
+
"optional": true
|
|
117
|
+
},
|
|
118
|
+
"@deepseek-ai/dsh-client-ui-conversation": {
|
|
119
|
+
"optional": true
|
|
120
|
+
},
|
|
121
|
+
"@deepseek-ai/dsh-client-ui-settings": {
|
|
122
|
+
"optional": true
|
|
123
|
+
},
|
|
124
|
+
"@deepseek-ai/dsh-client-ui-slots": {
|
|
125
|
+
"optional": true
|
|
126
|
+
},
|
|
127
|
+
"@deepseek-ai/dsh-credentials": {
|
|
128
|
+
"optional": true
|
|
129
|
+
},
|
|
130
|
+
"@deepseek-ai/dsh-fs": {
|
|
131
|
+
"optional": true
|
|
132
|
+
},
|
|
133
|
+
"@deepseek-ai/dsh-invariants": {
|
|
134
|
+
"optional": true
|
|
135
|
+
},
|
|
136
|
+
"@deepseek-ai/dsh-llm": {
|
|
137
|
+
"optional": true
|
|
138
|
+
},
|
|
139
|
+
"@deepseek-ai/dsh-settings": {
|
|
140
|
+
"optional": true
|
|
141
|
+
},
|
|
142
|
+
"@deepseek-ai/dsh-sandbox": {
|
|
143
|
+
"optional": true
|
|
144
|
+
},
|
|
145
|
+
"@deepseek-ai/dsh-sandbox-policy": {
|
|
146
|
+
"optional": true
|
|
147
|
+
},
|
|
148
|
+
"@deepseek-ai/dsh-shell": {
|
|
149
|
+
"optional": true
|
|
150
|
+
},
|
|
151
|
+
"@deepseek-ai/dsh-shell-env": {
|
|
152
|
+
"optional": true
|
|
153
|
+
},
|
|
154
|
+
"@deepseek-ai/dsh-system-prompt": {
|
|
155
|
+
"optional": true
|
|
156
|
+
},
|
|
157
|
+
"@deepseek-ai/dsh-tool-web": {
|
|
158
|
+
"optional": true
|
|
159
|
+
},
|
|
160
|
+
"@deepseek-ai/dsh-tool-todo": {
|
|
161
|
+
"optional": true
|
|
162
|
+
},
|
|
163
|
+
"@deepseek-ai/dsh-terminal": {
|
|
164
|
+
"optional": true
|
|
165
|
+
},
|
|
166
|
+
"@deepseek-ai/dsh-tools": {
|
|
167
|
+
"optional": true
|
|
168
|
+
}
|
|
94
169
|
},
|
|
95
170
|
"devDependencies": {
|
|
96
171
|
"@deepseek-ai/cordis": "4.0.1",
|
|
97
172
|
"@deepseek-ai/dsh-agent": "0.1.0-rc.6",
|
|
173
|
+
"@deepseek-ai/dsh-client-locale": "0.1.0-rc.8",
|
|
174
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.0-rc.8",
|
|
175
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.8",
|
|
176
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.8",
|
|
177
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.8",
|
|
178
|
+
"@deepseek-ai/dsh-credentials": "0.1.0-rc.8",
|
|
98
179
|
"@deepseek-ai/dsh-fs": "0.1.0-rc.6",
|
|
99
180
|
"@deepseek-ai/dsh-invariants": "0.1.0-rc.6",
|
|
181
|
+
"@deepseek-ai/dsh-llm": "0.1.0-rc.8",
|
|
182
|
+
"@deepseek-ai/dsh-settings": "0.1.0-rc.8",
|
|
100
183
|
"@deepseek-ai/dsh-sandbox": "0.1.0-rc.6",
|
|
101
184
|
"@deepseek-ai/dsh-sandbox-policy": "0.1.0-rc.6",
|
|
102
185
|
"@deepseek-ai/dsh-shell": "0.1.0-rc.6",
|
|
103
186
|
"@deepseek-ai/dsh-shell-env": "0.1.0-rc.6",
|
|
104
187
|
"@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
|
|
188
|
+
"@deepseek-ai/dsh-tool-web": "0.1.0-rc.8",
|
|
105
189
|
"@deepseek-ai/dsh-tool-todo": "0.1.0-rc.6",
|
|
106
190
|
"@deepseek-ai/dsh-terminal": "0.1.0-rc.6",
|
|
107
191
|
"@deepseek-ai/dsh-tools": "0.1.0-rc.6",
|
|
108
192
|
"@types/node": "^22.20.0",
|
|
193
|
+
"@types/react": "~18.3.1",
|
|
194
|
+
"react": "^18.3.1",
|
|
109
195
|
"tsdown": "^0.22.2",
|
|
110
196
|
"typescript": "^6.0.3",
|
|
111
197
|
"unrun": "^0.3.1",
|
|
@@ -18,6 +18,19 @@
|
|
|
18
18
|
- id: codex-tools
|
|
19
19
|
name: '@shuind/dsh-codex-harness'
|
|
20
20
|
|
|
21
|
+
# The generic DSH pi-ai adapter still owns the user's configured provider,
|
|
22
|
+
# endpoint, API key, and model. Codex's remote-first transport wrapper is
|
|
23
|
+
# installed only in this Codex scope and falls back to the generic DSH path.
|
|
24
|
+
|
|
25
|
+
# Keep the local tool mounted as the fallback. Codex rewrites the final GPT
|
|
26
|
+
# Responses request to a hosted web_search tool first; a failed remote request
|
|
27
|
+
# is retried through this unchanged local function-tool path.
|
|
28
|
+
- id: codex-web-search
|
|
29
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
30
|
+
config:
|
|
31
|
+
search: true
|
|
32
|
+
fetch: false
|
|
33
|
+
|
|
21
34
|
# PTY execution is optional. Pipe-backed exec_command remains available on all
|
|
22
35
|
# platforms through the shell capability consumed by the Codex tool layer.
|
|
23
36
|
- id: codex-terminal
|
package/presets/codex/preset.yml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
name: Codex 模式
|
|
2
|
-
description: 使用 Codex 的基础提示词、exec_command、write_stdin、apply_patch 和 update_plan,并保留 dsh 的 Skills 与可插拔运行时。
|
|
3
|
-
order: 5
|
|
1
|
+
name: Codex 模式
|
|
2
|
+
description: 使用 Codex 的基础提示词、exec_command、write_stdin、apply_patch 和 update_plan,并保留 dsh 的 Skills 与可插拔运行时。
|
|
3
|
+
order: 5
|