dsh-bottom-info-bar 1.24.2 → 1.24.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.
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). 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.
64
+ API keys go in DSH under **Settings → Models**; subscriptions (Codex, OpenCode, Xiaomi Token Plan, Command Code, MiniMax, Zhipu GLM, Kimi For Coding) read the local sign-in or the model key already configured in DSH (MiniMax's needs to be a Subscription Key). Unused plans never show up, and nothing needs to be typed on the plugin page. The one exception is Alibaba Token Plan (China and international sites): the inference plan key cannot read quota, so set an Alibaba Cloud AccessKey (`ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET`, a RAM user is enough) under **Quota credentials** in the plugin settings (collapsed by default), 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 用户即可)。这两类和 Kimi 的凭据都可以直接在**插件设置页的「额度凭据」**里填,也可以填在 DSH 凭据或同名环境变量里。列表里没有的服务商只会显示未适配提示,绝不借用别家的数据。
64
+ API 密钥填在 DSH 的**设置 → 模型**;订阅类(Codex、OpenCode、小米 Token Plan、Command Code、MiniMax、智谱、Kimi For Coding)读本机登录或 DSH 里配的推理 Key 直接查额度(MiniMax 那把需是 Subscription Key),不在用的套餐不会出现在信息栏,也不用再在插件页填任何东西。只有阿里 Token Plan(中国站/国际站)例外:推理套餐 Key 读不到额度,要另配阿里云 AccessKey——`ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET`(RAM 用户即可),在**插件设置页的「额度凭据」**里填(默认折叠),也可以填在 DSH 凭据或同名环境变量里。列表里没有的服务商只会显示未适配提示,绝不借用别家的数据。
65
65
 
66
66
  ## 花费与更新
67
67
 
package/docs/DETAIL.md CHANGED
@@ -1,7 +1,11 @@
1
- - Provider, model, real balance or subscription quota, and this session's spend, on one line under the composer
2
- - Picks balance, subscription quota, or cloud bill per provider automatically, with no manual switching
1
+ **Features**
2
+
3
+ - Provider, model, balance or quota, and session spend on one line under the composer
4
+ - Picks balance, subscription quota, or cloud bill per provider automatically
3
5
  - Tracks spend for this session, today, the last 30 days, and all time; figures stay on this machine
4
6
  - Click a field to switch between the full and compact layouts
5
- - Quota credentials for supported providers (Alibaba AccessKey, Kimi/MiniMax/Xiaomi/Zhipu/Command Code and more) can be entered right in the plugin settings page under "Quota credentials", no environment variables required
7
+ - Only Alibaba needs its own read-only AccessKey — enter it under "Quota credentials" in the plugin settings (collapsed by default); all other providers reuse the model keys from DSH Settings → Models
8
+
9
+ **Announcement**: v1.24.1 may crash on update; updating to 1.24.2 or newer fixes it.
6
10
 
7
11
  Setup and troubleshooting: [install guide](https://github.com/songoao25/dsh-bottom-info-bar/blob/main/docs/INSTALL.md).
@@ -1,7 +1,11 @@
1
- - 輸入框下方一行顯示服務商與模型、真實餘額或訂閱額度,以及本工作階段已花費的金額
2
- - 依服務商自動選擇餘額、訂閱額度或雲端帳單口徑,不用手動切換
1
+ **功能**
2
+
3
+ - 輸入框下方一行顯示服務商與模型、餘額或額度,以及本工作階段已花費的金額
4
+ - 依服務商自動選擇餘額、訂閱額度或雲端帳單口徑
3
5
  - 花費分本工作階段、今天、近 30 天和累計四檔,資料只保存在本機
4
6
  - 點擊資訊欄中的欄位,在完整和簡潔兩種顯示之間切換
5
- - 已適配服務商的額度憑證(阿里 AccessKey、Kimi/MiniMax/小米/智譜/Command Code 等)可在外掛設定頁「額度憑證」裡直接填,不用改環境變數
7
+ - 只有阿里需要單獨的唯讀 AccessKey——在外掛設定頁「額度憑證」(預設摺疊)裡填;其餘服務商自動重用「設定 → 模型」裡的推理 Key,沒在用的套餐不顯示
8
+
9
+ **公告**:1.24.1 更新後可能崩潰,更新到 1.24.2 或更高版本即可恢復。
6
10
 
7
11
  設定與排障見 [安裝文件](https://github.com/songoao25/dsh-bottom-info-bar/blob/main/docs/INSTALL.md)。
package/docs/DETAIL.zh.md CHANGED
@@ -1,7 +1,11 @@
1
- - 输入框下方一行显示服务商与模型、真实余额或订阅额度,以及本会话已花费的金额
2
- - 按服务商自动选择余额、订阅额度或云账单口径,不用手动切换
1
+ **功能**
2
+
3
+ - 输入框下方一行显示服务商与模型、余额或额度,以及本会话已花费的金额
4
+ - 按服务商自动选择余额、订阅额度或云账单口径
3
5
  - 花费分本会话、今天、近 30 天和累计四档,数据只保存在本机
4
6
  - 点击信息栏中的字段,在完整和简洁两种显示之间切换
5
- - 已适配服务商的额度凭据(阿里 AccessKey、Kimi/MiniMax/小米/智谱/Command Code 等)可在插件设置页「额度凭据」里直接填,不用改环境变量
7
+ - 只有阿里需要单独的只读 AccessKey——在插件设置页「额度凭据」(默认折叠)里填;其余服务商自动复用「设置 → 模型」里的推理 Key,没在用的套餐不显示
8
+
9
+ **公告**:1.24.1 更新后可能崩溃,更新到 1.24.2 或更高版本即可恢复。
6
10
 
7
11
  设置与排障见 [安装文档](https://github.com/songoao25/dsh-bottom-info-bar/blob/main/docs/INSTALL.md)。
package/docs/INSTALL.md CHANGED
@@ -93,7 +93,7 @@ dsh --profile web --dump-config | grep -A2 dsh-bottom-info-bar
93
93
 
94
94
  ## 配置订阅额度(可选,v1.1.0)
95
95
 
96
- **最省事的方式**:插件设置页里新增了「额度凭据」区(阿里云 AccessKey ID / AccessKey Secret、Kimi API Key 三个输入框),粘贴后点保存即可——值会写进 DSH 凭据存储(本机 `.credentials.yaml`,权限 0600),不写插件配置文件,也不用重启 DSH,保存后信息栏会立即重查一次。下面也保留环境变量的配置方式,适合不想在界面里填的人。
96
+ **最省事的方式**:插件设置页里有「额度凭据」区(默认折叠),只收录需要单独额度凭据的服务商——目前只有阿里云(Token Plan 的额度接口不认推理套餐 Key):阿里云 AccessKey ID / Secret。其余服务商直接复用 DSH「设置 → 模型」里配的推理 Key,不用在插件页重复填写,也没在用的套餐不会出现在信息栏;切换过去时信息栏会提示去哪里配。要填阿里的话粘贴后点保存即可——值会写进 DSH 凭据存储(本机 `.credentials.yaml`,权限 0600),不写插件配置文件,也不用重启 DSH,保存后信息栏会立即重查一次。下面也保留环境变量的配置方式,适合不想在界面里填的人。
97
97
 
98
98
  信息栏按当前服务商自动选择三种口径之一(互斥,无需手动切换):**余额制**(DeepSeek 等)显示官方接口的真实余额,**订阅制**(Codex、OpenCode、小米 Token Plan、Command Code、MiniMax、智谱、阿里 Token Plan、Kimi For Coding)显示各额度窗口剩余额度与重置倒计时,**云账单制**(Together、Fireworks 等)显示官方账单的本月真实花费。订阅额度数据源:
99
99