dsh-bottom-info-bar 1.23.0 → 1.24.1

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.md CHANGED
@@ -61,7 +61,7 @@ Plugin information is further grouped by billing mode — read only the block th
61
61
 
62
62
  ![Time and date: time zones only](assets/settings-time.webp)
63
63
 
64
- API keys go in DSH under **Settings → Models**; subscriptions (Codex, OpenCode, Xiaomi Token Plan, Command Code, MiniMax, Zhipu GLM, Kimi For Coding, Alibaba Token Plan for both China and international sites) read the local sign-in or their own credential: MiniMax needs a Subscription Key, and Kimi For Coding reads `KIMI_API_KEY` (its DSH credential name; `KIMI_CODING_API_KEY` / `MOONSHOT_API_KEY` are also accepted). Alibaba Token Plan (China and international sites) cannot read quota with the inference plan key — set an Alibaba Cloud AccessKey (`ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET`, a RAM user is enough) in DSH's credentials or as same-named environment variables. Anything off the list gets a not-supported hint instead of borrowed numbers.
64
+ API keys go in DSH under **Settings → Models**; subscriptions (Codex, OpenCode, Xiaomi Token Plan, Command Code, MiniMax, Zhipu GLM, Kimi For Coding, Alibaba Token Plan for both China and international sites) read the local sign-in or their own credential: MiniMax needs a Subscription Key, and Kimi For Coding reads `KIMI_API_KEY` (its DSH credential name; `KIMI_CODING_API_KEY` / `MOONSHOT_API_KEY` are also accepted). Alibaba Token Plan (China and international sites) cannot read quota with the inference plan key — set an Alibaba Cloud AccessKey (`ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET`, a RAM user is enough). These and the Kimi key can be entered right in the plugin settings page under **Quota credentials**, or in DSH's credentials / same-named environment variables. Anything off the list gets a not-supported hint instead of borrowed numbers.
65
65
 
66
66
  ## Spend and updates
67
67
 
package/README.zh-CN.md CHANGED
@@ -61,7 +61,7 @@ https://github.com/songoao25/dsh-bottom-info-bar
61
61
 
62
62
  ![时间与日期:只设时区](assets/settings-time.zh-CN.webp)
63
63
 
64
- 密钥填在 DSH 的**设置 → 模型**;订阅类(Codex、OpenCode、小米 Token Plan、Command Code、MiniMax、智谱、Kimi For Coding、阿里 Token Plan 中国站/国际站)读本机登录或各自的凭据:MiniMax 用 Subscription Key,Kimi For Coding 读 `KIMI_API_KEY`(DSH 里的凭据名;也兼容 `KIMI_CODING_API_KEY` / `MOONSHOT_API_KEY`)。阿里 Token Plan(中国站/国际站)用推理套餐 Key 读不到额度,要另配阿里云 AccessKey——`ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET`(RAM 用户即可),填在 DSH 凭据或同名环境变量里。列表里没有的服务商只会显示未适配提示,绝不借用别家的数据。
64
+ 密钥填在 DSH 的**设置 → 模型**;订阅类(Codex、OpenCode、小米 Token Plan、Command Code、MiniMax、智谱、Kimi For Coding、阿里 Token Plan 中国站/国际站)读本机登录或各自的凭据:MiniMax 用 Subscription Key,Kimi For Coding 读 `KIMI_API_KEY`(DSH 里的凭据名;也兼容 `KIMI_CODING_API_KEY` / `MOONSHOT_API_KEY`)。阿里 Token Plan(中国站/国际站)用推理套餐 Key 读不到额度,要另配阿里云 AccessKey——`ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET`(RAM 用户即可)。这两类和 Kimi 的凭据都可以直接在**插件设置页的「额度凭据」**里填,也可以填在 DSH 凭据或同名环境变量里。列表里没有的服务商只会显示未适配提示,绝不借用别家的数据。
65
65
 
66
66
  ## 花费与更新
67
67
 
package/docs/DETAIL.md CHANGED
@@ -2,5 +2,6 @@
2
2
  - Picks balance, subscription quota, or cloud bill per provider automatically, with no manual switching
3
3
  - Tracks spend for this session, today, the last 30 days, and all time; figures stay on this machine
4
4
  - Click a field to switch between the full and compact layouts
5
+ - Quota credentials for supported providers (Alibaba, Kimi, MiniMax, Xiaomi, Zhipu, Command Code…) live under "Quota credentials" in the plugin settings: collapsed by default, bound providers first, the rest behind "Other providers"
5
6
 
