@shuind/dsh-codex-harness 0.2.21 → 0.3.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.
Files changed (200) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/README.md +38 -50
  3. package/RELEASE.md +61 -0
  4. package/assets/codex.svg +5 -0
  5. package/cordis.patch.yml +181 -6
  6. package/docs/preset-library.md +33 -23
  7. package/docs/tool-policy-benchmark.json +310 -0
  8. package/docs/tool-policy.md +148 -0
  9. package/lib/client.js +4774 -2416
  10. package/lib/compact-command.js +416 -0
  11. package/lib/compaction.js +141 -12
  12. package/lib/hybrid-executor.js +1196 -0
  13. package/lib/index.js +3658 -2334
  14. package/lib/preferences.js +117 -0
  15. package/lib/tool-policy.js +2422 -0
  16. package/lib/typert.js +86 -79
  17. package/lib/types/client/activity.d.ts +33 -9
  18. package/lib/types/client/activity.js +4 -3
  19. package/lib/types/client/desktop.d.ts +67 -0
  20. package/lib/types/client/desktop.js +229 -0
  21. package/lib/types/client/index.d.ts +207 -110
  22. package/lib/types/client/index.js +99 -492
  23. package/lib/types/client/policy-drafts.d.ts +25 -0
  24. package/lib/types/client/policy-drafts.js +47 -0
  25. package/lib/types/client/policy-locale.d.ts +260 -0
  26. package/lib/types/client/policy-locale.js +357 -0
  27. package/lib/types/client/preset-manager.d.ts +38 -10
  28. package/lib/types/client/preset-manager.js +235 -185
  29. package/lib/types/client/preset-requests.d.ts +12 -0
  30. package/lib/types/client/preset-requests.js +101 -0
  31. package/lib/types/client/tool-policy.d.ts +33 -0
  32. package/lib/types/client/tool-policy.js +336 -0
  33. package/lib/types/contracts/preset-editor-schema.d.ts +78 -0
  34. package/lib/types/contracts/preset-editor-schema.js +95 -0
  35. package/lib/types/{prompt.js → contracts/prompt.js} +13 -7
  36. package/lib/types/{settings.d.ts → contracts/settings.d.ts} +11 -4
  37. package/lib/types/{settings.js → contracts/settings.js} +22 -6
  38. package/lib/types/contracts/tool-policy-contract.d.ts +63 -0
  39. package/lib/types/contracts/tool-policy-contract.js +33 -0
  40. package/lib/types/contracts/ui-contracts.d.ts +92 -0
  41. package/lib/types/contracts/ui-contracts.js +83 -0
  42. package/lib/types/entries/client.d.ts +10 -0
  43. package/lib/types/entries/client.js +10 -0
  44. package/lib/types/{compact-command.d.ts → entries/compact-command.d.ts} +2 -0
  45. package/lib/types/entries/compact-command.js +176 -0
  46. package/lib/types/{compaction.d.ts → entries/compaction.d.ts} +15 -3
  47. package/lib/types/{compaction.js → entries/compaction.js} +47 -11
  48. package/lib/types/entries/hybrid-executor.d.ts +19 -0
  49. package/lib/types/entries/hybrid-executor.js +57 -0
  50. package/lib/types/entries/index.d.ts +66 -0
  51. package/lib/types/entries/index.js +192 -0
  52. package/lib/types/entries/preferences.d.ts +11 -0
  53. package/lib/types/entries/preferences.js +16 -0
  54. package/lib/types/entries/tool-policy.d.ts +97 -0
  55. package/lib/types/entries/tool-policy.js +158 -0
  56. package/lib/types/entries/typert.host.d.ts +23 -0
  57. package/lib/types/entries/typert.host.js +24 -0
  58. package/lib/types/hybrid/codex-hybrid-executor.d.ts +44 -0
  59. package/lib/types/hybrid/codex-hybrid-executor.js +257 -0
  60. package/lib/types/hybrid/hybrid-sdk.d.ts +13 -0
  61. package/lib/types/hybrid/hybrid-sdk.js +196 -0
  62. package/lib/types/hybrid/program-calls.d.ts +28 -0
  63. package/lib/types/hybrid/program-calls.js +193 -0
  64. package/lib/types/hybrid/subcall-scheduler.d.ts +90 -0
  65. package/lib/types/hybrid/subcall-scheduler.js +343 -0
  66. package/lib/types/policy/deferred-tools.d.ts +42 -0
  67. package/lib/types/policy/deferred-tools.js +264 -0
  68. package/lib/types/policy/overlay-installer.d.ts +12 -0
  69. package/lib/types/policy/overlay-installer.js +179 -0
  70. package/lib/types/policy/rule-resolver.d.ts +94 -0
  71. package/lib/types/policy/rule-resolver.js +114 -0
  72. package/lib/types/policy/tool-capabilities.d.ts +33 -0
  73. package/lib/types/policy/tool-capabilities.js +46 -0
  74. package/lib/types/{activity.d.ts → presets/activity.d.ts} +3 -5
  75. package/lib/types/{activity.js → presets/activity.js} +51 -27
  76. package/lib/types/presets/desktop-preset.d.ts +22 -0
  77. package/lib/types/presets/desktop-preset.js +43 -0
  78. package/lib/types/presets/preset-editor.d.ts +47 -0
  79. package/lib/types/presets/preset-editor.js +81 -0
  80. package/lib/types/presets/preset-prompt-catalog.d.ts +23 -0
  81. package/lib/types/presets/preset-prompt-catalog.js +215 -0
  82. package/lib/types/presets/preset-tool-catalog.d.ts +5 -0
  83. package/lib/types/presets/preset-tool-catalog.js +58 -0
  84. package/lib/types/presets/runtime-enhancements.d.ts +45 -0
  85. package/lib/types/presets/runtime-enhancements.js +349 -0
  86. package/lib/types/presets/small-window-compaction.d.ts +15 -0
  87. package/lib/types/presets/small-window-compaction.js +121 -0
  88. package/lib/types/responses/compact-checkpoint.d.ts +27 -0
  89. package/lib/types/responses/compact-checkpoint.js +257 -0
  90. package/lib/types/responses/fetch-transport.d.ts +16 -0
  91. package/lib/types/responses/fetch-transport.js +257 -0
  92. package/lib/types/responses/remote-compact.d.ts +13 -0
  93. package/lib/types/responses/remote-compact.js +319 -0
  94. package/lib/types/responses/sse-diagnostics.d.ts +9 -0
  95. package/lib/types/responses/sse-diagnostics.js +157 -0
  96. package/lib/types/responses/wire-rewrite.d.ts +35 -0
  97. package/lib/types/responses/wire-rewrite.js +237 -0
  98. package/lib/types/tools/exec-output.d.ts +58 -0
  99. package/lib/types/tools/exec-output.js +173 -0
  100. package/lib/types/tools/exec-plan-tools.d.ts +37 -0
  101. package/lib/types/tools/exec-plan-tools.js +265 -0
  102. package/lib/types/tools/exec-runner.d.ts +21 -0
  103. package/lib/types/tools/exec-runner.js +385 -0
  104. package/lib/types/tools/patch-tool.d.ts +16 -0
  105. package/lib/types/tools/patch-tool.js +258 -0
  106. package/lib/types/{patch.d.ts → tools/patch.d.ts} +1 -1
  107. package/lib/types/{patch.js → tools/patch.js} +96 -21
  108. package/locale/en.json +6 -0
  109. package/locale/hybrid-executor/en.json +6 -0
  110. package/locale/hybrid-executor/zh.json +6 -0
  111. package/locale/tool-policy/en.json +6 -0
  112. package/locale/tool-policy/zh.json +6 -0
  113. package/locale/zh.json +6 -0
  114. package/package.json +297 -299
  115. package/presets/{codex-collaboration → codex-hybrid}/agent.cordis.yml +45 -48
  116. package/presets/codex-hybrid/preset.yml +3 -0
  117. package/scripts/benchmark-tool-policy.mjs +186 -0
  118. package/scripts/build-preset.mjs +19 -0
  119. package/scripts/clean-build.mjs +11 -0
  120. package/src/client/activity.ts +83 -0
  121. package/src/client/desktop.tsx +276 -0
  122. package/src/client/index.tsx +391 -0
  123. package/src/client/policy-drafts.ts +56 -0
  124. package/src/client/policy-locale.ts +362 -0
  125. package/src/client/preset-manager.tsx +376 -0
  126. package/src/client/preset-requests.ts +113 -0
  127. package/src/client/tool-policy.tsx +402 -0
  128. package/src/contracts/preset-editor-schema.ts +110 -0
  129. package/src/contracts/prompt.ts +66 -0
  130. package/src/contracts/settings.ts +103 -0
  131. package/src/contracts/tool-policy-contract.ts +93 -0
  132. package/src/contracts/ui-contracts.ts +173 -0
  133. package/src/entries/client.tsx +14 -0
  134. package/src/entries/compact-command.ts +256 -0
  135. package/src/entries/compaction.ts +218 -0
  136. package/src/entries/hybrid-executor.ts +76 -0
  137. package/src/entries/index.ts +298 -0
  138. package/src/entries/preferences.ts +17 -0
  139. package/src/entries/tool-policy.ts +162 -0
  140. package/src/entries/typert.host.ts +29 -0
  141. package/src/hybrid/codex-hybrid-executor.ts +310 -0
  142. package/src/hybrid/hybrid-sdk.ts +217 -0
  143. package/src/hybrid/program-calls.ts +202 -0
  144. package/src/hybrid/subcall-scheduler.ts +446 -0
  145. package/src/policy/deferred-tools.ts +331 -0
  146. package/src/policy/overlay-installer.ts +191 -0
  147. package/src/policy/rule-resolver.ts +128 -0
  148. package/src/policy/tool-capabilities.ts +88 -0
  149. package/src/presets/activity.ts +146 -0
  150. package/src/presets/desktop-preset.ts +60 -0
  151. package/src/presets/preset-editor.ts +101 -0
  152. package/src/presets/preset-prompt-catalog.ts +221 -0
  153. package/src/presets/preset-tool-catalog.ts +58 -0
  154. package/src/presets/runtime-enhancements.ts +415 -0
  155. package/src/presets/small-window-compaction.ts +166 -0
  156. package/src/responses/compact-checkpoint.ts +264 -0
  157. package/src/responses/fetch-transport.ts +290 -0
  158. package/src/responses/remote-compact.ts +393 -0
  159. package/src/responses/sse-diagnostics.ts +156 -0
  160. package/src/responses/wire-rewrite.ts +261 -0
  161. package/src/tools/exec-output.ts +211 -0
  162. package/src/tools/exec-plan-tools.ts +307 -0
  163. package/src/tools/exec-runner.ts +445 -0
  164. package/src/tools/patch-tool.ts +331 -0
  165. package/src/tools/patch.ts +328 -0
  166. package/tsconfig.json +29 -0
  167. package/tsdown.config.ts +110 -0
  168. package/lib/installer.js +0 -237
  169. package/lib/invariant.js +0 -23
  170. package/lib/types/activity-types.d.ts +0 -6
  171. package/lib/types/activity-types.js +0 -3
  172. package/lib/types/client/preset-copy.d.ts +0 -42
  173. package/lib/types/client/preset-copy.js +0 -81
  174. package/lib/types/compact-command.js +0 -79
  175. package/lib/types/context.d.ts +0 -8
  176. package/lib/types/context.js +0 -14
  177. package/lib/types/exec.d.ts +0 -46
  178. package/lib/types/exec.js +0 -365
  179. package/lib/types/index.d.ts +0 -95
  180. package/lib/types/index.js +0 -738
  181. package/lib/types/installer.d.ts +0 -27
  182. package/lib/types/installer.js +0 -146
  183. package/lib/types/invariant.d.ts +0 -16
  184. package/lib/types/invariant.js +0 -22
  185. package/lib/types/preset-contract.d.ts +0 -69
  186. package/lib/types/preset-contract.js +0 -22
  187. package/lib/types/preset-editor-remote.d.ts +0 -30
  188. package/lib/types/preset-editor-remote.js +0 -37
  189. package/lib/types/preset-editor.d.ts +0 -69
  190. package/lib/types/preset-editor.js +0 -557
  191. package/lib/types/preset-templates.d.ts +0 -36
  192. package/lib/types/preset-templates.js +0 -12
  193. package/lib/types/prompt-sections.d.ts +0 -15
  194. package/lib/types/prompt-sections.js +0 -23
  195. package/lib/types/remote.d.ts +0 -40
  196. package/lib/types/remote.js +0 -683
  197. package/lib/types/typert.host.d.ts +0 -47
  198. package/lib/types/typert.host.js +0 -99
  199. package/presets/codex-collaboration/preset.yml +0 -3
  200. /package/lib/types/{prompt.d.ts → contracts/prompt.d.ts} +0 -0
