@shuind/dsh-codex-harness 0.1.7
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 -0
- package/README.md +100 -0
- package/README.zh.md +100 -0
- package/cordis.patch.yml +5 -0
- package/lib/index.js +843 -0
- package/lib/installer.js +59 -0
- package/lib/invariant.js +23 -0
- package/lib/types/exec.d.ts +43 -0
- package/lib/types/exec.js +251 -0
- package/lib/types/index.d.ts +28 -0
- package/lib/types/index.js +321 -0
- package/lib/types/installer.d.ts +23 -0
- package/lib/types/installer.js +64 -0
- package/lib/types/invariant.d.ts +16 -0
- package/lib/types/invariant.js +22 -0
- package/lib/types/patch.d.ts +36 -0
- package/lib/types/patch.js +186 -0
- package/package.json +114 -0
- package/presets/codex/agent.cordis.yml +44 -0
- package/presets/codex/preset.yml +3 -0
package/package.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shuind/dsh-codex-harness",
|
|
3
|
+
"version": "0.1.7",
|
|
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
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "lib/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./invariant": {
|
|
14
|
+
"types": "./lib/types/invariant.d.ts",
|
|
15
|
+
"default": "./lib/invariant.js"
|
|
16
|
+
},
|
|
17
|
+
"./installer": {
|
|
18
|
+
"types": "./lib/types/installer.d.ts",
|
|
19
|
+
"default": "./lib/installer.js"
|
|
20
|
+
},
|
|
21
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
22
|
+
"./src/*": "./src/*",
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"lib/index.js",
|
|
27
|
+
"lib/invariant.js",
|
|
28
|
+
"lib/installer.js",
|
|
29
|
+
"lib/types/**/*.js",
|
|
30
|
+
"lib/types/**/*.d.ts",
|
|
31
|
+
"cordis.patch.yml",
|
|
32
|
+
"presets/codex",
|
|
33
|
+
"README.md",
|
|
34
|
+
"README.zh.md",
|
|
35
|
+
"LICENSE"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc --noCheck -p tsconfig.json && tsdown",
|
|
39
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"pack:check": "npm pack --dry-run",
|
|
42
|
+
"prepare": "npm run build"
|
|
43
|
+
},
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/shuind/dsh-codex.git"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"dsh-plugin",
|
|
50
|
+
"deepseek-harness",
|
|
51
|
+
"codex",
|
|
52
|
+
"agent"
|
|
53
|
+
],
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"dsh": {
|
|
59
|
+
"bundle": {
|
|
60
|
+
"patch": "./cordis.patch.yml"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@deepseek-ai/schemastery": "^3.18.1",
|
|
65
|
+
"zod": "^4.4.3"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"@deepseek-ai/cordis": ">=4.0.1",
|
|
69
|
+
"@deepseek-ai/dsh-agent": ">=0.1.0-rc.6",
|
|
70
|
+
"@deepseek-ai/dsh-fs": ">=0.0.1-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-invariants": ">=0.0.1-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-sandbox": ">=0.0.1-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-sandbox-policy": ">=0.0.1-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-shell": ">=0.0.1-rc.5",
|
|
75
|
+
"@deepseek-ai/dsh-shell-env": ">=0.0.1-rc.3",
|
|
76
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.0.1-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-tool-todo": ">=0.0.1-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-terminal": ">=0.0.1-rc.3",
|
|
79
|
+
"@deepseek-ai/dsh-tools": ">=0.0.1-rc.1"
|
|
80
|
+
},
|
|
81
|
+
"peerDependenciesMeta": {
|
|
82
|
+
"@deepseek-ai/cordis": { "optional": true },
|
|
83
|
+
"@deepseek-ai/dsh-agent": { "optional": true },
|
|
84
|
+
"@deepseek-ai/dsh-fs": { "optional": true },
|
|
85
|
+
"@deepseek-ai/dsh-invariants": { "optional": true },
|
|
86
|
+
"@deepseek-ai/dsh-sandbox": { "optional": true },
|
|
87
|
+
"@deepseek-ai/dsh-sandbox-policy": { "optional": true },
|
|
88
|
+
"@deepseek-ai/dsh-shell": { "optional": true },
|
|
89
|
+
"@deepseek-ai/dsh-shell-env": { "optional": true },
|
|
90
|
+
"@deepseek-ai/dsh-system-prompt": { "optional": true },
|
|
91
|
+
"@deepseek-ai/dsh-tool-todo": { "optional": true },
|
|
92
|
+
"@deepseek-ai/dsh-terminal": { "optional": true },
|
|
93
|
+
"@deepseek-ai/dsh-tools": { "optional": true }
|
|
94
|
+
},
|
|
95
|
+
"devDependencies": {
|
|
96
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
97
|
+
"@deepseek-ai/dsh-agent": "0.1.0-rc.6",
|
|
98
|
+
"@deepseek-ai/dsh-fs": "0.1.0-rc.6",
|
|
99
|
+
"@deepseek-ai/dsh-invariants": "0.1.0-rc.6",
|
|
100
|
+
"@deepseek-ai/dsh-sandbox": "0.1.0-rc.6",
|
|
101
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.0-rc.6",
|
|
102
|
+
"@deepseek-ai/dsh-shell": "0.1.0-rc.6",
|
|
103
|
+
"@deepseek-ai/dsh-shell-env": "0.1.0-rc.6",
|
|
104
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
|
|
105
|
+
"@deepseek-ai/dsh-tool-todo": "0.1.0-rc.6",
|
|
106
|
+
"@deepseek-ai/dsh-terminal": "0.1.0-rc.6",
|
|
107
|
+
"@deepseek-ai/dsh-tools": "0.1.0-rc.6",
|
|
108
|
+
"@types/node": "^22.20.0",
|
|
109
|
+
"tsdown": "^0.22.2",
|
|
110
|
+
"typescript": "^6.0.3",
|
|
111
|
+
"unrun": "^0.3.1",
|
|
112
|
+
"vitest": "^4.1.8"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# The Codex agent preset. The bundle installs this file into the DSH user
|
|
2
|
+
# preset root on first boot; the tool row is deliberately not global.
|
|
3
|
+
|
|
4
|
+
- id: persona
|
|
5
|
+
name: '@deepseek-ai/dsh-persona'
|
|
6
|
+
config:
|
|
7
|
+
text: >-
|
|
8
|
+
You are Codex, a coding agent based on the {{model}} model. Your working directory is {{cwd}}.
|
|
9
|
+
includeRuntimeContext: true
|
|
10
|
+
|
|
11
|
+
- id: agent-instructions
|
|
12
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
13
|
+
config:
|
|
14
|
+
maxBytes: 65536
|
|
15
|
+
|
|
16
|
+
# This is the complete model-facing Codex layer. It owns the prompt overlay
|
|
17
|
+
# and the four Codex core tool names; execution remains delegated to dsh.
|
|
18
|
+
- id: codex-tools
|
|
19
|
+
name: '@shuind/dsh-codex-harness'
|
|
20
|
+
|
|
21
|
+
# PTY execution is optional. Pipe-backed exec_command remains available on all
|
|
22
|
+
# platforms through the shell capability consumed by the Codex tool layer.
|
|
23
|
+
- id: codex-terminal
|
|
24
|
+
name: cordis:group
|
|
25
|
+
group: true
|
|
26
|
+
isolate:
|
|
27
|
+
terminals: true
|
|
28
|
+
config:
|
|
29
|
+
- id: terminals
|
|
30
|
+
name: '@deepseek-ai/dsh-terminal'
|
|
31
|
+
|
|
32
|
+
- id: terminal-bash
|
|
33
|
+
name: '@deepseek-ai/dsh-terminal-bash'
|
|
34
|
+
disabled: !!js process.platform === 'win32'
|
|
35
|
+
config:
|
|
36
|
+
timeoutMs: 300000
|
|
37
|
+
|
|
38
|
+
# Skills are the dsh extensibility seam and do not change the four Codex core
|
|
39
|
+
# tool names.
|
|
40
|
+
- id: skill-filesystem
|
|
41
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
42
|
+
|
|
43
|
+
- id: tool-skill
|
|
44
|
+
name: '@deepseek-ai/dsh-tool-skill'
|