dsh-codex-subscription 2.2.0 → 2.2.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.en.md +10 -6
- package/README.md +10 -6
- package/lib/client.js +1884 -1588
- package/lib/index.js +89 -9
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -79,7 +79,7 @@ This plugin supports the latest DeepSeek Harness release recorded in its package
|
|
|
79
79
|
3. Click **Install** and wait for completion. Follow the page instructions; save your work before restarting if requested.
|
|
80
80
|
4. Open **Settings → Codex**, sign in to ChatGPT, then select a Codex model in your conversation.
|
|
81
81
|
|
|
82
|
-
The unversioned package name installs the latest stable release. To
|
|
82
|
+
The unversioned package name installs the latest stable release. To pin a version, append `@` and the complete version from the [releases page](https://github.com/WSL043/dsh-codex-subscription/releases) to the package name; the same applies to beta releases. Enter only the package name here, not a terminal command. This plugin can be installed using its npm package name; no GitHub URL or local directory is needed.
|
|
83
83
|
|
|
84
84
|
<details>
|
|
85
85
|
<summary>Terminal installation (with an existing dsh command)</summary>
|
|
@@ -167,7 +167,7 @@ Use the composer pen button for manual drawing. Selecting `@sketch` only inserts
|
|
|
167
167
|
|
|
168
168
|
Sketch supports local drafts, image layers, aspect ratios, three brushes (solid ink, grainy pencil and translucent highlighter), 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.
|
|
169
169
|
|
|
170
|
-
The board supports editable shapes and text, native curves, and a side control for size/opacity. During Agent drawing, you can view, zoom, close the panel or stop drawing; manual edits unlock when it finishes. Automatic completion previews are off by default and can be enabled
|
|
170
|
+
The board supports editable shapes and text, native curves, and a side control for size/opacity. During Agent drawing, you can view, zoom, close the panel or stop drawing; manual edits unlock when it finishes. Automatic completion previews are off by default and can be enabled under Images & sketch. The document, history and run state are retained when switching away and back. Background drawing while viewing another session is not guaranteed. Save before a full-page reload or exit; unsaved recovery is not guaranteed.
|
|
171
171
|
|
|
172
172
|
**Sketch-to-image example**: draw, click Attach, describe the desired result in the composer, then send.
|
|
173
173
|
|
|
@@ -182,7 +182,7 @@ The request preserves the mountain and cabin composition while creating a warm w
|
|
|
182
182
|
|
|
183
183
|
**Someone Behind the Canvas**
|
|
184
184
|
|
|
185
|
-
**Astra draws the sketch; GPT Image 2 generates the illustration.** Astra draws 427 strokes across six layers through the native `codex_sketch` interface; Luna then calls the subscription image tool. The request uses `gpt-image-2` at low quality; the server does not report the executing model. This Beta adds PNG export, layered PSD import/export and editable draft files. PSD retains pixel layers; native drafts retain strokes. Sketch canvas and Agent drawing are separate Beta options, both off by default
|
|
185
|
+
**Astra draws the sketch; GPT Image 2 generates the illustration.** Astra draws 427 strokes across six layers through the native `codex_sketch` interface; Luna then calls the subscription image tool. The request uses `gpt-image-2` at low quality; the server does not report the executing model. This Beta adds PNG export, layered PSD import/export and editable draft files. PSD retains pixel layers; native drafts retain strokes. Sketch canvas and Agent drawing are separate Beta options, both off by default under Images & sketch. Drawing tools are exposed only when Agent drawing is enabled; the agent then automatically opens the current session’s board.
|
|
186
186
|
|
|
187
187
|
| Native sketch | Generated result |
|
|
188
188
|
| --- | --- |
|
|
@@ -230,7 +230,7 @@ see the [OpenAI Codex Speed documentation](https://learn.chatgpt.com/docs/agent-
|
|
|
230
230
|
|
|
231
231
|
### Advanced experiments
|
|
232
232
|
|
|
233
|
-
Opt in under **
|
|
233
|
+
Opt in under **Models & runtime**. SSE and DSH subtasks remain the defaults:
|
|
234
234
|
|
|
235
235
|
- **WebSocket** reuses connections and eligible context transfers. Failed handshakes can fall back to SSE; interrupted responses surface an error without automatic replay. Applies to the next request, does not expand context limits, and is not guaranteed to be faster.
|
|
236
236
|
- **Codex independent subtasks** reuse your subscription login and the official DSH Codex runtime, without a separate login; install its optional component in settings. They inherit the current subscription model and workspace permissions by default. Enable DSH subtask model selection, configure allowed models and start a new session to specify the child model and reasoning effort in chat. Non-subscription sessions must explicitly select a subscription model. Shared-context subtasks remain with DSH.
|
|
@@ -241,11 +241,11 @@ Opt in under **Advanced & diagnostics**. SSE and DSH subtasks remain the default
|
|
|
241
241
|
|
|
242
242
|
Subscription chat, images, and native DSH subtasks do not need Codex CLI. Only **Codex independent subtasks (Beta)** require the optional official runtime. The plugin never downloads it in the background.
|
|
243
243
|
|
|
244
|
-
In **Settings → Codex →
|
|
244
|
+
In **Settings → Codex → Models & runtime → Independent subtasks**, click **Install component**. DSH handles installation; the page shows its stage and offers cancellation before applying. Restart after completion, then choose Codex. Installation does not enable subtasks automatically.
|
|
245
245
|
|
|
246
246
|

|
|
247
247
|
|
|
248
|
-
Prefer **Install component** above.
|
|
248
|
+
Prefer **Install component** above. The plugin selects a component matching the current DSH version: DSH `0.1.7-rc.2` installs component `0.1.7-rc.2`, while DSH `0.1.5-rc.2` installs component `0.1.5-rc.2`. An existing `0.1.5-rc.3` component is recognized only on a matching host. Do not omit the component version or substitute `@next`.
|
|
249
249
|
|
|
250
250
|
<details>
|
|
251
251
|
<summary>Manual installation on older hosts and offline preparation</summary>
|
|
@@ -276,6 +276,10 @@ This removes the optional subtask component, not the subscription plugin. Subscr
|
|
|
276
276
|
|
|
277
277
|
Uninstalling does not clear shared package caches or guarantee a fixed amount of reclaimed space. DSH or Portable manages those caches centrally; this plugin does not delete shared directories. Sketches, conversation history, generated originals and sign-in data are not package caches. Use their respective management controls when you want to remove them.
|
|
278
278
|
|
|
279
|
+
**Storage and cache** under Maintenance shows the quota forecast cache size and lets you confirm clearing its local history. New samples are required afterwards; server quotas do not change. Support diagnostics include observed WebSocket connection, reuse and fallback counts, plus cloud compaction checkpoint saves and reuse. These counters exclude response bodies and session identifiers and do not establish a performance improvement.
|
|
280
|
+
|
|
281
|
+
PSD import asks for confirmation first: simple 8-bit RGB files, up to 8 layers, 32 MB and 4096 pixels per side. Layers become images and the longest side is reduced to 1024 pixels. Masks, adjustments and special blending effects are unsupported. The source file stays unchanged. Use the native DSH sketch format to preserve editable strokes and objects.
|
|
282
|
+
|
|
279
283
|
## Update and uninstall
|
|
280
284
|
|
|
281
285
|
Find this plugin on the DSH **Plugins** page and use its update or uninstall action. Follow any restart instructions. Uninstalling this plugin does not remove other plugins.
|
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
|
|
81
81
|
4. 打开 **设置 → Codex 订阅**,登录 ChatGPT,然后在会话中选择 Codex 模型。
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
包名不带版本号时安装最新正式版。若要固定版本,在包名后加 `@` 和[发布页](https://github.com/WSL043/dsh-codex-subscription/releases)中的完整版本号;测试版也一样。此处只填包名,不要粘贴整条终端命令。安装本插件使用上面的 npm 包名即可,无需填写 GitHub 地址或本地目录。
|
|
84
84
|
|
|
85
85
|
<details>
|
|
86
86
|
<summary>终端安装(已能运行 dsh 命令)</summary>
|
|
@@ -166,7 +166,7 @@ ChatGPT 返回可用重置卡时,设置页会把每张卡分别显示为紧凑
|
|
|
166
166
|
|
|
167
167
|
草图支持多份本地草稿、图片图层、画布比例、三种笔刷(实色钢笔、颗粒铅笔、半透明荧光笔)、直线和形状、两种橡皮、撤销重做、拖动缩放与可配置快捷键。平滑仅在抬笔后处理整笔路径,不拖慢绘画光标。草稿最多 20 份,仅保存在当前浏览器;附加草图不会自动发送。左侧图片面板只管理当前草图的图片,不是会话图片库。
|
|
168
168
|
|
|
169
|
-
支持可选中修改的形状与文字、原生曲线,以及侧边粗细/浓度控件。Agent
|
|
169
|
+
支持可选中修改的形状与文字、原生曲线,以及侧边粗细/浓度控件。Agent 绘制时可查看、缩放和关闭面板,编辑暂时锁定;顶部可停止绘制,完成后恢复编辑。自动完成预览默认关闭,可在“图片与草图”中开启。切换会话后再返回会保留画板、历史和运行状态。切到其他会话期间不保证后台绘制;整页刷新或退出前请保存草稿,未保存内容不保证恢复。
|
|
170
170
|
|
|
171
171
|
**草图生成图片实测**:画好后点击“附加”,在输入框说明想要的效果,再发送。
|
|
172
172
|
|
|
@@ -181,7 +181,7 @@ ChatGPT 返回可用重置卡时,设置页会把每张卡分别显示为紧凑
|
|
|
181
181
|
|
|
182
182
|
**《画布背面有人》**
|
|
183
183
|
|
|
184
|
-
**Astra 绘制草图,GPT Image 2 生成成图。** Astra 通过原生 `codex_sketch` 接口完成 6 层、427 笔绘制,再由 Luna 调用订阅生图工具精修。生图请求使用 `gpt-image-2`、低质量档;服务端未报告实际执行型号。Beta 新增 PNG 导出、分层 PSD 导入导出和可编辑草稿文件;PSD 保留像素图层,原生草稿保留笔画。草图画板与 Agent
|
|
184
|
+
**Astra 绘制草图,GPT Image 2 生成成图。** Astra 通过原生 `codex_sketch` 接口完成 6 层、427 笔绘制,再由 Luna 调用订阅生图工具精修。生图请求使用 `gpt-image-2`、低质量档;服务端未报告实际执行型号。Beta 新增 PNG 导出、分层 PSD 导入导出和可编辑草稿文件;PSD 保留像素图层,原生草稿保留笔画。草图画板与 Agent 绘图均默认关闭,可在“图片与草图”中分别开启。仅开启 Agent 绘图后才向模型提供绘图工具。
|
|
185
185
|
|
|
186
186
|
| 原生草图 | 实际生成结果 |
|
|
187
187
|
| --- | --- |
|
|
@@ -229,7 +229,7 @@ ChatGPT 返回可用重置卡时,设置页会把每张卡分别显示为紧凑
|
|
|
229
229
|
|
|
230
230
|
### 高级实验选项
|
|
231
231
|
|
|
232
|
-
在
|
|
232
|
+
在 **模型与运行** 中按需开启,默认仍使用 SSE 和 DSH 子任务:
|
|
233
233
|
|
|
234
234
|
- **WebSocket**:复用连接和可复用的上下文传输;握手失败可回退 SSE,已开始的响应中断会报错,不自动重放。下次请求生效,不增加模型上下文容量,也不保证更快。
|
|
235
235
|
- **Codex 独立子任务**:复用订阅登录和官方 DSH Codex 运行时,无需另行登录;可选组件在高级设置中安装。默认继承当前订阅模型及工作区权限。开启 DSH 子任务模型选择、配置允许模型并新建会话后,可在聊天中指定子任务模型与推理档位;非订阅会话需明确选择订阅模型。共享上下文的子任务仍交给 DSH。
|
|
@@ -240,11 +240,11 @@ ChatGPT 返回可用重置卡时,设置页会把每张卡分别显示为紧凑
|
|
|
240
240
|
|
|
241
241
|
普通订阅聊天、图片和 DSH 原生子任务不需要 Codex CLI。只有高级设置中的 **Codex 独立子任务(Beta)** 需要额外准备官方运行时,插件不会后台自动下载。
|
|
242
242
|
|
|
243
|
-
在 **设置 → Codex 订阅 →
|
|
243
|
+
在 **设置 → Codex 订阅 → 模型与运行 → 独立子任务** 点击 **安装组件**。DSH 负责安装,页面显示当前阶段,可取消尚未应用的安装;完成后重启,再选择 Codex。安装不会自动开启子任务。
|
|
244
244
|
|
|
245
245
|

|
|
246
246
|
|
|
247
|
-
优先使用上面的 **安装组件**
|
|
247
|
+
优先使用上面的 **安装组件** 按钮。插件会按当前 DSH 版本选择对应组件:DSH `0.1.7-rc.2` 安装组件 `0.1.7-rc.2`,DSH `0.1.5-rc.2` 安装组件 `0.1.5-rc.2`;已安装的 `0.1.5-rc.3` 组件仅在同版本宿主上识别。请不要省略组件版本号或自行改用 `@next`。
|
|
248
248
|
|
|
249
249
|
<details>
|
|
250
250
|
<summary>旧版宿主手动安装与离线准备</summary>
|
|
@@ -275,6 +275,10 @@ dsh plugin --profile web remove @deepseek-ai/dsh-subagent-codex
|
|
|
275
275
|
|
|
276
276
|
卸载不等于清空共享安装缓存,也不能保证释放某个固定大小。安装缓存由 DSH/Portable 统一管理,本插件不直接删除共享目录。草稿、会话记录、生成原图和登录信息不是安装缓存;需要删除时应使用各自的管理入口,不做一键混合清理。
|
|
277
277
|
|
|
278
|
+
“维护”中的 **存储与缓存** 可查看额度预测缓存占用,并确认清除本地预测历史。清除后需要重新积累采样,不改变服务端额度。支持诊断额外提供 WebSocket 连接/复用/回退计数及云端压缩检查点的保存/复用计数,不包含响应正文和会话标识。计数只反映当前运行期间的观察,不能据此推算性能提升。
|
|
279
|
+
|
|
280
|
+
PSD 导入会先提示限制:支持最多 8 层、8 位 RGB 的简单文件(32 MB 内、边长不超过 4096),导入后图层转成图片,最长边缩至 1024;不支持蒙版、调整层和特殊混合效果。原文件不受影响。需要保留草图笔画与对象,请使用原生 DSH 草图格式。
|
|
281
|
+
|
|
278
282
|
## 更新与卸载
|
|
279
283
|
|
|
280
284
|
在 DSH **插件** 页面找到本插件,使用更新或卸载操作,完成后按页面提示重启。卸载插件不会删除其他插件。
|