dsh-codex-subscription 1.14.4 → 2.0.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/README.en.md CHANGED
@@ -42,7 +42,7 @@ DSH-Portable exposes the same standard plugin command, so the command above also
42
42
  | **Subscription models** | Sign in to ChatGPT and use Codex without an OpenAI API key or Codex CLI |
43
43
  | **Recoverable and diagnosable** | Sign-in state reconciles automatically; failed reads can be retried in place, while timeouts and stale account responses cannot overwrite current state; Settings can create a support report without credentials or account identifiers |
44
44
  | **Visible quota** | Keep backend-provided standard Codex, Spark, and other limits separate |
45
- | **Composer quota** | Choose a compact percentage, progress bar, or no inline quota display |
45
+ | **Composer quota** | Choose a compact percentage, progress bar, Beta runway forecast, or no inline display |
46
46
  | **Safe quota reset** | See each reset credit separately and deliberately try one with a cooldown and acknowledgement |
47
47
  | **Subscription search** | Explicitly route search globally through DSH default search or the signed-in Codex subscription |
48
48
  | **Codex image generation and editing (Beta)** | Generate without references, or explicitly edit one selected image; preview, zoom, annotate regions, download the original, and get the original host path for new or edited images |
@@ -55,10 +55,10 @@ These capabilities reuse the same local ChatGPT sign-in. Subscription routing fa
55
55
  ## Product screen
56
56
 
57
57
  <p align="center">
58
- <img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/context-settings-en.png" width="820" alt="Current Codex subscription settings in DeepSeek Harness with search, model-aware context, composer quota, and support diagnostics">
58
+ <img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/context-settings.png" width="820" alt="2.0.0 account and preference settings: sign-in, quota display and alerts">
59
59
  </p>
60
60
 
61
- The screenshot illustrates the settings layout; available options can vary by DSH and plugin version.
61
+ 2.0.0 groups settings into Account & preferences and Advanced & diagnostics. Screenshots use the Chinese UI, with the account label hidden and scrollable content expanded for readability. [View advanced settings](docs/assets/settings-advanced-2.0.png).
62
62
 
63
63
  ## Prepare DSH
64
64
 
@@ -92,9 +92,9 @@ dsh --profile headless "Reply with only the word: ok"
92
92
  The official `npx @deepseek-ai/dsh web` command does not create a global `dsh` command. Keep the full `npx` prefix when installing the plugin:
93
93
 
94
94
  ```sh
95
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web add dsh-codex-subscription
96
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
97
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 --profile web --dump-config
95
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web add dsh-codex-subscription
96
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
97
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 --profile web --dump-config
98
98
  ```
99
99
 
100
100
  </details>
@@ -142,12 +142,13 @@ When the official model catalog exposes GPT-6 Astra, Standard preserves the cata
142
142
  ### Composer quota
143
143
 
144
144
  <p align="center">
145
- <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">
145
+ <img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/composer-quota.png" width="800" alt="Codex quota inside the composer">
146
146
  </p>
147
147
 
148
- 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 pace only from official remaining-percentage observations. It needs at least three samples; sustained high use usually produces a range in 5–10 minutes, while low use takes longer or reports a stable state. Non-sensitive observations from the last 24 hours are kept locally so calibration can continue after restart; a quota reset, account switch, or disabling the feature starts a new calibration period.
149
- The composer shows each returned quota window with its duration. When Plus returns both five-hour and weekly limits, both are visible. Spark keeps its independent quota. Accounts with only a weekly window still show only that window; the plugin does not invent a
150
- five-hour limit, Credits, or spending caps that the service did not return.
148
+ Choose Off, Percent, Progress bar, or Beta Runway under Account & preferences. When a five-hour window exists, the composer shows that window only; the popover retains all windows. A weekly-only display omits the week label and uses compact durations such as `36% · ≈10h–12h`.
149
+
150
+ Runway uses official observations from the recent two hours, including unchanged readings. Repeated boundary crossings can refine the rate interval when the assumptions hold; insufficient evidence or changing intensity falls back to a conservative estimate. It remains Beta and is not a guarantee of working time. History is bounded and stored locally; resets, long gaps or disabling the feature restart calibration.
151
+ Spark keeps its independent quota. The plugin does not invent five-hour limits, Credits, or spending caps that the service did not return.
151
152
 
152
153
  ### Safe quota reset
153
154
 
@@ -173,6 +174,24 @@ A new image request does not silently include earlier images. GPT Image 2 can ta
173
174
 
174
175
  The screenshot above illustrates image viewing and on-image notes; available buttons can vary with the image and installed viewer version.
175
176
 
