dsh-codex-subscription 1.9.0 → 1.11.0
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/AGENTS.md +5 -5
- package/README.md +36 -44
- package/README.zh-CN.md +35 -43
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/lib/client.js +458 -210
- package/lib/index.js +719 -51
- package/package.json +5 -1
package/AGENTS.md
CHANGED
|
@@ -6,7 +6,7 @@ Use this guide when a user asks an Agent to install, update, verify, or remove
|
|
|
6
6
|
## Safety
|
|
7
7
|
|
|
8
8
|
- Confirm the target DSH installation and profile. Use `web` only when it is the user's target.
|
|
9
|
-
- Use the exact `1.
|
|
9
|
+
- Use the exact `1.11.0` package below; do not install a moving branch.
|
|
10
10
|
- Never print OAuth credentials, account IDs, authorization callbacks, or credential-store contents.
|
|
11
11
|
- Preserve the DSH profile, unrelated plugins, sessions, and saved sign-in.
|
|
12
12
|
- Do not start, stop, or restart DSH without explicit permission.
|
|
@@ -34,13 +34,13 @@ For an official DSH installation run through npm, keep the complete `npx` prefix
|
|
|
34
34
|
run command does not create a global `dsh` command:
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
npx -y @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web add dsh-codex-subscription@1.
|
|
37
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web add dsh-codex-subscription@1.11.0
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
With an existing global `dsh` command:
|
|
41
41
|
|
|
42
42
|
```sh
|
|
43
|
-
dsh plugin --profile web add dsh-codex-subscription@1.
|
|
43
|
+
dsh plugin --profile web add dsh-codex-subscription@1.11.0
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
Use the same `add` command to update or repair. This is the complete package-changing operation.
|
|
@@ -58,12 +58,12 @@ dsh --profile web --dump-config
|
|
|
58
58
|
|
|
59
59
|
For the official npm route, run the same checks with `npx -y @deepseek-ai/dsh@0.1.1-rc.2` in place of `dsh`.
|
|
60
60
|
|
|
61
|
-
1. `dsh-codex-subscription` version `1.
|
|
61
|
+
1. `dsh-codex-subscription` version `1.11.0` appears exactly once.
|
|
62
62
|
2. `codex-subscription` appears exactly once in the composed config.
|
|
63
63
|
3. No unrelated plugin or profile was changed and DSH was not restarted.
|
|
64
64
|
|
|
65
65
|
With permission to restart DSH, open **Settings -> Codex** and verify the settings page loads. Confirm
|
|
66
|
-
that search offers
|
|
66
|
+
that search offers **Auto**, **DSH default**, and **Codex subscription**, the composer quota switch defaults
|
|
67
67
|
to off, and `codex_image_generate` is available. Do not consume quota merely to test installation unless
|
|
68
68
|
the user explicitly asks for a live model, search, or image-generation check.
|
|
69
69
|
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ No OpenAI API key or Codex CLI. Models, search, quota, and image generation stay
|
|
|
12
12
|
[](LICENSE)
|
|
13
13
|
[](https://github.com/WSL043/dsh-codex-subscription/stargazers)
|
|
14
14
|
|
|
15
|
-
[Three-step start](#three-step-start) · [
|
|
15
|
+
[Three-step start](#three-step-start) · [Install](#install) · [Update and uninstall](#update-and-uninstall) · [简体中文](https://github.com/WSL043/dsh-codex-subscription/blob/main/README.zh-CN.md)
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
@@ -22,21 +22,15 @@ No OpenAI API key or Codex CLI. Models, search, quota, and image generation stay
|
|
|
22
22
|
|
|
23
23
|
## Three-step start
|
|
24
24
|
|
|
25
|
-
1. **Install the plugin.**
|
|
25
|
+
1. **Install the plugin.** Run the standard DSH bundle command:
|
|
26
26
|
|
|
27
|
-
```
|
|
28
|
-
|
|
27
|
+
```sh
|
|
28
|
+
dsh plugin --profile web add dsh-codex-subscription
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
2. **Sign in.** Restart DSH yourself, open **Settings -> Codex**, and choose browser sign-in. No Codex CLI and no pasted token are required.
|
|
32
32
|
3. **Use Codex.** Select a Codex model. Quota, subscription search, image generation, and Fast mode remain inside DSH.
|
|
33
33
|
|
|
34
|
-
With an existing `dsh` command, install with:
|
|
35
|
-
|
|
36
|
-
```sh
|
|
37
|
-
dsh plugin --profile web add dsh-codex-subscription
|
|
38
|
-
```
|
|
39
|
-
|
|
40
34
|
DSH-Portable exposes the same standard plugin command, so the command above also applies there. See below for the complete official npm, Agent, update, and uninstall routes.
|
|
41
35
|
|
|
42
36
|
## Why this plugin
|
|
@@ -65,14 +59,22 @@ Captured from the installed official DeepSeek Harness `0.1.1-rc.2` product with
|
|
|
65
59
|
|
|
66
60
|
## Prepare DSH
|
|
67
61
|
|
|
68
|
-
This plugin
|
|
62
|
+
This plugin supports the latest DeepSeek Harness release recorded in its package metadata and requires a ChatGPT account that currently has Codex access.
|
|
69
63
|
|
|
70
64
|
- Do not want to configure Node.js? Use [DSH-Portable](https://github.com/WSL043/DSH-Portable), a community portable desktop distribution for Windows, macOS, and Linux.
|
|
71
65
|
- Prefer the official route? Follow the [DeepSeek Harness run guide](https://github.com/deepseek-ai/deepseek-harness#run).
|
|
72
66
|
|
|
73
67
|
## Install
|
|
74
68
|
|
|
75
|
-
###
|
|
69
|
+
### Standard DSH command
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
dsh plugin --profile web add dsh-codex-subscription
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
DSH owns target selection, profile locking, dependency resolution, and bundle activation; this is the plugin's only installation path.
|
|
76
|
+
|
|
77
|
+
### Let an Agent install it
|
|
76
78
|
|
|
77
79
|
Send this link directly to your Agent:
|
|
78
80
|
|
|
@@ -84,22 +86,6 @@ https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/AGENTS.md
|
|
|
84
86
|
|
|
85
87
|
The guide includes verification steps and tells the Agent to preserve the DSH profile, sign-in, and other plugins.
|
|
86
88
|
|
|
87
|
-
### Manual Windows install
|
|
88
|
-
|
|
89
|
-
Open PowerShell and paste this one line:
|
|
90
|
-
|
|
91
|
-
```powershell
|
|
92
|
-
irm 'https://github.com/WSL043/dsh-codex-subscription/releases/latest/download/dsh-codex-setup.ps1' | iex
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
The lightweight setup checks the current folder, the system command, common locations, and running official DSH or
|
|
96
|
-
[DSH-Portable](https://github.com/WSL043/DSH-Portable). It asks before choosing when more than one target is available.
|
|
97
|
-
Portable keeps using its public launcher. For official DSH, setup uses the selected profile home and a checksum-verified
|
|
98
|
-
pnpm helper pinned to the accepted DSH release; the helper is cached under the current Windows user when no working pnpm
|
|
99
|
-
command is available. It does not recursively scan disks, create a resident command, snapshot a profile, require
|
|
100
|
-
administrator access, or restart DSH. A recognized release-age rejection may retry the same pinned add once for that
|
|
101
|
-
command only.
|
|
102
|
-
|
|
103
89
|
<details>
|
|
104
90
|
<summary>Official npm route (Node.js installed)</summary>
|
|
105
91
|
|
|
@@ -141,7 +127,7 @@ Restart DSH manually after installation, then:
|
|
|
141
127
|
- Actual backend-provided quota, reset time, and freshness;
|
|
142
128
|
- Separate standard Codex, Codex-Spark, Credits, and other independent limits;
|
|
143
129
|
- Visible quota-reset count and earliest expiry, with deliberate early redemption, layered confirmation, and no automatic retry;
|
|
144
|
-
- Optional percentage
|
|
130
|
+
- Optional percentage, progress bar, or Beta runway estimate for the selected Codex model (off by default);
|
|
145
131
|
- Standard or Fast mode for supported Codex models directly in the composer;
|
|
146
132
|
- Standard, Extended, and per-model Custom context windows; Custom accepts a full numeric token count, stays within each audited model capacity, and feeds DSH's native agent compaction policy;
|
|
147
133
|
- A copyable support report and direct feedback link in Settings; the report includes bounded request stages, HTTP/transport classes, elapsed ranges, and route source types while excluding OAuth credentials, account identifiers, proxy addresses, and authorization timestamps;
|
|
@@ -155,7 +141,7 @@ The plugin can follow an existing HTTPS proxy from the process environment or op
|
|
|
155
141
|
<img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/composer-quota-en.png" width="800" alt="Codex quota inside the composer">
|
|
156
142
|
</p>
|
|
157
143
|
|
|
158
|
-
Choose Off, Percent,
|
|
144
|
+
Choose Off, Percent, Progress bar, or Beta Runway in Settings. The compact display appears only for a selected Codex model. Runway is opt-in and estimates the current pace only from official remaining-percentage observations kept in local runtime memory; it stays quiet with insufficient evidence and recalibrates after a reset, account change, or disable.
|
|
159
145
|
Standard Codex uses the lowest remaining window returned by the service; Spark uses its independent quota. The plugin does not hard-code a
|
|
160
146
|
“5-hour + weekly” layout or invent Credits and spending caps that the service did not return.
|
|
161
147
|
|
|
@@ -169,15 +155,20 @@ clicks are single-flight, and an uncertain network result is never retried autom
|
|
|
169
155
|
|
|
170
156
|
### Image generation and editing (Beta)
|
|
171
157
|
|
|
172
|
-
|
|
158
|
+
When `dsh-image-viewer` is installed, generated images delegate to its unified preview first. The subscription viewer is only a fallback when that service is absent or declines the request, so the two plugins never compete for the same entry point. Image Viewer owns zoom, pan, fit, preview downloads, and region notes; this plugin owns Codex image generation/editing, exact-original authorization, and the continue-editing handoff.
|
|
159
|
+
Both paths expose dimensions and numbered region notes. The standard **Download** action retrieves the permission- and integrity-checked exact original by default; only legacy sessions without an exact original fall back to the conversation preview.
|
|
160
|
+
Press **Enter** to save and collapse a region note; use **Shift+Enter** for a new line. Notes remain available when the
|
|
161
|
+
same image is reopened during the current DSH page session.
|
|
173
162
|
**Continue editing in composer** attaches exactly the image you opened and writes the region notes into the draft without
|
|
174
163
|
sending it. A new image request does not silently include earlier images. GPT Image 2 can take longer than a normal text
|
|
175
164
|
turn, and detailed text, exact composition, or repeated-character consistency may still need another pass.
|
|
176
165
|
|
|
177
166
|
<p align="center">
|
|
178
|
-
<img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/image-preview-annotations-en.png" width="
|
|
167
|
+
<img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/image-preview-annotations-en.png" width="800" alt="Generated image, region note, and continue editing inside the DSH Image Viewer">
|
|
179
168
|
</p>
|
|
180
169
|
|
|
170
|
+
The exact bytes returned by GPT Image are stored separately under the current DSH home because DSH may normalize the conversation preview for display and later model input. Original files are integrity-checked and available only to the creating session or a fork that inherited that image result; forks created earlier and unrelated sessions are denied. Raw image bytes are never placed in the session log. Uninstalling the plugin does not delete already generated originals.
|
|
171
|
+
|
|
181
172
|
### Composer speed
|
|
182
173
|
|
|
183
174
|
With a supported Codex model selected, open the composer's model menu to choose Standard or Fast.
|
|
@@ -186,25 +177,25 @@ see the [OpenAI Codex Speed documentation](https://learn.chatgpt.com/docs/agent-
|
|
|
186
177
|
|
|
187
178
|
## Update and uninstall
|
|
188
179
|
|
|
189
|
-
|
|
180
|
+
Use the same DSH plugin lifecycle to update, verify, or uninstall:
|
|
190
181
|
|
|
191
182
|
```sh
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
183
|
+
dsh plugin --profile web update dsh-codex-subscription
|
|
184
|
+
dsh plugin --profile web list dsh-codex-subscription --depth 0
|
|
185
|
+
dsh --profile web --dump-config
|
|
186
|
+
dsh plugin --profile web remove dsh-codex-subscription
|
|
196
187
|
```
|
|
197
188
|
|
|
198
189
|
These operations preserve the DSH profile, other plugins, and saved sign-in.
|
|
199
190
|
|
|
200
191
|
<details>
|
|
201
|
-
<summary>
|
|
192
|
+
<summary>Official npm fallback</summary>
|
|
202
193
|
|
|
203
194
|
```sh
|
|
204
|
-
dsh plugin --profile web update dsh-codex-subscription
|
|
205
|
-
dsh plugin --profile web list dsh-codex-subscription --depth 0
|
|
206
|
-
dsh --profile web --dump-config
|
|
207
|
-
dsh plugin --profile web remove dsh-codex-subscription
|
|
195
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web update dsh-codex-subscription
|
|
196
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web list dsh-codex-subscription --depth 0
|
|
197
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 --profile web --dump-config
|
|
198
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web remove dsh-codex-subscription
|
|
208
199
|
```
|
|
209
200
|
|
|
210
201
|
</details>
|
|
@@ -212,16 +203,17 @@ dsh plugin --profile web remove dsh-codex-subscription
|
|
|
212
203
|
## Troubleshooting
|
|
213
204
|
|
|
214
205
|
- **`dsh` is not recognized:** the official npm route does not create a global `dsh` command; use the complete `npx -y @deepseek-ai/dsh@0.1.1-rc.2 ...` command above;
|
|
215
|
-
- **More than one DSH exists:** run the standard command from the intended DSH environment
|
|
206
|
+
- **More than one DSH exists:** run the standard command from the intended DSH environment so that product selects the corresponding profile;
|
|
216
207
|
- **Setup still fails:** send the Agent guide above to an Agent. Do not delete the profile or change the system PATH to force an install.
|
|
217
208
|
- **Need to report a problem:** generate a **Support diagnostics** report at the bottom of Settings, then open the [bug report form](https://github.com/WSL043/dsh-codex-subscription/issues/new?template=install-problem.yml). The report includes the OS/runtime, bounded sign-in phase, and safe request-failure categories, but excludes credentials, account identifiers, proxy addresses, raw responses, and full logs. Paste it into the required diagnostics field; never attach sign-in URLs, authorization codes, or browser callback addresses.
|
|
218
209
|
|
|
219
210
|
The ChatGPT Codex backend and DSH can change independently. This community project is not affiliated with or endorsed by DeepSeek or OpenAI.
|
|
220
211
|
|
|
221
212
|
Use the [bug report form](https://github.com/WSL043/dsh-codex-subscription/issues/new?template=install-problem.yml) for project feedback.
|
|
213
|
+
Use the [feature request form](https://github.com/WSL043/dsh-codex-subscription/issues/new?template=feature-request.yml) for focused product suggestions.
|
|
222
214
|
For DSH plugin discussion, visit [DeepSeek Harness Discussions](https://github.com/deepseek-ai/deepseek-harness/discussions).
|
|
223
215
|
Read [SECURITY.md](SECURITY.md) before reporting sensitive issues.
|
|
224
216
|
|
|
225
217
|
If this project is useful, the [Star button](https://github.com/WSL043/dsh-codex-subscription/stargazers) helps more DSH users find it.
|
|
226
218
|
|
|
227
|
-
[简体中文](README.md) · [MIT](LICENSE)
|
|
219
|
+
[简体中文](README.zh-CN.md) · [MIT](LICENSE)
|
package/README.zh-CN.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
[](https://github.com/WSL043/dsh-codex-subscription/stargazers)
|
|
15
15
|
|
|
16
|
-
[三步开始](#三步开始) · [
|
|
16
|
+
[三步开始](#三步开始) · [安装](#安装) · [更新与卸载](#更新与卸载) · [English](https://github.com/WSL043/dsh-codex-subscription/blob/main/README.md)
|
|
17
17
|
|
|
18
18
|
</div>
|
|
19
19
|
|
|
@@ -23,21 +23,15 @@
|
|
|
23
23
|
|
|
24
24
|
## 三步开始
|
|
25
25
|
|
|
26
|
-
1.
|
|
26
|
+
1. **安装插件**:直接运行 DSH 标准 bundle 命令:
|
|
27
27
|
|
|
28
|
-
```
|
|
29
|
-
|
|
28
|
+
```sh
|
|
29
|
+
dsh plugin --profile web add dsh-codex-subscription
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
2. **登录订阅**:手动重启 DSH,打开 **设置 -> Codex 订阅**,点击浏览器登录。无需 Codex CLI,也不要粘贴 token。
|
|
33
33
|
3. **开始使用**:在模型选择器中选择 Codex;额度、订阅搜索、图片生成和高速模式都在 DSH 内使用。
|
|
34
34
|
|
|
35
|
-
已有 `dsh` 命令时,标准安装命令是:
|
|
36
|
-
|
|
37
|
-
```sh
|
|
38
|
-
dsh plugin --profile web add dsh-codex-subscription
|
|
39
|
-
```
|
|
40
|
-
|
|
41
35
|
DSH-Portable 也提供相同的标准插件命令,因此同样使用上面的命令。完整的官方 npm、Agent 安装、更新和卸载方式见下文。
|
|
42
36
|
|
|
43
37
|
## 核心优势
|
|
@@ -50,7 +44,7 @@ DSH-Portable 也提供相同的标准插件命令,因此同样使用上面的
|
|
|
50
44
|
| **输入框额度** | 可选择紧凑百分比、进度条或完全关闭输入框额度显示 |
|
|
51
45
|
| **安全额度重置** | 直接查看最早到期时间,并通过冷静期和知情确认主动尝试重置 |
|
|
52
46
|
| **订阅搜索** | 可将全部模型的搜索明确路由到 DSH 默认搜索或已登录的 Codex 订阅 |
|
|
53
|
-
| **Codex 图片生成与编辑(Beta)** |
|
|
47
|
+
| **Codex 图片生成与编辑(Beta)** | 可无参考图全新生成,也可明确选择会话图片继续编辑;支持预览、缩放、区域备注、下载原图并衔接回当前输入框 |
|
|
54
48
|
| **高速模式** | 直接在输入框切换标准或高速,无需离开当前会话 |
|
|
55
49
|
| **模型感知上下文** | 可保留目录默认值、按模型启用扩展窗口,或为每个模型填写完整数字 Token 上限 |
|
|
56
50
|
|
|
@@ -66,14 +60,22 @@ DSH-Portable 也提供相同的标准插件命令,因此同样使用上面的
|
|
|
66
60
|
|
|
67
61
|
## 准备 DSH
|
|
68
62
|
|
|
69
|
-
|
|
63
|
+
本插件支持软件包元数据中记录的最新版 DeepSeek Harness,并需要一个当前具有 Codex 使用资格的 ChatGPT 账户。
|
|
70
64
|
|
|
71
65
|
- 不想配置 Node.js:使用 [DSH-Portable](https://github.com/WSL043/DSH-Portable)。这是面向 Windows、macOS 和 Linux 的社区便携桌面分发;
|
|
72
66
|
- 想按官方方式运行:查看 [DeepSeek Harness 官方说明](https://github.com/deepseek-ai/deepseek-harness#run)。
|
|
73
67
|
|
|
74
68
|
## 安装
|
|
75
69
|
|
|
76
|
-
###
|
|
70
|
+
### DSH 标准命令
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
dsh plugin --profile web add dsh-codex-subscription
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
目标选择、profile 锁、依赖解析和 bundle 激活均由 DSH 负责;这是插件唯一的安装路径。
|
|
77
|
+
|
|
78
|
+
### 交给 Agent
|
|
77
79
|
|
|
78
80
|
把这个链接直接发给 Agent:
|
|
79
81
|
|
|
@@ -85,21 +87,6 @@ https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/AGENTS.md
|
|
|
85
87
|
|
|
86
88
|
Agent 文档包含安装、更新、卸载和验收步骤,并要求保留 DSH profile、登录信息和其他插件。
|
|
87
89
|
|
|
88
|
-
### Windows 手动安装
|
|
89
|
-
|
|
90
|
-
打开 PowerShell,只需要复制这一行:
|
|
91
|
-
|
|
92
|
-
```powershell
|
|
93
|
-
irm 'https://github.com/WSL043/dsh-codex-subscription/releases/latest/download/dsh-codex-setup.ps1' | iex
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
这个轻量助手会检查当前目录、系统命令、常见位置以及正在运行的官方 DSH 或
|
|
97
|
-
[DSH-Portable](https://github.com/WSL043/DSH-Portable);存在多个目标时会先让用户选择。
|
|
98
|
-
Portable 继续使用它的公开启动器。安装到官方 DSH 时,助手会使用选定的配置目录和固定到已验收
|
|
99
|
-
DSH 版本的 pnpm 助手;系统没有可用 pnpm 时,会在当前 Windows 用户目录下缓存经过校验的副本。
|
|
100
|
-
它不会递归扫盘、创建常驻命令、保存 profile 快照、要求管理员权限或擅自重启 DSH。只有识别到
|
|
101
|
-
发布时间策略拦截时,才会仅对同一个固定安装命令重试一次。
|
|
102
|
-
|
|
103
90
|
<details>
|
|
104
91
|
<summary>官方 npm 方式(已安装 Node.js)</summary>
|
|
105
92
|
|
|
@@ -141,7 +128,7 @@ dsh --profile web --dump-config
|
|
|
141
128
|
- 设置页显示服务端返回的额度、重置时间和更新时间;
|
|
142
129
|
- 普通 Codex、Codex-Spark、Credits 等独立额度分开显示;
|
|
143
130
|
- 显示重置卡数量与最早到期时间,也允许在额度未完全用尽时主动尝试,并经过分层确认且不会自动重试;
|
|
144
|
-
-
|
|
131
|
+
- 输入框可用百分比、进度条或可选的 Beta 续航预测显示当前 Codex 模型的剩余额度(默认关闭);
|
|
145
132
|
- 输入框可为支持的 Codex 模型切换标准或高速模式;
|
|
146
133
|
- 上下文窗口提供标准、扩展和逐模型自定义;自定义直接填写完整 Token 数值,并在已审核的模型容量内交给 DSH 原生 Agent 压缩策略处理;
|
|
147
134
|
- 设置页可生成并复制无敏感信息的支持诊断,并直接打开反馈入口;报告包含有限的请求阶段、HTTP/网络分类、耗时区间和路由来源类型,但不包含 OAuth 凭据、账号标识、代理地址或授权时间;
|
|
@@ -155,7 +142,7 @@ dsh --profile web --dump-config
|
|
|
155
142
|
<img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/composer-quota-en.png" width="800" alt="输入框内的 Codex 剩余额度">
|
|
156
143
|
</p>
|
|
157
144
|
|
|
158
|
-
|
|
145
|
+
可在设置中选择关闭、百分比、进度条或 Beta 续航预测;紧凑额度只在选择 Codex 模型时显示。续航预测仅在用户主动选择后,根据本机运行内存中观察到的官方剩余百分比估算当前消耗速度;样本不足时保持安静,额度重置、登录变化或关闭功能后会重新校准。普通 Codex 使用服务端返回窗口中剩余最少的一项,
|
|
159
146
|
Spark 使用独立额度。插件不会写死“5 小时 + 每周”,也不会虚构服务端没有返回的 Credits 或消费上限。
|
|
160
147
|
|
|
161
148
|
### 安全使用额度重置
|
|
@@ -166,14 +153,18 @@ ChatGPT 返回可用重置卡时,设置页会用紧凑的一行显示数量和
|
|
|
166
153
|
|
|
167
154
|
### 图片生成与编辑(Beta)
|
|
168
155
|
|
|
169
|
-
|
|
156
|
+
如果安装了 `dsh-image-viewer`,生成图片会优先交给它统一预览;订阅插件自己的查看器仅在该服务不存在或拒绝打开时兜底,不会与图片查看器争抢入口。图片查看器负责缩放、拖动、适合窗口、会话预览下载和区域备注,订阅插件只负责 Codex 图片生成/编辑、精确原图权限和“继续编辑”交接。
|
|
157
|
+
两条路径都支持查看尺寸和编号区域备注;标准“下载”按钮默认获取经过权限与完整性校验的精确原图,只有旧会话没有精确原图时才下载会话预览图。
|
|
158
|
+
按 Enter 保存并收起当前备注,Shift+Enter 可以换行;在当前 DSH 页面会话内重新打开同一张图片时,备注仍会保留。
|
|
170
159
|
点击“在输入框中继续编辑”时,只会附上当前打开的这一张图,并把部位标注写入草稿,不会自动发送。
|
|
171
160
|
新的图片请求不会静默带入历史图片。GPT Image 2 的耗时可能明显长于文本回复,复杂文字、精确构图和连续角色一致性也可能需要再次调整。
|
|
172
161
|
|
|
173
162
|
<p align="center">
|
|
174
|
-
<img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/image-preview-annotations.png" width="
|
|
163
|
+
<img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/image-preview-annotations.png" width="800" alt="DSH 图片查看器中的生成图、区域备注和继续编辑">
|
|
175
164
|
</p>
|
|
176
165
|
|
|
166
|
+
GPT Image 返回的精确字节会单独保存在当前 DSH 主目录中,因为 DSH 可能为会话展示和后续模型输入规范化预览图。原图下载前会校验完整性,只允许创建会话或确实继承了该图片结果的 Fork 会话访问;提前创建的 Fork 和无关会话会被拒绝。原图字节不会写入会话日志,卸载插件也不会删除已经生成的原图。
|
|
167
|
+
|
|
177
168
|
### 输入框速度
|
|
178
169
|
|
|
179
170
|
选择支持的 Codex 模型后,可在输入框的模型菜单中切换标准与高速。标准模式不增加图标,
|
|
@@ -182,25 +173,25 @@ ChatGPT 返回可用重置卡时,设置页会用紧凑的一行显示数量和
|
|
|
182
173
|
|
|
183
174
|
## 更新与卸载
|
|
184
175
|
|
|
185
|
-
|
|
176
|
+
更新、校验和卸载继续使用同一套 DSH 插件生命周期:
|
|
186
177
|
|
|
187
178
|
```sh
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
179
|
+
dsh plugin --profile web update dsh-codex-subscription
|
|
180
|
+
dsh plugin --profile web list dsh-codex-subscription --depth 0
|
|
181
|
+
dsh --profile web --dump-config
|
|
182
|
+
dsh plugin --profile web remove dsh-codex-subscription
|
|
192
183
|
```
|
|
193
184
|
|
|
194
185
|
这些操作会保留 DSH profile、其他插件和登录信息。
|
|
195
186
|
|
|
196
187
|
<details>
|
|
197
|
-
<summary
|
|
188
|
+
<summary>官方 npm 备用方式</summary>
|
|
198
189
|
|
|
199
190
|
```sh
|
|
200
|
-
dsh plugin --profile web update dsh-codex-subscription
|
|
201
|
-
dsh plugin --profile web list dsh-codex-subscription --depth 0
|
|
202
|
-
dsh --profile web --dump-config
|
|
203
|
-
dsh plugin --profile web remove dsh-codex-subscription
|
|
191
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web update dsh-codex-subscription
|
|
192
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web list dsh-codex-subscription --depth 0
|
|
193
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 --profile web --dump-config
|
|
194
|
+
npx -y @deepseek-ai/dsh@0.1.1-rc.2 plugin --profile web remove dsh-codex-subscription
|
|
204
195
|
```
|
|
205
196
|
|
|
206
197
|
</details>
|
|
@@ -208,7 +199,7 @@ dsh plugin --profile web remove dsh-codex-subscription
|
|
|
208
199
|
## 常见问题
|
|
209
200
|
|
|
210
201
|
- **`dsh` 无法识别**:官方 npm 方式本来就不会创建全局 `dsh` 命令,请使用上面的完整 `npx -y @deepseek-ai/dsh@0.1.1-rc.2 ...` 命令;
|
|
211
|
-
- **电脑上有多个 DSH
|
|
202
|
+
- **电脑上有多个 DSH**:请从目标 DSH 环境运行标准命令,由该产品自身选择对应 profile;
|
|
212
203
|
- **安装仍然失败**:把上面的 Agent 文档链接发给 Agent,不要删除 profile 或随意修改系统 PATH。
|
|
213
204
|
- **需要提交问题**:在设置页底部生成“支持诊断”,然后打开[使用问题表单](https://github.com/WSL043/dsh-codex-subscription/issues/new?template=install-problem.yml)。报告包含系统/运行时、有限的登录阶段和安全的请求失败分类,但不含凭据、账号标识、代理地址、原始响应或完整日志;请粘贴到必填诊断栏,且不要附上登录链接、授权码或浏览器回调地址。
|
|
214
205
|
|
|
@@ -217,6 +208,7 @@ dsh plugin --profile web remove dsh-codex-subscription
|
|
|
217
208
|
ChatGPT Codex 后端和 DSH 可能独立变化;本项目为社区项目,与 DeepSeek、OpenAI 无隶属或背书关系。
|
|
218
209
|
|
|
219
210
|
本项目的问题反馈请使用[使用问题表单](https://github.com/WSL043/dsh-codex-subscription/issues/new?template=install-problem.yml);
|
|
211
|
+
明确的产品建议请使用[功能建议表单](https://github.com/WSL043/dsh-codex-subscription/issues/new?template=feature-request.yml);
|
|
220
212
|
DSH 插件交流可前往 [DeepSeek Harness Discussions](https://github.com/deepseek-ai/deepseek-harness/discussions)。
|
|
221
213
|
敏感问题请先阅读 [SECURITY.md](SECURITY.md)。
|
|
222
214
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -9,6 +9,7 @@ This project depends on software distributed under its own terms. The dependency
|
|
|
9
9
|
| React | DSH settings component runtime | MIT | https://github.com/facebook/react |
|
|
10
10
|
| Heroicons | Composer speed icon | MIT | https://github.com/tailwindlabs/heroicons |
|
|
11
11
|
| `https-proxy-agent` 7.0.6 | HTTPS proxy transport for Codex OAuth token requests | MIT | https://github.com/TooTallNate/proxy-agents |
|
|
12
|
+
| QuotaPin for Codex | Design basis for the opt-in local quota runway forecast | MIT | https://github.com/WSL043/QuotaPin-for-Codex |
|
|
12
13
|
| tsdown | Development-time bundler | MIT | https://github.com/rolldown/tsdown |
|
|
13
14
|
|
|
14
15
|
No third-party project endorses this community plugin. See each installed package for its complete license text and transitive dependency notices.
|