dsh-codex-subscription 1.12.2 → 1.13.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 +4 -4
- package/README.en.md +4 -4
- package/README.md +4 -4
- package/lib/client.js +341 -262
- package/lib/index.js +119 -30
- package/package.json +1 -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.13.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.2-rc.1 plugin --profile web add dsh-codex-subscription@1.
|
|
37
|
+
npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web add dsh-codex-subscription@1.13.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.13.0
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
Use the same `add` command to update or repair. This is the complete package-changing operation.
|
|
@@ -58,7 +58,7 @@ 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.2-rc.1` in place of `dsh`.
|
|
60
60
|
|
|
61
|
-
1. `dsh-codex-subscription` version `1.
|
|
61
|
+
1. `dsh-codex-subscription` version `1.13.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
|
|
package/README.en.md
CHANGED
|
@@ -43,7 +43,7 @@ DSH-Portable exposes the same standard plugin command, so the command above also
|
|
|
43
43
|
| **Recoverable and diagnosable** | Sign-in state reconciles automatically; 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
45
|
| **Composer quota** | Choose a compact percentage, progress bar, or no inline quota display |
|
|
46
|
-
| **Safe quota reset** | See
|
|
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 continue in the same composer |
|
|
49
49
|
| **Fast mode** | Switch between Standard and Fast directly in the composer |
|
|
@@ -133,12 +133,12 @@ Restart DSH manually after installation, then:
|
|
|
133
133
|
|
|
134
134
|
## Features
|
|
135
135
|
|
|
136
|
-
- ChatGPT OAuth sign-in with credentials kept on the host; manually
|
|
136
|
+
- ChatGPT OAuth sign-in with credentials kept on the host; accounts are identified by a privacy-masked email that can be clicked to reveal, and can be manually added, switched, or removed without automatic rotation or quota pooling;
|
|
137
137
|
- Codex models and Beta image generation/editing directly inside DSH conversations;
|
|
138
138
|
- A clear global choice between DSH default search and Codex subscription search; it applies to every model and session rather than following the selected model;
|
|
139
139
|
- Actual backend-provided quota, reset time, and freshness;
|
|
140
140
|
- Separate standard Codex, Codex-Spark, Credits, and other independent limits;
|
|
141
|
-
-
|
|
141
|
+
- One row per available quota reset with its disclosed name and expiry, plus deliberate early redemption, layered confirmation, and no automatic retry;
|
|
142
142
|
- Optional percentage, progress bar, or Beta runway estimate for the selected Codex model (off by default);
|
|
143
143
|
- Standard or Fast mode for supported Codex models directly in the composer;
|
|
144
144
|
- 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;
|
|
@@ -159,7 +159,7 @@ Standard Codex uses the lowest remaining window returned by the service; Spark u
|
|
|
159
159
|
|
|
160
160
|
### Safe quota reset
|
|
161
161
|
|
|
162
|
-
If ChatGPT reports
|
|
162
|
+
If ChatGPT reports available quota resets, Settings shows each one in its own compact row with its disclosed name and expiry.
|
|
163
163
|
You may deliberately try it before a quota reaches 100%, which is useful for a reset nearing expiry. ChatGPT still
|
|
164
164
|
decides whether a window needs resetting and may return **nothing to reset** without spending the reset. The final
|
|
165
165
|
action requires an acknowledgement checkbox and five-second cooldown. Cancel never consumes a reset, rapid repeated
|
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ DSH-Portable 也提供相同的标准插件命令,因此同样使用上面的
|
|
|
44
44
|
| **可恢复、可诊断** | 登录状态会自动对账;设置页可生成不含凭据和账号标识的支持报告 |
|
|
45
45
|
| **额度可见** | 普通 Codex、Spark 等服务端实际返回的额度分开显示 |
|
|
46
46
|
| **输入框额度** | 可选择紧凑百分比、进度条或完全关闭输入框额度显示 |
|
|
47
|
-
| **安全额度重置** |
|
|
47
|
+
| **安全额度重置** | 每张重置卡单独显示,并通过冷静期和知情确认主动尝试重置 |
|
|
48
48
|
| **订阅搜索** | 可将全部模型的搜索明确路由到 DSH 默认搜索或已登录的 Codex 订阅 |
|
|
49
49
|
| **Codex 图片生成与编辑(Beta)** | 可无参考图全新生成,也可明确选择会话图片继续编辑;支持预览、缩放、区域备注、下载原图并衔接回当前输入框 |
|
|
50
50
|
| **高速模式** | 直接在输入框切换标准或高速,无需离开当前会话 |
|
|
@@ -134,12 +134,12 @@ dsh --profile web --dump-config
|
|
|
134
134
|
|
|
135
135
|
## 功能
|
|
136
136
|
|
|
137
|
-
- ChatGPT OAuth
|
|
137
|
+
- ChatGPT OAuth 登录,凭据保留在本机;账号以默认隐藏部分字符的邮箱区分,点击可切换完整显示;可手动添加、切换和移除多个账号,不会自动轮换或合并额度;
|
|
138
138
|
- Codex 模型和 Beta 图片生成与编辑直接出现在 DSH 会话中;
|
|
139
139
|
- 搜索来源是全局设置,可在 DSH 默认搜索与 Codex 订阅搜索之间切换;它对所有模型和会话生效,不会随当前模型自动切换;
|
|
140
140
|
- 设置页显示服务端返回的额度、重置时间和更新时间;
|
|
141
141
|
- 普通 Codex、Codex-Spark、Credits 等独立额度分开显示;
|
|
142
|
-
-
|
|
142
|
+
- 每张可用重置卡单独显示名称和到期时间,也允许在额度未完全用尽时主动尝试,并经过分层确认且不会自动重试;
|
|
143
143
|
- 输入框可用百分比、进度条或可选的 Beta 续航预测显示当前 Codex 模型的剩余额度(默认关闭);
|
|
144
144
|
- 输入框可为支持的 Codex 模型切换标准或高速模式;
|
|
145
145
|
- 上下文窗口提供标准、扩展和逐模型自定义;自定义直接填写完整 Token 数值,并在已审核的模型容量内交给 DSH 原生 Agent 压缩策略处理;
|
|
@@ -159,7 +159,7 @@ Spark 使用独立额度。插件不会写死“5 小时 + 每周”,也不会
|
|
|
159
159
|
|
|
160
160
|
### 安全使用额度重置
|
|
161
161
|
|
|
162
|
-
ChatGPT
|
|
162
|
+
ChatGPT 返回可用重置卡时,设置页会把每张卡分别显示为紧凑的一行,并展示服务端提供的名称和到期时间。即使额度尚未到 100%,
|
|
163
163
|
也可以主动尝试使用,适合重置卡即将过期的情况;是否需要重置仍由 ChatGPT 判断,服务端可能返回“当前无需重置”且不扣次数。
|
|
164
164
|
最终操作需要勾选知情确认并等待 5 秒。取消不会消耗,快速连续点击只允许一次请求,网络结果不确定时也不会自动重试。
|
|
165
165
|
|