177
+ ### Sketch canvas (Beta)
178
+
179
+ ![Sketch canvas in the Chinese UI: aspect ratio, brushes, shapes, layers and zoom](https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/sketch-canvas.png)
180
+
181
+ Open Sketch from the composer button or `@Sketch`, or choose Open in sketch from an enhanced image preview. Attachment intake and removal use the native DSH component.
182
+
183
+ Sketch supports local drafts, image layers, aspect ratios, brushes, lines and shapes, two erasers, undo/redo, pan/zoom and configurable shortcuts. Smoothing processes a completed stroke only after release. Up to 20 drafts stay in the current browser; attaching a sketch never sends it automatically. Its image panel manages only the current sketch, not the conversation library.
184
+
185
+ **Sketch-to-image example**: draw, click Attach, describe the desired result in the composer, then send.
186
+
187
+ | Original sketch | Actual plugin output |
188
+ | --- | --- |
189
+ | ![Mountains and cabin sketch](https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/sketch-demo-source.png) | ![Watercolor mountain cabin generated from the sketch](https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/sketch-demo-result.png) |
190
+
191
+ The request preserves the mountain and cabin composition while creating a warm watercolor travel illustration with green peaks, an orange roof, a meadow stream and morning light, without the blue outlines. GPT-5.6-Luna made one image-tool call requesting low quality. Luna is the conversation model; the subscription backend determines the actual image model.
192
+
193
+ Flare / Sunburst request overrides remain experimental: successful generation does not confirm which image engine or quality the subscription backend used.
194
+
176
195
  ### Composer speed
177
196
 
178
197
  With a supported Codex model selected, open the composer's model menu to choose Standard or Fast.
@@ -205,22 +224,22 @@ These operations preserve the DSH profile, other plugins, and saved sign-in.
205
224
  ### Update and verify
206
225
 
207
226
  ```sh
208
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web update dsh-codex-subscription
209
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
210
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 --profile web --dump-config
227
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web update dsh-codex-subscription
228
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
229
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 --profile web --dump-config
211
230
  ```
212
231
 
213
232
  ### Uninstall
214
233
 
215
234
  ```sh
216
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web remove dsh-codex-subscription
235
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web remove dsh-codex-subscription
217
236
  ```
218
237
 
219
238
  </details>
220
239
 
221
240
  ## Troubleshooting
222
241
 
223
- - **`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.2-rc.1 ...` command above;
242
+ - **`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.5-rc.1 ...` command above;
224
243
  - **More than one DSH exists:** run the standard command from the intended DSH environment so that product selects the corresponding profile;
225
244
  - **Setup still fails:** confirm the command is running in the intended DSH environment. Do not delete the profile or change the system PATH to force an install.
226
245
  - **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.
package/README.md CHANGED
@@ -43,7 +43,7 @@ DSH-Portable 也提供相同的标准插件命令,因此同样使用上面的
43
43
  | **订阅模型直连** | 登录 ChatGPT 后直接使用 Codex,不需要 OpenAI API Key 或 Codex CLI |
44
44
  | **可恢复、可诊断** | 登录状态会自动对账;读取失败时可在原处重试,超时和旧账号响应不会覆盖当前状态;设置页可生成不含凭据和账号标识的支持报告 |
45
45
  | **额度可见** | 普通 Codex、Spark 等服务端实际返回的额度分开显示 |
46
- | **输入框额度** | 可选择紧凑百分比、进度条或完全关闭输入框额度显示 |
46
+ | **输入框额度** | 可选择紧凑百分比、进度条、Beta 续航预测或关闭显示 |
47
47
  | **安全额度重置** | 每张重置卡单独显示,并通过冷静期和知情确认主动尝试重置 |
48
48
  | **订阅搜索** | 可将全部模型的搜索明确路由到 DSH 默认搜索或已登录的 Codex 订阅 |
49
49
  | **Codex 图片生成与编辑(Beta)** | 可无参考图全新生成,也可明确选择会话图片继续编辑;支持预览、缩放、区域备注、下载原图,并为新生成或编辑的图片提供 DSH 主机上的原图路径 |
@@ -56,10 +56,10 @@ DSH-Portable 也提供相同的标准插件命令,因此同样使用上面的
56
56
  ## 实际界面
57
57
 
58
58
  <p align="center">
59
- <img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/context-settings.png" width="820" alt="当前 DeepSeek Harness Codex 订阅设置,包含搜索来源、模型感知上下文、输入框额度和支持诊断">
59
+ <img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/context-settings.png" width="820" alt="2.0.0 账号与偏好:登录、额度、显示模式与提醒">
60
60
  </p>
61
61
 
