dsh-codex-subscription 2.6.2 → 2.6.3

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
@@ -106,7 +106,7 @@ This plugin supports the latest DeepSeek Harness release recorded in its package
106
106
  2. Paste this package name, with its version, into the **Package name or address** field:
107
107
 
108
108
  ```text
109
- dsh-codex-subscription@2.6.2
109
+ dsh-codex-subscription@2.6.3
110
110
  ```
111
111
 
112
112
  3. Click **Install** and wait for completion. Follow the page instructions; save your work before restarting if requested.
@@ -118,7 +118,7 @@ Why the version is included: DSH's plugin page only installs versions that are a
118
118
  <summary>Terminal installation (with an existing dsh command)</summary>
119
119
 
120
120
  ```sh
121
- dsh plugin --profile web add dsh-codex-subscription@2.6.2
121
+ dsh plugin --profile web add dsh-codex-subscription@2.6.3
122
122
  ```
123
123
 
124
124
  Follow the restart instructions, then sign in under **Settings → Codex**. Both the Plugins page and the terminal use DSH's installation management.
@@ -131,7 +131,7 @@ Follow the restart instructions, then sign in under **Settings → Codex**. Both
131
131
  After signing in and selecting a Codex model in Web, install the same plugin in the Headless profile:
132
132
 
133
133
  ```sh
134
- dsh plugin --profile headless add dsh-codex-subscription@2.6.2
134
+ dsh plugin --profile headless add dsh-codex-subscription@2.6.3
135
135
  dsh --profile headless "Reply with only the word: ok"
136
136
  ```
137
137
 
@@ -266,7 +266,7 @@ Find this plugin on the DSH **Plugins** page and use its update or uninstall act
266
266
  <summary>Terminal commands</summary>
267
267
 
268
268
  ```sh
269
- dsh plugin --profile web update dsh-codex-subscription@2.6.2
269
+ dsh plugin --profile web update dsh-codex-subscription@2.6.3
270
270
  ```
271
271
 
272
272
  Run only when you want to uninstall:
@@ -282,7 +282,7 @@ dsh plugin --profile web remove dsh-codex-subscription
282
282
  <details>
283
283
  <summary>DSH 0.2.0-rc.2 reports the plugin as incompatible?</summary>
284
284
 
285
- DSH 0.2.0-rc.2 did not exist when any release before 2.2.10 was published, and a published package's compatibility declaration cannot be changed. Install 2.2.10 or later (a bare package name can resolve to an older release during the first 24 hours, so enter `dsh-codex-subscription@2.2.10`) from the **Plugins** page, or run `dsh plugin --profile web update dsh-codex-subscription@2.6.2`, then restart DSH.
285
+ DSH 0.2.0-rc.2 did not exist when any release before 2.2.10 was published, and a published package's compatibility declaration cannot be changed. Install 2.2.10 or later (a bare package name can resolve to an older release during the first 24 hours, so enter `dsh-codex-subscription@2.2.10`) from the **Plugins** page, or run `dsh plugin --profile web update dsh-codex-subscription@2.6.3`, then restart DSH.
286
286
 
287
287
  </details>
288
288
 
package/README.md CHANGED
@@ -106,7 +106,7 @@
106
106
  2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
107
107
 
108
108
  ```text
109
- dsh-codex-subscription@2.6.2
109
+ dsh-codex-subscription@2.6.3
110
110
  ```
111
111
 
112
112
  3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
@@ -118,7 +118,7 @@
118
118
  <summary>终端安装(已能运行 dsh 命令)</summary>
119
119
 
120
120
  ```sh
121
- dsh plugin --profile web add dsh-codex-subscription@2.6.2
121
+ dsh plugin --profile web add dsh-codex-subscription@2.6.3
122
122
  ```
123
123
 
124
124
  安装完成后按提示重启 DSH,再到 **设置 → Codex 订阅** 登录。插件页面和终端均由 DSH 管理安装。
@@ -131,7 +131,7 @@ dsh plugin --profile web add dsh-codex-subscription@2.6.2
131
131
  先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 Headless profile:
132
132
 
133
133
  ```sh
134
- dsh plugin --profile headless add dsh-codex-subscription@2.6.2
134
+ dsh plugin --profile headless add dsh-codex-subscription@2.6.3
135
135
  dsh --profile headless "只回复:ok"
136
136
  ```
137
137
 
@@ -295,7 +295,7 @@ DSH 实机设置截图。
295
295
  <summary>终端方式</summary>
296
296
 
297
297
  ```sh
298
- dsh plugin --profile web update dsh-codex-subscription@2.6.2
298
+ dsh plugin --profile web update dsh-codex-subscription@2.6.3
299
299
  ```
300
300
 
