@pinkbanana/dsh-balance 0.10.1 → 0.10.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 +5 -1
- package/README_EN.md +5 -1
- 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 +36 -36
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ DeepSeek Harness 插件,用于查询 DeepSeek / StepFun API 余额、各提供
|
|
|
28
28
|
|
|
29
29
|
## 兼容性
|
|
30
30
|
|
|
31
|
-
0.10.
|
|
31
|
+
0.10.3 适配 DeepSeek Harness **0.2.1-rc.2**([上游版本](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.1-rc.2)),需要 Node.js **22.19+(22.x)或 24+**。所有 DSH peer 依赖和开发依赖均锁定为 `0.2.1-rc.2`。Harness `0.2.0-rc.2` 用户请继续使用插件 `0.10.2`;本次源码不再兼容 Harness 0.1 的接口。
|
|
32
32
|
|
|
33
33
|
也可在本地构建并打包源码,再用 `dsh plugin --profile web add /absolute/path/to/package.tgz` 安装生成的 `.tgz` 文件,随后重启 Harness:
|
|
34
34
|
|
|
@@ -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
|
@@ -26,7 +26,7 @@ The composer readout follows the current session’s provider and model. The Set
|
|
|
26
26
|
|
|
27
27
|
## Compatibility
|
|
28
28
|
|
|
29
|
-
Version 0.10.
|
|
29
|
+
Version 0.10.3 targets DeepSeek Harness **0.2.1-rc.2** ([upstream release](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.1-rc.2)). Use Node.js **22.19+ (22.x) or 24+**. All DSH peer and development dependencies are pinned to `0.2.1-rc.2`. Harness `0.2.0-rc.2` users should keep plugin `0.10.2`; Harness 0.1 APIs are no longer supported by this checkout.
|
|
30
30
|
|
|
31
31
|
To install from source, build and pack it locally, then pass the generated `.tgz` path to `dsh plugin --profile web add /absolute/path/to/package.tgz` and restart Harness:
|
|
32
32
|
|
|
@@ -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
|