62
- 截图用于说明设置页布局;可用选项会随 DSH 与插件版本变化。
62
+ 2.0.0 设置分为“账号与偏好”和“高级与诊断”。截图已隐藏账号信息,并展开滚动内容便于阅读;[查看高级页](docs/assets/settings-advanced-2.0.png)。
63
63
 
64
64
  ## 准备 DSH
65
65
 
@@ -93,9 +93,9 @@ dsh --profile headless "只回复:ok"
93
93
  官方的 `npx @deepseek-ai/dsh web` 不会创建全局 `dsh` 命令,因此安装插件时也要保留完整的 `npx` 前缀:
94
94
 
95
95
  ```sh
96
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web add dsh-codex-subscription
97
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
98
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 --profile web --dump-config
96
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web add dsh-codex-subscription
97
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
98
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 --profile web --dump-config
99
99
  ```
100
100
 
101
101
  </details>
@@ -143,10 +143,12 @@ dsh --profile web --dump-config
143
143
  ### 输入框额度
144
144
 
145
145
  <p align="center">
146
- <img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/composer-quota.png" width="800" alt="中文 DSH 输入框内的 Codex 剩余额度进度条">
146
+ <img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/composer-quota.png" width="800" alt="中文 DSH 输入框内的 Codex 剩余额度和紧凑续航预测">
147
147
  </p>
148
148
 
149
- 可在设置中选择关闭、百分比、进度条或 Beta 续航预测;紧凑额度只在选择 Codex 模型时显示。续航预测仅在用户主动选择后,根据官方剩余百分比估算当前消耗速度。它至少需要 3 个样本;持续高消耗时通常 510 分钟即可给出范围,消耗较低时会延长观察或显示稳定。最近 24 小时的无敏感信息观测会保存在本机,重启后可以继续校准;额度重置、账号切换或关闭功能会开启新的校准周期。输入框分别显示服务端返回的各额度窗口,并标明窗口时长:Plus 返回 5 小时和每周额度时,两项都会显示。
149
+ 可在“账号与偏好”选择关闭、百分比、进度条或 Beta 续航预测。存在 5 小时额度时,输入框只显示短窗口;每周额度等完整信息留在悬浮详情。仅有周额度时省略“周”字,预测采用 `36% · ≈10h12h` 这样的紧凑格式。
150
+
151
+ 续航预测根据最近两小时的官方读数估算,额度不变的采样同样参与计算。满足条件时利用连续跳格约束速度,读数不足或使用强度变化时会退回保守估计。范围不是实际可工作时间的保证,仍标记 Beta。历史在本机有限保存;重置、长时间离线或关闭预测会重新校准。
150
152
  Spark 使用独立额度。只返回每周额度的账号仍只显示每周,不会虚构 5 小时窗口、Credits 或消费上限。
151
153
 
152
154
  ### 安全使用额度重置
@@ -171,6 +173,24 @@ ChatGPT 返回可用重置卡时,设置页会把每张卡分别显示为紧凑
171
173
 
172
174
  上图展示图片查看与图上备注的基本交互;具体按钮会随图片和所安装的查看器版本变化。
173
175
 
176
+ ### 草图画板(Beta)
177
+
178
+ ![草图画板实机界面:画布比例、笔刷、形状、图层与缩放](https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/sketch-canvas.png)
179
+
180
+ 点击输入框的草图按钮或输入 `@Sketch` 打开。图片预览中可选择“进入草图”;上传、粘贴和移除附件仍由 DSH 原生组件处理。
181
+
182
+ 草图支持多份本地草稿、图片图层、画布比例、三种笔刷、直线和形状、两种橡皮、撤销重做、拖动缩放与可配置快捷键。平滑仅在抬笔后处理整笔路径,不拖慢绘画光标。草稿最多 20 份,仅保存在当前浏览器;附加草图不会自动发送。左侧图片面板只管理当前草图的图片,不是会话图片库。
183
+
184
+ **草图生成图片实测**:画好后点击“附加”,在输入框说明想要的效果,再发送。
185
+
186
+ | 画板原草图 | 插件实际生成结果 |
187
+ | --- | --- |
188
+ | ![山峰与小屋草图](https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/sketch-demo-source.png) | ![根据草图生成的水彩山间小屋](https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/sketch-demo-result.png) |
189
+
190
+ 示例要求:保留山峰与小屋的构图,生成温暖的水彩旅行插画,青绿山峰、橙色屋顶、草地小溪与柔和晨光,不保留蓝色线条。此例通过 GPT-5.6-Luna 发起一次图片工具调用,请求低质量;Luna 是对话模型,实际出图型号由订阅后端决定。
191
+
192
+ 图片请求中的 Flare / Sunburst 型号选项仍属实验性功能。成功生成不代表订阅后端确认采用指定型号或质量;不会把请求参数当成实际返回型号。
193
+
174
194
  ### 输入框速度
