balance-dsh 2.1.5 → 2.1.7

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.
Files changed (3) hide show
  1. package/lib/client.js +735 -252
  2. package/lib/index.js +2 -2
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1068,7 +1068,7 @@ function formatBalance(balance) {
1068
1068
  // | { status:"failed" } (网络失败;官方明确“失败绝不变成 0 余额”)
1069
1069
  // client 是 AccountClientMetadata(version / locale / timezoneOffsetSeconds),
1070
1070
  // 缺字段会在平台侧组装请求头时抛错,所以三个字段都要给。
1071
- const PLUGIN_VERSION = "2.1.5";
1071
+ const PLUGIN_VERSION = "2.1.7";
1072
1072
 
1073
1073
  /** 斜杠命令名(2026-10-31 定案:用带作者后缀的全名,避免和别的余额插件撞车,也不设备用名)。
1074
1074
  * ⚠️ DSH 的 COMMAND_NAME = /^[a-z][a-z0-9_-]*$/u —— **只允许小写**。
@@ -2052,7 +2052,7 @@ const DEFAULT_SETTINGS = {
2052
2052
  apiKey: "", // 官方账号未登录时的回退凭据
2053
2053
  // 显示
2054
2054
  showBalanceRow: true, // 展开态侧栏底部的余额行
2055
- showUsagePill: true, // 输入框下方「本会话消耗」胶囊
2055
+ showUsagePill: true, // 对话界面右下角的小浮窗(本会话消耗 + 今日消耗)
2056
2056
  showPeriodLabel: true, // 高峰/空闲标签
2057
2057
  showFab: true, // 收起态悬浮圆钮
2058
2058
  // 2.0.0:余额行外观。classic = 早期那版「钱包图标 + 余额 + 金额」纯文字行;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balance-dsh",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "在 DeepSeek Harness 中显示 DeepSeek 账户余额和当前会话 token/费用消耗(含高峰/空闲峰谷计费)。仅支持 DeepSeek 官方模型与账号,暂不支持其他大模型。",
5
5
  "author": "Rannist",
6
6
  "type": "module",