@shuind/dsh-codex-harness 0.2.15 → 0.2.16

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.
@@ -0,0 +1,36 @@
1
+ /** Extend this registry to add task-specific starting instructions without new UI branches. */
2
+ export declare const PRESET_TEMPLATES: readonly [{
3
+ readonly id: "general";
4
+ readonly label: "pmGeneral";
5
+ readonly description: "pmGeneralDesc";
6
+ readonly inheritPrompt: true;
7
+ readonly prompt: string;
8
+ }, {
9
+ readonly id: "review";
10
+ readonly label: "pmReview";
11
+ readonly description: "pmReviewDesc";
12
+ readonly inheritPrompt: false;
13
+ readonly prompt: `${string}
14
+
15
+ # Code review workflow
16
+ Review the requested changes for concrete correctness defects, regressions, and missing tests. Cite the affected code and a reproducible scenario. Prioritize findings by impact. Do not change files unless the user asks for a fix. If no actionable findings are found, say so and state any testing gaps.`;
17
+ }, {
18
+ readonly id: "debug";
19
+ readonly label: "pmDebug";
20
+ readonly description: "pmDebugDesc";
21
+ readonly inheritPrompt: false;
22
+ readonly prompt: `${string}
23
+
24
+ # Debugging workflow
25
+ Start from a reproducible symptom and preserve evidence. Form a narrow hypothesis, test it, and fix the root cause with the smallest correct change. Verify the original failure and relevant regressions. Report what was confirmed, what changed, and any remaining uncertainty.`;
26
+ }, {
27
+ readonly id: "docs";
28
+ readonly label: "pmDocs";
29
+ readonly description: "pmDocsDesc";
30
+ readonly inheritPrompt: false;
31
+ readonly prompt: `${string}
32
+
33
+ # Documentation workflow
34
+ Check the current source and supported interfaces before writing. Explain the reader's goal, prerequisites, and a working example. Keep commands and paths accurate. Do not invent features or guarantees. Keep documentation changes focused and verify examples where practical.`;
35
+ }];
36
+ //# sourceMappingURL=preset-templates.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { DEFAULT_CODEX_SYSTEM_PROMPT } from "./prompt.js";
2
+ /** Extend this registry to add task-specific starting instructions without new UI branches. */
3
+ export const PRESET_TEMPLATES = [
4
+ { id: 'general', label: 'pmGeneral', description: 'pmGeneralDesc', inheritPrompt: true, prompt: DEFAULT_CODEX_SYSTEM_PROMPT },
5
+ { id: 'review', label: 'pmReview', description: 'pmReviewDesc', inheritPrompt: false,
6
+ prompt: `${DEFAULT_CODEX_SYSTEM_PROMPT}\n\n# Code review workflow\nReview the requested changes for concrete correctness defects, regressions, and missing tests. Cite the affected code and a reproducible scenario. Prioritize findings by impact. Do not change files unless the user asks for a fix. If no actionable findings are found, say so and state any testing gaps.` },
7
+ { id: 'debug', label: 'pmDebug', description: 'pmDebugDesc', inheritPrompt: false,
8
+ prompt: `${DEFAULT_CODEX_SYSTEM_PROMPT}\n\n# Debugging workflow\nStart from a reproducible symptom and preserve evidence. Form a narrow hypothesis, test it, and fix the root cause with the smallest correct change. Verify the original failure and relevant regressions. Report what was confirmed, what changed, and any remaining uncertainty.` },
9
+ { id: 'docs', label: 'pmDocs', description: 'pmDocsDesc', inheritPrompt: false,
10
+ prompt: `${DEFAULT_CODEX_SYSTEM_PROMPT}\n\n# Documentation workflow\nCheck the current source and supported interfaces before writing. Explain the reader's goal, prerequisites, and a working example. Keep commands and paths accurate. Do not invent features or guarantees. Keep documentation changes focused and verify examples where practical.` },
11
+ ];
12
+ //# sourceMappingURL=preset-templates.js.map
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@shuind/dsh-codex-harness",
3
- "version": "0.2.15",
4
- "packageManager": "pnpm@9.15.9",
3
+ "version": "0.2.16",
5
4
  "description": "Codex coding preset with customizable prompts and tools for DSH.",
6
5
  "type": "module",
7
6
  "main": "lib/index.js",
@@ -36,6 +35,7 @@
36
35
  "./package.json": "./package.json"
37
36
  },