175
195
 
176
196
  选择支持的 Codex 模型后,可在输入框的模型菜单中切换标准与高速。标准模式不增加图标,
@@ -203,22 +223,22 @@ dsh plugin --profile web remove dsh-codex-subscription
203
223
  ### 更新并检查
204
224
 
205
225
  ```sh
206
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web update dsh-codex-subscription
207
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
208
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 --profile web --dump-config
226
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web update dsh-codex-subscription
227
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
228
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 --profile web --dump-config
209
229
  ```
210
230
 
211
231
  ### 卸载
212
232
 
213
233
  ```sh
214
- npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web remove dsh-codex-subscription
234
+ npx -y @deepseek-ai/dsh@0.1.5-rc.1 plugin --profile web remove dsh-codex-subscription
215
235
  ```
216
236
 
217
237
  </details>
218
238
 
219
239
  ## 常见问题
220
240
 
221
- - **`dsh` 无法识别**:官方 npm 方式本来就不会创建全局 `dsh` 命令,请使用上面的完整 `npx -y @deepseek-ai/dsh@0.1.2-rc.1 ...` 命令;
241
+ - **`dsh` 无法识别**:官方 npm 方式本来就不会创建全局 `dsh` 命令,请使用上面的完整 `npx -y @deepseek-ai/dsh@0.1.5-rc.1 ...` 命令;
222
242
  - **电脑上有多个 DSH**:请从目标 DSH 环境运行标准命令,由该产品自身选择对应 profile;
223
243
  - **安装仍然失败**:确认命令是在目标 DSH 环境中运行,不要删除 profile 或随意修改系统 PATH。
224
244
  - **需要提交问题**:在设置页底部生成“支持诊断”,然后打开[使用问题表单](https://github.com/WSL043/dsh-codex-subscription/issues/new?template=install-problem.yml)。报告包含系统/运行时、有限的登录阶段和安全的请求失败分类,但不含凭据、账号标识、代理地址、原始响应或完整日志;请粘贴到必填诊断栏,且不要附上登录链接、授权码或浏览器回调地址。
@@ -7,7 +7,7 @@ This project depends on software distributed under its own terms. The dependency
7
7
  | DeepSeek Harness packages | Plugin host, client slots, credential and LLM interfaces | MIT | https://github.com/deepseek-ai/deepseek-harness |
8
8
  | `@earendil-works/pi-ai` 0.82.1 | OpenAI Codex OAuth, model catalog, Responses transport, and WebSocket continuation | MIT | https://github.com/earendil-works/pi |
9
9
  | React | DSH settings component runtime | MIT | https://github.com/facebook/react |
10
- | dsh-image-viewer 0.1.0-beta.9 (3d121d3) | Adapted built-in image viewer, interaction state, and styles | MIT, Copyright (c) 2026 WSL043; full license included in LICENSE | https://github.com/WSL043/dsh-image-viewer |
10
+ | dsh-image-viewer 0.1.0-beta.9 (3d121d3), with 0.1.0 (7f3be2c) zoom and annotation improvements | Adapted built-in image viewer, interaction state, and styles | MIT, Copyright (c) 2026 WSL043; full license included in LICENSE | https://github.com/WSL043/dsh-image-viewer |
11
11
  | Heroicons | Composer speed icon | MIT | https://github.com/tailwindlabs/heroicons |
12
12
  | `https-proxy-agent` 7.0.6 | HTTPS proxy transport for Codex OAuth token requests | MIT | https://github.com/TooTallNate/proxy-agents |
13
13
  | QuotaPin for Codex | Design basis for the opt-in local quota runway forecast | MIT | https://github.com/WSL043/QuotaPin-for-Codex |
@@ -1,17 +1,11 @@
1
1
  {
2
- "latestTested": "0.1.2-rc.1",
2
+ "latestTested": "0.1.5-rc.1",
3
3
  "supported": [
4
- "0.1.0-rc.6",
5
- "0.1.0-rc.7",
6
- "0.1.0-rc.8",
7
- "0.1.1-rc.1",
8
- "0.1.1-rc.2",
9
- "0.1.2-rc.1"
4
+ "0.1.2-rc.1",
5
+ "0.1.5-rc.1"
10
6
  ],
11
7
  "previews": [
12
- "0.1.2-alpha.2",
13
- "0.1.2-alpha.3",
14
- "0.1.2-alpha.4",
15
- "0.1.2-alpha.5"
8
+ "0.1.5-alpha.1",
9
+ "0.1.5-alpha.2"
16
10
  ]
17
11
  }