dsh-codex-subscription 3.2.4 → 3.2.5

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
@@ -47,7 +47,9 @@ Web search and webpage reading sources, ChatGPT connectors and official Codex in
47
47
 
48
48
  ## Prepare DSH
49
49
 
50
- Verified against DSH `0.2.1-rc.5`, with `0.2.1-rc.3` and `0.2.1-rc.2` still supported; the minimum supported version is `0.1.7-rc.2`. Please upgrade older DSH releases first.
50
+ Verified against DSH `0.2.2-rc.1`, with `0.2.1-rc.3` and `0.2.1-rc.2` still supported; the minimum supported version is `0.1.7-rc.2`. Please upgrade older DSH releases first.
51
+
52
+ DSH `0.2.2-rc.1` CLI/Web requires Node.js **24.9 or newer**; the official desktop app uses its bundled runtime.
51
53
 
52
54
  Also supports the preview host `0.2.2-alpha.2`. See the [compatibility notes](docs/dsh-022-alpha2-compatibility.md) for scope and validation limits.
53
55
 
@@ -70,7 +72,7 @@ This plugin supports the latest DeepSeek Harness release recorded in its package
70
72
  2. Paste this package name, with its version, into the **Package name or address** field:
71
73
 
72
74
  ```text
73
- dsh-codex-subscription@3.2.4
75
+ dsh-codex-subscription@3.2.5
74
76
  ```
75
77
 
76
78
  3. Click **Install** and wait for completion. Follow the page instructions; save your work before restarting if requested.
@@ -87,7 +89,7 @@ Why the version is included: DSH's plugin page only installs versions that are a
87
89
  <summary>Terminal installation (with an existing dsh command)</summary>
88
90
 
89
91
  ```sh
90
- dsh plugin --profile web add dsh-codex-subscription@3.2.4
92
+ dsh plugin --profile web add dsh-codex-subscription@3.2.5
91
93
  ```
92
94
 
93
95
  Follow the restart instructions, then sign in under **Settings → Codex**. Both the Plugins page and the terminal use DSH's installation management.
@@ -100,7 +102,7 @@ Follow the restart instructions, then sign in under **Settings → Codex**. Both
100
102
  After signing in and selecting a Codex model in Web, install the same plugin in the Headless profile:
101
103
 
102
104
  ```sh
103
- dsh plugin --profile headless add dsh-codex-subscription@3.2.4
105
+ dsh plugin --profile headless add dsh-codex-subscription@3.2.5
104
106
  dsh --profile headless "Reply with only the word: ok"
105
107
  ```
106
108
 
@@ -365,7 +367,7 @@ Find this plugin on the DSH **Plugins** page and use its update or uninstall act
365
367
  <summary>Terminal commands</summary>
366
368
 
367
369
  ```sh
368
- dsh plugin --profile web update dsh-codex-subscription@3.2.4
370
+ dsh plugin --profile web update dsh-codex-subscription@3.2.5
369
371
  ```
370
372
 
371
373
  Run only when you want to uninstall:
package/README.md CHANGED
@@ -47,7 +47,9 @@
47
47
 
48
48
  ## 准备 DSH
49
49
 
50
- 已验证兼容 DSH `0.2.1-rc.5`,继续支持 `0.2.1-rc.3` 和 `0.2.1-rc.2`,最低支持 `0.1.7-rc.2`;更早的 DSH 请先升级。
50
+ 已验证兼容 DSH `0.2.2-rc.1`,继续支持 `0.2.1-rc.3` 和 `0.2.1-rc.2`,最低支持 `0.1.7-rc.2`;更早的 DSH 请先升级。
51
+
52
+ DSH `0.2.2-rc.1` 的 CLI/Web 模式需要 Node.js **24.9 或更高版本**;官方桌面版使用自带的运行时。
51
53
 
52
54
  另支持预览宿主 `0.2.2-alpha.2`;范围与验收边界见[兼容性记录](docs/dsh-022-alpha2-compatibility.md)。
53
55
 
@@ -70,7 +72,7 @@
70
72
  2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
71
73
 
72
74
  ```text
73
- dsh-codex-subscription@3.2.4
75
+ dsh-codex-subscription@3.2.5
74
76
  ```
75
77
 
76
78
  3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
@@ -87,7 +89,7 @@
87
89
  <summary>终端安装(已能运行 dsh 命令)</summary>
88
90
 
89
91
  ```sh
90
- dsh plugin --profile web add dsh-codex-subscription@3.2.4
92
+ dsh plugin --profile web add dsh-codex-subscription@3.2.5
91
93
  ```
92
94
 
93
95
  安装完成后按提示重启 DSH,再到 **设置 → Codex 订阅** 登录。插件页面和终端均由 DSH 管理安装。
@@ -100,7 +102,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.4
100
102
  先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 Headless profile:
101
103
 
102
104
  ```sh
103
- dsh plugin --profile headless add dsh-codex-subscription@3.2.4
105
+ dsh plugin --profile headless add dsh-codex-subscription@3.2.5
104
106
  dsh --profile headless "只回复:ok"
105
107
  ```
106
108
 
@@ -365,7 +367,7 @@ Agent 先在画板绘制可编辑草图,再以该草图为参考调用订阅
365
367
  <summary>终端方式</summary>
366
368
 
367
369
  ```sh
368
- dsh plugin --profile web update dsh-codex-subscription@3.2.4
370
+ dsh plugin --profile web update dsh-codex-subscription@3.2.5
369
371
  ```
370
372
 
371
373
  仅在需要卸载时运行:
@@ -1,5 +1,5 @@
1
1
  {
2
- "latestTested": "0.2.1-rc.5",
2
+ "latestTested": "0.2.2-rc.1",
3
3
  "supported": [
4
4
  "0.1.7-rc.2",
5
5
  "0.2.0-rc.1",
@@ -8,7 +8,8 @@
8
8
  "0.2.1-rc.2",
9
9
  "0.2.1-rc.3",
10
10
  "0.2.1-rc.4",
11
- "0.2.1-rc.5"
11
+ "0.2.1-rc.5",
12
+ "0.2.2-rc.1"
12
13
  ],
13
14
  "previews": [
14
15
  "0.2.1-alpha.1",
@@ -16,6 +17,7 @@
16
17
  "0.2.1-alpha.3",
17
18
  "0.2.1-alpha.4",
18
19
  "0.2.1-alpha.5",
19
- "0.2.2-alpha.2"
20
+ "0.2.2-alpha.2",
21
+ "0.2.2-alpha.3"
20
22
  ]
21
23
  }