38
37
  "files": [
38
+ "docs/preset-library.md",
39
39
  "lib/index.js",
40
40
  "lib/invariant.js",
41
41
  "lib/installer.js",
@@ -49,13 +49,6 @@
49
49
  "README.zh.md",
50
50
  "LICENSE"
51
51
  ],
52
- "scripts": {
53
- "build": "tsc --noCheck -p tsconfig.json && tsdown",
54
- "check": "tsc -p tsconfig.json --noEmit",
55
- "test": "vitest run",
56
- "pack:check": "npm pack --dry-run",
57
- "prepare": "npm run build"
58
- },
59
52
  "repository": {
60
53
  "type": "git",
61
54
  "url": "git+https://github.com/shuind/dsh-codex-harness.git"
@@ -78,6 +71,7 @@
78
71
  "inject": [
79
72
  "@deepseek-ai/dsh-client-locale",
80
73
  "@deepseek-ai/dsh-client-runtime",
74
+ "@deepseek-ai/dsh-api-remotes",
81
75
  "@deepseek-ai/dsh-client-ui-conversation",
82
76
  "@deepseek-ai/dsh-client-ui-commands",
83
77
  "@deepseek-ai/dsh-client-ui-settings",
@@ -88,15 +82,19 @@
88
82
  },
89
83
  "dependencies": {
90
84
  "@deepseek-ai/schemastery": "^3.18.1",
85
+ "yaml": "2.8.1",
91
86
  "zod": "^4.4.3"
92
87
  },
93
88
  "peerDependencies": {
94
89
  "@deepseek-ai/cordis": ">=4.0.1",
95
90
  "@deepseek-ai/dsh-agent": ">=0.1.0-rc.6",
91
+ "@deepseek-ai/dsh-agent-presets": ">=0.1.5-rc.2",
92
+ "@deepseek-ai/dsh-api-remotes": ">=0.1.5-rc.2",
93
+ "@deepseek-ai/dsh-atomic-write": ">=0.1.5-rc.2",
96
94
  "@deepseek-ai/dsh-client-locale": ">=0.1.0-rc.8",
97
95
  "@deepseek-ai/dsh-client-runtime": ">=0.1.0-rc.8",
98
- "@deepseek-ai/dsh-client-ui-conversation": ">=0.1.0-rc.8",
99
96
  "@deepseek-ai/dsh-client-ui-commands": ">=0.1.0-rc.8",
97
+ "@deepseek-ai/dsh-client-ui-conversation": ">=0.1.0-rc.8",
100
98
  "@deepseek-ai/dsh-client-ui-settings": ">=0.1.0-rc.8",
101
99
  "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.0-rc.8",
102
100
  "@deepseek-ai/dsh-client-ui-slots": ">=0.1.0-rc.8",
@@ -110,19 +108,20 @@
110
108
  "@deepseek-ai/dsh-jobs": ">=0.1.0-rc.8",
111
109
  "@deepseek-ai/dsh-llm": ">=0.1.0-rc.8",
112
110
  "@deepseek-ai/dsh-persona": ">=0.1.3-alpha.2",
113
- "@deepseek-ai/dsh-settings": ">=0.1.0-rc.8",
114
111
  "@deepseek-ai/dsh-sandbox": ">=0.0.1-rc.1",
115
112
  "@deepseek-ai/dsh-sandbox-policy": ">=0.0.1-rc.1",
116
113
  "@deepseek-ai/dsh-session": ">=0.1.0-rc.8",
114
+ "@deepseek-ai/dsh-settings": ">=0.1.0-rc.8",
117
115
  "@deepseek-ai/dsh-shell": ">=0.0.1-rc.5",
118
116
  "@deepseek-ai/dsh-shell-env": ">=0.0.1-rc.3",
119
117
  "@deepseek-ai/dsh-system-prompt": ">=0.0.1-rc.1",
120
- "@deepseek-ai/dsh-tool-web": ">=0.1.0-rc.8",
121
- "@deepseek-ai/dsh-tool-todo": ">=0.0.1-rc.1",
122
118
  "@deepseek-ai/dsh-terminal": ">=0.0.1-rc.3",
123
- "@deepseek-ai/dsh-tool-jobs": ">=0.1.0-rc.8",
124
119
  "@deepseek-ai/dsh-token-meter": ">=0.1.0-rc.8",
125
- "@deepseek-ai/dsh-tools": ">=0.0.1-rc.1"
120
+ "@deepseek-ai/dsh-tool-jobs": ">=0.1.0-rc.8",
121
+ "@deepseek-ai/dsh-tool-todo": ">=0.0.1-rc.1",
122
+ "@deepseek-ai/dsh-tool-web": ">=0.1.0-rc.8",
123
+ "@deepseek-ai/dsh-tools": ">=0.0.1-rc.1",
124
+ "@deepseek-ai/dsh-typert-protocol": ">=0.1.5-rc.2"
126
125
  },
127
126
  "peerDependenciesMeta": {
128
127
  "@deepseek-ai/cordis": {
@@ -131,6 +130,15 @@
131
130
  "@deepseek-ai/dsh-agent": {
132
131
  "optional": true
133
132
  },
133
+ "@deepseek-ai/dsh-agent-presets": {
134
+ "optional": true
135
+ },
136
+ "@deepseek-ai/dsh-api-remotes": {
137
+ "optional": true
138
+ },
139
+ "@deepseek-ai/dsh-atomic-write": {
140
+ "optional": true
141
+ },
134
142
  "@deepseek-ai/dsh-client-locale": {
135
143
  "optional": true
136
144
  },
@@ -220,6 +228,9 @@
220
228
  },
221
229
  "@deepseek-ai/dsh-tools": {
222
230
  "optional": true
231
+ },
232
+ "@deepseek-ai/dsh-typert-protocol": {
233
+ "optional": true
223
234
  }
224
235
  },
225
236
  "devDependencies": {
@@ -227,6 +238,7 @@
227
238
  "@deepseek-ai/cordis-plugin-include": "1.0.6",
228
239
  "@deepseek-ai/cordis-plugin-loader": "1.0.2",
229
240
  "@deepseek-ai/dsh-agent": "0.1.0-rc.6",
241
+ "@deepseek-ai/dsh-atomic-write": "0.1.5-rc.2",
230
242
  "@deepseek-ai/dsh-client-locale": "0.1.0-rc.8",
231
243
  "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.8",
232
244
  "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.8",
@@ -240,19 +252,20 @@
240
252
  "@deepseek-ai/dsh-invariants": "0.1.0-rc.6",
241
253
  "@deepseek-ai/dsh-jobs": "0.1.0-rc.8",
242
254
  "@deepseek-ai/dsh-llm": "0.1.0-rc.8",
243
- "@deepseek-ai/dsh-settings": "0.1.0-rc.8",
244
255
  "@deepseek-ai/dsh-sandbox": "0.1.0-rc.6",
245
256
  "@deepseek-ai/dsh-sandbox-policy": "0.1.0-rc.6",
246
257
  "@deepseek-ai/dsh-session": "0.1.1-rc.2",
258
+ "@deepseek-ai/dsh-settings": "0.1.0-rc.8",
247
259
  "@deepseek-ai/dsh-shell": "0.1.0-rc.6",
248
260
  "@deepseek-ai/dsh-shell-env": "0.1.0-rc.6",
249
261
  "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
250
- "@deepseek-ai/dsh-tool-web": "0.1.0-rc.8",
251
- "@deepseek-ai/dsh-tool-todo": "0.1.0-rc.6",
252
262
  "@deepseek-ai/dsh-terminal": "0.1.0-rc.6",
253
- "@deepseek-ai/dsh-tool-jobs": "0.1.0-rc.8",
254
263
  "@deepseek-ai/dsh-token-meter": "0.1.1-rc.2",
264
+ "@deepseek-ai/dsh-tool-jobs": "0.1.0-rc.8",
265
+ "@deepseek-ai/dsh-tool-todo": "0.1.0-rc.6",
266
+ "@deepseek-ai/dsh-tool-web": "0.1.0-rc.8",
255
267
  "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
268
+ "@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.2",
256
269
  "@types/node": "^22.20.0",
257
270
  "@types/react": "~18.3.1",
258
271
  "@types/react-dom": "~18.3.0",
@@ -262,5 +275,11 @@
262
275
  "typescript": "^6.0.3",
263
276
  "unrun": "^0.3.1",
264
277
  "vitest": "^4.1.8"
278
+ },
279
+ "scripts": {
280
+ "build": "tsc --noCheck -p tsconfig.json && tsdown",
281
+ "check": "tsc -p tsconfig.json --noEmit",
282
+ "test": "vitest run",
283
+ "pack:check": "npm pack --dry-run"
265
284
  }
266
- }
285
+ }