dsh-codex-connect 0.1.0-alpha.4.53 → 0.1.0-alpha.4.54
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 +15 -9
- package/README.i18n.yaml +2 -2
- package/README.md +4 -4
- package/compatibility.json +3 -1
- package/docs/README.zh.md +4 -4
- package/docs/agent-notes/dsh-020-compatibility.md +17 -0
- package/lib/bin.js +8 -3
- package/lib/client.js +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +23 -4
- package/package.json +21 -21
package/INSTALL.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Installation Runbook for CLI Agents
|
|
2
2
|
|
|
3
|
-
Published Alpha 4.
|
|
3
|
+
Published Alpha 4.53 is verified with either exact DSH `0.1.7-rc.1` or `0.1.7-rc.2` and pi-ai `0.85.1`, using a consistent host package set. Earlier DSH pairings retain their separately published plugin versions below.
|
|
4
4
|
|
|
5
5
|
Install `dsh-codex-connect` into one requested DeepSeek Harness profile without changing its current default model, search route, global configuration, or OAuth state.
|
|
6
6
|
|
|
7
|
-
Channel snapshot on 2026-09-
|
|
7
|
+
Channel snapshot on 2026-09-29: npm `alpha` points to `0.1.0-alpha.4.53`; `latest` remains `0.1.0-alpha.4.50`. Use the exact-version command for the installed DSH version; moving npm tags are not compatibility guarantees.
|
|
8
8
|
|
|
9
9
|
## Safety requirements
|
|
10
10
|
|
|
@@ -30,14 +30,20 @@ Check `dsh --version` before changing the requested profile. Use `dsh --help` to
|
|
|
30
30
|
| `0.1.5-alpha.1` | `0.1.0-alpha.4.41` |
|
|
31
31
|
| `0.1.5-rc.1` | `0.1.0-alpha.4.41` |
|
|
32
32
|
| `0.1.5-rc.2` | `0.1.0-alpha.4.41` |
|
|
33
|
-
| `0.1.7-rc.1` | `0.1.0-alpha.4.
|
|
34
|
-
| `0.1.7-rc.2` | `0.1.0-alpha.4.
|
|
33
|
+
| `0.1.7-rc.1` | `0.1.0-alpha.4.53` |
|
|
34
|
+
| `0.1.7-rc.2` | `0.1.0-alpha.4.53` |
|
|
35
35
|
|
|
36
36
|
If your exact DSH version is unknown or not listed, preserve the installed host, report that the combination is unverified, and verify it before making installation changes. A missing record does not prove incompatibility, and the catalog's latest verified DSH version is not the latest upstream release. Do not recommend upgrading or downgrading DSH merely to match a row. Investigate any specific failure and seek verification of the installed combination. Do not blindly install `dsh-codex-connect@alpha`: `alpha` is a moving tag, not a compatibility guarantee. Do not infer support for newer DSH versions from these rows.
|
|
37
37
|
|
|
38
|
-
Alpha 4.
|
|
38
|
+
Alpha 4.53 requires one consistent DSH `0.1.7-rc.1` or `0.1.7-rc.2` plugin API and pi-ai `0.85.1`; its direct runtime imports include `@deepseek-ai/schemastery` `3.18.4` and `@earendil-works/pi-ai` `0.85.1` so an isolated profile need not already provide them. Node.js remains `^22.19.0 || >=24.0.0`. It does not support the older DSH rows. Alpha 4.41 remains the choice for DSH `0.1.2-rc.1` with pi-ai `^0.84.2`, or `0.1.5-alpha.1`, `0.1.5-rc.1`, and `0.1.5-rc.2` with pi-ai `0.85.1`. Mixed host versions and other DSH/pi-ai combinations remain unverified. Alpha 4.25 remains the verified choice for DSH `0.1.2-alpha.5`, Alpha 4.23 for DSH `0.1.2-alpha.2`, Alpha 4.21 for DSH `0.1.1-rc.2`, and Alpha 4.14 for DSH `0.1.0-rc.7`. Changing DSH is a separate operation requiring the user's explicit request; a plugin update request does not authorize it. The repository's `pnpm --silent run check:compatibility` remains a strict development/release dependency gate, not a recommendation to change a user's host.
|
|
39
39
|
|
|
40
|
-
### Alpha 4.
|
|
40
|
+
### Alpha 4.53 core maintenance delivery
|
|
41
|
+
|
|
42
|
+
[Alpha 4.53](https://github.com/franksong2702/dsh-codex-connect/releases/tag/v0.1.0-alpha.4.53) delivers the maintenance scope, explicit Task policy wiring and frozen activation-form retirement from #288–#290, prepared by #292. Existing-task recovery and safety remain. Exact-main CI passed at `d15638b614cbc0b9388768aefd30c417afa79c5a`; local checks passed 1,537 unit tests, 53 browser tests and both same-artifact host installations. These are keyless checks, not real-account acceptance.
|
|
43
|
+
|
|
44
|
+
The [original publication run](https://github.com/franksong2702/dsh-codex-connect/actions/runs/36558018123) uploaded npm but failed public readback. Recovery verified the npm archive against the original artifact (SHA-256 `1c83247e5c29fe3e9706960ad38beff2612c3a91be011b29c7ee20e70288a487`) and created only missing tag/prerelease records. No npm republish, old-tag movement or latest promotion occurred. Installation recommendations were updated only after version, alpha, tag and prerelease readback agreed.
|
|
45
|
+
|
|
46
|
+
### Historical Alpha 4.52 request-metrics delivery
|
|
41
47
|
|
|
42
48
|
[PR #284](https://github.com/franksong2702/dsh-codex-connect/pull/284) adds optional local request evidence and the offline report CLI, without the internal evaluation runner or a metrics panel. Upgrading alone does not enable collection. Configure a private directory only in the intended profile and restart that profile explicitly; [English](docs/request-metrics.md) and [Chinese](docs/request-metrics.zh.md) guides cover configuration, unknown usage, retention and disabling. Task remains paused.
|
|
43
49
|
|
|
@@ -108,10 +114,10 @@ Alpha 4.33 omits the `modelErrors` profile field required by RC model packages,
|
|
|
108
114
|
dsh plugin --profile web add dsh-codex-connect@0.1.0-alpha.4.41
|
|
109
115
|
```
|
|
110
116
|
|
|
111
|
-
For either exact DSH `0.1.7-rc.1` or `0.1.7-rc.2` pairing, use Alpha 4.
|
|
117
|
+
For either exact DSH `0.1.7-rc.1` or `0.1.7-rc.2` pairing, use Alpha 4.53:
|
|
112
118
|
|
|
113
119
|
```sh
|
|
114
|
-
dsh plugin --profile web add dsh-codex-connect@0.1.0-alpha.4.
|
|
120
|
+
dsh plugin --profile web add dsh-codex-connect@0.1.0-alpha.4.53
|
|
115
121
|
```
|
|
116
122
|
|
|
117
123
|
For DSH `0.1.2-alpha.5`, use Alpha 4.25:
|
|
@@ -122,7 +128,7 @@ Alpha 4.33 omits the `modelErrors` profile field required by RC model packages,
|
|
|
122
128
|
|
|
123
129
|
If npm is unavailable after the matching GitHub prerelease is created, use `dsh plugin --profile web add 'github:franksong2702/dsh-codex-connect#v0.1.0-alpha.4.21'` only for the DSH `0.1.1-rc.2` combination, `dsh plugin --profile web add 'github:franksong2702/dsh-codex-connect#v0.1.0-alpha.4.23'` only for the DSH `0.1.2-alpha.2` combination, `dsh plugin --profile web add 'github:franksong2702/dsh-codex-connect#v0.1.0-alpha.4.25'` only for the DSH `0.1.2-alpha.5` combination, `dsh plugin --profile web add 'github:franksong2702/dsh-codex-connect#v0.1.0-alpha.4.41'` only for the DSH `0.1.2-rc.1`, `0.1.5-alpha.1`, `0.1.5-rc.1`, and `0.1.5-rc.2` combinations, or `dsh plugin --profile web add 'github:franksong2702/dsh-codex-connect#v0.1.0-alpha.4.46'` only for DSH `0.1.7-rc.1`.
|
|
124
130
|
|
|
125
|
-
For the current DSH `0.1.7-rc.1` or `0.1.7-rc.2` pairing, if npm is unavailable after the matching GitHub prerelease is created, use `dsh plugin --profile web add 'github:franksong2702/dsh-codex-connect#v0.1.0-alpha.4.
|
|
131
|
+
For the current DSH `0.1.7-rc.1` or `0.1.7-rc.2` pairing, if npm is unavailable after the matching GitHub prerelease is created, use `dsh plugin --profile web add 'github:franksong2702/dsh-codex-connect#v0.1.0-alpha.4.53'`.
|
|
126
132
|
|
|
127
133
|
3. Run `dsh web --help` once to compose the installed profile without starting the server. DSH `0.1.2-rc.1` prepares profile plugin dependency fallback during this step.
|
|
128
134
|
4. Run `dsh --profile web --dump-config` and require exactly one `llm-openai-codex` row loading `dsh-codex-connect`.
|
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# git hash-object README.md docs/README.zh.md
|
|
5
|
-
README.md:
|
|
6
|
-
docs/README.zh.md:
|
|
5
|
+
README.md: cb69c2d02d5fe51bac1376f042439a9fcd2675b0
|
|
6
|
+
docs/README.zh.md: 604a2ae5a15227c3ce2398e4246df8eca912515e
|
package/README.md
CHANGED
|
@@ -16,21 +16,21 @@ This guide describes the published pairing below. Check `dsh --version` first an
|
|
|
16
16
|
|
|
17
17
|
| Requirement | Verified pairing |
|
|
18
18
|
|---|---|
|
|
19
|
-
| Codex Connect | `0.1.0-alpha.4.
|
|
19
|
+
| Codex Connect | `0.1.0-alpha.4.53` |
|
|
20
20
|
| DeepSeek Harness | `0.1.7-rc.1` or `0.1.7-rc.2` (consistent package set) |
|
|
21
21
|
| Node.js | `^22.19.0 \|\| >=24.0.0` |
|
|
22
22
|
| Account | ChatGPT OAuth with access to the requested Codex model; availability is decided by OpenAI |
|
|
23
23
|
|
|
24
|
-
As of 2026-09-
|
|
24
|
+
As of 2026-09-29, npm `alpha` points to 4.53 while `latest` remains 4.50; this publication did not promote `latest`. Use the exact version below for this DSH pairing; a moving npm tag is not a compatibility guarantee for other hosts.
|
|
25
25
|
|
|
26
|
-
Alpha 4.
|
|
26
|
+
Alpha 4.53 retires frozen Task activation/delegation forms and separates core request handling from implicit Task policy imports, while retaining existing-task recovery and safety checks. It preserves the 4.51 diagnostic fixes and 4.52 [opt-in local request metrics](docs/request-metrics.md). Collection stays off until a private directory is configured; unknown usage is not zero. No telemetry upload, internal evaluation runner, statistics panel or Task reopening is included.
|
|
27
27
|
|
|
28
28
|
On stock DSH `0.1.7-rc.1` and `0.1.7-rc.2`, the package is installation/runtime-regression verified; Task controls remain paused: activation is rejected and fresh Sessions do not show them. Migration of earlier Task grants across a Harness upgrade is not verified. Older supported pairings and their task behavior are documented in [Installation and upgrades](INSTALL.md).
|
|
29
29
|
|
|
30
30
|
### 1. Install
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
dsh plugin --profile web add dsh-codex-connect@0.1.0-alpha.4.
|
|
33
|
+
dsh plugin --profile web add dsh-codex-connect@0.1.0-alpha.4.53
|
|
34
34
|
dsh web
|
|
35
35
|
```
|
|
36
36
|
|
package/compatibility.json
CHANGED
package/docs/README.zh.md
CHANGED
|
@@ -18,21 +18,21 @@ Codex Connect 为标准 Harness agent loop 添加 `openai-codex` 模型提供方
|
|
|
18
18
|
|
|
19
19
|
| 要求 | 已验证组合 |
|
|
20
20
|
|---|---|
|
|
21
|
-
| Codex Connect | `0.1.0-alpha.4.
|
|
21
|
+
| Codex Connect | `0.1.0-alpha.4.53` |
|
|
22
22
|
| DeepSeek Harness | `0.1.7-rc.1` 或 `0.1.7-rc.2`(包版本必须一致) |
|
|
23
23
|
| Node.js | `^22.19.0 \|\| >=24.0.0` |
|
|
24
24
|
| 账户 | 通过 ChatGPT OAuth 使用所请求的 Codex 模型;可用性由 OpenAI 决定 |
|
|
25
25
|
|
|
26
|
-
截至 2026-09-
|
|
26
|
+
截至 2026-09-29,npm `alpha` 指向 4.53,`latest` 仍为 4.50;本次发布没有提升 `latest`。安装此 DSH 组合请使用下方精确版本命令;会移动的 npm tag 不保证其他宿主版本的兼容性。
|
|
27
27
|
|
|
28
|
-
Alpha 4.
|
|
28
|
+
Alpha 4.53 移除已冻结的 Task 启动/委派表单,拆开核心请求处理与 Task 策略的隐式依赖,保留已有任务恢复与安全检查。继续保留 4.51 的诊断修复和 4.52 的[可选本地请求计量](request-metrics.zh.md)。配置私有目录后才采集;未知用量不当作零。不上传遥测,不包含内部评测运行器或统计面板,也不恢复 Task。
|
|
29
29
|
|
|
30
30
|
该安装包已通过原版 DSH `0.1.7-rc.1` 和 `0.1.7-rc.2` 的安装及运行回归验证;Task 控件仍暂停:激活请求会被拒绝,新 Session 不显示这些控件。跨 Harness 升级迁移旧任务授权尚未验证。较旧组合及其任务行为见[安装与升级](../INSTALL.md)。
|
|
31
31
|
|
|
32
32
|
### 1. 安装
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
dsh plugin --profile web add dsh-codex-connect@0.1.0-alpha.4.
|
|
35
|
+
dsh plugin --profile web add dsh-codex-connect@0.1.0-alpha.4.53
|
|
36
36
|
dsh web
|
|
37
37
|
```
|
|
38
38
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# DSH 0.2.0 candidate compatibility
|
|
2
|
+
|
|
3
|
+
Alpha 4.54 is an unpublished candidate containing the compatibility repair merged in [PR #294](https://github.com/franksong2702/dsh-codex-connect/pull/294), main commit `355b9bce49fbec9d63b99458adbe68b8d30771e7`. The published Alpha 4.53 artifact supports only DSH 0.1.7-rc.1 and rc.2; do not apply the new candidate's results to that existing artifact. Catalog entries record exact installation/runtime checks and do not establish npm publication or full user acceptance. Public installation recommendations stay on Alpha 4.53 until independent publication readback confirms the new release.
|
|
4
|
+
|
|
5
|
+
## Failure and repair
|
|
6
|
+
|
|
7
|
+
Canary tracker [#291](https://github.com/franksong2702/dsh-codex-connect/issues/291) stopped at the installation version gate for 0.2.0-rc.1. A local candidate with expanded peers passed that host, but failed real assembled synthetic requests on 0.2.0-rc.2. The host's pi-ai 0.87 normalizes the system prompt and tool definitions into an initial system message before calling a provider. The plugin-owned pi-ai 0.85.1 provider expects those fields outside the transcript. Normal conversations failed before HTTP dispatch with `PI_AI_ERROR`; an empty-message probe did not detect the mismatch.
|
|
8
|
+
|
|
9
|
+
The provider adapter translates only the initial system message back into the old provider vocabulary. It preserves prompt text, tools and remaining history without mutating the input. Old-host contexts pass through unchanged. Later system messages, sections, tool removals and mixed shorthand/transcript inputs fail explicitly rather than silently losing model instructions. Dynamic tool or system-message support is not added.
|
|
10
|
+
|
|
11
|
+
The plugin's model library, OAuth implementation and frozen feature defaults are unchanged. The installed request probe now includes system instructions, a tool definition and a user message, asserts their outbound values, and runs before legacy recovery fixtures. No real account credentials or model requests are used.
|
|
12
|
+
|
|
13
|
+
Diagnostics resolve DSH peers from the explicit host anchor, but resolve plugin-owned pi-ai from the plugin. Reading the host's pi-ai version against the plugin's pinned dependency previously produced a false unverified result when those versions diverged. The regression fixture places pi-ai 0.87.1 in the host and confirms that plugin diagnostics still report its own 0.85.1.
|
|
14
|
+
|
|
15
|
+
## Verification boundary
|
|
16
|
+
|
|
17
|
+
Run `pnpm run check`, `pnpm run test:browser` and `pnpm --silent run check:dsh-matrix` on the final candidate. The matrix covers exact hosts 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1 and 0.2.0-rc.2 using identical packed bytes. These checks establish keyless installation/runtime compatibility, not live OAuth, paid quota, full user acceptance or deployment. A new published version and separate deployment approval remain required before daily-service use.
|
package/lib/bin.js
CHANGED
|
@@ -606,7 +606,12 @@ var OpenAICodexCredentialStore = class {
|
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
608
|
const SUPPORTED_NODE_RANGE = "^22.19.0 || >=24.0.0";
|
|
609
|
-
const SUPPORTED_DSH_PLUGIN_API_VERSIONS = [
|
|
609
|
+
const SUPPORTED_DSH_PLUGIN_API_VERSIONS = [
|
|
610
|
+
"0.1.7-rc.1",
|
|
611
|
+
"0.1.7-rc.2",
|
|
612
|
+
"0.2.0-rc.1",
|
|
613
|
+
"0.2.0-rc.2"
|
|
614
|
+
];
|
|
610
615
|
const SUPPORTED_DSH_PLUGIN_API_RANGE = SUPPORTED_DSH_PLUGIN_API_VERSIONS.join(" || ");
|
|
611
616
|
const SUPPORTED_PI_AI_RANGE = "0.85.1";
|
|
612
617
|
const PI_AI_PACKAGE = "@earendil-works/pi-ai";
|
|
@@ -759,7 +764,7 @@ async function readInstalledPackageVersion(name, installAnchor) {
|
|
|
759
764
|
}
|
|
760
765
|
/** Read installed package metadata and return only versions and statuses. */
|
|
761
766
|
async function detectCompatibility(options = {}) {
|
|
762
|
-
const readVersion = options.readPackageVersion ?? ((name) => readInstalledPackageVersion(name, options.installAnchor));
|
|
767
|
+
const readVersion = options.readPackageVersion ?? ((name) => readInstalledPackageVersion(name, name === "@earendil-works/pi-ai" ? void 0 : options.installAnchor));
|
|
763
768
|
const packageVersions = options.packageVersions ?? options.packages ?? options.installed?.packages;
|
|
764
769
|
const resolvedPackages = packageVersions === void 0 ? Object.fromEntries(await Promise.all(COMPATIBILITY_PACKAGES.map(async (name) => [name, await readVersion(name)]))) : packageVersions;
|
|
765
770
|
return evaluateCompatibility({
|
|
@@ -769,7 +774,7 @@ async function detectCompatibility(options = {}) {
|
|
|
769
774
|
}
|
|
770
775
|
//#endregion
|
|
771
776
|
//#region src/version.ts
|
|
772
|
-
const CODEX_CONNECT_VERSION = "0.1.0-alpha.4.
|
|
777
|
+
const CODEX_CONNECT_VERSION = "0.1.0-alpha.4.54";
|
|
773
778
|
//#endregion
|
|
774
779
|
//#region src/doctor.ts
|
|
775
780
|
/** Secret-free diagnostics and duplicate-provider guidance. */
|
package/lib/client.js
CHANGED
|
@@ -7106,7 +7106,7 @@ window.__ModuleLoader__.load({
|
|
|
7106
7106
|
}
|
|
7107
7107
|
//#endregion
|
|
7108
7108
|
//#region src/version.ts
|
|
7109
|
-
const CODEX_CONNECT_VERSION = "0.1.0-alpha.4.
|
|
7109
|
+
const CODEX_CONNECT_VERSION = "0.1.0-alpha.4.54";
|
|
7110
7110
|
//#endregion
|
|
7111
7111
|
//#region src/client/OpenAICodexModelsCard.tsx
|
|
7112
7112
|
/** Compact Models account entry with quota disclosure and shared configuration. */
|
package/lib/index.d.ts
CHANGED
|
@@ -381,7 +381,7 @@ export declare const IMAGE_GENERATE_TOOL_NAME = "codex_connect_image_generate";
|
|
|
381
381
|
export declare const COMPATIBILITY_SCHEMA_VERSION: 1;
|
|
382
382
|
export declare const SUPPORTED_NODE_RANGE = "^22.19.0 || >=24.0.0";
|
|
383
383
|
export declare const SUPPORTED_DSH_PLUGIN_API_VERSION = "0.1.7-rc.1";
|
|
384
|
-
export declare const SUPPORTED_DSH_PLUGIN_API_VERSIONS: readonly ["0.1.7-rc.1", "0.1.7-rc.2"];
|
|
384
|
+
export declare const SUPPORTED_DSH_PLUGIN_API_VERSIONS: readonly ["0.1.7-rc.1", "0.1.7-rc.2", "0.2.0-rc.1", "0.2.0-rc.2"];
|
|
385
385
|
export declare const SUPPORTED_DSH_PLUGIN_API_RANGE: string;
|
|
386
386
|
export declare const SUPPORTED_PI_AI_RANGE = "0.85.1";
|
|
387
387
|
export declare const PI_AI_PACKAGE = "@earendil-works/pi-ai";
|
|
@@ -430,7 +430,7 @@ export declare const COMPATIBILITY_CONTRACT: {
|
|
|
430
430
|
};
|
|
431
431
|
readonly dshPluginApi: {
|
|
432
432
|
readonly version: "0.1.7-rc.1";
|
|
433
|
-
readonly versions: readonly ["0.1.7-rc.1", "0.1.7-rc.2"];
|
|
433
|
+
readonly versions: readonly ["0.1.7-rc.1", "0.1.7-rc.2", "0.2.0-rc.1", "0.2.0-rc.2"];
|
|
434
434
|
readonly packages: readonly ["@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-attachment", "@deepseek-ai/dsh-client-ui-chat", "@deepseek-ai/dsh-client-ui-layout", "@deepseek-ai/dsh-client-ui-primitives", "@deepseek-ai/dsh-client-ui-tool", "@deepseek-ai/dsh-compaction", "@deepseek-ai/dsh-home-paths", "@deepseek-ai/dsh-host-webserver", "@deepseek-ai/dsh-invariants", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-pi-ai", "@deepseek-ai/dsh-fs", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-tools", "@deepseek-ai/dsh-util-values", "@deepseek-ai/dsh-web"];
|
|
435
435
|
};
|
|
436
436
|
readonly piAi: {
|
package/lib/index.js
CHANGED
|
@@ -30,6 +30,20 @@ import { constants as constants$1, zstdCompressSync, zstdDecompressSync } from "
|
|
|
30
30
|
//#region \0rolldown/runtime.js
|
|
31
31
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
32
32
|
//#endregion
|
|
33
|
+
//#region src/pi-context.ts
|
|
34
|
+
/** Translate the host's initial transcript message for the plugin-owned pi-ai 0.85 provider. */
|
|
35
|
+
function codexProviderContext(context) {
|
|
36
|
+
const messages = context.messages;
|
|
37
|
+
const [first, ...rest] = messages;
|
|
38
|
+
if (!messages.some((message) => message.role === "system")) return context;
|
|
39
|
+
if (first?.role !== "system" || rest.some((message) => message.role === "system") || typeof first.content !== "string" || first.sections !== void 0 || first.toolsRemoved !== void 0 || context.systemPrompt !== void 0 || context.tools !== void 0) throw new Error("Codex Connect cannot translate dynamic or ambiguous system messages");
|
|
40
|
+
return {
|
|
41
|
+
systemPrompt: first.content,
|
|
42
|
+
...first.toolsAdded === void 0 ? {} : { tools: first.toolsAdded },
|
|
43
|
+
messages: rest
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
33
47
|
//#region vendor/pi-ai-oauth/utils/provider-env.js
|
|
34
48
|
let procEnvCache = null;
|
|
35
49
|
/**
|
|
@@ -2549,7 +2563,7 @@ function requestProvider(provider, fastMode, proxyManager, resolveProxyUrl, back
|
|
|
2549
2563
|
...configured,
|
|
2550
2564
|
streamSimple(model, context, options) {
|
|
2551
2565
|
const proxyUrl = resolveProxyUrl?.();
|
|
2552
|
-
const operation = () => streamSimple.call(configured, model, context, withCodexDiagnosticFetch(options, backendRequests));
|
|
2566
|
+
const operation = () => streamSimple.call(configured, model, codexProviderContext(context), withCodexDiagnosticFetch(options, backendRequests));
|
|
2553
2567
|
return backendRequests?.runStream(operation) ?? proxyManager?.runStream(proxyUrl, operation) ?? operation();
|
|
2554
2568
|
},
|
|
2555
2569
|
auth: {
|
|
@@ -4743,7 +4757,12 @@ function registerOpenAICodexProxyRoutes(ctx, trustedOrigins, manager) {
|
|
|
4743
4757
|
const COMPATIBILITY_SCHEMA_VERSION = 1;
|
|
4744
4758
|
const SUPPORTED_NODE_RANGE = "^22.19.0 || >=24.0.0";
|
|
4745
4759
|
const SUPPORTED_DSH_PLUGIN_API_VERSION = "0.1.7-rc.1";
|
|
4746
|
-
const SUPPORTED_DSH_PLUGIN_API_VERSIONS = [
|
|
4760
|
+
const SUPPORTED_DSH_PLUGIN_API_VERSIONS = [
|
|
4761
|
+
SUPPORTED_DSH_PLUGIN_API_VERSION,
|
|
4762
|
+
"0.1.7-rc.2",
|
|
4763
|
+
"0.2.0-rc.1",
|
|
4764
|
+
"0.2.0-rc.2"
|
|
4765
|
+
];
|
|
4747
4766
|
const SUPPORTED_DSH_PLUGIN_API_RANGE = SUPPORTED_DSH_PLUGIN_API_VERSIONS.join(" || ");
|
|
4748
4767
|
const SUPPORTED_PI_AI_RANGE = "0.85.1";
|
|
4749
4768
|
const PI_AI_PACKAGE = "@earendil-works/pi-ai";
|
|
@@ -4912,7 +4931,7 @@ async function readInstalledPackageVersion(name, installAnchor) {
|
|
|
4912
4931
|
}
|
|
4913
4932
|
/** Read installed package metadata and return only versions and statuses. */
|
|
4914
4933
|
async function detectCompatibility(options = {}) {
|
|
4915
|
-
const readVersion = options.readPackageVersion ?? ((name) => readInstalledPackageVersion(name, options.installAnchor));
|
|
4934
|
+
const readVersion = options.readPackageVersion ?? ((name) => readInstalledPackageVersion(name, name === "@earendil-works/pi-ai" ? void 0 : options.installAnchor));
|
|
4916
4935
|
const packageVersions = options.packageVersions ?? options.packages ?? options.installed?.packages;
|
|
4917
4936
|
const resolvedPackages = packageVersions === void 0 ? Object.fromEntries(await Promise.all(COMPATIBILITY_PACKAGES.map(async (name) => [name, await readVersion(name)]))) : packageVersions;
|
|
4918
4937
|
return evaluateCompatibility({
|
|
@@ -5584,7 +5603,7 @@ function registerOpenAICodexOriginalImageRoute(ctx, trustedOrigins, assets) {
|
|
|
5584
5603
|
}
|
|
5585
5604
|
//#endregion
|
|
5586
5605
|
//#region src/version.ts
|
|
5587
|
-
const CODEX_CONNECT_VERSION = "0.1.0-alpha.4.
|
|
5606
|
+
const CODEX_CONNECT_VERSION = "0.1.0-alpha.4.54";
|
|
5588
5607
|
//#endregion
|
|
5589
5608
|
//#region src/fast-mode-defaults.ts
|
|
5590
5609
|
/**
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dsh-codex-connect",
|
|
3
3
|
"displayName": "Codex Connect",
|
|
4
4
|
"description": "ChatGPT OAuth and Codex models for DeepSeek Harness.",
|
|
5
|
-
"version": "0.1.0-alpha.4.
|
|
5
|
+
"version": "0.1.0-alpha.4.54",
|
|
6
6
|
"author": "Frank Song",
|
|
7
7
|
"contributors": [
|
|
8
8
|
"Yan-Zero (original dsh-codex author)"
|
|
@@ -113,26 +113,26 @@
|
|
|
113
113
|
},
|
|
114
114
|
"peerDependencies": {
|
|
115
115
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
116
|
-
"@deepseek-ai/dsh-agent": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
117
|
-
"@deepseek-ai/dsh-atomic-write": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
118
|
-
"@deepseek-ai/dsh-attachment": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
119
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
120
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
121
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
122
|
-
"@deepseek-ai/dsh-client-ui-tool": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
123
|
-
"@deepseek-ai/dsh-commands": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
124
|
-
"@deepseek-ai/dsh-compaction": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
125
|
-
"@deepseek-ai/dsh-fs": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
126
|
-
"@deepseek-ai/dsh-home-paths": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
127
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
128
|
-
"@deepseek-ai/dsh-invariants": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
129
|
-
"@deepseek-ai/dsh-llm": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
130
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
131
|
-
"@deepseek-ai/dsh-session": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
132
|
-
"@deepseek-ai/dsh-settings": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
133
|
-
"@deepseek-ai/dsh-tools": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
134
|
-
"@deepseek-ai/dsh-util-values": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
135
|
-
"@deepseek-ai/dsh-web": "0.1.7-rc.1 || 0.1.7-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-attachment": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-client-ui-tool": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-commands": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-compaction": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
125
|
+
"@deepseek-ai/dsh-fs": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-home-paths": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
127
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-invariants": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
131
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
132
|
+
"@deepseek-ai/dsh-settings": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
133
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
134
|
+
"@deepseek-ai/dsh-util-values": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
135
|
+
"@deepseek-ai/dsh-web": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2",
|
|
136
136
|
"react": "^18.2.0"
|
|
137
137
|
},
|
|
138
138
|
"peerDependenciesMeta": {
|