dsh-codex-subscription 1.14.1 → 1.14.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 +9 -1
- package/README.md +9 -1
- package/lib/client.js +8 -5
- package/lib/index.js +16 -9
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -22,7 +22,11 @@ No OpenAI API key or Codex CLI. Models, search, quota, and image generation stay
|
|
|
22
22
|
<img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/readme-hero-en.webp" width="900" alt="Your Codex subscription inside DSH: models, web search, quota and safe reset, image generation, and Fast mode">
|
|
23
23
|
</p>
|
|
24
24
|
|
|
25
|
-
## What's included in 1.14.
|
|
25
|
+
## What's included in 1.14.2
|
|
26
|
+
|
|
27
|
+
- GPT-6 Astra now supports model-catalog context settings: Standard preserves the catalog default, Extended uses 872K, and Custom is bounded to 128K–872K.
|
|
28
|
+
|
|
29
|
+
### From 1.14.1
|
|
26
30
|
|
|
27
31
|
- The composer shows both 5-hour and weekly quota windows when returned by the service, so neither window is hidden.
|
|
28
32
|
- Image edits validate attachment references, normalize bare SHA-256 digests, and resolve the actual attachment metadata from the current session. Paths produce an actionable error asking the model to obtain the correct reference with `read_image` and retry.
|
|
@@ -141,6 +145,10 @@ Restart DSH manually after installation, then:
|
|
|
141
145
|
|
|
142
146
|
The plugin can follow an existing HTTPS proxy from the process environment or operating-system proxy settings for official OpenAI and ChatGPT requests. It does not provide a proxy, relay, node list, or system-proxy configuration.
|
|
143
147
|
|
|
148
|
+
### GPT-6 Astra context
|
|
149
|
+
|
|
150
|
+
When the official model catalog exposes GPT-6 Astra, Standard preserves the catalog window, Extended uses 872000 tokens, and Custom accepts 128000–872000 tokens (initially 272000). This limit follows the [official Codex model catalog](https://github.com/openai/codex/blob/6af345407d9c2a568da9d01b6c4b81a9e61495c0/codex-rs/models-manager/models.json#L33-L34), not the API model's total context capacity. These settings only adjust DSH's local context budget; they do not grant model access or guarantee an account's server-side capacity. Actual availability remains subject to the service.
|
|
151
|
+
|
|
144
152
|
### Composer quota
|
|
145
153
|
|
|
146
154
|
<p align="center">
|
package/README.md
CHANGED
|
@@ -23,7 +23,11 @@
|
|
|
23
23
|
<img src="https://raw.githubusercontent.com/WSL043/dsh-codex-subscription/main/docs/assets/readme-hero.webp" width="900" alt="Codex 订阅直接用在 DSH:订阅模型、联网搜索、额度与安全重置、图片生成和高速模式">
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
|
-
## 1.14.
|
|
26
|
+
## 1.14.2 重点变化
|
|
27
|
+
|
|
28
|
+
- GPT-6 Astra 支持模型目录上下文设置:标准模式保留目录默认值,扩展模式使用 872K,自定义模式限制为 128K–872K。
|
|
29
|
+
|
|
30
|
+
### 1.14.1 更新回顾
|
|
27
31
|
|
|
28
32
|
- 输入框同时显示服务端返回的 5 小时与每周额度,避免其中一个额度窗口被隐藏。
|
|
29
33
|
- 图片编辑会检查附件引用,自动补全裸 SHA-256,并从当前会话取回真实附件元数据;误填路径时提示模型通过 `read_image` 获取正确引用并重试。
|
|
@@ -142,6 +146,10 @@ dsh --profile web --dump-config
|
|
|
142
146
|
|
|
143
147
|
对于 OpenAI 与 ChatGPT 官方请求,插件可以沿用进程环境或操作系统中已有的 HTTPS 代理。插件本身不提供代理、转发服务、节点列表,也不会修改系统代理设置。
|
|
144
148
|
|
|
149
|
+
### GPT-6 Astra 上下文
|
|
150
|
+
|
|
151
|
+
当官方模型目录提供 GPT-6 Astra 时,标准模式保留目录默认窗口;扩展模式使用 872000 Token,自定义模式可设置 128000–872000 Token(初始值为 272000)。该上限依据 [Codex 官方模型目录](https://github.com/openai/codex/blob/6af345407d9c2a568da9d01b6c4b81a9e61495c0/codex-rs/models-manager/models.json#L33-L34),不是 API 模型的总上下文容量。这些设置只调整 DSH 的本地上下文预算,不授予模型访问权限,也不保证账号的服务端容量;实际可用性以服务端为准。
|
|
152
|
+
|
|
145
153
|
### 输入框额度
|
|
146
154
|
|
|
147
155
|
<p align="center">
|
package/lib/client.js
CHANGED
|
@@ -987,19 +987,22 @@ window.__ModuleLoader__.load({
|
|
|
987
987
|
"gpt-5.4": "customContextGpt54",
|
|
988
988
|
"gpt-5.4-mini": "customContextGpt54Mini",
|
|
989
989
|
"gpt-5.5": "customContextGpt55",
|
|
990
|
-
"gpt-5.6": "customContextGpt56"
|
|
990
|
+
"gpt-5.6": "customContextGpt56",
|
|
991
|
+
"gpt-6-astra": "customContextGpt6Astra"
|
|
991
992
|
});
|
|
992
993
|
const CUSTOM_CONTEXT_MODEL_CAPS = Object.freeze({
|
|
993
994
|
"gpt-5.4": 1e6,
|
|
994
995
|
"gpt-5.4-mini": 4e5,
|
|
995
996
|
"gpt-5.5": 1e6,
|
|
996
|
-
"gpt-5.6": 1e6
|
|
997
|
+
"gpt-5.6": 1e6,
|
|
998
|
+
"gpt-6-astra": 872e3
|
|
997
999
|
});
|
|
998
1000
|
const CUSTOM_CONTEXT_MODEL_DEFAULTS = Object.freeze({
|
|
999
1001
|
"gpt-5.4": 272e3,
|
|
1000
1002
|
"gpt-5.4-mini": 272e3,
|
|
1001
1003
|
"gpt-5.5": 272e3,
|
|
1002
|
-
"gpt-5.6": 272e3
|
|
1004
|
+
"gpt-5.6": 272e3,
|
|
1005
|
+
"gpt-6-astra": 272e3
|
|
1003
1006
|
});
|
|
1004
1007
|
const normalizeSearchProvider = (value) => [
|
|
1005
1008
|
"auto",
|
|
@@ -1361,7 +1364,7 @@ window.__ModuleLoader__.load({
|
|
|
1361
1364
|
contextStandard: "标准",
|
|
1362
1365
|
contextStandardHint: "使用模型目录默认值;官方 Agent 预设会自动管理上下文。",
|
|
1363
1366
|
contextExtended: "扩展",
|
|
1364
|
-
contextExtendedHint: "
|
|
1367
|
+
contextExtendedHint: "按模型使用已审核的扩展预算(Astra:872K);实际可用性由服务端决定。",
|
|
1365
1368
|
contextCustom: "自定义",
|
|
1366
1369
|
contextCustomHint: "输入完整 Token 数值;较低数值会让官方 Agent 预设更早压缩上下文。",
|
|
1367
1370
|
contextTokens: "Token 上限",
|
|
@@ -1556,7 +1559,7 @@ window.__ModuleLoader__.load({
|
|
|
1556
1559
|
contextStandard: "Standard",
|
|
1557
1560
|
contextStandardHint: "Use the model catalog default; official agent presets manage context automatically.",
|
|
1558
1561
|
contextExtended: "Extended",
|
|
1559
|
-
contextExtendedHint: "Uses
|
|
1562
|
+
contextExtendedHint: "Uses each model's audited extended budget (Astra: 872K); availability depends on the service.",
|
|
1560
1563
|
contextCustom: "Custom",
|
|
1561
1564
|
contextCustomHint: "Enter the full token count; lower values make official agent presets compact sooner.",
|
|
1562
1565
|
contextTokens: "Token limit",
|
package/lib/index.js
CHANGED
|
@@ -1123,19 +1123,22 @@ const CUSTOM_CONTEXT_MODEL_FIELDS = Object.freeze({
|
|
|
1123
1123
|
"gpt-5.4": "customContextGpt54",
|
|
1124
1124
|
"gpt-5.4-mini": "customContextGpt54Mini",
|
|
1125
1125
|
"gpt-5.5": "customContextGpt55",
|
|
1126
|
-
"gpt-5.6": "customContextGpt56"
|
|
1126
|
+
"gpt-5.6": "customContextGpt56",
|
|
1127
|
+
"gpt-6-astra": "customContextGpt6Astra"
|
|
1127
1128
|
});
|
|
1128
1129
|
const CUSTOM_CONTEXT_MODEL_CAPS = Object.freeze({
|
|
1129
1130
|
"gpt-5.4": 1e6,
|
|
1130
1131
|
"gpt-5.4-mini": 4e5,
|
|
1131
1132
|
"gpt-5.5": 1e6,
|
|
1132
|
-
"gpt-5.6": 1e6
|
|
1133
|
+
"gpt-5.6": 1e6,
|
|
1134
|
+
"gpt-6-astra": 872e3
|
|
1133
1135
|
});
|
|
1134
1136
|
const CUSTOM_CONTEXT_MODEL_DEFAULTS = Object.freeze({
|
|
1135
1137
|
"gpt-5.4": 272e3,
|
|
1136
1138
|
"gpt-5.4-mini": 272e3,
|
|
1137
1139
|
"gpt-5.5": 272e3,
|
|
1138
|
-
"gpt-5.6": 272e3
|
|
1140
|
+
"gpt-5.6": 272e3,
|
|
1141
|
+
"gpt-6-astra": 272e3
|
|
1139
1142
|
});
|
|
1140
1143
|
const normalizeOutputVerbosity = (value) => [
|
|
1141
1144
|
"default",
|
|
@@ -1213,7 +1216,8 @@ const EXTENDED_CONTEXT_WINDOWS = Object.freeze({
|
|
|
1213
1216
|
"gpt-5.5": 1e6,
|
|
1214
1217
|
"gpt-5.6-luna": 1e6,
|
|
1215
1218
|
"gpt-5.6-sol": 1e6,
|
|
1216
|
-
"gpt-5.6-terra": 1e6
|
|
1219
|
+
"gpt-5.6-terra": 1e6,
|
|
1220
|
+
"gpt-6-astra": CUSTOM_CONTEXT_MODEL_CAPS["gpt-6-astra"]
|
|
1217
1221
|
});
|
|
1218
1222
|
function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, resolveOutputVerbosity = () => OUTPUT_VERBOSITY_DEFAULT, resolveContextMode = () => void 0, resolveCustomContextWindow = () => void 0, catalog, runNetwork = (_area, operation) => operation() } = {}) {
|
|
1219
1223
|
const provider = createOpenAICodexProvider();
|
|
@@ -1265,10 +1269,13 @@ function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, reso
|
|
|
1265
1269
|
const maximum = EXTENDED_CONTEXT_WINDOWS[model.id];
|
|
1266
1270
|
const mode = resolveContextMode();
|
|
1267
1271
|
if (maximum === void 0 || !["extended", "custom"].includes(mode)) return model;
|
|
1268
|
-
if (mode === "extended")
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
+
if (mode === "extended") {
|
|
1273
|
+
const contextWindow = model.id === "gpt-6-astra" ? maximum : Math.max(model.contextWindow, maximum);
|
|
1274
|
+
return {
|
|
1275
|
+
...model,
|
|
1276
|
+
contextWindow
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1272
1279
|
const requested = normalizeCustomContextWindow(resolveCustomContextWindow(customContextModelKey(model.id)), maximum);
|
|
1273
1280
|
return {
|
|
1274
1281
|
...model,
|
|
@@ -1303,7 +1310,7 @@ function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, reso
|
|
|
1303
1310
|
}
|
|
1304
1311
|
//#endregion
|
|
1305
1312
|
//#region src/version.js
|
|
1306
|
-
const PACKAGE_VERSION = "1.14.
|
|
1313
|
+
const PACKAGE_VERSION = "1.14.2";
|
|
1307
1314
|
const USER_AGENT = `dsh-codex-subscription/${PACKAGE_VERSION}`;
|
|
1308
1315
|
//#endregion
|
|
1309
1316
|
//#region src/model-catalog.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codex-subscription",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "Use ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|