dsh-bottom-info-bar 1.24.3 → 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 +1 -1
- package/README.zh-CN.md +1 -1
- package/docs/DETAIL.md +5 -5
- package/docs/DETAIL.zh-Hant.md +4 -4
- package/docs/DETAIL.zh.md +4 -4
- package/docs/INSTALL.md +1 -1
- package/lib/client.js +413 -247
- package/lib/constants.js +36 -31
- package/lib/index.js +98 -22
- package/lib/locales.js +143 -247
- package/package.json +5 -1
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
|

|
|
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
|
|
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
|

|
|
63
63
|
|
|
64
|
-
密钥填在 DSH 的**设置 → 模型**;订阅类(Codex、OpenCode、小米 Token Plan、Command Code、MiniMax、智谱、Kimi For Coding
|
|
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,11 +1,11 @@
|
|
|
1
1
|
**Features**
|
|
2
2
|
|
|
3
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
|
|
5
|
-
- Tracks spend for this session, today, the last 30 days, and all time
|
|
6
|
-
- Click a field to switch between full and compact layouts
|
|
7
|
-
-
|
|
4
|
+
- Picks balance, subscription quota, or cloud bill per provider automatically
|
|
5
|
+
- Tracks spend for this session, today, the last 30 days, and all time; figures stay on this machine
|
|
6
|
+
- Click a field to switch between the full and compact layouts
|
|
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
8
|
|
|
9
|
-
**Announcement**: v1.24.1 may crash on update
|
|
9
|
+
**Announcement**: v1.24.1 may crash on update; updating to 1.24.2 or newer fixes it.
|
|
10
10
|
|
|
11
11
|
Setup and troubleshooting: [install guide](https://github.com/songoao25/dsh-bottom-info-bar/blob/main/docs/INSTALL.md).
|
package/docs/DETAIL.zh-Hant.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
**功能**
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
-
|
|
3
|
+
- 輸入框下方一行顯示服務商與模型、餘額或額度,以及本工作階段已花費的金額
|
|
4
|
+
- 依服務商自動選擇餘額、訂閱額度或雲端帳單口徑
|
|
5
5
|
- 花費分本工作階段、今天、近 30 天和累計四檔,資料只保存在本機
|
|
6
6
|
- 點擊資訊欄中的欄位,在完整和簡潔兩種顯示之間切換
|
|
7
|
-
-
|
|
7
|
+
- 只有阿里需要單獨的唯讀 AccessKey——在外掛設定頁「額度憑證」(預設摺疊)裡填;其餘服務商自動重用「設定 → 模型」裡的推理 Key,沒在用的套餐不顯示
|
|
8
8
|
|
|
9
|
-
**公告**:1.24.1
|
|
9
|
+
**公告**:1.24.1 更新後可能崩潰,更新到 1.24.2 或更高版本即可恢復。
|
|
10
10
|
|
|
11
11
|
設定與排障見 [安裝文件](https://github.com/songoao25/dsh-bottom-info-bar/blob/main/docs/INSTALL.md)。
|
package/docs/DETAIL.zh.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
**功能**
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
-
|
|
3
|
+
- 输入框下方一行显示服务商与模型、余额或额度,以及本会话已花费的金额
|
|
4
|
+
- 按服务商自动选择余额、订阅额度或云账单口径
|
|
5
5
|
- 花费分本会话、今天、近 30 天和累计四档,数据只保存在本机
|
|
6
6
|
- 点击信息栏中的字段,在完整和简洁两种显示之间切换
|
|
7
|
-
-
|
|
7
|
+
- 只有阿里需要单独的只读 AccessKey——在插件设置页「额度凭据」(默认折叠)里填;其余服务商自动复用「设置 → 模型」里的推理 Key,没在用的套餐不显示
|
|
8
8
|
|
|
9
|
-
**公告**:1.24.1
|
|
9
|
+
**公告**:1.24.1 更新后可能崩溃,更新到 1.24.2 或更高版本即可恢复。
|
|
10
10
|
|
|
11
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
|
-
|
|
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
|
|