@xixka/dsh-hub 0.2.1-rc.3 → 0.2.1-rc.4

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.
@@ -4661,10 +4661,11 @@ function providerSwitchState(status) {
4661
4661
  const total = typeof status.models?.total === "number" ? status.models.total : 0;
4662
4662
  if (status.closed === true) return { checked: false, disabled: false, reason: null };
4663
4663
  if (total <= 0) {
4664
+ const accountsTotal = typeof status.accounts?.total === "number" ? status.accounts.total : 0;
4664
4665
  return {
4665
4666
  checked: true,
4666
4667
  disabled: true,
4667
- reason: "该供应商没有可关闭的模型"
4668
+ reason: accountsTotal > 0 ? "该供应商没有可关闭的模型" : "请先登录该供应商"
4668
4669
  };
4669
4670
  }
4670
4671
  return { checked: true, disabled: false, reason: null };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xixka/dsh-hub",
3
- "version": "0.2.1-rc.3",
3
+ "version": "0.2.1-rc.4",
4
4
  "description": "DeepSeek Harness plugin: one hub for AI coding providers — account login, multi-account pools, silent credential refresh, credit claiming, and a local OpenAI-compatible gateway",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",