@pinkbanana/dsh-balance 0.10.0 → 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 +6 -0
- package/README_EN.md +6 -0
- package/docs/dsh-usage-tabs.jpg +0 -0
- package/lib/client.js +426 -145
- package/lib/client.js.map +1 -1
- package/lib/index.js +26 -14
- package/lib/index.js.map +1 -1
- package/lib/types/billing.d.ts +5 -0
- package/lib/types/client/BillingDetails.d.ts +23 -0
- package/lib/types/client/locales.d.ts +19 -0
- package/lib/types/client/styles.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,12 @@ pnpm pack
|
|
|
39
39
|
|
|
40
40
|
消费统计通过新版只读会话句柄读取,以 `inheritedEventCount` 排除分叉继承的记录;会话页在 token 用量变化或一轮运行结束后刷新;统计页面每 15 秒检查更新,重新聚焦或返回页面时刷新,隐藏页面暂停查询。兼容 `assistant/message` 和重试/取消请求的 `assistant/attempt`,读取最后一条 stream usage,并以重试边界区分独立请求,同一次请求的重复结算仅计一次。
|
|
41
41
|
|
|
42
|
+
全局统计会跳过当前 dsh 无法读取的旧格式或损坏会话,并显示未纳入统计的会话数量;其余会话仍正常统计。部分读取结果不缓存,下次刷新会重试。单个会话无法读取或所有会话都读取失败时,仍明确显示读取错误,不将失败记录当作零消费。
|
|
43
|
+
|
|
44
|
+
分类明细采用带数量的 Tab 面板,在模型、提供方、会话和日期之间切换;窄屏自动改用主题化选择器。每页默认 10 条,可选择 5 / 10 / 20 条。会话消费页分别查看模型汇总与请求明细,请求支持模型筛选。长名称省略显示,悬停保留完整名称。
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
42
48
|
## 安装
|
|
43
49
|
|
|
44
50
|
```bash
|
package/README_EN.md
CHANGED
|
@@ -37,6 +37,12 @@ pnpm pack
|
|
|
37
37
|
|
|
38
38
|
Usage reads the current read-only session handles and excludes fork-inherited events using `inheritedEventCount`. The conversation tab refreshes when token usage changes or a turn finishes.
|
|
39
39
|
|
|
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
|
+
|
|
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
|
+
|
|
40
46
|
## Install
|
|
41
47
|
|
|
42
48
|
```bash
|
|
Binary file
|