dsh-cliproxyapi-pro 1.10.1 → 1.12.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,30 @@
4
4
 
5
5
  本插件的所有重要变更。版本号遵循[语义化版本](https://semver.org/lang/zh-CN/)。
6
6
 
7
+ ## 1.12.0 — 2026-11-18
8
+
9
+ ### 新增
10
+ - **提示词净化(兼容性)。** 每个账号的连接页「高级路由与规则过滤」新增开关(默认开启)与「替换文本」输入框:开启后,发往该账号三条路由的请求的系统提示词中,每个精确短语 “DeepSeek Harness”(不区分大小写)都整体替换为指定文本(默认 `Custom Harness`,开场白变为 “You are an AI agent powered by Custom Harness.”),并删除在上下文中同样会触发拦截的 “The browser provides no implicit DOM, route, or screenshot context.” 一句(Google 按内容综合判断,单独发送不拦、连同前后文才拦),规避部分上游网关(已确认 Antigravity 的 Gemini 账号)因此返回的无原因 429 以及 CPA 连带的全账号冷却。改写发生在提示词组装的最后阶段(`system-prompt/assemble` 瀑布),覆盖提示词分节与插值变量,只影响该账号自己的路由,已保存在会话中的提示词不变。升级前已有的账号同样默认开启,可在该开关处关闭。
11
+
12
+ ### 修复
13
+ - **Antigravity 和 Gemini CLI 的套餐升级 / 降级后会及时更新。** 凭证已带项目 ID 时,原先只要显示过一次套餐就不再查询,比如从 Pro 升级到 Ultra 后仍一直显示 Pro。现在每轮额度刷新都会通过 `loadCodeAssist` 重新读取套餐,并以新读到的结果为准;这次读取失败时沿用上一次的套餐。代价是这两类凭证每轮刷新多一次很轻的 `loadCodeAssist` 请求。
14
+ - **Antigravity 的 Gemini 模型(如 `gemini-4-argon-high`)重新显示额度。** 额度汇总接口现在只返回「Claude and GPT models」一组,原先的补充查询只认 Gemini CLI 列出的模型,而且读的是生产主机(显示 100%,不随用量变化),所以这些模型一直显示「上游未返回额度窗口」。现在 Gemini 额度改从 CPA 实际走的 daily 主机的逐模型列表读取:同一族模型共用同一份额度时合成一个「Gemini models」窗口,按前缀匹配,列表里没有的 Gemini 型号也能对上;各模型额度不同时仍按模型分别显示。逐模型列表改用公开模型 ID(原先误用内部占位 ID,永远匹配不上),并跳过内部补全模型(`chat_*`、`tab_*`)。
15
+ - **Antigravity 额度读取与 CPA 自己一致。** 所有 Antigravity 额度请求改用 CPA 及其管理面板使用的 Antigravity Hub 标识(`antigravity/hub/2.23.0 darwin/arm64`;旧标识下汇总常缺「Gemini Models」组、也看不到较新的模型);汇总主机按管理面板的顺序 daily → daily sandbox → 生产依次尝试(生产主机的 Gemini 组常显示 100% 假额度),每类额度取最先给出它的主机,不再因为某一轮回退到生产主机就一直优先用它。来自 [@Six6stRINgs](https://github.com/Six6stRINgs) 的修复(#6)。
16
+ - **Gemini Argon 单独计额度时不再与其他 Gemini 模型混算。** Google AI Pro 等套餐的 Argon 额度独立于其他 Gemini 模型,原先 Argon 窗口按 `gemini` 前缀被一并算进常规 Gemini,对话框额度显示错误。现在 Argon 分组 / Argon 额度桶 / 逐模型列表里的 Argon 型号单独成窗口,Argon 模型只看自己的额度;套餐没有独立 Argon 额度时仍与 Gemini 共用。弹层里的分组名缩写为 Claude/GPT、Gemini、Argon,避免折行挤断百分比。来自 [@Six6stRINgs](https://github.com/Six6stRINgs) 的修复(#6)。
17
+ - **停用的 Antigravity 凭证不再挂到无关的 GPT / Claude 模型下。** 凭证停用后 CPA 不再报告它的模型列表,原先按「Claude and GPT models」分组名推断,结果所有 GPT / Claude 模型(如 `gpt-6-luna`)都显示了这个凭证。现在它只匹配同一账号里其他 Antigravity 凭证列出的模型;没有可参照的凭证时只匹配 Gemini 模型。来自 [@Six6stRINgs](https://github.com/Six6stRINgs) 的报告(#6)。
18
+
19
+ ### 修复(界面优化)
20
+ - **设置页的 ⓘ 说明不再被对话框截断。** 说明气泡原先渲染在设置对话框的滚动区域内,靠近底部的行(如「提示词净化」)展开时下半截被裁掉。现在气泡通过浏览器的 Popover API 显示在顶层,可以超出对话框范围;按整个窗口定位,下方放不下时改到上方,左右超出窗口时自动收回,只有窗口都放不下时才限制高度并在气泡内滚动;滚动设置页时跟随按钮移动。气泡元素仍在插件自己的插槽内,不写入页面其他位置。
21
+
22
+ ## 1.11.0 — 2026-11-12
23
+
24
+ ### 新增
25
+ - **侧边栏额度。** 左侧边栏底部(「设置」上方)新增「CPA 额度」一行:信号格汇总所有已启用、已填写管理密钥账号的凭证,右侧显示「充足 / 可用」凭证数,侧边栏收起时只显示信号格;点击后按账号列出凭证分布、每个凭证的额度窗口与重置时间,并可按账号刷新。使用 DSH 原生的 `sidebar.footer.action` 插槽,样式与原生底部按钮一致。「设置 → CLIProxyAPI」页面最上方新增所有账号共用的「在侧边栏显示额度」总开关(默认开启,保存在 `state.json` 的新全局字段 `sidebarQuota`),侧边栏额度弹层底部也可直接「从侧边栏隐藏」;关闭后侧边栏不显示,也不再为它读取额度状态。来自 [@Six6stRINgs](https://github.com/Six6stRINgs) 的建议(#2)。
26
+
27
+ ### 修复
28
+ - **额度详情和生成模型菜单滚动后不再丢失背景。** 凭据较多、弹层超过最大高度出现滚动条时,背景和毛玻璃原先画在随内容滚走的 `::before` 上,向下滚动后弹层变成透明;现在直接画在弹层本身上,和 DSH 原生可滚动弹层一致。感谢 [@Six6stRINgs](https://github.com/Six6stRINgs)(#3)。
29
+ - **同时出现的额度组件不再漏掉第一次数据。** 两个额度组件同时挂载时,先订阅的一个读到数据后,后一个可能在订阅前错过通知而一直不显示;现在订阅后会再核对一次快照。
30
+
7
31
  ## 1.10.1 — 2026-11-12
8
32
 
9
33
  ### 修复
package/README.en.md CHANGED
@@ -14,7 +14,7 @@ Enter a server URL and an API key, and the plugin reads the CPA model catalog an
14
14
  - **Works out of the box**: on the first connection, the newest model of each family in that server's own catalog is checked (at most 12), so the picker isn't flooded with hundreds of models. [Details](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/en/accounts-and-models.md)
15
15
  - **Native protocols**: Claude over Anthropic Messages, GPT / Codex / Grok over OpenAI Responses, everything else over OpenAI Chat — fewer protocol translations inside CPA. [Details](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/en/accounts-and-models.md)
16
16
  - **Visual management**: check models and edit per-model parameters in the settings panel. By default the plugin registers no agent tool, so it takes no model context (the optional generation tool `generate_media` is switched on in the Generation tab). [Details](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/en/accounts-and-models.md)
17
- - **Channel quota**: see each channel's remaining quota per credential, with a badge for the current model in the composer; failed queries pause automatic refresh. [Details](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/en/quota.md)
17
+ - **Channel quota**: see each channel's remaining quota per credential, with a badge for the current model in the composer and a quick view of every account in the sidebar footer; failed queries pause automatic refresh. [Details](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/en/quota.md)
18
18
  - **Images and videos**: generate and edit images, and generate, edit and extend videos through CPA; the optional agent generation tool is off by default. [Details](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/en/media.md)
19
19
  - **Plugin updates**: automatically check Stable / Beta / Dev channels and choose global / Mainland China sources. With the [DSH plugin market (dshmarket)](https://github.com/dsh-market/dsh-market) installed, new versions install in one click or automatically; otherwise download a verified offline package and upgrade with DSH closed. [Details](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/en/updates.md)
20
20
  - **Secure**: API keys live only in the DSH credentials service, never in configuration files. [Details](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/en/storage-and-config.md)
@@ -36,7 +36,7 @@ The plugin is published on npm as [`dsh-cliproxyapi-pro`](https://www.npmjs.com/
36
36
  dsh-cliproxyapi-pro
37
37
  ```
38
38
 
39
- To pin a version, write `dsh-cliproxyapi-pro@1.10.1`.
39
+ To pin a version, write `dsh-cliproxyapi-pro@1.12.0`.
40
40
  4. Click **Install**. When it finishes, the dialog offers to enable the plugin right away — accept it.
41
41
 
42
42
  > If downloads are slow in mainland China, open **Registry** next to the input and choose **the mainland China mirror**.
@@ -65,7 +65,7 @@ In **Add plugin**, or as the `plugin_manager` `target`, you can also enter:
65
65
 
66
66
  | Source | What to enter |
67
67
  |---|---|
68
- | A released version | `git+https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro.git#v1.10.1` |
68
+ | A released version | `git+https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro.git#v1.12.0` |
69
69
  | Latest development version | `git+https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro.git#main` |
70
70
  | Offline package | Download [`dsh-cliproxyapi-pro.tgz`](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/releases/latest/download/dsh-cliproxyapi-pro.tgz) (always the latest release) and enter its absolute local path |
71
71
  | Local source (development) | Absolute path of a cloned repository; installed as a link, so code changes go live when the plugin reloads |
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  - **开箱即用**:首次连接时按该服务自己的模型目录,为每个模型家族勾选最新的一个(最多 12 个),模型选择器不会被上百个模型淹没。 [详解](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/zh/accounts-and-models.md)
15
15
  - **原生协议**:Claude 走 Anthropic Messages,GPT / Codex / Grok 走 OpenAI Responses,其余走 OpenAI Chat,减少 CPA 的协议转换。 [详解](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/zh/accounts-and-models.md)
16
16
  - **可视化管理**:设置面板里勾选模型、编辑单个模型的参数。默认不注册 Agent 工具,不占用模型上下文(可选的生成工具 `generate_media` 需在「生成」标签手动打开)。 [详解](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/zh/accounts-and-models.md)
17
- - **渠道额度**:按凭证查看各渠道的剩余额度,对话框里的徽标显示当前模型的额度;查询失败会暂停自动刷新。 [详解](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/zh/quota.md)
17
+ - **渠道额度**:按凭证查看各渠道的剩余额度,对话框里的徽标显示当前模型的额度,侧边栏底部可快速查看所有账号;查询失败会暂停自动刷新。 [详解](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/zh/quota.md)
18
18
  - **生图 / 生视频**:通过 CPA 生成和编辑图片,生成、编辑和延长视频;可选的 agent 生成工具默认关闭。 [详解](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/zh/media.md)
19
19
  - **插件更新**:自动检查稳定 / Beta / 开发通道,可选择全球 / 中国大陆下载源;装有 [DSH 插件市场(dshmarket)](https://github.com/dsh-market/dsh-market) 时可一键或自动安装新版本,否则下载校验离线包,在关闭 DSH 后手动升级。 [详解](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/zh/updates.md)
20
20
  - **安全**:API Key 只保存在 DSH 凭证服务里,不写入任何配置文件。 [详解](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/blob/main/docs/zh/storage-and-config.md)
@@ -36,7 +36,7 @@
36
36
  dsh-cliproxyapi-pro
37
37
  ```
38
38
 
39
- 需要固定版本时可以写成 `dsh-cliproxyapi-pro@1.10.1`。
39
+ 需要固定版本时可以写成 `dsh-cliproxyapi-pro@1.12.0`。
40
40
  4. 点击 **安装**,完成后点击 **立即启用**。
41
41
 
42
42
  > 在中国大陆下载慢,可以点输入框旁的 **安装源**,切换到 **中国大陆镜像源**。
@@ -65,7 +65,7 @@ dsh plugin --profile <profile 名称> add dsh-cliproxyapi-pro
65
65
 
66
66
  | 来源 | 填写内容 |
67
67
  |---|---|
68
- | 某个发布版本 | `git+https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro.git#v1.10.1` |
68
+ | 某个发布版本 | `git+https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro.git#v1.12.0` |
69
69
  | 最新开发版 | `git+https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro.git#main` |
70
70
  | 离线安装包 | 下载 [`dsh-cliproxyapi-pro.tgz`](https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro/releases/latest/download/dsh-cliproxyapi-pro.tgz)(始终是最新版),填写它的本地绝对路径 |
71
71
  | 本地源码(开发用) | 克隆后的仓库目录绝对路径;以链接方式安装,改代码后重载插件即生效 |