dsh-codex-community 0.0.1 → 0.0.3
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/CHANGELOG.md +78 -0
- package/README.en.md +14 -10
- package/README.md +14 -10
- package/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/client/index.js +746 -64
- package/dist/host/index.mjs +3 -0
- package/dist/internal/authorization-bridge.mjs +12 -0
- package/dist/internal/codex-account-usage.mjs +509 -0
- package/dist/internal/codex-model-capabilities.mjs +90 -0
- package/dist/internal/codex-pi-provider.mjs +30 -3
- package/dist/internal/codex-provider-runtime.mjs +27 -1
- package/dist/internal/codex-route-adapter.mjs +36 -3
- package/dist/internal/session-preference-bridge.mjs +150 -0
- package/docs/README.en.md +2 -0
- package/docs/README.md +2 -0
- package/docs/architecture.en.md +20 -11
- package/docs/architecture.md +20 -11
- package/docs/compatibility.en.md +14 -12
- package/docs/compatibility.md +14 -12
- package/docs/configuration.en.md +23 -1
- package/docs/configuration.md +23 -1
- package/docs/releases/v0.0.1.md +0 -2
- package/docs/releases/v0.0.2.acceptance.json +160 -0
- package/docs/releases/v0.0.2.md +56 -0
- package/docs/releases/v0.0.3.acceptance.json +160 -0
- package/docs/releases/v0.0.3.md +62 -0
- package/docs/releasing.en.md +1 -1
- package/docs/releasing.md +1 -1
- package/docs/troubleshooting.en.md +19 -3
- package/docs/troubleshooting.md +19 -3
- package/package.json +11 -1
- package/types/client.d.ts +59 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,84 @@
|
|
|
3
3
|
本项目遵循 Keep a Changelog 的结构;`0.0.x` 为技术预览。
|
|
4
4
|
This project follows the Keep a Changelog structure; `0.0.x` is a technical preview.
|
|
5
5
|
|
|
6
|
+
## [0.0.3] - 2026-08-29
|
|
7
|
+
|
|
8
|
+
### 中文
|
|
9
|
+
|
|
10
|
+
#### 新增
|
|
11
|
+
|
|
12
|
+
- OpenAI Codex 设置入口改用独立的代码括号图标,与其他 Provider 插件保持可辨识的视觉差异。
|
|
13
|
+
- 额度卡新增带图标的刷新按钮、刷新中状态、响应式双列布局和更清晰的剩余额度层级;五小时额度始终显示精确重置时间,每周额度在不足 24 小时时显示精确时间,其余时间显示相对天数,完整时间保留在提示与无障碍标签中。
|
|
14
|
+
- 模型设置按“已选择在前、未选择在后”排序;未选择模型默认收起并可按需展开,同时显示已选择、当前显示与总数摘要。
|
|
15
|
+
|
|
16
|
+
#### 修复
|
|
17
|
+
|
|
18
|
+
- 缩短设置页内容高度并避免插件覆盖 Harness 弹窗宽度或滚动容器,改善窄屏与较矮窗口中的滚动体验。
|
|
19
|
+
- 模型能力改为与 Grok Build 一致的紧凑标签,使用 `272K`、`128K` 一类上下文与最大输出表示,不推测 provider catalog 未提供的能力。
|
|
20
|
+
- 在收起未选择模型时取消勾选,键盘焦点会回到展开按钮,避免焦点停留在隐藏元素;重置时间解析也会拒绝无法构造有效日期的值。
|
|
21
|
+
|
|
22
|
+
### English
|
|
23
|
+
|
|
24
|
+
#### Added
|
|
25
|
+
|
|
26
|
+
- The OpenAI Codex settings entry now uses a dedicated code-brackets icon that remains visually distinct from other provider plugins.
|
|
27
|
+
- Usage cards now provide an icon button with a refreshing state, a responsive two-column layout, and a clearer remaining-usage hierarchy. Five-hour limits always show the exact reset time; weekly limits show the exact time within 24 hours and otherwise use relative days, while the complete timestamp remains available in tooltips and accessible labels.
|
|
28
|
+
- Model settings now sort selected models before unselected models. Unselected models are collapsed by default and can be expanded on demand, with selected, visible, and total counts shown in the summary.
|
|
29
|
+
|
|
30
|
+
#### Fixed
|
|
31
|
+
|
|
32
|
+
- The settings content is shorter and no longer overrides the Harness dialog width or scroll container, improving scrolling in narrow or low-height windows.
|
|
33
|
+
- Model capabilities use compact Grok Build-style labels such as `272K` and `128K` for context and maximum output, without inferring capabilities absent from the provider catalog.
|
|
34
|
+
- Deselecting a model while unselected entries are collapsed returns keyboard focus to the expansion control instead of leaving it on a hidden element; reset-time parsing also rejects values that cannot produce a valid date.
|
|
35
|
+
|
|
36
|
+
## [0.0.2] - 2026-08-29
|
|
37
|
+
|
|
38
|
+
### 中文
|
|
39
|
+
|
|
40
|
+
#### 新增
|
|
41
|
+
|
|
42
|
+
- 设置页每次进入以及手动刷新时读取真实的五小时与每周额度;Host 通过官方 Codex 客户端使用的 Web 后端兼容接口获取并严格解析数据,Web 页面不会收到 OAuth 凭据或原始响应。
|
|
43
|
+
- 会话模型选择器左侧新增闪电按钮,与 `/codex set fast on|off` 共用当前会话状态;GPT-5.4、GPT-5.5 和 GPT-5.6 系列可从下一次请求起切换官方 Fast 1.5 倍速。
|
|
44
|
+
|
|
45
|
+
#### 变更
|
|
46
|
+
|
|
47
|
+
- 额度刷新失败时不再伪装成零余额:保留最近一次已验证读数,或安全降级为最近请求观测/未知状态。
|
|
48
|
+
- 模型展示元数据以当前安装的 provider catalog 为准;推理选择器改用逐模型核验的订阅 Codex 默认值与 Low 至 Max,隐藏通用 `Default`、`Off`、`Minimal`,且不把需要主动任务委派的 `Ultra` 伪装成普通 Provider 档位。
|
|
49
|
+
- 模型卡片的上下文与最大输出改用 `272K`、`128K` 一类紧凑标签,不再展示冗长的原始 token 数字。
|
|
50
|
+
- 保存了 `Off` 或 `Minimal` 的旧会话不再被静默迁移;只有用户点击带有默认模型影响说明的修复按钮后,才切换到当前模型默认档位。
|
|
51
|
+
- Fast 仅在支持的 GPT-5.4、GPT-5.5 和 GPT-5.6 系列请求上发送 priority service tier,会消耗更多额度;关闭或开启均从下一次请求生效,进程重启后恢复关闭。
|
|
52
|
+
- DSH profile smoke 改为核对新版模型设置标题,避免 UI 文案更新被误判为插件加载失败。
|
|
53
|
+
|
|
54
|
+
### English
|
|
55
|
+
|
|
56
|
+
#### Added
|
|
57
|
+
|
|
58
|
+
- The settings page reads real five-hour and weekly usage limits whenever it opens or is refreshed manually. The Host obtains and strictly parses the data through the Web-backend compatibility endpoint used by the official Codex client; the Web page receives neither OAuth credentials nor raw responses.
|
|
59
|
+
- A lightning button to the left of the conversation model selector shares current-session state with `/codex set fast on|off`. GPT-5.4, GPT-5.5, and the GPT-5.6 family can switch to official Fast at 1.5× starting with the next request.
|
|
60
|
+
|
|
61
|
+
#### Changed
|
|
62
|
+
|
|
63
|
+
- A failed usage refresh is no longer presented as zero remaining usage. The page retains the latest verified reading or safely falls back to recent-request observation/an unknown state.
|
|
64
|
+
- Display metadata follows the installed provider catalog. The reasoning picker now uses model-specific subscription-Codex defaults and efforts from Low through Max, hides generic `Default`, `Off`, and `Minimal`, and does not disguise agent-level `Ultra` as a plain Provider effort.
|
|
65
|
+
- Model cards format context and maximum output as compact labels such as `272K` and `128K` instead of long raw token counts.
|
|
66
|
+
- Older conversations that saved `Off` or `Minimal` are no longer migrated silently. They switch to the current model default only after the user clicks a repair action that discloses its default-model effect.
|
|
67
|
+
- Fast sends the priority service tier only for supported GPT-5.4, GPT-5.5, and GPT-5.6-family requests and consumes more usage. Enabling or disabling it applies to the next request, and a process restart restores off.
|
|
68
|
+
- The DSH profile smoke now checks the current model-settings title so a UI copy update is not misreported as a plugin-load failure.
|
|
69
|
+
|
|
70
|
+
## [Unreleased]
|
|
71
|
+
|
|
72
|
+
### 中文
|
|
73
|
+
|
|
74
|
+
#### 新增
|
|
75
|
+
|
|
76
|
+
#### 变更
|
|
77
|
+
|
|
78
|
+
### English
|
|
79
|
+
|
|
80
|
+
#### Added
|
|
81
|
+
|
|
82
|
+
#### Changed
|
|
83
|
+
|
|
6
84
|
## [0.0.1] - 2026-08-29
|
|
7
85
|
|
|
8
86
|
### 中文
|
package/README.en.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
A Codex plugin for DeepSeek Harness with ChatGPT OAuth sign-in, Codex models, image input, and reliable streaming responses.
|
|
6
6
|
|
|
7
|
-
> Current version: `0.0.
|
|
7
|
+
> Current version: `0.0.3` technical preview, published under npm `latest` with a full GitHub Release. npm package: `dsh-codex-community`.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -15,7 +15,10 @@ A Codex plugin for DeepSeek Harness with ChatGPT OAuth sign-in, Codex models, im
|
|
|
15
15
|
- provide valid pixel and byte budgets for request images, preventing invalid `maxPixels` values;
|
|
16
16
|
- classify `AccountQuotaExceeded` as non-retryable account quota and show a sanitized reset time;
|
|
17
17
|
- preserve safe partial text after a stream failure, while incomplete tool calls stop without replaying the request;
|
|
18
|
-
-
|
|
18
|
+
- read the real five-hour and weekly usage limits whenever the settings page opens or is refreshed manually, with a safe fallback and no OAuth credentials exposed to the Web page;
|
|
19
|
+
- present remaining usage in compact cards: five-hour limits show the exact reset time, while weekly limits show the exact time within 24 hours and otherwise use relative days;
|
|
20
|
+
- list selected models first in settings and collapse unselected models by default, with compact `K` labels taken from the current provider catalog for context and maximum output;
|
|
21
|
+
- use the lightning button to the left of the model selector or `/codex` to choose official Fast (1.5×) and transport for the current session, with Fast off and transport automatic by default.
|
|
19
22
|
|
|
20
23
|
## Requirements
|
|
21
24
|
|
|
@@ -27,7 +30,7 @@ A Codex plugin for DeepSeek Harness with ChatGPT OAuth sign-in, Codex models, im
|
|
|
27
30
|
Install an exact version:
|
|
28
31
|
|
|
29
32
|
```sh
|
|
30
|
-
dsh plugin --profile web add dsh-codex-community@0.0.
|
|
33
|
+
dsh plugin --profile web add dsh-codex-community@0.0.3
|
|
31
34
|
dsh web
|
|
32
35
|
```
|
|
33
36
|
|
|
@@ -35,7 +38,7 @@ dsh web
|
|
|
35
38
|
|
|
36
39
|
1. Open **Settings → OpenAI Codex** and complete the ChatGPT OAuth prompts.
|
|
37
40
|
2. Enable models on the same page.
|
|
38
|
-
3. Choose a Codex model from the conversation model selector.
|
|
41
|
+
3. Choose a Codex model from the conversation model selector; click the lightning button to its left when Fast is needed.
|
|
39
42
|
|
|
40
43
|
Available commands:
|
|
41
44
|
|
|
@@ -50,12 +53,12 @@ Available commands:
|
|
|
50
53
|
/codex set transport auto|sse|websocket|websocket-cached
|
|
51
54
|
```
|
|
52
55
|
|
|
53
|
-
Fast and transport preferences are kept only for the current session in the current process; they are not persisted. Fast
|
|
56
|
+
Fast and transport preferences are kept only for the current session in the current process; they are not persisted and return to their defaults after a process restart. For GPT-5.4, GPT-5.5, GPT-5.6 Luna, Sol, and Terra, Fast uses the official priority service tier starting with the next request, targets 1.5× speed, and consumes more usage. Turning it off restores standard speed on the next request. A failed request is not automatically replayed on a lower tier.
|
|
54
57
|
|
|
55
58
|
Update:
|
|
56
59
|
|
|
57
60
|
```sh
|
|
58
|
-
dsh plugin --profile web update dsh-codex-community@0.0.
|
|
61
|
+
dsh plugin --profile web update dsh-codex-community@0.0.3
|
|
59
62
|
dsh web
|
|
60
63
|
```
|
|
61
64
|
|
|
@@ -78,10 +81,11 @@ See [Troubleshooting](docs/troubleshooting.en.md) for diagnostic steps.
|
|
|
78
81
|
## Support boundaries
|
|
79
82
|
|
|
80
83
|
- The `0.0.x` line does not promise a stable API; pin the exact version.
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
84
|
+
- Linux, macOS, and Windows CI/profile smoke for `0.0.3` reached `3/3`; the accepted commit and platform evidence are in the [acceptance record](docs/releases/v0.0.3.acceptance.json).
|
|
85
|
+
- Live OAuth, conversation, image, transport, and Fast network acceptance for `0.0.3` starts in a fresh record at `0/13 pending`. These unverified capabilities remain clearly disclosed and will be completed individually after publication.
|
|
86
|
+
- The settings page reads usage through the Web-backend compatibility endpoint used by the official Codex client. If that endpoint is unavailable or malformed, the page retains the latest safe reading and falls back to request observation or an unknown state instead of presenting the error as zero remaining usage.
|
|
87
|
+
- Model names, context windows, and maximum outputs come from the installed provider catalog. The reasoning picker exposes only subscription-Codex levels through Max that the Provider can fully implement, plus each model's verified default. Generic `Default`, `Off`, and `Minimal` entries are hidden, and agent-level `Ultra` is not disguised as a plain reasoning effort.
|
|
88
|
+
- Fast is limited to GPT-5.4, GPT-5.5, GPT-5.6 Luna, Sol, and Terra and consumes more usage. Other models never receive the Fast service tier.
|
|
85
89
|
- Image generation and editing are not provided.
|
|
86
90
|
- See [Compatibility](docs/compatibility.en.md) for Windows, Linux, real OAuth, and real Codex network acceptance status.
|
|
87
91
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
面向 DeepSeek Harness 的 Codex 插件,提供 ChatGPT OAuth 登录、Codex 模型、图片输入和可靠的流式回复。
|
|
6
6
|
|
|
7
|
-
> 当前版本:`0.0.
|
|
7
|
+
> 当前版本:`0.0.3` 技术预览,使用 npm `latest` 与正式 GitHub Release 发布。npm 包名:`dsh-codex-community`。
|
|
8
8
|
|
|
9
9
|
## 功能
|
|
10
10
|
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
- 为请求图片补全有效的像素与字节预算,避免无效 `maxPixels`;
|
|
16
16
|
- 将 `AccountQuotaExceeded` 识别为不可重试的账户配额错误,并显示脱敏后的重置时间;
|
|
17
17
|
- 流中断时保留安全的半段纯文本;涉及未完成工具调用时停止,不自动重放请求;
|
|
18
|
-
-
|
|
18
|
+
- 每次进入设置页或手动刷新时读取真实的 5 小时与每周额度;读取失败时安全降级,不向 Web 页面暴露 OAuth 凭据;
|
|
19
|
+
- 使用紧凑的额度卡展示剩余比例:5 小时额度显示精确重置时间,每周额度在不足 24 小时时显示精确时间,其余时间显示相对天数;
|
|
20
|
+
- 在设置页优先展示已选择模型,默认收起未选择模型;上下文和最大输出使用来自当前 provider catalog 的紧凑 `K` 标签;
|
|
21
|
+
- 使用模型选择器左侧的闪电按钮或 `/codex` 为当前会话切换官方 Fast(1.5 倍速)和传输方式,默认关闭 Fast、自动选择传输。
|
|
19
22
|
|
|
20
23
|
## 运行要求
|
|
21
24
|
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
请固定安装精确版本:
|
|
28
31
|
|
|
29
32
|
```sh
|
|
30
|
-
dsh plugin --profile web add dsh-codex-community@0.0.
|
|
33
|
+
dsh plugin --profile web add dsh-codex-community@0.0.3
|
|
31
34
|
dsh web
|
|
32
35
|
```
|
|
33
36
|
|
|
@@ -35,7 +38,7 @@ dsh web
|
|
|
35
38
|
|
|
36
39
|
1. 打开 **设置 → OpenAI Codex**,按页面提示完成 ChatGPT OAuth;
|
|
37
40
|
2. 在同一页面启用模型;
|
|
38
|
-
3. 从会话模型选择器中选择 Codex
|
|
41
|
+
3. 从会话模型选择器中选择 Codex 模型开始使用;需要时点击选择器左侧的闪电按钮开启 Fast。
|
|
39
42
|
|
|
40
43
|
可用命令:
|
|
41
44
|
|
|
@@ -50,12 +53,12 @@ dsh web
|
|
|
50
53
|
/codex set transport auto|sse|websocket|websocket-cached
|
|
51
54
|
```
|
|
52
55
|
|
|
53
|
-
Fast
|
|
56
|
+
Fast 和传输偏好只保存在当前进程的当前会话中,不会持久化,进程重启后恢复默认。Fast 在 GPT-5.4、GPT-5.5、GPT-5.6 Luna、Sol 和 Terra 上从下一次请求起使用官方 priority service tier,目标速度为 1.5 倍并消耗更多额度;关闭后,下一次请求恢复默认速度。失败请求不会自动降级重放。
|
|
54
57
|
|
|
55
58
|
更新:
|
|
56
59
|
|
|
57
60
|
```sh
|
|
58
|
-
dsh plugin --profile web update dsh-codex-community@0.0.
|
|
61
|
+
dsh plugin --profile web update dsh-codex-community@0.0.3
|
|
59
62
|
dsh web
|
|
60
63
|
```
|
|
61
64
|
|
|
@@ -78,10 +81,11 @@ dsh web
|
|
|
78
81
|
## 支持边界
|
|
79
82
|
|
|
80
83
|
- `0.0.x` 不承诺稳定 API,请固定版本;
|
|
81
|
-
- `0.0.
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
84
|
+
- `0.0.3` 的 Linux、macOS 和 Windows CI/profile smoke 已达到 `3/3`,候选提交与平台证据见[验收记录](docs/releases/v0.0.3.acceptance.json);
|
|
85
|
+
- `0.0.3` 的真实 OAuth、对话、图片、transport 和 Fast 网络验收从独立记录的 `0/13 pending` 开始;这些未验证能力继续如实展示,并在发布后逐项补齐;
|
|
86
|
+
- 设置页额度通过官方 Codex 客户端使用的 Web 后端兼容接口读取;接口不可用或返回异常时保留最近的安全读数,并降级为请求观测或未知状态,不把错误伪装成零余额;
|
|
87
|
+
- 模型名称、上下文和最大输出来自当前安装的 provider catalog;推理选择器只展示已按订阅 Codex 目录核验且 Provider 能完整实现的 Low 至 Max 与模型默认值,不展示通用的 `Default`、`Off`、`Minimal`,也不把需要主动任务委派的 `Ultra` 伪装成普通推理档位;
|
|
88
|
+
- Fast 仅用于 GPT-5.4、GPT-5.5、GPT-5.6 Luna、Sol 和 Terra,并会提高额度消耗;其他模型不会发送 Fast service tier;
|
|
85
89
|
- 不提供图片生成或编辑;
|
|
86
90
|
- Windows、Linux、真实 OAuth 与真实 Codex 网络验收状态见[兼容性文档](docs/compatibility.md)。
|
|
87
91
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -11,6 +11,8 @@ This project composes the following independently published packages. Each relea
|
|
|
11
11
|
| `@deepseek-ai/dsh-client-connection` | Web client connection injection | MIT |
|
|
12
12
|
| `@deepseek-ai/dsh-client-locale` | Web client locale service | MIT |
|
|
13
13
|
| `@deepseek-ai/dsh-client-runtime` | Web client plugin runtime | MIT |
|
|
14
|
+
| `@deepseek-ai/dsh-client-ui-conversation` | Conversation composer slot integration | MIT |
|
|
15
|
+
| `@deepseek-ai/dsh-client-ui-model-selection` | Current-session model directory integration | MIT |
|
|
14
16
|
| `@deepseek-ai/dsh-client-ui-settings` | Web settings-page integration | MIT |
|
|
15
17
|
| `@deepseek-ai/dsh-commands` | Harness command registration | MIT |
|
|
16
18
|
| `@deepseek-ai/dsh-credentials` | Credential-store contracts | MIT |
|