package/lib/client.js CHANGED
@@ -333,6 +333,7 @@ window.__ModuleLoader__.load({
333
333
  }
334
334
  //#endregion
335
335
  //#region src/composer-attachment-native.js
336
+ const needsSubscriptionImageEnhancement = (settings) => settings.imageViewer && (settings.imageEditing || settings.imageAnnotations);
336
337
  function nativeComposerAttachments(entries, ownComponent) {
337
338
  return entries.find((entry) => entry.component !== ownComponent && entry.locale === "conversation" && !entry.store && !entry.children && (entry.inject === void 0 || typeof entry.inject === "function"));
338
339
  }
@@ -1398,9 +1399,9 @@ window.__ModuleLoader__.load({
1398
1399
  }
1399
1400
  //#endregion
1400
1401
  //#region src/image-composer.js
1401
- function attachImageFiles(conversation, input, files, sessionId) {
1402
+ function attachImageFiles(conversation, input, files, sessionId, { uploadImages = false } = {}) {
1402
1403
  if (typeof conversation.createDrafts !== "function" || typeof input.addAttachments !== "function" || !sessionId) throw new Error("Image composer is unavailable");
1403
- const created = conversation.createDrafts(sessionId, files);
1404
+ const created = conversation.createDrafts(sessionId, files, uploadImages);
1404
1405
  try {
1405
1406
  if (!input.addAttachments(created.map((item) => item.id))) throw new Error("The composer is busy");
1406
1407
  } catch (error) {
@@ -1640,6 +1641,12 @@ window.__ModuleLoader__.load({
1640
1641
  subagentBackendTitle: "独立子任务",
1641
1642
  subagentBackend_dsh: "DSH",
1642
1643
  subagentBackend_codex: "Codex",
1644
+ subagentDefaultModel: "子任务默认模型",
1645
+ subagentDefaultEffort: "子任务默认推理等级",
1646
+ subagentFollowParent: "跟随父会话",
1647
+ subagentModelEffort: "模型默认",
1648
+ subagentDefaultHint: "仅适用于未单独指定模型或推理等级的 Codex 子任务。模型不可用或不在允许列表中时,沿用父会话设置。",
1649
+ subagentDefaultUnavailable: "已保存的子任务模型当前不可用,将跟随父会话。",
1643
1650
  connectionTitle: "连接方式",
1644
1651
  state_connection_cloud: "已开启云端压缩,本次请求实际使用 SSE。",
1645
1652
  diagnosticsLog: "运行日志",
@@ -2085,6 +2092,7 @@ window.__ModuleLoader__.load({
2085
2092
  historyAutomation: "自动任务",
2086
2093
  usageLoading: "正在读取额度…",
2087
2094
  usageEmpty: "当前账户没有返回可显示的额度窗口。请稍后刷新;这不代表额度为零。",
2095
+ usageRefreshFailed: "暂时无法更新额度,请稍后重试。",
2088
2096
  usageUpdated: "更新于 {value}",
2089
2097
  remaining: "剩余 {value}%",
2090
2098
  windowFiveHours: "5 小时额度",
@@ -2569,6 +2577,12 @@ window.__ModuleLoader__.load({
2569
2577
  subagentBackendTitle: "Independent subtasks",
2570
2578
  subagentBackend_dsh: "DSH",
2571
2579
  subagentBackend_codex: "Codex",
2580
+ subagentDefaultModel: "Default subtask model",
2581
+ subagentDefaultEffort: "Default subtask reasoning",
2582
+ subagentFollowParent: "Follow parent",
2583
+ subagentModelEffort: "Model default",
2584
+ subagentDefaultHint: "Applies to Codex subtasks without a per-task model or effort. If the model is unavailable or disallowed, the subtask follows its parent.",
2585
+ subagentDefaultUnavailable: "The saved subtask model is currently unavailable. Subtasks will follow the parent.",
2572
2586
  connectionTitle: "Connection",
2573
2587
  diagnosticsLog: "Log",
2574
2588
  diagnosticsLogHint: "What happened while running, in order. Filter to warnings and errors above. Tokens, emails and paths are removed.",
@@ -3014,6 +3028,7 @@ window.__ModuleLoader__.load({
3014
3028
  historyAutomation: "Automations",
3015
3029
  usageLoading: "Reading quota…",
3016
3030
  usageEmpty: "This account returned no displayable quota windows. Refresh later; this does not mean zero quota.",
3031
+ usageRefreshFailed: "Quota could not be updated. Try again shortly.",
3017
3032
  usageUpdated: "Updated {value}",
3018
3033
  remaining: "{value}% remaining",
3019
3034
  windowFiveHours: "5-hour quota",
@@ -4392,6 +4407,11 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4392
4407
  "forecast"
4393
4408
  ].includes(value) ? value : legacyVisible === true ? QUICK_QUOTA_MODE_PERCENT : "off";
4394
4409
  const supportsCodexFastMode = (modelId) => typeof modelId === "string" && (/^gpt-5\.(?:5|6)(?:$|-)/u.test(modelId) || modelId === "gpt-5.4" || modelId === "gpt-6-astra");
4410
+ //#endregion
4411
+ //#region src/subagent-defaults.js
4412
+ const SUBAGENT_EFFORTS = Object.freeze(DEFAULT_REASONING_EFFORTS.filter((value) => value !== "ultra"));
4413
+ const normalizeSubagentModel = (value) => typeof value === "string" && /^[a-z][a-z0-9._-]{0,79}$/u.test(value) ? value : "";
4414
+ const normalizeSubagentEffort = (value) => SUBAGENT_EFFORTS.includes(value) ? value : "auto";
4395
4415
  Object.freeze({
4396
4416
  compactionMode: {
4397
4417
  choices: ["dsh", "cloud"],
@@ -4442,6 +4462,11 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4442
4462
  default: "dsh",
4443
4463
  error: "Invalid subagent backend"
4444
4464
  },
4465
+ subagentDefaultEffort: {
4466
+ choices: SUBAGENT_EFFORTS,
4467
+ default: "auto",
4468
+ error: "Invalid subtask reasoning effort"
4469
+ },
4445
4470
  [QUICK_QUOTA_MODE_FIELD]: {
4446
4471
  choices: [
4447
4472
  "off",
@@ -4558,6 +4583,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4558
4583
  let disposed = false;
4559
4584
  let subagentBackendAvailable = false;
4560
4585
  let subagentRuntimeInstalled = false;
4586
+ let subagentModels = [];
4561
4587
  let fetchRoutingAvailable = false;
4562
4588
  let restartRequired = false;
4563
4589
  const sameModels = (left, right) => left.length === right.length && left.every((model, index) => JSON.stringify(model) === JSON.stringify(right[index]));
@@ -4581,6 +4607,9 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4581
4607
  reasoningCache: normalizeReasoningCache(value?.reasoningCache),
4582
4608
  defaultReasoningEffort: normalizeDefaultReasoningEffort(value?.[DEFAULT_REASONING_EFFORT_FIELD]),
4583
4609
  subagentBackend: value?.subagentBackend === "codex" ? "codex" : "dsh",
4610
+ subagentDefaultModel: normalizeSubagentModel(value?.subagentDefaultModel),
4611
+ subagentDefaultEffort: normalizeSubagentEffort(value?.subagentDefaultEffort),
4612
+ subagentModels,
4584
4613
  subagentBackendAvailable,
4585
4614
  subagentRuntimeInstalled,
4586
4615
  quickQuotaMode: normalizeQuickQuotaMode(value?.[QUICK_QUOTA_MODE_FIELD], value?.[LEGACY_QUICK_QUOTA_FIELD]),
@@ -4638,6 +4667,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4638
4667
  if (!modelRefreshStarted) {
4639
4668
  contextModels = Array.isArray(value?.contextModels) ? value.contextModels : [];
4640
4669
  availableModels = Array.isArray(value?.availableModels) ? value.availableModels : [];
4670
+ subagentModels = Array.isArray(value?.subagentModels) ? value.subagentModels : [];
4641
4671
  verbosityModels = Array.isArray(value?.verbosityModels) ? value.verbosityModels : [];
4642
4672
  fastModels = Array.isArray(value?.fastModels) ? value.fastModels : void 0;
4643
4673
  ultrafastModels = Array.isArray(value?.ultrafastModels) ? value.ultrafastModels : [];
@@ -4659,6 +4689,8 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4659
4689
  reasoningCache: normalizeReasoningCache(value?.reasoningCache),
4660
4690
  [DEFAULT_REASONING_EFFORT_FIELD]: normalizeDefaultReasoningEffort(value?.[DEFAULT_REASONING_EFFORT_FIELD]),
4661
4691
  subagentBackend: value?.subagentBackend === "codex" ? "codex" : "dsh",
4692
+ subagentDefaultModel: normalizeSubagentModel(value?.subagentDefaultModel),
4693
+ subagentDefaultEffort: normalizeSubagentEffort(value?.subagentDefaultEffort),
4662
4694
  ...readCapabilitySettings(value),
4663
4695
  [QUICK_QUOTA_MODE_FIELD]: normalizeQuickQuotaMode(value?.[QUICK_QUOTA_MODE_FIELD], value?.[LEGACY_QUICK_QUOTA_FIELD]),
4664
4696
  [SEARCH_PROVIDER_FIELD]: normalizeSearchProvider(value?.[SEARCH_PROVIDER_FIELD]),
@@ -4712,15 +4744,17 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4712
4744
  if (disposed || current !== modelRefreshGeneration) return false;
4713
4745
  const nextContextModels = Array.isArray(value?.contextModels) ? value.contextModels : [];
4714
4746
  const nextAvailableModels = Array.isArray(value?.availableModels) ? value.availableModels : [];
4747
+ const nextSubagentModels = Array.isArray(value?.subagentModels) ? value.subagentModels : [];
4715
4748
  const nextVerbosityModels = Array.isArray(value?.verbosityModels) ? value.verbosityModels : [];
4716
4749
  const nextFastModels = Array.isArray(value?.fastModels) ? value.fastModels : void 0;
4717
4750
  const nextUltrafastModels = Array.isArray(value?.ultrafastModels) ? value.ultrafastModels : [];
4718
4751
  const nextUltraModels = Array.isArray(value?.ultraModels) ? value.ultraModels : [];
4719
4752
  catalogStatus = value?.catalogStatus;
4720
- const changed = !sameModels(contextModels, nextContextModels) || !sameModels(availableModels, nextAvailableModels) || !sameModels(verbosityModels, nextVerbosityModels) || JSON.stringify(fastModels) !== JSON.stringify(nextFastModels) || JSON.stringify(ultrafastModels) !== JSON.stringify(nextUltrafastModels) || JSON.stringify(ultraModels) !== JSON.stringify(nextUltraModels);
4753
+ const changed = !sameModels(contextModels, nextContextModels) || !sameModels(availableModels, nextAvailableModels) || !sameModels(subagentModels, nextSubagentModels) || !sameModels(verbosityModels, nextVerbosityModels) || JSON.stringify(fastModels) !== JSON.stringify(nextFastModels) || JSON.stringify(ultrafastModels) !== JSON.stringify(nextUltrafastModels) || JSON.stringify(ultraModels) !== JSON.stringify(nextUltraModels);
4721
4754
  if (changed) {
4722
4755
  contextModels = nextContextModels;
4723
4756
  availableModels = nextAvailableModels;
4757
+ subagentModels = nextSubagentModels;
4724
4758
  verbosityModels = nextVerbosityModels;
4725
4759
  fastModels = nextFastModels;
4726
4760
  ultrafastModels = nextUltrafastModels;
@@ -5216,6 +5250,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
5216
5250
  const key = ACCESS_FAILURE_KEYS.get(message);
5217
5251
  return key === void 0 ? message : t(key);
5218
5252
  };
5253
+ const usageFailureText = (message, t) => ["Request timed out", "Could not read ChatGPT usage"].includes(message) ? t("usageRefreshFailed") : accessFailureText(message, t);
5219
5254
  const NS = "settings.codexSubscription";
5220
5255
  const PROJECT_URL = "https://github.com/WSL043/dsh-codex-subscription";
5221
5256
  const SUPPORT_ISSUE_URL = `${PROJECT_URL}/issues/new?template=install-problem.yml`;
@@ -5301,10 +5336,10 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
5301
5336
  }
5302
5337
  //#endregion
5303
5338
  //#region src/version.js
5304
- const PACKAGE_VERSION = "3.2.4";
5339
+ const PACKAGE_VERSION = "3.2.5";
5305
5340
  //#endregion
5306
5341
  //#region src/client-recovery.js
5307
- async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = 1e4) {
5342
+ async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = endpoint === "usage" || endpoint.startsWith("usage/") ? 3e4 : 1e4) {
5308
5343
  let timer;
5309
5344
  const controller = new AbortController();
5310
5345
  try {
@@ -12134,6 +12169,56 @@ void main(){
12134
12169
  ]
12135
12170
  });
12136
12171
  }
12172
+ function SubagentDefaultPreferences({ preference, snapshot, t }) {
12173
+ const models = snapshot.subagentModels ?? [];
12174
+ const model = snapshot.subagentDefaultModel ?? "";
12175
+ const effort = snapshot.subagentDefaultEffort ?? "auto";
12176
+ const selected = models.find((candidate) => candidate.id === model);
12177
+ const efforts = model === "" ? [...new Set(models.flatMap((candidate) => candidate.efforts))] : selected?.efforts ?? [];
12178
+ const inherit = "__follow_parent__";
12179
+ const modelItems = [{
12180
+ id: inherit,
12181
+ label: t("subagentFollowParent")
12182
+ }, ...models.map((candidate) => ({
12183
+ id: candidate.id,
12184
+ label: candidate.name ?? candidate.id
12185
+ }))];
12186
+ const effortText = (id) => id === "auto" ? t(model === "" ? "subagentFollowParent" : "subagentModelEffort") : t(`defaultReasoningEffort_${id}`);
12187
+ const disabled = !ready(snapshot);
12188
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
12189
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageChoice, {
12190
+ t,
12191
+ label: t("subagentDefaultModel"),
12192
+ hint: t("subagentDefaultHint"),
12193
+ value: model || inherit,
12194
+ text: model === "" ? t("subagentFollowParent") : selected?.name ?? model,
12195
+ items: modelItems,
12196
+ disabled,
12197
+ onSelect: (id) => {
12198
+ const target = models.find((candidate) => candidate.id === id);
12199
+ preference.set({
12200
+ subagentDefaultModel: id === inherit ? "" : id,
12201
+ ...target && !target.efforts.includes(effort) ? { subagentDefaultEffort: "auto" } : {}
12202
+ });
12203
+ }
12204
+ }),
12205
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageChoice, {
12206
+ t,
12207
+ label: t("subagentDefaultEffort"),
12208
+ value: effort,
12209
+ text: effortText(effort),
12210
+ items: ["auto", ...efforts].map((id) => ({
12211
+ id,
12212
+ label: effortText(id)
12213
+ })),
12214
+ disabled,
12215
+ onSelect: (id) => {
12216
+ preference.set({ subagentDefaultEffort: id });
12217
+ }
12218
+ }),
12219
+ model !== "" && !selected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t("subagentDefaultUnavailable") }) : null
12220
+ ] });
12221
+ }
12137
12222
  function ToolsPage({ preference, rpc, t, active = true }) {
12138
12223
  const snapshot = usePreferenceSnapshot(preference);
12139
12224
  const writable = ready(snapshot);
@@ -12177,35 +12262,43 @@ void main(){
12177
12262
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
12178
12263
  className: "codexSubscriptionCard codexSubscriptionPreferencesCard",
12179
12264
  "aria-label": t("subagentBackendTitle"),
12180
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12181
- className: "codexSubscriptionPreference",
12182
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12183
- className: "codexSubscriptionPreferenceCopy",
12184
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
12185
- description: t("subagentBackendHint"),
12186
- children: [
12187
- t("subagentBackendTitle"),
12188
- " ",
12189
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
12190
- ]
12191
- }), !snapshot.subagentBackendAvailable || !(codexReady || subagentsOn) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(snapshot.subagentBackendAvailable ? "subagentBackendNeedsRuntime" : "subagentBackendUnavailable") }) : null]
12192
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
12265
+ children: [
12266
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12267
+ className: "codexSubscriptionPreference",
12268
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12269
+ className: "codexSubscriptionPreferenceCopy",
12270
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
12271
+ description: t("subagentBackendHint"),
12272
+ children: [
12273
+ t("subagentBackendTitle"),
12274
+ " ",
12275
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
12276
+ ]
12277
+ }), !snapshot.subagentBackendAvailable || !(codexReady || subagentsOn) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(snapshot.subagentBackendAvailable ? "subagentBackendNeedsRuntime" : "subagentBackendUnavailable") }) : null]
12278
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
12279
+ snapshot,
12280
+ preference,
12281
+ field: "subagentBackend",
12282
+ values: ["dsh", "codex"],
12283
+ name: "codex-subagent-backend",
12284
+ label: t("subagentBackendTitle"),
12285
+ text: (value) => t(`subagentBackend_${value}`),
12286
+ disabled: !snapshot.subagentBackendAvailable,
12287
+ disabledValues: codexReady || subagentsOn ? [] : ["codex"]
12288
+ })]
12289
+ }),
12290
+ subagentsOn ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubagentDefaultPreferences, {
12291
+ preference,
12193
12292
  snapshot,
12293
+ t
12294
+ }) : null,
12295
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RuntimeManagement, {
12296
+ rpc,
12194
12297
  preference,
12195
- field: "subagentBackend",
12196
- values: ["dsh", "codex"],
12197
- name: "codex-subagent-backend",
12198
- label: t("subagentBackendTitle"),
12199
- text: (value) => t(`subagentBackend_${value}`),
12200
- disabled: !snapshot.subagentBackendAvailable,
12201
- disabledValues: codexReady || subagentsOn ? [] : ["codex"]
12202
- })]
12203
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RuntimeManagement, {
12204
- rpc,
12205
- preference,
12206
- t,
12207
- active
12208
- })]
12298
+ t,
12299
+ active
12300
+ })
12301
+ ]
12209
12302
  })