package/package.json CHANGED
@@ -1,299 +1,297 @@
1
- {
2
- "name": "@shuind/dsh-codex-harness",
3
- "version": "0.2.21",
4
- "packageManager": "pnpm@9.15.9",
5
- "description": "Codex coding preset with customizable prompts and tools for DSH.",
6
- "type": "module",
7
- "main": "lib/index.js",
8
- "types": "lib/types/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./lib/types/index.d.ts",
12
- "default": "./lib/index.js"
13
- },
14
- "./invariant": {
15
- "types": "./lib/types/invariant.d.ts",
16
- "default": "./lib/invariant.js"
17
- },
18
- "./installer": {
19
- "types": "./lib/types/installer.d.ts",
20
- "default": "./lib/installer.js"
21
- },
22
- "./compaction": {
23
- "types": "./lib/types/compaction.d.ts",
24
- "default": "./lib/compaction.js"
25
- },
26
- "./compact-command": {
27
- "types": "./lib/types/compact-command.d.ts",
28
- "default": "./lib/types/compact-command.js"
29
- },
30
- "./prompt-sections": {
31
- "types": "./lib/types/prompt-sections.d.ts",
32
- "default": "./lib/types/prompt-sections.js"
33
- },
34
- "./typert": {
35
- "types": "./lib/types/typert.host.d.ts",
36
- "default": "./lib/typert.js"
37
- },
38
- "./client": {
39
- "types": "./lib/types/client/index.d.ts",
40
- "default": "./lib/client.js"
41
- },
42
- "./cordis.patch.yml": "./cordis.patch.yml",
43
- "./src/*": "./src/*",
44
- "./package.json": "./package.json"
45
- },
46
- "files": [
47
- "docs/preset-library.md",
48
- "lib/index.js",
49
- "lib/invariant.js",
50
- "lib/installer.js",
51
- "lib/compaction.js",
52
- "lib/typert.js",
53
- "lib/types/**/*.js",
54
- "lib/types/**/*.d.ts",
55
- "lib/client.js",
56
- "cordis.patch.yml",
57
- "presets/codex-collaboration",
58
- "README.md",
59
- "README.zh.md",
60
- "LICENSE"
61
- ],
62
- "scripts": {
63
- "build": "tsc --noCheck -p tsconfig.json && tsdown",
64
- "check": "tsc -p tsconfig.json --noEmit",
65
- "test": "vitest run",
66
- "pack:check": "npm pack --dry-run",
67
- "prepare": "npm run build"
68
- },
69
- "repository": {
70
- "type": "git",
71
- "url": "git+https://github.com/shuind/dsh-codex-harness.git"
72
- },
73
- "keywords": [
74
- "dsh-plugin",
75
- "deepseek-harness",
76
- "codex",
77
- "agent"
78
- ],
79
- "publishConfig": {
80
- "access": "public"
81
- },
82
- "license": "MIT",
83
- "dsh": {
84
- "engines": {
85
- "dsh": "0.1.5-rc.2"
86
- },
87
- "bundle": {
88
- "patch": "./cordis.patch.yml"
89
- },
90
- "client": {
91
- "inject": [
92
- "@deepseek-ai/dsh-client-locale",
93
- "@deepseek-ai/dsh-client-runtime",
94
- "@deepseek-ai/dsh-api-remotes",
95
- "@deepseek-ai/dsh-client-ui-conversation",
96
- "@deepseek-ai/dsh-client-ui-commands",
97
- "@deepseek-ai/dsh-client-ui-settings",
98
- "@deepseek-ai/dsh-client-ui-settings-plugins"
99
- ],
100
- "platform": "web"
101
- }
102
- },
103
- "dependencies": {
104
- "@deepseek-ai/schemastery": "^3.18.1",
105
- "yaml": "2.8.1",
106
- "zod": "^4.4.3"
107
- },
108
- "peerDependencies": {
109
- "@deepseek-ai/cordis": ">=4.0.1",
110
- "@deepseek-ai/dsh-agent": ">=0.1.0-rc.6",
111
- "@deepseek-ai/dsh-agent-presets": ">=0.1.5-rc.2",
112
- "@deepseek-ai/dsh-api-remotes": ">=0.1.5-rc.2",
113
- "@deepseek-ai/dsh-atomic-write": ">=0.1.5-rc.2",
114
- "@deepseek-ai/dsh-client-locale": ">=0.1.0-rc.8",
115
- "@deepseek-ai/dsh-client-runtime": ">=0.1.0-rc.8",
116
- "@deepseek-ai/dsh-client-ui-commands": ">=0.1.0-rc.8",
117
- "@deepseek-ai/dsh-client-ui-conversation": ">=0.1.0-rc.8",
118
- "@deepseek-ai/dsh-client-ui-settings": ">=0.1.0-rc.8",
119
- "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.0-rc.8",
120
- "@deepseek-ai/dsh-client-ui-slots": ">=0.1.0-rc.8",
121
- "@deepseek-ai/dsh-commands": ">=0.1.0-rc.8",
122
- "@deepseek-ai/dsh-compaction": ">=0.1.0-rc.8",
123
- "@deepseek-ai/dsh-compaction-basic": ">=0.1.0-rc.8",
124
- "@deepseek-ai/dsh-compaction-tool-result-pruner": ">=0.1.0-rc.8",
125
- "@deepseek-ai/dsh-credentials": ">=0.1.0-rc.8",
126
- "@deepseek-ai/dsh-fs": ">=0.0.1-rc.1",
127
- "@deepseek-ai/dsh-invariants": ">=0.0.1-rc.1",
128
- "@deepseek-ai/dsh-jobs": ">=0.1.0-rc.8",
129
- "@deepseek-ai/dsh-llm": ">=0.1.0-rc.8",
130
- "@deepseek-ai/dsh-persona": ">=0.1.3-alpha.2",
131
- "@deepseek-ai/dsh-sandbox": ">=0.0.1-rc.1",
132
- "@deepseek-ai/dsh-sandbox-policy": ">=0.0.1-rc.1",
133
- "@deepseek-ai/dsh-session": ">=0.1.0-rc.8",
134
- "@deepseek-ai/dsh-settings": ">=0.1.0-rc.8",
135
- "@deepseek-ai/dsh-shell": ">=0.0.1-rc.5",
136
- "@deepseek-ai/dsh-shell-env": ">=0.0.1-rc.3",
137
- "@deepseek-ai/dsh-system-prompt": ">=0.0.1-rc.1",
138
- "@deepseek-ai/dsh-terminal": ">=0.0.1-rc.3",
139
- "@deepseek-ai/dsh-token-meter": ">=0.1.0-rc.8",
140
- "@deepseek-ai/dsh-tool-jobs": ">=0.1.0-rc.8",
141
- "@deepseek-ai/dsh-tool-todo": ">=0.0.1-rc.1",
142
- "@deepseek-ai/dsh-tool-web": ">=0.1.0-rc.8",
143
- "@deepseek-ai/dsh-tools": ">=0.0.1-rc.1",
144
- "@deepseek-ai/dsh-typert-protocol": ">=0.1.5-rc.2"
145
- },
146
- "peerDependenciesMeta": {
147
- "@deepseek-ai/cordis": {
148
- "optional": true
149
- },
150
- "@deepseek-ai/dsh-agent": {
151
- "optional": true
152
- },
153
- "@deepseek-ai/dsh-agent-presets": {
154
- "optional": true
155
- },
156
- "@deepseek-ai/dsh-api-remotes": {
157
- "optional": true
158
- },
159
- "@deepseek-ai/dsh-atomic-write": {
160
- "optional": true
161
- },
162
- "@deepseek-ai/dsh-client-locale": {
163
- "optional": true
164
- },
165
- "@deepseek-ai/dsh-client-runtime": {
166
- "optional": true
167
- },
168
- "@deepseek-ai/dsh-client-ui-conversation": {
169
- "optional": true
170
- },
171
- "@deepseek-ai/dsh-client-ui-commands": {
172
- "optional": true
173
- },
174
- "@deepseek-ai/dsh-commands": {
175
- "optional": true
176
- },
177
- "@deepseek-ai/dsh-client-ui-settings": {
178
- "optional": true
179
- },
180
- "@deepseek-ai/dsh-client-ui-settings-plugins": {
181
- "optional": true
182
- },
183
- "@deepseek-ai/dsh-client-ui-slots": {
184
- "optional": true
185
- },
186
- "@deepseek-ai/dsh-compaction": {
187
- "optional": true
188
- },
189
- "@deepseek-ai/dsh-compaction-basic": {
190
- "optional": true
191
- },
192
- "@deepseek-ai/dsh-compaction-tool-result-pruner": {
193
- "optional": true
194
- },
195
- "@deepseek-ai/dsh-credentials": {
196
- "optional": true
197
- },
198
- "@deepseek-ai/dsh-fs": {
199
- "optional": true
200
- },
201
- "@deepseek-ai/dsh-invariants": {
202
- "optional": true
203
- },
204
- "@deepseek-ai/dsh-jobs": {
205
- "optional": true
206
- },
207
- "@deepseek-ai/dsh-llm": {
208
- "optional": true
209
- },
210
- "@deepseek-ai/dsh-persona": {
211
- "optional": true
212
- },
213
- "@deepseek-ai/dsh-settings": {
214
- "optional": true
215
- },
216
- "@deepseek-ai/dsh-sandbox": {
217
- "optional": true
218
- },
219
- "@deepseek-ai/dsh-sandbox-policy": {
220
- "optional": true
221
- },
222
- "@deepseek-ai/dsh-session": {
223
- "optional": true
224
- },
225
- "@deepseek-ai/dsh-shell": {
226
- "optional": true
227
- },
228
- "@deepseek-ai/dsh-shell-env": {
229
- "optional": true
230
- },
231
- "@deepseek-ai/dsh-system-prompt": {
232
- "optional": true
233
- },
234
- "@deepseek-ai/dsh-tool-web": {
235
- "optional": true
236
- },
237
- "@deepseek-ai/dsh-tool-todo": {
238
- "optional": true
239
- },
240
- "@deepseek-ai/dsh-terminal": {
241
- "optional": true
242
- },
243
- "@deepseek-ai/dsh-tool-jobs": {
244
- "optional": true
245
- },
246
- "@deepseek-ai/dsh-token-meter": {
247
- "optional": true
248
- },
249
- "@deepseek-ai/dsh-tools": {
250
- "optional": true
251
- },
252
- "@deepseek-ai/dsh-typert-protocol": {
253
- "optional": true
254
- }
255
- },
256
- "devDependencies": {
257
- "@deepseek-ai/cordis": "4.0.1",
258
- "@deepseek-ai/cordis-plugin-include": "1.0.6",
259
- "@deepseek-ai/cordis-plugin-loader": "1.0.2",
260
- "@deepseek-ai/dsh-agent": "0.1.0-rc.6",
261
- "@deepseek-ai/dsh-atomic-write": "0.1.5-rc.2",
262
- "@deepseek-ai/dsh-client-locale": "0.1.0-rc.8",
263
- "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.8",
264
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.8",
265
- "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.8",
266
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.8",
267
- "@deepseek-ai/dsh-compaction": "0.1.1-rc.2",
268
- "@deepseek-ai/dsh-compaction-basic": "0.1.1-rc.2",
269
- "@deepseek-ai/dsh-compaction-tool-result-pruner": "0.1.1-rc.2",
270
- "@deepseek-ai/dsh-credentials": "0.1.0-rc.8",
271
- "@deepseek-ai/dsh-fs": "0.1.0-rc.6",
272
- "@deepseek-ai/dsh-invariants": "0.1.0-rc.6",
273
- "@deepseek-ai/dsh-jobs": "0.1.0-rc.8",
274
- "@deepseek-ai/dsh-llm": "0.1.0-rc.8",
275
- "@deepseek-ai/dsh-sandbox": "0.1.0-rc.6",
276
- "@deepseek-ai/dsh-sandbox-policy": "0.1.0-rc.6",
277
- "@deepseek-ai/dsh-session": "0.1.1-rc.2",
278
- "@deepseek-ai/dsh-settings": "0.1.0-rc.8",
279
- "@deepseek-ai/dsh-shell": "0.1.0-rc.6",
280
- "@deepseek-ai/dsh-shell-env": "0.1.0-rc.6",
281
- "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
282
- "@deepseek-ai/dsh-terminal": "0.1.0-rc.6",
283
- "@deepseek-ai/dsh-token-meter": "0.1.1-rc.2",
284
- "@deepseek-ai/dsh-tool-jobs": "0.1.0-rc.8",
285
- "@deepseek-ai/dsh-tool-todo": "0.1.0-rc.6",
286
- "@deepseek-ai/dsh-tool-web": "0.1.0-rc.8",
287
- "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
288
- "@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.2",
289
- "@types/node": "^22.20.0",
290
- "@types/react": "~18.3.1",
291
- "@types/react-dom": "~18.3.0",
292
- "react": "^18.3.1",
293
- "react-dom": "^18.3.1",
294
- "tsdown": "^0.22.2",
295
- "typescript": "^6.0.3",
296
- "unrun": "^0.3.1",
297
- "vitest": "^4.1.8"
298
- }
299
- }
1
+ {
2
+ "name": "@shuind/dsh-codex-harness",
3
+ "version": "0.3.0",
4
+ "packageManager": "pnpm@9.15.9",
5
+ "description": "Customizable Codex coding preset, tools and Responses enhancements for DeepSeek Harness.",
6
+ "type": "module",
7
+ "main": "lib/index.js",
8
+ "types": "lib/types/entries/index.d.ts",
9
+ "exports": {
10
+ ".": { "types": "./lib/types/entries/index.d.ts", "default": "./lib/index.js" },
11
+ "./preferences": { "types": "./lib/types/entries/preferences.d.ts", "default": "./lib/preferences.js" },
12
+ "./compaction": { "types": "./lib/types/entries/compaction.d.ts", "default": "./lib/compaction.js" },
13
+ "./tool-policy": { "types": "./lib/types/entries/tool-policy.d.ts", "default": "./lib/tool-policy.js" },
14
+ "./tool-policy/locale/*.json": "./locale/tool-policy/*.json",
15
+ "./tool-policy/icon": "./assets/codex.svg",
16
+ "./hybrid-executor": { "types": "./lib/types/entries/hybrid-executor.d.ts", "default": "./lib/hybrid-executor.js" },
17
+ "./hybrid-executor/locale/*.json": "./locale/hybrid-executor/*.json",
18
+ "./hybrid-executor/icon": "./assets/codex.svg",
19
+ "./compact-command": { "types": "./lib/types/entries/compact-command.d.ts", "default": "./lib/compact-command.js" },
20
+ "./typert": { "types": "./lib/types/entries/typert.host.d.ts", "default": "./lib/typert.js" },
21
+ "./client": { "types": "./lib/types/entries/client.d.ts", "default": "./lib/client.js" },
22
+ "./locale/*.json": "./locale/*.json",
23
+ "./icon": "./assets/codex.svg",
24
+ "./preferences/locale/*.json": "./locale/*.json",
25
+ "./preferences/icon": "./assets/codex.svg",
26
+ "./cordis.patch.yml": "./cordis.patch.yml",
27
+ "./src/*": "./src/*",
28
+ "./package.json": "./package.json"
29
+ },
30
+ "files": [
31
+ "docs/preset-library.md",
32
+ "docs/tool-policy.md",
33
+ "docs/tool-policy-benchmark.json",
34
+ "lib/index.js",
35
+ "lib/preferences.js",
36
+ "lib/compaction.js",
37
+ "lib/compact-command.js",
38
+ "lib/tool-policy.js",
39
+ "lib/hybrid-executor.js",
40
+ "lib/typert.js",
41
+ "lib/types/**/*.js",
42
+ "lib/types/**/*.d.ts",
43
+ "lib/client.js",
44
+ "src",
45
+ "scripts/build-preset.mjs",
46
+ "scripts/clean-build.mjs",
47
+ "scripts/benchmark-tool-policy.mjs",
48
+ "tsconfig.json",
49
+ "tsdown.config.ts",
50
+ "cordis.patch.yml",
51
+ "presets/codex-hybrid",
52
+ "locale/*.json",
53
+ "locale/tool-policy/*.json",
54
+ "locale/hybrid-executor/*.json",
55
+ "assets/codex.svg",
56
+ "README.md",
57
+ "README.zh.md",
58
+ "CHANGELOG.md",
59
+ "RELEASE.md",
60
+ "LICENSE"
61
+ ],
62
+ "scripts": {
63
+ "build": "node scripts/clean-build.mjs && tsc --noCheck -p tsconfig.json && node scripts/build-preset.mjs && tsdown",
64
+ "check": "tsc -p tsconfig.json --noEmit",
65
+ "test": "vitest run --pool=threads",
66
+ "bench:tools": "node scripts/benchmark-tool-policy.mjs",
67
+ "pack:check": "npm pack --dry-run",
68
+ "prepare": "npm run build"
69
+ },
70
+ "repository": { "type": "git", "url": "git+https://github.com/shuind/dsh-codex-harness.git" },
71
+ "keywords": ["dsh-plugin", "deepseek-harness", "codex", "agent"],
72
+ "publishConfig": { "access": "public" },
73
+ "license": "MIT",
74
+ "engines": {
75
+ "dsh": ">=0.2.2-rc.1 <=0.2.2-rc.4"
76
+ },
77
+ "dsh": {
78
+ "bundle": { "patch": "./cordis.patch.yml" },
79
+ "client": {
80
+ "inject": [
81
+ "@deepseek-ai/dsh-client-locale",
82
+ "@deepseek-ai/dsh-api-remotes",
83
+ "@deepseek-ai/dsh-client-ui-conversation",
84
+ "@deepseek-ai/dsh-client-ui-commands",
85
+ "@deepseek-ai/dsh-client-ui-settings",
86
+ "@deepseek-ai/dsh-client-ui-plugin-manager"
87
+ ],
88
+ "platform": "web"
89
+ }
90
+ },
91
+ "dependencies": {
92
+ "@deepseek-ai/schemastery": "~3.19.0",
93
+ "yaml": "2.8.1",
94
+ "zod": "4.6.6"
95
+ },
96
+ "peerDependencies": {
97
+ "@deepseek-ai/cordis": "~4.1.0",
98
+ "@deepseek-ai/dsh-agent": ">=0.2.2-rc.1 <0.2.3",
99
+ "@deepseek-ai/dsh-agent-preset": ">=0.2.2-rc.1 <0.2.3",
100
+ "@deepseek-ai/dsh-agent-preset-registry": ">=0.2.2-rc.1 <0.2.3",
101
+ "@deepseek-ai/dsh-api-remotes": ">=0.2.2-rc.1 <0.2.3",
102
+ "@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1 <0.2.3",
103
+ "@deepseek-ai/dsh-client-ui-commands": ">=0.2.2-rc.1 <0.2.3",
104
+ "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.2-rc.1 <0.2.3",
105
+ "@deepseek-ai/dsh-client-ui-plugin-manager": ">=0.2.2-rc.1 <0.2.3",
106
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.2.2-rc.1 <0.2.3",
107
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.1 <0.2.3",
108
+ "@deepseek-ai/dsh-commands": ">=0.2.2-rc.1 <0.2.3",
109
+ "@deepseek-ai/dsh-compaction": ">=0.2.2-rc.1 <0.2.3",
110
+ "@deepseek-ai/dsh-compaction-basic": ">=0.2.2-rc.1 <0.2.3",
111
+ "@deepseek-ai/dsh-compaction-tool-result-pruner": ">=0.2.2-rc.1 <0.2.3",
112
+ "@deepseek-ai/dsh-credentials": ">=0.2.2-rc.1 <0.2.3",
113
+ "@deepseek-ai/dsh-fs": ">=0.2.2-rc.1 <0.2.3",
114
+ "@deepseek-ai/dsh-jobs": ">=0.2.2-rc.1 <0.2.3",
115
+ "@deepseek-ai/dsh-llm": ">=0.2.2-rc.1 <0.2.3",
116
+ "@deepseek-ai/dsh-persona": ">=0.2.2-rc.1 <0.2.3",
117
+ "@deepseek-ai/dsh-sandbox": ">=0.2.2-rc.1 <0.2.3",
118
+ "@deepseek-ai/dsh-sandbox-policy": ">=0.2.2-rc.1 <0.2.3",
119
+ "@deepseek-ai/dsh-scope": ">=0.2.2-rc.1 <0.2.3",
120
+ "@deepseek-ai/dsh-session": ">=0.2.2-rc.1 <0.2.3",
121
+ "@deepseek-ai/dsh-session-projection": ">=0.2.2-rc.1 <0.2.3",
122
+ "@deepseek-ai/dsh-settings": ">=0.2.2-rc.1 <0.2.3",
123
+ "@deepseek-ai/dsh-shell": ">=0.2.2-rc.1 <0.2.3",
124
+ "@deepseek-ai/dsh-shell-env": ">=0.2.2-rc.1 <0.2.3",
125
+ "@deepseek-ai/dsh-system-prompt": ">=0.2.2-rc.1 <0.2.3",
126
+ "@deepseek-ai/dsh-terminal": ">=0.2.2-rc.1 <0.2.3",
127
+ "@deepseek-ai/dsh-token-meter": ">=0.2.2-rc.1 <0.2.3",
128
+ "@deepseek-ai/dsh-tool-fs": ">=0.2.2-rc.1 <0.2.3",
129
+ "@deepseek-ai/dsh-tool-jobs": ">=0.2.2-rc.1 <0.2.3",
130
+ "@deepseek-ai/dsh-tool-todo": ">=0.2.2-rc.1 <0.2.3",
131
+ "@deepseek-ai/dsh-tool-web": ">=0.2.2-rc.1 <0.2.3",
132
+ "@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.2.3",
133
+ "@deepseek-ai/dsh-typert-protocol": ">=0.2.2-rc.1 <0.2.3"
134
+ },
135
+ "peerDependenciesMeta": {
136
+ "@deepseek-ai/cordis": { "optional": true },
137
+ "@deepseek-ai/dsh-agent": { "optional": true },
138
+ "@deepseek-ai/dsh-agent-preset": { "optional": true },
139
+ "@deepseek-ai/dsh-agent-preset-registry": { "optional": true },
140
+ "@deepseek-ai/dsh-api-remotes": { "optional": true },
141
+ "@deepseek-ai/dsh-client-locale": { "optional": true },
142
+ "@deepseek-ai/dsh-client-ui-commands": { "optional": true },
143
+ "@deepseek-ai/dsh-client-ui-conversation": { "optional": true },
144
+ "@deepseek-ai/dsh-client-ui-plugin-manager": { "optional": true },
145
+ "@deepseek-ai/dsh-client-ui-settings": { "optional": true },
146
+ "@deepseek-ai/dsh-client-ui-slots": { "optional": true },
147
+ "@deepseek-ai/dsh-commands": { "optional": true },
148
+ "@deepseek-ai/dsh-compaction": { "optional": true },
149
+ "@deepseek-ai/dsh-compaction-basic": { "optional": true },
150
+ "@deepseek-ai/dsh-compaction-tool-result-pruner": { "optional": true },
151
+ "@deepseek-ai/dsh-credentials": { "optional": true },
152
+ "@deepseek-ai/dsh-fs": { "optional": true },
153
+ "@deepseek-ai/dsh-jobs": { "optional": true },
154
+ "@deepseek-ai/dsh-llm": { "optional": true },
155
+ "@deepseek-ai/dsh-persona": { "optional": true },
156
+ "@deepseek-ai/dsh-sandbox": { "optional": true },
157
+ "@deepseek-ai/dsh-sandbox-policy": { "optional": true },
158
+ "@deepseek-ai/dsh-scope": { "optional": true },
159
+ "@deepseek-ai/dsh-session": { "optional": true },
160
+ "@deepseek-ai/dsh-session-projection": { "optional": true },
161
+ "@deepseek-ai/dsh-settings": { "optional": true },
162
+ "@deepseek-ai/dsh-shell": { "optional": true },
163
+ "@deepseek-ai/dsh-shell-env": { "optional": true },
164
+ "@deepseek-ai/dsh-system-prompt": { "optional": true },
165
+ "@deepseek-ai/dsh-terminal": { "optional": true },
166
+ "@deepseek-ai/dsh-token-meter": { "optional": true },
167
+ "@deepseek-ai/dsh-tool-fs": { "optional": true },
168
+ "@deepseek-ai/dsh-tool-jobs": { "optional": true },
169
+ "@deepseek-ai/dsh-tool-todo": { "optional": true },
170
+ "@deepseek-ai/dsh-tool-web": { "optional": true },
171
+ "@deepseek-ai/dsh-tools": { "optional": true },
172
+ "@deepseek-ai/dsh-typert-protocol": { "optional": true }
173
+ },
174
+ "devDependencies": {
175
+ "@deepseek-ai/cordis": "4.1.0",
176
+ "@deepseek-ai/cordis-plugin-group": "1.1.0",
177
+ "@deepseek-ai/cordis-plugin-include": "1.1.0",
178
+ "@deepseek-ai/cordis-plugin-loader": "1.1.0",
179
+ "@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.4",
180
+ "@deepseek-ai/dsh-tool-fs": "0.2.2-rc.4",
181
+ "@deepseek-ai/dsh-tool-fs-search": "0.2.2-rc.4",
182
+ "@deepseek-ai/dsh-tool-pwsh": "0.2.2-rc.4",
183
+ "js-tiktoken": "^1.0.21",
184
+ "@deepseek-ai/dsh-fs-local": "0.2.2-rc.4",
185
+ "@deepseek-ai/dsh-llm-pi-ai": "0.2.2-rc.4",
186
+ "@deepseek-ai/dsh-subprocess-local": "0.2.2-rc.4",
187
+ "@deepseek-ai/dsh-pwsh-local": "0.2.2-rc.4",
188
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.4",
189
+ "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.4",
190
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.4",
191
+ "@deepseek-ai/dsh-agent-instructions": "0.2.2-rc.4",
192
+ "@deepseek-ai/dsh-terminal-bash": "0.2.2-rc.4",
193
+ "@deepseek-ai/dsh-skill-filesystem": "0.2.2-rc.4",
194
+ "@deepseek-ai/dsh-tool-skill": "0.2.2-rc.4",
195
+ "@deepseek-ai/dsh-tool-goal": "0.2.2-rc.4",
196
+ "@deepseek-ai/dsh-plan-mode": "0.2.2-rc.4",
197
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.4",
198
+ "@deepseek-ai/dsh-tool-subagent-control": "0.2.2-rc.4",
199
+ "@deepseek-ai/dsh-tool-subagent": "0.2.2-rc.4",
200
+ "@deepseek-ai/dsh-workflow-ptc": "0.2.2-rc.4",
201
+ "@deepseek-ai/dsh-tool-workflow": "0.2.2-rc.4",
202
+ "@deepseek-ai/dsh-tool-ralph": "0.2.2-rc.4",
203
+ "@deepseek-ai/dsh-tool-ask-user": "0.2.2-rc.4",
204
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.4",
205
+ "@deepseek-ai/dsh-agent-preset": "0.2.2-rc.4",
206
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.4",
207
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.4",
208
+ "@deepseek-ai/dsh-atomic-write": "0.2.2-rc.4",
209
+ "@deepseek-ai/dsh-brand": "0.2.2-rc.4",
210
+ "@deepseek-ai/dsh-attachment": "0.2.2-rc.4",
211
+ "@deepseek-ai/dsh-home-paths": "0.2.2-rc.4",
212
+ "@deepseek-ai/dsh-llm-retry": "0.2.2-rc.4",
213
+ "@deepseek-ai/dsh-subprocess": "0.2.2-rc.4",
214
+ "@deepseek-ai/dsh-timeout": "0.2.2-rc.4",
215
+ "@deepseek-ai/dsh-user-approval": "0.2.2-rc.4",
216
+ "@deepseek-ai/dsh-web": "0.2.2-rc.4",
217
+ "@deepseek-ai/dsh-client-locale": "0.2.2-rc.4",
218
+ "@deepseek-ai/dsh-client-ui-commands": "0.2.2-rc.4",
219
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.4",
220
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.2-rc.4",
221
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.4",
222
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.4",
223
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.4",
224
+ "@deepseek-ai/dsh-compaction": "0.2.2-rc.4",
225
+ "@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.4",
226
+ "@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.2-rc.4",
227
+ "@deepseek-ai/dsh-credentials": "0.2.2-rc.4",
228
+ "@deepseek-ai/dsh-fs": "0.2.2-rc.4",
229
+ "@deepseek-ai/dsh-jobs": "0.2.2-rc.4",
230
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.4",
231
+ "@deepseek-ai/dsh-persona": "0.2.2-rc.4",
232
+ "@deepseek-ai/dsh-sandbox": "0.2.2-rc.4",
233
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.4",
234
+ "@deepseek-ai/dsh-scope": "0.2.2-rc.4",
235
+ "@deepseek-ai/dsh-session": "0.2.2-rc.4",
236
+ "@deepseek-ai/dsh-session-projection": "0.2.2-rc.4",
237
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.4",
238
+ "@deepseek-ai/dsh-shell": "0.2.2-rc.4",
239
+ "@deepseek-ai/dsh-shell-env": "0.2.2-rc.4",
240
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.4",
241
+ "@deepseek-ai/dsh-terminal": "0.2.2-rc.4",
242
+ "@deepseek-ai/dsh-token-meter": "0.2.2-rc.4",
243
+ "@deepseek-ai/dsh-tool-jobs": "0.2.2-rc.4",
244
+ "@deepseek-ai/dsh-tool-todo": "0.2.2-rc.4",
245
+ "@deepseek-ai/dsh-tool-web": "0.2.2-rc.4",
246
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.4",
247
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.4",
248
+ "@deepseek-ai/dsh-agent-default-model": "0.2.2-rc.4",
249
+ "@deepseek-ai/dsh-api-gateway": "0.2.2-rc.4",
250
+ "@deepseek-ai/dsh-authorization": "0.2.2-rc.4",
251
+ "@deepseek-ai/dsh-chunked-list": "0.2.2-rc.4",
252
+ "@deepseek-ai/dsh-client-connection": "0.2.2-rc.4",
253
+ "@deepseek-ai/dsh-client-file-upload": "0.2.2-rc.4",
254
+ "@deepseek-ai/dsh-compaction-image-offload": "0.2.2-rc.4",
255
+ "@deepseek-ai/dsh-config-editor": "0.2.2-rc.4",
256
+ "@deepseek-ai/dsh-deque": "0.2.2-rc.4",
257
+ "@deepseek-ai/dsh-file-reference": "0.2.2-rc.4",
258
+ "@deepseek-ai/dsh-goal": "0.2.2-rc.4",
259
+ "@deepseek-ai/dsh-http-proxy": "0.2.2-rc.4",
260
+ "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.4",
261
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.2-rc.4",
262
+ "@deepseek-ai/dsh-session-format": "0.2.2-rc.4",
263
+ "@deepseek-ai/dsh-session-format-catalog": "0.2.2-rc.4",
264
+ "@deepseek-ai/dsh-session-format-v0-to-v1": "0.2.2-rc.4",
265
+ "@deepseek-ai/dsh-session-format-v1-to-v2": "0.2.2-rc.4",
266
+ "@deepseek-ai/dsh-session-format-v2-to-v3": "0.2.2-rc.4",
267
+ "@deepseek-ai/dsh-session-format-v3-to-v4": "0.2.2-rc.4",
268
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-rc.4",
269
+ "@deepseek-ai/dsh-session-query": "0.2.2-rc.4",
270
+ "@deepseek-ai/dsh-session-title": "0.2.2-rc.4",
271
+ "@deepseek-ai/dsh-skill": "0.2.2-rc.4",
272
+ "@deepseek-ai/dsh-spill": "0.2.2-rc.4",
273
+ "@deepseek-ai/dsh-storage": "0.2.2-rc.4",
274
+ "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.4",
275
+ "@deepseek-ai/dsh-subagent": "0.2.2-rc.4",
276
+ "@deepseek-ai/dsh-typert-registry": "0.2.2-rc.4",
277
+ "@deepseek-ai/dsh-user-questions": "0.2.2-rc.4",
278
+ "@deepseek-ai/dsh-util-crypto": "0.2.2-rc.4",
279
+ "@deepseek-ai/dsh-util-time": "0.2.2-rc.4",
280
+ "@deepseek-ai/dsh-util-values": "0.2.2-rc.4",
281
+ "@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.4",
282
+ "@deepseek-ai/dsh-workflow": "0.2.2-rc.4",
283
+ "@deepseek-ai/dsh-working-directory": "0.2.2-rc.4",
284
+ "@deepseek-ai/dsh-workspace": "0.2.2-rc.4",
285
+ "@types/node": "^22.20.0",
286
+ "@types/react": "~18.3.1",
287
+ "@types/react-dom": "~18.3.0",
288
+ "react": "^18.3.1",
289
+ "react-dom": "^18.3.1",
290
+ "zustand": "~4.5.7",
291
+ "immer": "^10.1.1",
292
+ "tsdown": "^0.22.2",
293
+ "typescript": "^6.0.3",
294
+ "unrun": "^0.3.1",
295
+ "vitest": "^4.1.8"
296
+ }
297
+ }