fix: review fixes, GitHub Releases update check (0.1.1)

- Wallet/subscription/window exhaustion skips a key for 10 minutes instead
  of disabling it; a balance read showing money brings it back. Only the
  gateway's own key refusals and a used-up key cap still disable a key.
- Classify by sub2api's exact wording; a bare 401 or upstream text no
  longer retires a key; 'No available accounts' is capacity, not coverage.
- Hosts keep only an https origin (no doubled /v1); timeouts and HTTP
  answers no longer set a host aside; hand edits are re-probed.
- Balance: inactive subscriptions, per-plan subscription pooling, key caps
  kept out of the total, rate windows shown.
- Endpoint editor no longer empties itself after Save.
- Update check reads GitHub Releases and installs the release tarball;
  release workflow replaces npm publishing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
大阔andClaude Opus 5.5 committed 2026-10-15 01:15:24 +08:00
1 parent 86b8e4d24f
commit f4f4ce55b3
34 files changed
+953 -521

No files matched your search

+3 -3
View File
@@ -36,10 +36,10 @@
打开桌面应用的**插件**页,点击**添加插件**,在**包名或地址**中填入:
```text
dsh-geek2api
https://github.com/CoderKuo/dsh-geek2api/releases/latest/download/dsh-geek2api.tgz
```
在**安装源**中选择**官方源**,然后点击**安装**。首次安装后不用重启 DSH。
然后点击**安装**。首次安装后不用重启 DSH。也可以先从 [Releases](https://github.com/CoderKuo/dsh-geek2api/releases) 下载 `.tgz`,再填本地文件路径安装。
### 2. 添加 Key
@@ -118,7 +118,7 @@ dsh-geek2api
## 更新与卸载
**更新:** 打开 **设置 → Geek2API**,有新版本时点「更新插件」,完成后完全退出并重新打开桌面应用。
**更新:** 打开 **设置 → Geek2API**,「插件版本」卡片会检查 GitHub 上的最新发布;有新版本时点「更新插件」,完成后完全退出并重新打开桌面应用。「更新说明」链接到这个版本的发布页。
**卸载:** 用过 Geek2API 网页搜索的话,先在 **设置 → Geek2API → 网页搜索** 切回「不接管」,再到**插件**页卸载,然后重启桌面应用。否则 `cordis.patch.yml` 里会留下指向已卸载后端的配置;这时手动删掉带 `dsh-geek2api: web search provider` 标记的那一段即可。