12210
12303
  ]
12211
12304
  });
@@ -12425,7 +12518,6 @@ void main(){
12425
12518
  return current.promise;
12426
12519
  }
12427
12520
  const id = ++request.current;
12428
- if (force) setEntries({});
12429
12521
  setBusy(true);
12430
12522
  const current = {
12431
12523
  id,
@@ -13440,13 +13532,14 @@ void main(){
13440
13532
  (0, react.useEffect)(() => {
13441
13533
  let live = true;
13442
13534
  setState("loading");
13443
- setCredits([]);
13444
13535
  rpc.call(CHANNEL, "reset-credit/inspect", {}).then(unwrap).then((value) => {
13445
13536
  if (!live) return;
13446
13537
  setCredits(Array.isArray(value.credits) ? value.credits : []);
13447
13538
  setState("ready");
13448
- }).catch(() => {
13449
- if (live) setState("error");
13539
+ }).catch((error) => {
13540
+ if (!live) return;
13541
+ if (["No quota reset is available", "No usable quota reset is available"].includes(error?.message)) setCredits([]);
13542
+ setState("error");
13450
13543
  });
13451
13544
  return () => {
13452
13545
  live = false;
@@ -13691,7 +13784,7 @@ void main(){
13691
13784
  error === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
13692
13785
  className: "codexSubscriptionError",
13693
13786
  role: "alert",
13694
- children: accessFailureText(error, t)
13787
+ children: usageFailureText(error, t)
13695
13788
  }),
13696
13789
  visibleUsage?.spendControlReached === true ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
13697
13790
  className: "codexSubscriptionError",
@@ -14890,7 +14983,7 @@ void main(){
14890
14983
  if (!preference.getSnapshot().imageEditing) throw new Error("Image editing is disabled");
14891
14984
  const ids = input.state.getSnapshot().attachmentIds;
14892
14985
  if (operation.sourceId && Array.isArray(ids) && !ids.includes(operation.sourceId)) throw new Error("The source attachment was removed");
14893
- if (files.length) attachImageFiles(conversation, input, files, sessionId);
14986
+ if (files.length) attachImageFiles(conversation, input, files, sessionId, { uploadImages: sessions.subagentAddress(sessionId) === void 0 });
14894
14987
  openComposerSession(sessions, ctx.get("uiWorkspace"), sessionId);
14895
14988
  if (sourceInDraft && !annotations.length && !tool) return;
14896
14989
  if (!input.state.getSnapshot().draft.trim()) input.setDraft(draft);
@@ -14910,7 +15003,7 @@ void main(){
14910
15003
  ]) ctx.slots.inject(name, () => {
14911
15004
  let dispose;
14912
15005
  const sync = () => {
14913
- if (preference.getSnapshot().imageViewer && (component !== ComposerImagePreviews || nativeAttachments())) dispose ??= ctx.slots.register({
15006
+ if (needsSubscriptionImageEnhancement(preference.getSnapshot()) && (component !== ComposerImagePreviews || nativeAttachments())) dispose ??= ctx.slots.register({
14914
15007
  name,
14915
15008
  priority: -10,
14916
15009
  inject: (sessionId) => ({
@@ -14953,7 +15046,7 @@ void main(){
14953
15046
  attachSketch: (blob) => {
14954
15047
  const current = preference.getSnapshot();
14955
15048
  if (!current.imageSketch || !current.imageEditing) throw new Error("Sketch editing is disabled");
14956
- attachImageFiles(conversation, sessionInput(sessionId), [new File([blob], "sketch-reference.png", { type: "image/png" })], sessionId);
15049
+ attachImageFiles(conversation, sessionInput(sessionId), [new File([blob], "sketch-reference.png", { type: "image/png" })], sessionId, { uploadImages: sessions.subagentAddress(sessionId) === void 0 });
14957
15050
  }
14958
15051
  })
14959
15052
  }, ImageWorkspace));
package/lib/index.js CHANGED
@@ -34,7 +34,7 @@ function createSettingsAdapter(ctx, config) {
34
34
  if (!id) throw new Error("DSH settings entry is unavailable");
35
35
  const liveConfig = () => {
36
36
  try {
37
- const current = ctx.fiber?.config ?? ctx.config;
37
+ const current = ctx.fiber?.effectiveConfig ?? ctx.fiber?.config ?? ctx.config;
38
38
  return current !== null && typeof current === "object" ? current : config;
39
39
  } catch {
40
40
  return config;
@@ -718,6 +718,67 @@ function withDefaultReasoningEffort(adapter, { provider = "openai-codex", prefer
718
718
  } });
719
719
  }
720
720
  //#endregion
721
+ //#region src/subagent-defaults.js
722
+ const PROVIDER$3 = "openai-codex";
723
+ const SUBAGENT_EFFORTS = Object.freeze(DEFAULT_REASONING_EFFORTS.filter((value) => value !== "ultra"));
724
+ const normalizeSubagentModel = (value) => typeof value === "string" && /^[a-z][a-z0-9._-]{0,79}$/u.test(value) ? value : "";
725
+ const normalizeSubagentEffort = (value) => SUBAGENT_EFFORTS.includes(value) ? value : "auto";
726
+ const permits = (routes, id) => Array.isArray(routes) && routes.some((route) => route.provider === PROVIDER$3 && route.model === id);
727
+ function createSubagentDefaults({ readSettings, catalog, modelSelection, projections }) {
728
+ function models(settings, selection) {
729
+ if (!selection || typeof selection.enabled !== "boolean") return [];
730
+ const disabled = normalizeDisabledModels(settings.disabledModels);
731
+ return catalog.getModels().filter((model) => !disabled.includes(model.id) && (!selection.enabled || permits(selection.allowedModels, model.id))).map((model) => ({
732
+ id: model.id,
733
+ name: model.name,
734
+ efforts: SUBAGENT_EFFORTS.filter((effort) => catalog.metadata(model.id)?.thinkingLevelMap?.[effort] != null)
735
+ }));
736
+ }
737
+ return {
738
+ list() {
739
+ try {
740
+ return models(readSettings(), modelSelection());
741
+ } catch {
742
+ return [];
743
+ }
744
+ },
745
+ async ready(requested = {}, signal) {
746
+ if (Object.keys(requested).length > 0 || catalog.getModels().length > 0) return;
747
+ const settings = readSettings();
748
+ if (!normalizeSubagentModel(settings.subagentDefaultModel) && normalizeSubagentEffort(settings.subagentDefaultEffort) === "auto") return;
749
+ try {
750
+ await catalog.refresh({ signal });
751
+ } catch {
752
+ signal?.throwIfAborted();
753
+ }
754
+ },
755
+ resolve(parent, requested = {}) {
756
+ if (Object.keys(requested).length > 0) return requested;
757
+ const settings = readSettings();
758
+ const chosen = normalizeSubagentModel(settings.subagentDefaultModel);
759
+ const effort = normalizeSubagentEffort(settings.subagentDefaultEffort);
760
+ if (!chosen && effort === "auto") return requested;
761
+ const parentRoute = parent.session.requestHeader?.()?.config ?? parent.options ?? {};
762
+ const id = chosen || (parentRoute.provider === PROVIDER$3 ? parentRoute.model : void 0);
763
+ if (!id) return requested;
764
+ try {
765
+ const model = models(settings, modelSelection()).find((candidate) => candidate.id === id);
766
+ const registry = projections();
767
+ if (!model || typeof registry?.stateOf !== "function") return requested;
768
+ const allowed = registry.stateOf(parent.session, "subagentModelSelectionPolicy");
769
+ if (allowed != null && !permits(allowed, id)) return requested;
770
+ if (!chosen && !model.efforts.includes(effort)) return requested;
771
+ return {
772
+ ...chosen ? { model: chosen } : {},
773
+ ...model.efforts.includes(effort) ? { reasoningEffort: effort === "off" ? "none" : effort } : {}
774
+ };
775
+ } catch {
776
+ return requested;
777
+ }
778
+ }
779
+ };
780
+ }
781
+ //#endregion
721
782
  //#region src/preference-fields.js
722
783
  const PREFERENCE_FIELDS = Object.freeze({
723
784
  compactionMode: {
@@ -769,6 +830,11 @@ const PREFERENCE_FIELDS = Object.freeze({
769
830
  default: "dsh",
770
831
  error: "Invalid subagent backend"
771
832
  },
833
+ subagentDefaultEffort: {
834
+ choices: SUBAGENT_EFFORTS,
835
+ default: "auto",
836
+ error: "Invalid subtask reasoning effort"
837
+ },
772
838
  [QUICK_QUOTA_MODE_FIELD]: {
773
839
  choices: [
774
840
  "off",
@@ -3559,6 +3625,8 @@ function authenticatedSubagentChild(child, { Transport, getTokens, thread, signa
3559
3625
  //#endregion
3560
3626
  //#region src/subagent-runtime.js
3561
3627
  const SUBAGENT_RUNTIME_PACKAGE = "@deepseek-ai/dsh-subagent-codex";
3628
+ const SUBAGENT_RUNTIME_VERSION = "0.2.2-rc.1";
3629
+ const SUBAGENT_CODEX_VERSION = "0.153.4";
3562
3630
  const SUPPORTED_RUNTIME_VERSIONS = Object.freeze([
3563
3631
  "0.1.7-rc.2",
3564
3632
  "0.2.0-rc.1",
@@ -3573,7 +3641,9 @@ const SUPPORTED_RUNTIME_VERSIONS = Object.freeze([
3573
3641
  "0.2.1-rc.3",
3574
3642
  "0.2.1-rc.4",
3575
3643
  "0.2.1-rc.5",
3576
- "0.2.2-alpha.2"
3644
+ "0.2.2-alpha.2",
3645
+ "0.2.2-alpha.3",
3646
+ SUBAGENT_RUNTIME_VERSION
3577
3647
  ]);
3578
3648
  const require = createRequire(import.meta.url);
3579
3649
  const execute = promisify(execFile);
@@ -3618,7 +3688,7 @@ async function loadSubagentRuntime({ resolve: resolve$1 = require.resolve, run =
3618
3688
  maxBuffer: 4096,
3619
3689
  windowsHide: true
3620
3690
  });
3621
- if (stdout.trim() !== "codex-cli 0.153.4") throw new Error("Unexpected CLI version");
3691
+ if (stdout.trim() !== `codex-cli 0.153.4`) throw new Error("Unexpected CLI version");
3622
3692
  } catch {
3623
3693
  throw new Error("Codex subtask runtime is incomplete; prepare it for this platform");
3624
3694
  }
@@ -3687,7 +3757,7 @@ const CHILD_FEATURES_OFF = Object.freeze({ features: Object.freeze(Object.fromEn
3687
3757
  "in_app_browser"
3688
3758
  ].map((name) => [name, false]))) });
3689
3759
  /** Reuse the official DSH process/turn provider; keep only subscription auth here. */
3690
- function createSubscriptionSubagent({ ctx, nativeHome, resolveAuth, store, refresh, loadRuntime, maintenance = () => false }) {
3760
+ function createSubscriptionSubagent({ ctx, nativeHome, resolveAuth, store, refresh, loadRuntime, maintenance = () => false, defaults }) {
3691
3761
  let runtime;
3692
3762
  const load = () => runtime ??= loadRuntime().catch((error) => {
3693
3763
  runtime = void 0;
@@ -3714,7 +3784,10 @@ function createSubscriptionSubagent({ ctx, nativeHome, resolveAuth, store, refre
3714
3784
  const signal = AbortSignal.any([request.signal, controller.signal]);
3715
3785
  let run;
3716
3786
  try {
3717
- const thread = subagentThreadPolicy(request.parent, ctx.sandboxPolicy.resolve({ session: request.parent.session }), request.agentOptions);
3787
+ await defaults?.ready(request.agentOptions, signal);
3788
+ signal.throwIfAborted();
3789
+ const options = defaults?.resolve(request.parent, request.agentOptions) ?? request.agentOptions;
3790
+ const thread = subagentThreadPolicy(request.parent, ctx.sandboxPolicy.resolve({ session: request.parent.session }), options);
3718
3791
  const getTokens = await createSubagentTokens({
3719
3792
  resolveAuth,
3720
3793
  store,
@@ -4399,7 +4472,7 @@ function inheritedOriginalImageRef(session, assetId) {
4399
4472
  }
4400
4473
  //#endregion
4401
4474
  //#region src/version.js
4402
- const PACKAGE_VERSION = "3.2.4";
4475
+ const PACKAGE_VERSION = "3.2.5";
4403
4476
  const USER_AGENT = `dsh-codex-subscription/${PACKAGE_VERSION}`;
4404
4477
  //#endregion
4405
4478
  //#region src/codex-images.js
@@ -10258,7 +10331,7 @@ function nativeDelegations(ctx, agent) {
10258
10331
  const tools = scopedTools(agent) ?? ctx.get?.("tools");
10259
10332
  const subagents = ctx.get?.("subagents");
10260
10333
  return presetEntries(ctx).flatMap((entry) => {
10261
- const config = entry.fiber?.config ?? entry.options?.config;
10334
+ const config = entry.fiber?.effectiveConfig ?? entry.fiber?.config ?? entry.options?.config;
10262
10335
  if (entry.options?.name !== "@deepseek-ai/dsh-tool-subagent" || !["spawn", "codex-subscription-subagent"].includes(config?.provider) || !subagents?.getProvider?.(config.provider)) return [];
10263
10336
  const name = config.toolName ?? "subagent";
10264
10337
  const definition = tools?.get?.(name, agent);
@@ -10302,7 +10375,7 @@ function createUltraExecutionPreset({ catalog, resolveAgent = () => void 0, defa
10302
10375
  if (!state || !state.tools.some((tool) => tool.name === exec.name)) return;
10303
10376
  if (!state.active || state.signal.aborted || exec.agent !== agent) return "Ultra delegation belongs to an inactive or cancelled request";
10304
10377
  const tool = state.tools.find((tool) => tool.name === exec.name);
10305
- if (tools.get(exec.name, agent) !== tool.definition) return "Ultra delegation tool changed after request preparation; retry the request";
10378
+ if (tools.get(exec.name, agent, exec.toolSet) !== tool.definition) return "Ultra delegation tool changed after request preparation; retry the request";
10306
10379
  });
10307
10380
  bindings.set(agent, binding);
10308
10381
  return binding;
@@ -12021,6 +12094,8 @@ function mergeModel(baseModels, remote) {
12021
12094
  * @returns {object} 可初始化、刷新、查询和清除的模型目录
12022
12095
  */
12023
12096
  function createOfficialModelCatalog(options = {}) {
12097
+ const nativeVersion = options.nativeVersion;
12098
+ const endpoint = nativeVersion === void 0 ? CODEX_MODELS_URL : `https://chatgpt.com/backend-api/codex/models?client_version=${encodeURIComponent(nativeVersion)}`;
12024
12099
  const fetchCatalog = options.fetch ?? fetch;
12025
12100
  const getNow = options.now ?? Date.now;
12026
12101
  const schedule = options.setTimeout ?? setTimeout;
@@ -12188,7 +12263,7 @@ function createOfficialModelCatalog(options = {}) {
12188
12263
  initialized = true;
12189
12264
  }
12190
12265
  const id = credentials.accountId;
12191
- const response = await fetchCatalog(CODEX_MODELS_URL, {
12266
+ const response = await fetchCatalog(endpoint, {
12192
12267
  method: "GET",
12193
12268
  redirect: "error",
12194
12269
  signal: requestSignal,
@@ -12196,7 +12271,7 @@ function createOfficialModelCatalog(options = {}) {
12196
12271
  authorization: `Bearer ${credentials.access}`,
12197
12272
  "chatgpt-account-id": id,
12198
12273
  accept: "application/json",
12199
- originator: "pi",
12274
+ originator: nativeVersion === void 0 ? "pi" : "codex_cli_rs",
12200
12275
  "user-agent": USER_AGENT,
12201
12276
  ...etag === void 0 ? {} : { "if-none-match": etag }
12202
12277
  }
@@ -12206,7 +12281,10 @@ function createOfficialModelCatalog(options = {}) {
12206
12281
  const raw = response.status === 304 ? rawCatalog : await response.json();
12207
12282
  if (!current(flight) || accountId !== id) return false;
12208
12283
  if (raw === void 0) throw new Error("Codex returned HTTP 304 without a cached model catalog");
12209
- const remote = parseOfficialModelCatalog(raw, getNow());
12284
+ const remote = parseOfficialModelCatalog(nativeVersion !== void 0 && Array.isArray(raw?.models) ? {
12285
+ ...raw,
12286
+ models: raw.models.filter((model) => model?.visibility === "list" && model.supported_in_api !== false)
12287
+ } : raw, getNow());
12210
12288
  const next = remote.map((model) => mergeModel(options.baseModels(), model)).filter(Boolean);
12211
12289
  if (!next.length) throw new Error("Codex returned an empty or incompatible model catalog");
12212
12290
  const changed = response.status !== 304 || JSON.stringify(next) !== JSON.stringify(models);
@@ -12748,7 +12826,8 @@ function configuredFetchProviderId(web, entries = [], ambient = process.env.DSH_
12748
12826
  const environment = "fetchProviderEnv" in web ? web.fetchProviderEnv : ambient;
12749
12827
  if (typeof web.config?.fetchProvider?.get === "function") return web.config.fetchProvider.get() ?? environment;
12750
12828
  const entry = [...entries].find((item) => item.options?.id === "web");
12751
- const value = entry?.fiber?.config?.fetchProvider;
12829
+ const fiber = entry?.fiber;
12830
+ const value = (fiber?.effectiveConfig ?? fiber?.config)?.fetchProvider;
12752
12831
  if (typeof value?.get === "function") return value.get() ?? environment;
12753
12832
  return value ?? entry?.options?.config?.fetchProvider ?? environment;
12754
12833
  }
@@ -15177,12 +15256,11 @@ function parseDetails(value, now) {
15177
15256
  if (available.length === 0) throw new Error("No usable quota reset is available");
15178
15257
  return {
15179
15258
  availableCount: value.available_count,
15180
- credits: available.map(({ credit, expiresAt }, index) => ({
15259
+ credits: available.map(({ credit, expiresAt }) => ({
15181
15260
  creditId: credit.id,
15182
15261
  title: safeCopy(credit.title),
15183
15262
  description: safeCopy(credit.description),
15184
- creditExpiresAt: expiresAt,
15185
- index
15263
+ creditExpiresAt: expiresAt
15186
15264
  }))
15187
15265
  };
15188
15266
  }
@@ -15220,11 +15298,16 @@ function createCodexResetCreditService(options) {
15220
15298
  const creditRefs = /* @__PURE__ */ new Map();
15221
15299
  let creditRefSequence = 0;
15222
15300
  const rememberCreditRef = (accountId, credit) => {
15301
+ for (const [ref, stored] of creditRefs) {
15302
+ if (stored.accountId !== accountId || stored.creditId !== credit.creditId) continue;
15303
+ creditRefs.delete(ref);
15304
+ creditRefs.set(ref, stored);
15305
+ return ref;
15306
+ }
15223
15307
  const ref = `${randomUUID$1()}-${++creditRefSequence}`;
15224
15308
  creditRefs.set(ref, {
15225
15309
  accountId,
15226
- creditId: credit.creditId,
15227
- index: credit.index
15310
+ creditId: credit.creditId
15228
15311
  });
15229
15312
  while (creditRefs.size > 64) creditRefs.delete(creditRefs.keys().next().value);
15230
15313
  return ref;
@@ -15303,7 +15386,7 @@ function createCodexResetCreditService(options) {
15303
15386
  if (creditRef !== void 0) {
15304
15387
  const reference = typeof creditRef === "string" ? creditRefs.get(creditRef) : void 0;
15305
15388
  if (reference === void 0 || reference.accountId !== accountId) throw new Error("This quota reset confirmation is no longer valid");
15306
- selected = details.credits.find((credit) => credit.creditId === reference.creditId && credit.index === reference.index);
15389
+ selected = details.credits.find((credit) => credit.creditId === reference.creditId);
15307
15390
  if (selected === void 0) throw new Error("This quota reset confirmation is no longer valid");
15308
15391
  }
15309
15392
  if (selected === void 0) throw new Error("No usable quota reset is available");
@@ -15439,7 +15522,7 @@ async function settlesLive(preferences, patch, signal, { attempts = 8, delayMs =
15439
15522
  }
15440
15523
  return live();
15441
15524
  }
15442
- function createSubscriptionRpcHandler({ authHandler, usageReader, accountUsageReader, planHistoryReader, usageProfileReader, resetCreditService, preferences, defaultModel, runtimeManagement, remoteControl, desktopVoice, nativeVoice, voicePreview, composerPredictions, diagnosticsReader, modelCatalog, originalImages, resolveInheritedOriginal, closeConnections, onAccountChanged, onCleanupFailure }) {
15525
+ function createSubscriptionRpcHandler({ authHandler, usageReader, accountUsageReader, planHistoryReader, usageProfileReader, resetCreditService, preferences, defaultModel, runtimeManagement, remoteControl, desktopVoice, nativeVoice, voicePreview, composerPredictions, diagnosticsReader, modelCatalog, subagentCatalog, originalImages, resolveInheritedOriginal, closeConnections, onAccountChanged, onCleanupFailure }) {
15443
15526
  return async (endpoint, payload, signal) => {
15444
15527
  if (endpoint === "predictions/generate") try {
15445
15528
  signal?.throwIfAborted();
@@ -15665,12 +15748,15 @@ function createSubscriptionRpcHandler({ authHandler, usageReader, accountUsageRe
15665
15748
  if (endpoint === "preferences/models") try {
15666
15749
  signal.throwIfAborted();
15667
15750
  if (typeof modelCatalog?.refresh !== "function" || typeof preferences?.status !== "function") return publicError("internal", "Could not refresh Codex model catalog");
15668
- await modelCatalog.refresh({ signal });
15751
+ const native = subagentCatalog && preferences.status()?.subagentBackend === "codex" ? subagentCatalog.refresh({ signal }).catch(() => {}) : void 0;
15752
+ await Promise.all([modelCatalog.refresh({ signal }), native]);
15753
+ signal.throwIfAborted();
15669
15754
  const value = preferences.status();
15670
15755
  return {
15671
15756
  ok: true,
15672
15757
  value: {
15673
15758
  availableModels: Array.isArray(value?.availableModels) ? value.availableModels : [],
15759
+ subagentModels: Array.isArray(value?.subagentModels) ? value.subagentModels : [],
15674
15760
  contextModels: Array.isArray(value?.contextModels) ? value.contextModels : [],
15675
15761
  verbosityModels: Array.isArray(value?.verbosityModels) ? value.verbosityModels : [],
15676
15762
  fastModels: Array.isArray(value?.fastModels) ? value.fastModels : [],
@@ -15703,6 +15789,10 @@ function createSubscriptionRpcHandler({ authHandler, usageReader, accountUsageRe
15703
15789
  if (!rule.choices.includes(payload[field])) return publicError("internal", rule.error);
15704
15790
  patch[field] = payload[field];
15705
15791
  }
15792
+ if (Object.hasOwn(payload ?? {}, "subagentDefaultModel")) {
15793
+ if (normalizeSubagentModel(payload.subagentDefaultModel) !== payload.subagentDefaultModel) return publicError("internal", "Invalid subtask model");
15794
+ patch.subagentDefaultModel = payload.subagentDefaultModel;
15795
+ }
15706
15796
  if (Object.hasOwn(payload ?? {}, "customContextWindow")) {
15707
15797
  if (normalizeCustomContextWindow(payload["customContextWindow"]) !== payload["customContextWindow"]) return publicError("internal", "Invalid custom context window");
15708
15798
  patch[CUSTOM_CONTEXT_WINDOW_FIELD] = payload[CUSTOM_CONTEXT_WINDOW_FIELD];
@@ -16942,7 +17032,8 @@ function createSearchProviderSwitcher(loader) {
16942
17032
  return typeof configured === "string" && configured.length > 0 && !SUBSCRIPTION_SEARCH_PROVIDER_IDS.has(configured) ? configured : DSH_SEARCH_PROVIDER_FALLBACK;
16943
17033
  };
16944
17034
  const current = () => {
16945
- const value = webEntry()?.fiber?.config?.searchProvider;
17035
+ const fiber = webEntry()?.fiber;
17036
+ const value = (fiber?.effectiveConfig ?? fiber?.config)?.searchProvider;
16946
17037
  return typeof value === "string" ? value : value?.get?.();
16947
17038
  };
16948
17039
  const writeProvider = async (provider) => {
@@ -16965,6 +17056,7 @@ function createSearchProviderSwitcher(loader) {
16965
17056
  const settingsFields = {
16966
17057
  [DISABLED_MODELS_FIELD]: z.transform(z.array(z.string()).max(100), normalizeDisabledModels).default([]),
16967
17058
  [AUTO_QUOTA_RETRY_FIELD]: z.boolean().default(false),
17059
+ subagentDefaultModel: z.transform(z.string().max(80), normalizeSubagentModel).default(""),
16968
17060
  ...Object.fromEntries(Object.entries(PREFERENCE_FIELDS).map(([field, rule]) => [field, rule.default === void 0 ? z.union(rule.choices) : z.union(rule.choices).default(rule.default)])),
16969
17061
  imageModel: z.union(Object.keys(IMAGE_MODELS)).default(DEFAULT_IMAGE_MODEL),
16970
17062
  imageQuality: z.union([
@@ -17036,6 +17128,20 @@ function apply(ctx, config = {}) {
17036
17128
  ]
17037
17129
  });
17038
17130
  const appendUltraPolicy = loadHostSessionSdk()?.appendPluginRecord;
17131
+ const subagentCatalog = createOfficialModelCatalog({
17132
+ nativeVersion: SUBAGENT_CODEX_VERSION,
17133
+ getAuth: (options) => resolveAuth(options),
17134
+ readCredential: (options) => store.read(PROVIDER, options),
17135
+ baseModels: () => baseProvider.getModels(),
17136
+ fetch: (input, init) => network.fetch("catalog", input, init)
17137
+ });
17138
+ ctx.effect(() => () => subagentCatalog.clear());
17139
+ const subagentDefaults = createSubagentDefaults({
17140
+ readSettings: settings.get,
17141
+ catalog: subagentCatalog,
17142
+ modelSelection: () => ctx.get?.("subagentModelSelection")?.current(),
17143
+ projections: () => ctx.get?.("sessionProjections")
17144
+ });
17039
17145
  const ultra = createUltraExecutionPreset({
17040
17146
  catalog: modelCatalog,
17041
17147
  resolveAgent: () => ctx.get?.("agents")?.currentInitiator?.(),
@@ -17109,6 +17215,9 @@ function apply(ctx, config = {}) {
17109
17215
  composerPredictions: settings.get().composerPredictions === "on" ? "on" : "off",
17110
17216
  otherModels: settings.get().otherModels === "off" ? "off" : "on",
17111
17217
  subagentBackend: settings.get().subagentBackend ?? "dsh",
17218
+ subagentDefaultModel: normalizeSubagentModel(settings.get().subagentDefaultModel),
17219
+ subagentDefaultEffort: normalizeSubagentEffort(settings.get().subagentDefaultEffort),
17220
+ subagentModels: subagentDefaults.list(),
17112
17221
  subagentBackendAvailable: subagentBackend !== void 0,
17113
17222
  subagentRuntimeInstalled: inspectSubagentRuntime().installed,
17114
17223
  ...readCapabilitySettings(settings.get()),
@@ -17143,10 +17252,12 @@ function apply(ctx, config = {}) {
17143
17252
  };
17144
17253
  },
17145
17254
  update: async (patch) => {
17255
+ if (patch.subagentDefaultModel && !subagentDefaults.list().some((model) => model.id === patch.subagentDefaultModel)) throw new Error("Codex subtask model is unavailable or disallowed");
17146
17256
  if (patch["fetchProvider"] === "codex" && !fetchRouted) throw new Error("This DSH version does not support Codex webpage reading");
17147
17257
  if (Object.hasOwn(patch, "subagentBackend")) {
17148
17258
  if (!subagentBackend) throw new Error("DSH subagent services are unavailable");
17149
17259
  await subagentBackend.select(patch.subagentBackend);
17260
+ if (patch.subagentBackend === "codex") await subagentCatalog.refresh().catch(() => {});
17150
17261
  }
17151
17262
  const rest = { ...patch };
17152
17263
  delete rest.subagentBackend;
@@ -17208,7 +17319,8 @@ function apply(ctx, config = {}) {
17208
17319
  store,
17209
17320
  refresh: (credential) => network.run("oauth", () => baseProvider.auth.oauth.refresh(credential)),
17210
17321
  loadRuntime: loadSubagentRuntime,
17211
- maintenance: runtimeManagement.blocked
17322
+ maintenance: runtimeManagement.blocked,
17323
+ defaults: subagentDefaults
17212
17324
  });
17213
17325
  scoped.subagents.registerProvider(instance.provider);
17214
17326
  const switcher = createSubagentBackendSwitcher({
@@ -17753,6 +17865,7 @@ function apply(ctx, config = {}) {
17753
17865
  voicePreview,
17754
17866
  composerPredictions,
17755
17867
  onAccountChanged: () => {
17868
+ subagentCatalog.clear();
17756
17869
  connectorsClient.clear();
17757
17870
  usageProfileReader.clear();
17758
17871
  voicePreview.clear();
@@ -17775,6 +17888,7 @@ function apply(ctx, config = {}) {
17775
17888
  }),
17776
17889
  onCleanupFailure: () => diagnosticOperations.record("account/cleanup", "failed"),
17777
17890
  modelCatalog,
17891
+ subagentCatalog,
17778
17892
  closeConnections: () => connection.dispose(),
17779
17893
  originalImages,
17780
17894
  resolveInheritedOriginal: (sessionId, assetId) => inheritedOriginalImageRef(ctx.get?.("sessions")?.get?.(sessionId), assetId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-codex-subscription",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Use ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images and Fast mode, and control DSH from the ChatGPT mobile app (Beta)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -78,23 +78,23 @@
78
78
  "node": "^22.19.0 || >=24.0.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@deepseek-ai/cordis": "4.0.4 || 4.0.5-alpha.1 || 4.0.5-alpha.2 || 4.0.5 || 4.0.6-alpha.1",
82
- "@deepseek-ai/dsh-api-remotes": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
83
- "@deepseek-ai/dsh-client-connection": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
84
- "@deepseek-ai/dsh-client-locale": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
85
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
86
- "@deepseek-ai/dsh-client-ui-model-selection": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
87
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
88
- "@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
89
- "@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
90
- "@deepseek-ai/dsh-client-ui-tool": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
91
- "@deepseek-ai/dsh-credentials": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
92
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
93
- "@deepseek-ai/dsh-llm-pi-ai": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
94
- "@deepseek-ai/dsh-settings": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
95
- "@deepseek-ai/dsh-subagent-codex": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
96
- "@deepseek-ai/dsh-tools": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
97
- "@deepseek-ai/dsh-web": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2",
81
+ "@deepseek-ai/cordis": "4.0.4 || 4.0.5-alpha.1 || 4.0.5-alpha.2 || 4.0.5 || 4.0.6-alpha.1 || 4.0.6-alpha.2 || 4.1.0",
82
+ "@deepseek-ai/dsh-api-remotes": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
83
+ "@deepseek-ai/dsh-client-connection": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
84
+ "@deepseek-ai/dsh-client-locale": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
85
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
86
+ "@deepseek-ai/dsh-client-ui-model-selection": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
87
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
88
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
89
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
90
+ "@deepseek-ai/dsh-client-ui-tool": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
91
+ "@deepseek-ai/dsh-credentials": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
92
+ "@deepseek-ai/dsh-llm": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
93
+ "@deepseek-ai/dsh-llm-pi-ai": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
94
+ "@deepseek-ai/dsh-settings": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
95
+ "@deepseek-ai/dsh-subagent-codex": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
96
+ "@deepseek-ai/dsh-tools": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
97
+ "@deepseek-ai/dsh-web": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || 0.2.2-rc.1",
98
98
  "@deepseek-ai/schemastery": "3.18.1 || ^3.18.2 || 3.18.6-alpha.1",
99
99
  "@earendil-works/pi-ai": "0.85.1 || 0.87.1 || 1.1.0 || 1.2.0 || 1.3.0 || 1.4.0 || 1.5.0",
100
100
  "react": "^18.2.0",
@@ -102,25 +102,25 @@
102
102
  },
103
103
  "devDependencies": {
104
104
  "@deepseek-ai/cordis": "4.0.4",
105
- "@deepseek-ai/dsh-api-remotes": "0.2.1-rc.5",
106
- "@deepseek-ai/dsh-client-connection": "0.2.1-rc.5",
107
- "@deepseek-ai/dsh-client-locale": "0.2.1-rc.5",
108
- "@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.5",
109
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.5",
110
- "@deepseek-ai/dsh-client-ui-model-selection": "0.2.1-rc.5",
111
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.5",
112
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.5",
113
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.5",
114
- "@deepseek-ai/dsh-client-ui-tool": "0.2.1-rc.5",
115
- "@deepseek-ai/dsh-credentials": "0.2.1-rc.5",
105
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.1",
106
+ "@deepseek-ai/dsh-client-connection": "0.2.2-rc.1",
107
+ "@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
108
+ "@deepseek-ai/dsh-client-ui-chat": "0.2.2-rc.1",
109
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1",
110
+ "@deepseek-ai/dsh-client-ui-model-selection": "0.2.2-rc.1",
111
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1",
112
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
113
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
114
+ "@deepseek-ai/dsh-client-ui-tool": "0.2.2-rc.1",
115
+ "@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
116
116
  "@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
117
- "@deepseek-ai/dsh-llm": "0.2.1-rc.5",
118
- "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-rc.5",
119
- "@deepseek-ai/dsh-session": "0.2.1-rc.5",
120
- "@deepseek-ai/dsh-settings": "0.2.1-rc.5",
121
- "@deepseek-ai/dsh-subagent-codex": "0.2.1-rc.5",
122
- "@deepseek-ai/dsh-tools": "0.2.1-rc.5",
123
- "@deepseek-ai/dsh-web": "0.2.1-rc.5",
117
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
118
+ "@deepseek-ai/dsh-llm-pi-ai": "0.2.2-rc.1",
119
+ "@deepseek-ai/dsh-session": "0.2.2-rc.1",
120
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.1",
121
+ "@deepseek-ai/dsh-subagent-codex": "0.2.2-rc.1",
122
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
123
+ "@deepseek-ai/dsh-web": "0.2.2-rc.1",
124
124
  "@deepseek-ai/schemastery": "3.18.4",
125
125
  "@earendil-works/pi-ai": "0.85.1",
126
126
  "@heroicons/react": "2.2.0",
@@ -132,7 +132,7 @@
132
132
  "tsdown": "0.22.2"
133
133
  },
134
134
  "dependencies": {
135
- "@deepseek-ai/dsh-home-paths": "0.2.1-rc.5",
135
+ "@deepseek-ai/dsh-home-paths": "0.2.2-rc.1",
136
136
  "https-proxy-agent": "7.0.6",
137
137
  "ws": "8.21.3"
138
138
  },