301
301
  仅在需要卸载时运行:
@@ -311,7 +311,7 @@ dsh plugin --profile web remove dsh-codex-subscription
311
311
  <details>
312
312
  <summary>DSH 0.2.0-rc.2 提示插件不兼容?</summary>
313
313
 
314
- 2.2.10 之前的所有版本发布时 DSH 0.2.0-rc.2 还不存在,其兼容声明无法事后修改。请安装 2.2.10 或更高版本(只填包名时,发布满 24 小时前可能装到旧版,请直接填 `dsh-codex-subscription@2.2.10`):在 **插件** 页面更新,或运行 `dsh plugin --profile web update dsh-codex-subscription@2.6.2`,然后重启 DSH。
314
+ 2.2.10 之前的所有版本发布时 DSH 0.2.0-rc.2 还不存在,其兼容声明无法事后修改。请安装 2.2.10 或更高版本(只填包名时,发布满 24 小时前可能装到旧版,请直接填 `dsh-codex-subscription@2.2.10`):在 **插件** 页面更新,或运行 `dsh plugin --profile web update dsh-codex-subscription@2.6.3`,然后重启 DSH。
315
315
 
316
316
  </details>
317
317
 
package/lib/client.js CHANGED
@@ -6121,6 +6121,8 @@ window.__ModuleLoader__.load({
6121
6121
  effortLabel: "推理等级",
6122
6122
  providerDefault: "默认",
6123
6123
  selectModel: "选择模型",
6124
+ modelSearch: "搜索模型",
6125
+ modelNoMatch: "没有匹配的模型。",
6124
6126
  modelsLoading: "正在读取模型…",
6125
6127
  modelsEmpty: "没有可用模型;请先登录,并确认网络可用。",
6126
6128
  modelsHidden: "所有模型都已从列表中隐藏;可在设置中重新显示。",
@@ -6721,6 +6723,8 @@ window.__ModuleLoader__.load({
6721
6723
  effortLabel: "Effort",
6722
6724
  providerDefault: "Default",
6723
6725
  selectModel: "Select model",
6726
+ modelSearch: "Search models",
6727
+ modelNoMatch: "No matching models.",
6724
6728
  modelsLoading: "Loading models…",
6725
6729
  modelsEmpty: "No models available. Sign in and make sure the network is reachable.",
6726
6730
  modelsHidden: "All models are hidden from this list. Show one in settings.",
@@ -6975,6 +6979,8 @@ window.__ModuleLoader__.load({
6975
6979
  .codexModelSelectCellLabel{flex:none;white-space:nowrap}
6976
6980
  .codexModelSelectCellValue{flex:auto;min-width:0;overflow:hidden;color:var(--dsw-alias-label-tertiary);text-align:right;text-overflow:ellipsis;white-space:nowrap}
6977
6981
  .codexModelSelectCellChevron{flex:none;color:var(--dsw-alias-label-tertiary)}
6982
+ .codexModelSelectSearch{display:block;width:100%;box-sizing:border-box;height:32px;margin:0 0 4px;padding:0 10px;border:1px solid var(--dsw-alias-border-l3);border-radius:8px;outline:0;background:transparent;color:inherit;font:inherit;font-size:13px}
6983
+ .codexModelSelectSearch:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3)}
6978
6984
  .codexModelSelectGroups{min-height:0;max-height:352px;overflow-y:auto}
6979
6985
  .codexModelSelectGroup+.codexModelSelectGroup{margin-top:4px}
6980
6986
  .codexModelSelectGroupTitle{position:sticky;top:0;z-index:1;padding:5px 8px 3px;background:var(--dsw-alias-bg-layer-2,#2c2c2e);color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:500;line-height:18px}
@@ -9139,7 +9145,7 @@ window.__ModuleLoader__.load({
9139
9145
  }
9140
9146
  //#endregion
9141
9147
  //#region src/version.js
9142
- const PACKAGE_VERSION = "2.6.2";
9148
+ const PACKAGE_VERSION = "2.6.3";
9143
9149
  //#endregion
9144
9150
  //#region src/client-recovery.js
9145
9151
  async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = 1e4) {
@@ -9415,6 +9421,7 @@ window.__ModuleLoader__.load({
9415
9421
  const preferenceSnapshot = usePreferenceSnapshot(preference);
9416
9422
  const [open, setOpen] = (0, react.useState)(false);
9417
9423
  const [pane, setPane] = (0, react.useState)("root");
9424
+ const [query, setQuery] = (0, react.useState)("");
9418
9425
  const rootRef = (0, react.useRef)(null);
9419
9426
  const triggerRef = (0, react.useRef)(null);
9420
9427
  const id = (0, react.useId)();
@@ -9450,6 +9457,17 @@ window.__ModuleLoader__.load({
9450
9457
  ...effort.description === void 0 ? {} : { description: effort.description }
9451
9458
  }))], [reasoning, t]);
9452
9459
  const modelLabel = currentChoice?.model.name ?? t("selectModel");
9460
+ const searchable = visibleGroups.reduce((total, group) => total + group.models.length, 0) > 4;
9461
+ const needle = searchable ? query.trim().toLocaleLowerCase() : "";
9462
+ const shownGroups = needle === "" ? visibleGroups : visibleGroups.map((group) => ({
9463
+ ...group,
9464
+ models: group.models.filter((model) => [
9465
+ model.name,
9466
+ model.id,
9467
+ model.description,
9468
+ group.name
9469
+ ].some((text) => typeof text === "string" && text.toLocaleLowerCase().includes(needle)))
9470
+ })).filter((group) => group.models.length > 0);
9453
9471
  const speedSupported = state.current?.provider === "openai-codex" && (preferenceSnapshot.fastModels?.includes(state.current?.model) ?? supportsCodexFastMode(state.current?.model));
9454
9472
  const speedWritable = preferenceSnapshot.status === "ready" && preferenceSnapshot.writable === true;
9455
9473
  const ultrafastSupported = state.current?.provider === "openai-codex" && (preferenceSnapshot.ultrafastModels ?? []).includes(state.current?.model);
@@ -9491,11 +9509,15 @@ window.__ModuleLoader__.load({
9491
9509
  if (!rootRef.current?.contains(event.target)) {
9492
9510
  setOpen(false);
9493
9511
  setPane("root");
9512
+ setQuery("");
9494
9513
  }
9495
9514
  };
9496
9515
  document.addEventListener("mousedown", closeOutside);
9497
9516
  return () => document.removeEventListener("mousedown", closeOutside);
9498
9517
  }, [open]);
9518
+ (0, react.useEffect)(() => {
9519
+ if (pane !== "model") setQuery("");
9520
+ }, [pane]);
9499
9521
  (0, react.useEffect)(() => {
9500
9522
  if (!speedSupported && pane === "speed") setPane("root");
9501
9523
  if (!verbositySupported && pane === "verbosity") setPane("root");
@@ -9508,6 +9530,7 @@ window.__ModuleLoader__.load({
9508
9530
  const close = (restoreFocus = false) => {
9509
9531
  setOpen(false);
9510
9532
  setPane("root");
9533
+ setQuery("");
9511
9534
  if (restoreFocus) queueMicrotask(() => triggerRef.current?.focus());
9512
9535
  };
9513
9536
  const settleSelection = (accepted) => {
@@ -9607,9 +9630,18 @@ window.__ModuleLoader__.load({
9607
9630
  value: failure.message
9608
9631
  })
9609
9632
  }, failure.id)),
9633
+ searchable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9634
+ className: "codexModelSelectSearch",
9635
+ type: "search",
9636
+ value: query,
9637
+ autoFocus: true,
9638
+ placeholder: t("modelSearch"),
9639
+ "aria-label": t("modelSearch"),
9640
+ onChange: (event) => setQuery(event.target.value)
9641
+ }) : null,
9610
9642
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9611
9643
  className: "codexModelSelectGroups scrollable",
9612
- children: visibleGroups.map((group) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
9644
+ children: shownGroups.map((group) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
9613
9645
  className: "codexModelSelectGroup",
9614
9646
  role: "group",
9615
9647
  "aria-labelledby": `${id}-${group.id}`,
@@ -9640,6 +9672,10 @@ window.__ModuleLoader__.load({
9640
9672
  state.status === "ready" && visibleGroups.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9641
9673
  className: "codexModelSelectEmpty",
9642
9674
  children: t(choices.length === 0 ? "modelsEmpty" : "modelsHidden")
9675
+ }) : null,
9676
+ state.status === "ready" && visibleGroups.length > 0 && shownGroups.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9677
+ className: "codexModelSelectEmpty",
9678
+ children: t("modelNoMatch")
9643
9679
  }) : null
9644
9680
  ]
9645
9681
  });
package/lib/index.js CHANGED
@@ -2080,7 +2080,7 @@ function inheritedOriginalImageRef(session, assetId) {
2080
2080
  }
2081
2081
  //#endregion
2082
2082
  //#region src/version.js
2083
- const PACKAGE_VERSION = "2.6.2";
2083
+ const PACKAGE_VERSION = "2.6.3";
2084
2084
  const USER_AGENT = `dsh-codex-subscription/${PACKAGE_VERSION}`;
2085
2085
  //#endregion
2086
2086
  //#region src/codex-images.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-codex-subscription",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
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",