@lls-a1/dsh-balance-float 1.2.1 → 1.2.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/README.md CHANGED
@@ -1,9 +1,26 @@
1
- # 余额悬浮窗(balance-float)
1
+ # DS API余额(balance-float)
2
2
 
3
3
  DSH Web UI 的悬浮小窗,实时显示 **API 余额、今日已用、每轮消耗和峰谷定价**。
4
4
 
5
5
  Host 半边在本地记账(按轮记 token 与费用、轮询余额),浏览器半边只读快照渲染,API Key 始终不出 Host 进程。
6
6
 
7
+ <p align="center">
8
+ <img src="docs/preview-pill.svg" alt="收起态:胶囊" width="335">
9
+ </p>
10
+
11
+ <table>
12
+ <tr>
13
+ <td align="center" width="50%">
14
+ <img src="docs/preview.svg" alt="展开态:峰价样式" width="300"><br>
15
+ <sub>峰价时段(红)</sub>
16
+ </td>
17
+ <td align="center" width="50%">
18
+ <img src="docs/preview-valley.svg" alt="展开态:谷价样式" width="300"><br>
19
+ <sub>谷价时段(绿)</sub>
20
+ </td>
21
+ </tr>
22
+ </table>
23
+
7
24
  ## 安装
8
25
 
9
26
  已发布到 npm,在插件管理里输入包名即可:
@@ -12,8 +29,6 @@ Host 半边在本地记账(按轮记 token 与费用、轮询余额),浏
12
29
  @lls-a1/dsh-balance-float
13
30
  ```
14
31
 
15
- 本地开发用 `link:/path/to/balance-float` 挂载,改完 `client.js` 刷新页面生效,改 `index.js` 需重载插件。
16
-
17
32
  ## 功能
18
33
 
19
34
  **余额与用量**
@@ -69,3 +84,5 @@ legacyFile: '' # 种子账本,默认 $DSH_HOME/.dshw-usage.json
69
84
  refreshSeconds: 20 # 余额轮询间隔
70
85
  apiKeyRef: DEEPSEEK_API_KEY
71
86
  ```
87
+
88
+ <a href="https://github.com/deepseek-ai/deepseek-harness"><img src="docs/dsh-badge.png" alt="powered by dsh" width="121" height="20"></a>
package/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Balance Float",
3
+ "title": "DS API Balance",
4
4
  "description": "Floating pill that reads the locally saved usage ledger and shows the API balance, today's spend and the current peak/off-peak pricing."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "余额悬浮窗",
3
+ "title": "DS API余额",
4
4
  "description": "悬浮小窗读取本地保存的用量账本,显示 API 余额、今日已用与当前峰谷定价。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls-a1/dsh-balance-float",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },