dsh-bottom-info-bar 1.24.1 → 1.24.3
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/docs/DETAIL.md +9 -5
- package/docs/DETAIL.zh-Hant.md +5 -1
- package/docs/DETAIL.zh.md +5 -1
- package/docs/INSTALL.md +1 -1
- package/lib/client.js +34 -85
- package/lib/constants.js +0 -3
- package/lib/index.js +15 -42
- package/lib/locales.js +0 -65
- package/package.json +1 -1
package/docs/DETAIL.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
-
|
|
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, with no manual switching
|
|
5
|
+
- Tracks spend for this session, today, the last 30 days, and all time, stored on this machine
|
|
6
|
+
- Click a field to switch between full and compact layouts
|
|
7
|
+
- Quota credentials (Alibaba, Kimi, MiniMax, Xiaomi, Zhipu, Command Code and more) can be set right on the plugin settings page, no environment variables needed
|
|
8
|
+
|
|
9
|
+
**Announcement**: v1.24.1 may crash on update. Affected? Just tell DSH: "update dsh-bottom-info-bar to 1.24.2" to reinstall it. Sorry for the trouble!
|
|
6
10
|
|
|
7
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,7 +1,11 @@
|
|
|
1
|
+
**功能**
|
|
2
|
+
|
|
1
3
|
- 輸入框下方一行顯示服務商與模型、真實餘額或訂閱額度,以及本工作階段已花費的金額
|
|
2
4
|
- 依服務商自動選擇餘額、訂閱額度或雲端帳單口徑,不用手動切換
|
|
3
5
|
- 花費分本工作階段、今天、近 30 天和累計四檔,資料只保存在本機
|
|
4
6
|
- 點擊資訊欄中的欄位,在完整和簡潔兩種顯示之間切換
|
|
5
|
-
- 已適配服務商的額度憑證(阿里 AccessKey、Kimi/MiniMax/小米/智譜/Command Code
|
|
7
|
+
- 已適配服務商的額度憑證(阿里 AccessKey、Kimi/MiniMax/小米/智譜/Command Code 等)可在外掛設定頁「額度憑證」裡直接填,不用改環境變數
|
|
8
|
+
|
|
9
|
+
**公告**:1.24.1 更新後可能崩潰。外掛出問題時,對 DSH 說一句「把 dsh-bottom-info-bar 更新到 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
3
|
- 输入框下方一行显示服务商与模型、真实余额或订阅额度,以及本会话已花费的金额
|
|
2
4
|
- 按服务商自动选择余额、订阅额度或云账单口径,不用手动切换
|
|
3
5
|
- 花费分本会话、今天、近 30 天和累计四档,数据只保存在本机
|
|
4
6
|
- 点击信息栏中的字段,在完整和简洁两种显示之间切换
|
|
5
|
-
- 已适配服务商的额度凭据(阿里 AccessKey、Kimi/MiniMax/小米/智谱/Command Code
|
|
7
|
+
- 已适配服务商的额度凭据(阿里 AccessKey、Kimi/MiniMax/小米/智谱/Command Code 等)可在插件设置页「额度凭据」里直接填,不用改环境变量
|
|
8
|
+
|
|
9
|
+
**公告**:1.24.1 更新后可能崩溃。插件出问题时,对 DSH 说一句「把 dsh-bottom-info-bar 更新到 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
|
-
|
|
96
|
+
**最省事的方式**:插件设置页里新增了「额度凭据」区(阿里云 AccessKey ID / AccessKey Secret、Kimi API 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
|
|