@pinkbanana/dsh-balance 0.10.1 → 0.10.2
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 +4 -0
- package/README_EN.md +4 -0
- package/docs/dsh-usage-tabs.jpg +0 -0
- package/lib/client.js +418 -145
- package/lib/client.js.map +1 -1
- package/lib/types/client/BillingDetails.d.ts +23 -0
- package/lib/types/client/locales.d.ts +18 -0
- package/lib/types/client/styles.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,6 +41,10 @@ pnpm pack
|
|
|
41
41
|
|
|
42
42
|
全局统计会跳过当前 dsh 无法读取的旧格式或损坏会话,并显示未纳入统计的会话数量;其余会话仍正常统计。部分读取结果不缓存,下次刷新会重试。单个会话无法读取或所有会话都读取失败时,仍明确显示读取错误,不将失败记录当作零消费。
|
|
43
43
|
|
|
44
|
+
分类明细采用带数量的 Tab 面板,在模型、提供方、会话和日期之间切换;窄屏自动改用主题化选择器。每页默认 10 条,可选择 5 / 10 / 20 条。会话消费页分别查看模型汇总与请求明细,请求支持模型筛选。长名称省略显示,悬停保留完整名称。
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
44
48
|
## 安装
|
|
45
49
|
|
|
46
50
|
```bash
|
package/README_EN.md
CHANGED
|
@@ -39,6 +39,10 @@ Usage reads the current read-only session handles and excludes fork-inherited ev
|
|
|
39
39
|
|
|
40
40
|
Global statistics skip sessions that the current dsh cannot read, such as unsupported historical formats or damaged logs, and show how many sessions were excluded. Partial results are retried on the next refresh without caching. An unreadable selected session, or a collection where every session fails to read, still reports an error instead of showing zero usage.
|
|
41
41
|
|
|
42
|
+
Usage breakdowns use counted tabs for models, providers, sessions, and dates, with a themed category selector on narrow screens. Lists default to 10 rows per page, with 5 / 10 / 20 options. The conversation page separates model summaries and requests, and requests can be filtered by model. Long names are truncated with their full value available on hover.
|
|
43
|
+
|
|
44
|
+

|
|
45
|
+
|
|
42
46
|
## Install
|
|
43
47
|
|
|
44
48
|
```bash
|
|
Binary file
|