dsh-codex-subscription 2.5.1 → 2.5.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 CHANGED
@@ -105,7 +105,7 @@ This plugin supports the latest DeepSeek Harness release recorded in its package
105
105
  2. Paste this package name, with its version, into the **Package name or address** field:
106
106
 
107
107
  ```text
108
- dsh-codex-subscription@2.5.1
108
+ dsh-codex-subscription@2.5.2
109
109
  ```
110
110
 
111
111
  3. Click **Install** and wait for completion. Follow the page instructions; save your work before restarting if requested.
package/README.md CHANGED
@@ -105,7 +105,7 @@
105
105
  2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
106
106
 
107
107
  ```text
108
- dsh-codex-subscription@2.5.1
108
+ dsh-codex-subscription@2.5.2
109
109
  ```
110
110
 
111
111
  3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
package/lib/client.js CHANGED
@@ -8685,7 +8685,7 @@ window.__ModuleLoader__.load({
8685
8685
  }
8686
8686
  //#endregion
8687
8687
  //#region src/version.js
8688
- const PACKAGE_VERSION = "2.5.1";
8688
+ const PACKAGE_VERSION = "2.5.2";
8689
8689
  //#endregion
8690
8690
  //#region src/client-recovery.js
8691
8691
  async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = 1e4) {
package/lib/index.js CHANGED
@@ -2043,7 +2043,7 @@ function inheritedOriginalImageRef(session, assetId) {
2043
2043
  }
2044
2044
  //#endregion
2045
2045
  //#region src/version.js
2046
- const PACKAGE_VERSION = "2.5.1";
2046
+ const PACKAGE_VERSION = "2.5.2";
2047
2047
  const USER_AGENT = `dsh-codex-subscription/${PACKAGE_VERSION}`;
2048
2048
  //#endregion
2049
2049
  //#region src/codex-images.js
@@ -2763,7 +2763,7 @@ function assertVaultRecord(record) {
2763
2763
  return {
2764
2764
  version: VERSION,
2765
2765
  activeId: record.payload.activeId,
2766
- legacyAccountId,
2766
+ ...legacyAccountId === void 0 ? {} : { legacyAccountId },
2767
2767
  accounts
2768
2768
  };
2769
2769
  }
@@ -2973,10 +2973,11 @@ var DshOAuthAccountVault = class {
2973
2973
  if (!current.accounts.some((account) => account.id === id)) throw new Error("Unknown Codex account");
2974
2974
  if (current.accounts.length === 1) throw new Error("Cannot remove the last account; sign out instead");
2975
2975
  const accounts = current.accounts.filter((account) => account.id !== id);
2976
+ const { legacyAccountId, ...rest } = current;
2976
2977
  return {
2977
- ...current,
2978
+ ...rest,
2978
2979
  activeId: current.activeId === id ? accounts[0].id : current.activeId,
2979
- legacyAccountId: current.legacyAccountId === id ? void 0 : current.legacyAccountId,
2980
+ ...legacyAccountId === void 0 || legacyAccountId === id ? {} : { legacyAccountId },
2980
2981
  accounts
2981
2982
  };
2982
2983
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-codex-subscription",
3
- "version": "2.5.1",
3
+ "version": "2.5.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",