@shuind/dsh-codex-connect 0.0.0-stage → 0.2.1
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/INSTALL.md +349 -0
- package/LICENSE +202 -0
- package/MIGRATION.md +101 -0
- package/NOTICE +26 -0
- package/README.md +71 -2
- package/VERSIONING.md +69 -0
- package/cordis.patch.yml +9 -0
- package/docs/README.zh.md +3 -0
- package/docs/assets/composer-capabilities.jpg +0 -0
- package/docs/assets/en/hero.jpg +0 -0
- package/docs/assets/en/image-generation.png +0 -0
- package/docs/assets/en/model-selector.jpg +0 -0
- package/docs/assets/en/oauth-status.jpg +0 -0
- package/docs/assets/en/plugin-configuration.jpg +0 -0
- package/docs/assets/en/plugin-entry.jpg +0 -0
- package/docs/assets/hero.jpg +0 -0
- package/docs/assets/model-selector.jpg +0 -0
- package/docs/assets/oauth-status.jpg +0 -0
- package/docs/assets/plugin-configuration.jpg +0 -0
- package/docs/assets/zh/hero.jpg +0 -0
- package/docs/assets/zh/image-generation.png +0 -0
- package/docs/assets/zh/model-selector.jpg +0 -0
- package/docs/assets/zh/oauth-status.jpg +0 -0
- package/docs/assets/zh/plugin-configuration.jpg +0 -0
- package/docs/assets/zh/plugin-entry.jpg +0 -0
- package/docs/design.md +61 -0
- package/docs/design.zh.md +39 -0
- package/docs/licenses/pi-ai-oauth.txt +21 -0
- package/docs/licenses/standalone-cli.txt +115 -0
- package/docs/preflight-activity.md +42 -0
- package/docs/preflight-activity.zh.md +42 -0
- package/docs/quota-tool.md +46 -0
- package/docs/reference.md +240 -0
- package/docs/reference.zh.md +240 -0
- package/docs/skills/codex-quota-awareness/SKILL.md +12 -0
- package/lib/bin.js +2442 -0
- package/lib/client.js +6752 -0
- package/lib/index.d.ts +631 -0
- package/lib/index.js +7162 -0
- package/lib/models-DUIoH1lI.js +1763 -0
- package/lib/openai-codex-responses-CzSuDkhU.js +3452 -0
- package/package.json +234 -4
package/package.json
CHANGED
|
@@ -1,6 +1,236 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuind/dsh-codex-connect",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"displayName": "Codex Connect",
|
|
4
|
+
"description": "ChatGPT OAuth and Codex models for DeepSeek Harness.",
|
|
5
|
+
"version": "0.2.1",
|
|
6
|
+
"author": "shuind",
|
|
7
|
+
"contributors": [
|
|
8
|
+
"Frank Song (original dsh-codex-connect author)",
|
|
9
|
+
"Yan-Zero (original dsh-codex author)"
|
|
10
|
+
],
|
|
11
|
+
"keywords": [
|
|
12
|
+
"dsh-plugin",
|
|
13
|
+
"deepseek-harness",
|
|
14
|
+
"openai-codex",
|
|
15
|
+
"chatgpt-oauth",
|
|
16
|
+
"oauth",
|
|
17
|
+
"codex"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/shuind/dsh-codex-connect.git"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/shuind/dsh-codex-connect#readme",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/shuind/dsh-codex-connect/issues"
|
|
30
|
+
},
|
|
31
|
+
"type": "module",
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": "^22.19.0 || >=24.0.0",
|
|
34
|
+
"dsh": ">=0.2.2-rc.1 <=0.2.2-rc.5"
|
|
35
|
+
},
|
|
36
|
+
"main": "lib/index.js",
|
|
37
|
+
"types": "lib/index.d.ts",
|
|
38
|
+
"bin": {
|
|
39
|
+
"dsh-codex-connect": "lib/bin.js"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"lint": "pnpm run lint:metadata && pnpm run lint:architecture && pnpm run lint:source",
|
|
43
|
+
"lint:metadata": "node scripts/lint.mjs",
|
|
44
|
+
"lint:architecture": "node scripts/check-architecture.mjs",
|
|
45
|
+
"lint:source": "eslint src --max-warnings=0 && node scripts/check-source-lint.mjs",
|
|
46
|
+
"build": "tsdown",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.client.json",
|
|
49
|
+
"pack:check": "node scripts/lib/check-pack-command.test.mjs && node scripts/lib/check-pack-inventory.test.mjs && node scripts/check-pack.mjs",
|
|
50
|
+
"check:isolated-import": "node scripts/check-isolated-import.mjs",
|
|
51
|
+
"check": "pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build && pnpm run check:isolated-import && pnpm run pack:check",
|
|
52
|
+
"prepare": "npm run build",
|
|
53
|
+
"prepublishOnly": "pnpm --config.minimum-release-age=0 run check"
|
|
54
|
+
},
|
|
55
|
+
"exports": {
|
|
56
|
+
".": {
|
|
57
|
+
"types": "./lib/index.d.ts",
|
|
58
|
+
"default": "./lib/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./client": "./lib/client.js",
|
|
61
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
62
|
+
"./package.json": "./package.json"
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"lib",
|
|
66
|
+
"cordis.patch.yml",
|
|
67
|
+
"docs",
|
|
68
|
+
"INSTALL.md",
|
|
69
|
+
"VERSIONING.md",
|
|
70
|
+
"MIGRATION.md",
|
|
71
|
+
"NOTICE"
|
|
72
|
+
],
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@deepseek-ai/schemastery": "~3.19.0",
|
|
75
|
+
"@earendil-works/pi-ai": "^1.5.0"
|
|
76
|
+
},
|
|
77
|
+
"license": "Apache-2.0",
|
|
78
|
+
"dsh": {
|
|
79
|
+
"bundle": {
|
|
80
|
+
"patch": "./cordis.patch.yml"
|
|
81
|
+
},
|
|
82
|
+
"client": {
|
|
83
|
+
"inject": [
|
|
84
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
85
|
+
"@deepseek-ai/dsh-client-connection",
|
|
86
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-chat",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-model-selection",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-tool",
|
|
95
|
+
"@deepseek-ai/dsh-client-locale"
|
|
96
|
+
],
|
|
97
|
+
"platform": "web"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"peerDependencies": {
|
|
101
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
102
|
+
"@deepseek-ai/dsh-agent": ">=0.2.2-rc.1 <0.2.3",
|
|
103
|
+
"@deepseek-ai/dsh-atomic-write": ">=0.2.2-rc.1 <0.2.3",
|
|
104
|
+
"@deepseek-ai/dsh-attachment": ">=0.2.2-rc.1 <0.2.3",
|
|
105
|
+
"@deepseek-ai/dsh-client-ui-chat": ">=0.2.2-rc.1 <0.2.3",
|
|
106
|
+
"@deepseek-ai/dsh-client-ui-layout": ">=0.2.2-rc.1 <0.2.3",
|
|
107
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": ">=0.2.2-rc.1 <0.2.3",
|
|
108
|
+
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.2-rc.1 <0.2.3",
|
|
109
|
+
"@deepseek-ai/dsh-client-ui-tool": ">=0.2.2-rc.1 <0.2.3",
|
|
110
|
+
"@deepseek-ai/dsh-commands": ">=0.2.2-rc.1 <0.2.3",
|
|
111
|
+
"@deepseek-ai/dsh-compaction": ">=0.2.2-rc.1 <0.2.3",
|
|
112
|
+
"@deepseek-ai/dsh-fs": ">=0.2.2-rc.1 <0.2.3",
|
|
113
|
+
"@deepseek-ai/dsh-home-paths": ">=0.2.2-rc.1 <0.2.3",
|
|
114
|
+
"@deepseek-ai/dsh-host-webserver": ">=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-llm-pi-ai": ">=0.2.2-rc.1 <0.2.3",
|
|
117
|
+
"@deepseek-ai/dsh-session": ">=0.2.2-rc.1 <0.2.3",
|
|
118
|
+
"@deepseek-ai/dsh-settings": ">=0.2.2-rc.1 <0.2.3",
|
|
119
|
+
"@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.2.3",
|
|
120
|
+
"@deepseek-ai/dsh-util-values": ">=0.2.2-rc.1 <0.2.3",
|
|
121
|
+
"@deepseek-ai/dsh-web": ">=0.2.2-rc.1 <0.2.3",
|
|
122
|
+
"react": "^18.2.0"
|
|
123
|
+
},
|
|
124
|
+
"peerDependenciesMeta": {
|
|
125
|
+
"@deepseek-ai/dsh-commands": {
|
|
126
|
+
"optional": true
|
|
127
|
+
},
|
|
128
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": {
|
|
129
|
+
"optional": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"devDependencies": {
|
|
133
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
134
|
+
"@deepseek-ai/cordis-plugin-include": "1.1.0",
|
|
135
|
+
"@deepseek-ai/cordis-plugin-loader": "1.1.0",
|
|
136
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.5",
|
|
137
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.2-rc.5",
|
|
138
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.5",
|
|
139
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.2-rc.5",
|
|
140
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.2-rc.5",
|
|
141
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.5",
|
|
142
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.2-rc.5",
|
|
143
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.5",
|
|
144
|
+
"@deepseek-ai/dsh-attachment-local": "0.2.2-rc.5",
|
|
145
|
+
"@deepseek-ai/dsh-authorization": "0.2.2-rc.5",
|
|
146
|
+
"@deepseek-ai/dsh-brand": "0.2.2-rc.5",
|
|
147
|
+
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.5",
|
|
148
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.5",
|
|
149
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.5",
|
|
150
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.2-rc.5",
|
|
151
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.5",
|
|
152
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.5",
|
|
153
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "0.2.2-rc.5",
|
|
154
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.2-rc.5",
|
|
155
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.5",
|
|
156
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.5",
|
|
157
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.5",
|
|
158
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.5",
|
|
159
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.2-rc.5",
|
|
160
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": "0.2.2-rc.5",
|
|
161
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.5",
|
|
162
|
+
"@deepseek-ai/dsh-client-ui-tool": "0.2.2-rc.5",
|
|
163
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.5",
|
|
164
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.5",
|
|
165
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.5",
|
|
166
|
+
"@deepseek-ai/dsh-config-editor": "0.2.2-rc.5",
|
|
167
|
+
"@deepseek-ai/dsh-file-reference": "0.2.2-rc.5",
|
|
168
|
+
"@deepseek-ai/dsh-fs": "0.2.2-rc.5",
|
|
169
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-rc.5",
|
|
170
|
+
"@deepseek-ai/dsh-home-paths": "0.2.2-rc.5",
|
|
171
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.2-rc.5",
|
|
172
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.2-rc.5",
|
|
173
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.5",
|
|
174
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.2-rc.5",
|
|
175
|
+
"@deepseek-ai/dsh-native-command": "0.2.2-rc.5",
|
|
176
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-rc.5",
|
|
177
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.5",
|
|
178
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.5",
|
|
179
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.5",
|
|
180
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.5",
|
|
181
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.5",
|
|
182
|
+
"@deepseek-ai/dsh-session-query": "0.2.2-rc.5",
|
|
183
|
+
"@deepseek-ai/dsh-session-title": "0.2.2-rc.5",
|
|
184
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.5",
|
|
185
|
+
"@deepseek-ai/dsh-skill": "0.2.2-rc.5",
|
|
186
|
+
"@deepseek-ai/dsh-storage": "0.2.2-rc.5",
|
|
187
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.2-rc.5",
|
|
188
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.5",
|
|
189
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.5",
|
|
190
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.5",
|
|
191
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.5",
|
|
192
|
+
"@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-rc.5",
|
|
193
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.5",
|
|
194
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.5",
|
|
195
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.2-rc.5",
|
|
196
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.5",
|
|
197
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.2-rc.5",
|
|
198
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-rc.5",
|
|
199
|
+
"@deepseek-ai/dsh-web": "0.2.2-rc.5",
|
|
200
|
+
"@deepseek-ai/dsh-workspace": "0.2.2-rc.5",
|
|
201
|
+
"@shikijs/langs": "^4.3.1",
|
|
202
|
+
"@testing-library/react": "^16.3.2",
|
|
203
|
+
"@types/node": "^22.20.0",
|
|
204
|
+
"@types/react": "~18.3.1",
|
|
205
|
+
"@types/react-dom": "~18.3.1",
|
|
206
|
+
"anser": "^2.3.5",
|
|
207
|
+
"clsx": "^2.0.0",
|
|
208
|
+
"diff": "^9.0.0",
|
|
209
|
+
"eslint": "^10.10.0",
|
|
210
|
+
"immer": "^10.1.1",
|
|
211
|
+
"jsdom": "29.1.1",
|
|
212
|
+
"katex": "0.18.9",
|
|
213
|
+
"mdast-util-from-markdown": "^2.0.3",
|
|
214
|
+
"mdast-util-gfm": "^3.0.0",
|
|
215
|
+
"mdast-util-math": "^3.0.0",
|
|
216
|
+
"micromark-core-commonmark": "^2.0.3",
|
|
217
|
+
"micromark-extension-gfm": "^3.0.0",
|
|
218
|
+
"micromark-extension-math": "^3.1.0",
|
|
219
|
+
"micromark-factory-space": "^2.0.1",
|
|
220
|
+
"micromark-util-character": "^2.1.1",
|
|
221
|
+
"micromark-util-classify-character": "^2.0.1",
|
|
222
|
+
"micromark-util-sanitize-uri": "^2.0.1",
|
|
223
|
+
"micromark-util-symbol": "^2.0.1",
|
|
224
|
+
"pi-ai-oauth-source": "npm:@earendil-works/pi-ai@0.84.4",
|
|
225
|
+
"react": "^18.2.0",
|
|
226
|
+
"react-dom": "^18.2.0",
|
|
227
|
+
"semver": "7.8.5",
|
|
228
|
+
"shiki": "^4.3.1",
|
|
229
|
+
"simple-icons": "16.36.0",
|
|
230
|
+
"tsdown": "^0.23.1",
|
|
231
|
+
"typescript": "^5.9.3",
|
|
232
|
+
"typescript-eslint": "^8.69.0",
|
|
233
|
+
"vitest": "^4.1.12",
|
|
234
|
+
"zustand": "~4.5.7"
|
|
235
|
+
}
|
|
236
|
+
}
|