dsh-codex-share 0.5.0 → 0.5.2
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/README.md +9 -3
- package/dist/index.mjs +15 -0
- package/package.json +8 -14
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A DeepSeek Harness LLM adapter that uses the same ChatGPT subscription login as
|
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
|
-
- DeepSeek Harness `0.2.1-alpha.2` (earlier releases are no longer supported), with Node.js `^22.19.0 || >=24`.
|
|
7
|
+
- DeepSeek Harness `0.2.1-alpha.2` or `0.2.1-rc.2` and later 0.2 releases (earlier releases are no longer supported), with Node.js `^22.19.0 || >=24`. The Harness packages and pi-ai are peer dependencies: the plugin uses the Harness's own copies rather than installing its own.
|
|
8
8
|
- Codex CLI signed in with a ChatGPT account and configured for **file credential storage**. Run `codex login` and check `codex login status`. Codex must be able to read and update `$CODEX_HOME/auth.json` (default `~/.codex/auth.json`).
|
|
9
9
|
- The harness process must run as the same OS user, or have read access to that same credential file. A keyring-only Codex login is not supported.
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ Install the bundle into a harness profile:
|
|
|
16
16
|
dsh plugin --profile web add dsh-codex-share
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Versions up to 0.5.1 installed their own pinned copies of the Harness packages and pi-ai into the profile, which shadow the running Harness. After updating from those versions, `$DSH_HOME/profiles/web/node_modules/@deepseek-ai/` (default `~/.dsh/profiles/web/node_modules/@deepseek-ai/`) should no longer contain `dsh-llm` or `dsh-llm-pi-ai`; if it does, remove and re-add the plugin.
|
|
20
20
|
|
|
21
21
|
For development from this checkout, from its directory:
|
|
22
22
|
|
|
@@ -24,10 +24,16 @@ For development from this checkout, from its directory:
|
|
|
24
24
|
dsh plugin --profile web add .
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Restart the profile after installation or update. The bundle mounts one provider route, `openai-codex-local`, with the model catalog supplied by pi-ai 1.
|
|
27
|
+
Restart the profile after installation or update. The bundle mounts one provider route, `openai-codex-local`, with the model catalog supplied by the Harness's pi-ai 1.x, including GPT-6 Astra, Sol, and Luna, and GPT-6.1 Sol (`gpt-6.1-sol`). GPT-6.1 Luna is not listed in the current OpenAI or Codex catalogs; use `gpt-6-luna` for Luna. This route replaces the plugin's earlier `openai-codex` route, which collides with pi-ai's configurable provider directory; update any saved model selection to `openai-codex-local`. The plugin appears in **Settings → Plugins → Plugin list**. Open **Settings → Models** and use **Edit model IDs** in the OpenAI Codex row to add subscription model IDs (one per line). The IDs are saved as `additionalModelIds` on the `llm-codex-share` entry in the profile's `cordis.patch.yml` and take effect without a restart. The installed catalog remains available; clearing the additional IDs restores it. For example, enter a model ID that your account can use but the catalog does not list yet. An unrecognized ID can be listed, but requests to it will fail if the Codex endpoint rejects it. Select a listed model in the model picker or agent preset. For a local Codex home outside the default location, set the absolute `CODEX_HOME` path in the environment that launches the harness. Direct Cordis composition can configure `codexHome` on the `dsh-codex-share` plugin instead.
|
|
28
28
|
|
|
29
29
|
The plugin intentionally does not refresh a stale token. When Codex writes a replacement, the next harness request reads it. When Codex's current access token has expired, harness calls fail until Codex refreshes its own login. An API-key-only Codex login is rejected; this route never falls back to `OPENAI_API_KEY`.
|
|
30
30
|
|
|
31
|
+
## Daybreak Blue
|
|
32
|
+
|
|
33
|
+
The Codex model picker also lists **Daybreak Blue** (`gpt-daybreak-blue-latest`). [OpenAI's model page](https://developers.openai.com/api/docs/models/gpt-daybreak-blue-latest) documents this alias, currently targeting GPT-5.6 Sol, and marks it deprecated. Listing it does not grant Daybreak access or confirm that your ChatGPT plan or the Codex subscription endpoint supports it; requests may be rejected. OpenAI's Platform API approval and access-program settings do not establish availability through this subscription route.
|
|
34
|
+
|
|
35
|
+
When pi-ai does not supply this model, the fallback inherits GPT-5.6 Sol's Codex transport, reasoning, text/image input, 272K context, and 128K maximum output as conservative capability assumptions. These are subscription-catalog limits, rather than the public API's documented 1.05M context. Fallback pricing is unestimated (zero cost fields do not imply free usage). Upstream model metadata takes precedence when available, and the alias is listed only once, including when entered in **Edit model IDs**.
|
|
36
|
+
|
|
31
37
|
## Optional GLM Coding Plan (global)
|
|
32
38
|
|
|
33
39
|
When `GLM_API_KEY` is non-empty in the Harness launch environment, this plugin also adds **GLM Coding Plan (global)** to the model picker under the `glm-coding-global` provider route. It uses pi-ai's installed Z.AI model catalog and the global Coding Plan endpoint, `https://api.z.ai/api/coding/paas/v4` (not the China endpoint or the standard pay-as-you-go API).
|
package/dist/index.mjs
CHANGED
|
@@ -88,6 +88,21 @@ function apply(ctx, config = Config({})) {
|
|
|
88
88
|
let profiles;
|
|
89
89
|
const upstream = openaiCodexProvider();
|
|
90
90
|
const catalog = [...upstream.getModels()];
|
|
91
|
+
if (!catalog.some((model) => model.id === "gpt-daybreak-blue-latest")) {
|
|
92
|
+
const sol = catalog.find((model) => model.id === "gpt-5.6-sol");
|
|
93
|
+
if (sol === void 0) throw new TypeError("The Codex catalog must include GPT-5.6 Sol");
|
|
94
|
+
catalog.push({
|
|
95
|
+
...sol,
|
|
96
|
+
id: "gpt-daybreak-blue-latest",
|
|
97
|
+
name: "Daybreak Blue",
|
|
98
|
+
cost: {
|
|
99
|
+
input: 0,
|
|
100
|
+
output: 0,
|
|
101
|
+
cacheRead: 0,
|
|
102
|
+
cacheWrite: 0
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
91
106
|
const profileBase = {
|
|
92
107
|
provider: PROVIDER,
|
|
93
108
|
displayName: "OpenAI Codex (local login)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codex-share",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Use the local Codex CLI ChatGPT subscription login as a DeepSeek Harness LLM provider",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,23 +27,17 @@
|
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
30
|
-
"@deepseek-ai/dsh-attachment": "0.2.1-alpha.2",
|
|
31
|
-
"@deepseek-ai/dsh-fs": "0.2.1-alpha.2",
|
|
32
|
-
"@deepseek-ai/dsh-
|
|
33
|
-
"@deepseek-ai/dsh-llm
|
|
34
|
-
"@deepseek-ai/
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
38
|
-
"@deepseek-ai/dsh-attachment": "0.2.1-alpha.2",
|
|
39
|
-
"@deepseek-ai/dsh-credentials": "0.2.1-alpha.2",
|
|
40
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.1-alpha.2",
|
|
41
|
-
"@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
|
|
42
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.2",
|
|
30
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-alpha.2 || ^0.2.1-rc.2",
|
|
31
|
+
"@deepseek-ai/dsh-fs": "0.2.1-alpha.2 || ^0.2.1-rc.2",
|
|
32
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.1-alpha.2 || ^0.2.1-rc.2",
|
|
33
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.2 || ^0.2.1-rc.2",
|
|
34
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.2 || ^0.2.1-rc.2",
|
|
43
35
|
"@deepseek-ai/schemastery": "~3.18.5-alpha.1",
|
|
44
36
|
"@earendil-works/pi-ai": "^1.0.2"
|
|
45
37
|
},
|
|
46
38
|
"devDependencies": {
|
|
39
|
+
"@earendil-works/pi-ai": "1.1.0",
|
|
40
|
+
"@deepseek-ai/dsh-launch-environment": "link:../../deepseek-harness/packages/util/launch-environment",
|
|
47
41
|
"@deepseek-ai/cordis": "link:../../deepseek-harness/vendor/cordis",
|
|
48
42
|
"@deepseek-ai/dsh-api-remotes": "link:../../deepseek-harness/packages/api/remotes",
|
|
49
43
|
"@deepseek-ai/dsh-app-boot": "link:../../deepseek-harness/packages/boot/app-boot",
|