6
7
  Setup and troubleshooting: [install guide](https://github.com/songoao25/dsh-bottom-info-bar/blob/main/docs/INSTALL.md).
@@ -2,5 +2,6 @@
2
2
  - 依服務商自動選擇餘額、訂閱額度或雲端帳單口徑,不用手動切換
3
3
  - 花費分本工作階段、今天、近 30 天和累計四檔,資料只保存在本機
4
4
  - 點擊資訊欄中的欄位,在完整和簡潔兩種顯示之間切換
5
+ - 已適配服務商的額度憑證(阿里 AccessKey、Kimi/MiniMax/小米/智譜/Command Code 等)可在外掛設定頁「額度憑證」裡直接填;卡片預設折疊,優先列出你已經綁定的服務商,其餘收在「其他服務商」裡
5
6
 
6
7
  設定與排障見 [安裝文件](https://github.com/songoao25/dsh-bottom-info-bar/blob/main/docs/INSTALL.md)。
package/docs/DETAIL.zh.md CHANGED
@@ -2,5 +2,6 @@
2
2
  - 按服务商自动选择余额、订阅额度或云账单口径,不用手动切换
3
3
  - 花费分本会话、今天、近 30 天和累计四档,数据只保存在本机
4
4
  - 点击信息栏中的字段,在完整和简洁两种显示之间切换
5
+ - 已适配服务商的额度凭据(阿里 AccessKey、Kimi/MiniMax/小米/智谱/Command Code 等)可在插件设置页「额度凭据」里直接填;卡片默认折叠,优先列出你已经绑定的服务商,其余收在「其他服务商」里
5
6
 
6
7
  设置与排障见 [安装文档](https://github.com/songoao25/dsh-bottom-info-bar/blob/main/docs/INSTALL.md)。
package/docs/INSTALL.md CHANGED
@@ -93,6 +93,8 @@ dsh --profile web --dump-config | grep -A2 dsh-bottom-info-bar
93
93
 
94
94
  ## 配置订阅额度(可选,v1.1.0)
95
95
 
96
+ **最省事的方式**:插件设置页里有「额度凭据」折叠卡。它默认收起,并会先识别你已经绑定了哪些服务商(DSH 凭据或 Kimi 登录态),展开后优先列出这些,其余服务商收在「其他服务商」里;粘贴 Key 后点保存即可——值会写进 DSH 凭据存储(本机 `.credentials.yaml`,权限 0600),不写插件配置文件,也不用重启 DSH,保存后信息栏会立即重查一次。下面也保留环境变量的配置方式,适合不想在界面里填的人。
97
+
96
98
  信息栏按当前服务商自动选择三种口径之一(互斥,无需手动切换):**余额制**(DeepSeek 等)显示官方接口的真实余额,**订阅制**(Codex、OpenCode、小米 Token Plan、Command Code、MiniMax、智谱、阿里 Token Plan、Kimi For Coding)显示各额度窗口剩余额度与重置倒计时,**云账单制**(Together、Fireworks 等)显示官方账单的本月真实花费。订阅额度数据源:
97
99
 
98
100
  - **Codex / ChatGPT**:信息栏**只读** `~/.codex/auth.json` 中的登录令牌,解析真实套餐与到期信息;token 仅在本机内存中使用,不落盘、不记录、不续期、不写回。令牌的**绑定 / 续期**由独立插件 [**dsh-chatgpt-sub**](https://github.com/songoao25/dsh-chatgpt-sub)(独立仓库)负责——安装并绑定后,本信息栏即可显示订阅信息;令牌缺失时信息栏显示「未绑定」引导,相关字段缺失时只保留服务商和模型。
@@ -100,7 +102,7 @@ dsh --profile web --dump-config | grep -A2 dsh-bottom-info-bar
100
102
  - **阿里 Token Plan(百炼,中国站 / 国际站)**:额度接口不认推理套餐 Key(`sk-sp-…` 只能推理),要另配阿里云 AccessKey——`ALIBABA_CLOUD_ACCESS_KEY_ID` 与 `ALIBABA_CLOUD_ACCESS_KEY_SECRET`(RAM 用户即可),配置给 DSH 凭据或设为同名环境变量(插件先读 DSH 凭据,再读环境变量)。最小权限:系统策略 `AliyunTokenPlanReadOnlyAccess` 覆盖官方 OpenAPI `GetSubscriptionStats`;官方 CLI 同款的控制台链路还要给该 RAM 用户一个自定义策略,授予 `modelstudio:GenerateCLIAccessToken`。两条链路都只读、不读浏览器 Cookie;未配置、权限不足或未订阅时信息栏给明确提示并保留上一份额度,不显示 0%。
101
103
  - **Kimi For Coding**:配订阅专属 API Key `KIMI_API_KEY`(DSH 里 kimi-coding 的凭据名;回退 `KIMI_CODING_API_KEY` / `MOONSHOT_API_KEY`),配置给 DSH 凭据或设为同名环境变量;信息栏用 Bearer 调 `GET https://api.kimi.com/coding/v1/usages`,国内站不通时自动试国际站 `https://api.kimi.ai/coding/v1/usages`,显示 5 小时与周窗口。这个端点没有官方公开文档,可能随上游变化;读不到时保留上一份额度。
102
104
 
103
- 最小配置示例(示例值换成自己的凭据,别提交到仓库):
105
+ 不习惯在设置页填的话,也可以用同名环境变量(示例值换成自己的凭据,别提交到仓库):
104
106
 
105
107
  ```bash
106
108
  export ALIBABA_CLOUD_ACCESS_KEY_ID="<your-access-key-id>"