dsh-token-bill 2.0.1 → 2.0.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/CHANGELOG.md +8 -0
- package/README.en.md +20 -9
- package/README.md +21 -10
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.2 — 2026-11-08
|
|
4
|
+
|
|
5
|
+
Documentation only; the plugin code is unchanged.
|
|
6
|
+
|
|
7
|
+
- Install by name: DeepSeek Harness → Plugins → Add plugin → `dsh-token-bill`, now that the package is on npm (and updates in one click). `github:leecisen/dsh-token-bill` and the offline ZIP stay as alternatives.
|
|
8
|
+
- README: npm / license / DeepSeek Harness version badges, a one-line install at the top, and upgrade notes per older version.
|
|
9
|
+
- More npm keywords for search.
|
|
10
|
+
|
|
3
11
|
## 2.0.1 — 2026-11-07
|
|
4
12
|
|
|
5
13
|
### Changed
|
package/README.en.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# dsh-token-bill · Conversation cost
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-token-bill)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
6
|
+
|
|
3
7
|
[中文](README.md)
|
|
4
8
|
|
|
5
|
-
A [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin that estimates **what every conversation costs**.
|
|
9
|
+
A [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin that estimates **what every conversation costs**. For anyone using the DeepSeek API or account quota who wants to know what each conversation costs and which hours are cheaper.
|
|
10
|
+
|
|
11
|
+
**Install**: DeepSeek Harness → **Plugins** → **Add plugin**, enter `dsh-token-bill`. ([details](#install))
|
|
6
12
|
|
|
7
13
|
- **Under the composer**: the session's estimated cost sits left of the context ring; click it for a breakdown.
|
|
8
14
|
- **In the sidebar**: every conversation shows its cost next to its time, without opening it.
|
|
@@ -43,25 +49,30 @@ What the panel shows:
|
|
|
43
49
|
|
|
44
50
|
Requires DeepSeek Harness **0.2.2-rc.1 or newer**.
|
|
45
51
|
|
|
46
|
-
### From
|
|
52
|
+
### From the Plugins page (recommended)
|
|
47
53
|
|
|
48
54
|
DeepSeek Harness sidebar → **Plugins** → **Add plugin**, then enter:
|
|
49
55
|
|
|
50
56
|
```text
|
|
51
|
-
|
|
57
|
+
dsh-token-bill
|
|
52
58
|
```
|
|
53
59
|
|
|
54
|
-
|
|
60
|
+
Click **Install**, then **Enable now**. The plugin is published on [npm](https://www.npmjs.com/package/dsh-token-bill), so new versions can be updated in one click on the Plugins page.
|
|
61
|
+
|
|
62
|
+
From the command line: `dsh plugin add dsh-token-bill` (add `--profile <your profile>` if you need one).
|
|
55
63
|
|
|
56
|
-
>
|
|
64
|
+
> The China mirror (npmmirror) can take a while to pick up a new version. If you don't get the latest one, switch **Registry** in **Add plugin** to the official npm registry.
|
|
57
65
|
|
|
58
|
-
|
|
66
|
+
### Other ways to install
|
|
59
67
|
|
|
60
|
-
|
|
68
|
+
- **From GitHub**: enter `github:leecisen/dsh-token-bill` in **Add plugin** to install the repository's latest code. A plugin installed this way can't be updated in one click; uninstall and reinstall it to upgrade.
|
|
69
|
+
- **Offline**: download the source ZIP from [Releases](https://github.com/leecisen/dsh-token-bill/releases), extract it somewhere permanent, and enter that folder's **absolute path** in **Add plugin** (for example `D:\dsh-plugins\dsh-token-bill`).
|
|
61
70
|
|
|
62
|
-
|
|
71
|
+
### Upgrading from an older version
|
|
63
72
|
|
|
64
|
-
|
|
73
|
+
- **v1 (`@local/token-cost`)**: v2 is a separate package (package `dsh-token-bill`, row id `dsh-token-bill`) and does not clash with v1. Install and enable v2, then turn off or remove `@local/token-cost` on the **Plugins** page. v1's `inputPrice` / `cacheHitPrice` / `outputPrice` fields still work as the fallback price for models without one.
|
|
74
|
+
- **2.0.0 (then named `dsh-token-cost`)**: uninstall it on the **Plugins** page first, then install as above. Note that the npm package named `dsh-token-cost` is **someone else's plugin**, not an older version of this one.
|
|
75
|
+
- **2.0.1 installed through `github:`**: uninstall it and reinstall by entering `dsh-token-bill` to get one-click updates.
|
|
65
76
|
|
|
66
77
|
## Configuration
|
|
67
78
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# dsh-token-bill · 对话费用
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-token-bill)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
6
|
+
|
|
3
7
|
[English](README.en.md)
|
|
4
8
|
|
|
5
|
-
[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
|
|
9
|
+
[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 插件:估算**每个对话花了多少钱**。适合用 DeepSeek API 或账号额度的用户——想知道每个对话花了多少、哪些时段用更省。
|
|
10
|
+
|
|
11
|
+
**安装**:DeepSeek Harness → **插件** → **添加插件**,输入 `dsh-token-bill`。([详细说明](#安装))
|
|
6
12
|
|
|
7
13
|
- **输入框下方**:上下文圆环左边显示本会话的估算费用,点一下展开明细。
|
|
8
14
|
- **侧边栏**:会话列表里,每个对话的时间旁边直接显示它的费用,不用点进去。
|
|
@@ -43,25 +49,30 @@
|
|
|
43
49
|
|
|
44
50
|
需要 DeepSeek Harness **0.2.2-rc.1 或更新版本**。
|
|
45
51
|
|
|
46
|
-
###
|
|
52
|
+
### 在插件页面安装(推荐)
|
|
47
53
|
|
|
48
|
-
DeepSeek Harness 侧边栏 → **插件** →
|
|
54
|
+
DeepSeek Harness 侧边栏 → **插件** → **添加插件**,输入:
|
|
49
55
|
|
|
50
56
|
```text
|
|
51
|
-
|
|
57
|
+
dsh-token-bill
|
|
52
58
|
```
|
|
53
59
|
|
|
54
|
-
|
|
60
|
+
点 **安装**,装好后点 **立即启用**。插件发布在 [npm](https://www.npmjs.com/package/dsh-token-bill) 上,以后出了新版本,可以直接在插件页面一键更新。
|
|
61
|
+
|
|
62
|
+
习惯用命令行的话,可以执行 `dsh plugin add dsh-token-bill`,需要时加上 `--profile <你的 profile 名>`。
|
|
55
63
|
|
|
56
|
-
>
|
|
64
|
+
> 国内镜像(npmmirror)同步新版本可能要等一会儿。如果装不到最新版,把「添加插件」里的 **安装源** 切换成 **npm 官方源**。
|
|
57
65
|
|
|
58
|
-
|
|
66
|
+
### 其他安装方式
|
|
59
67
|
|
|
60
|
-
|
|
68
|
+
- **从 GitHub 安装**:在「添加插件」里填 `github:leecisen/dsh-token-bill`,装的是仓库里最新的代码。这种方式装的插件没法在插件页面一键更新,升级时要先卸载再重新安装。
|
|
69
|
+
- **离线安装**:在 [Releases](https://github.com/leecisen/dsh-token-bill/releases) 下载源码 ZIP,解压到一个固定的文件夹,然后在「添加插件」里填这个文件夹的**完整路径**(例如 `D:\dsh-plugins\dsh-token-bill`)。
|
|
61
70
|
|
|
62
|
-
|
|
71
|
+
### 从旧版本升级
|
|
63
72
|
|
|
64
|
-
|
|
73
|
+
- **v1(`@local/token-cost`)**:新版是一个独立的包(包名 `dsh-token-bill`,行 id `dsh-token-bill`),和旧版互不冲突。装好并启用新版后,在 **插件** 页面关闭或卸载旧的 `@local/token-cost` 即可。旧版的 `inputPrice` / `cacheHitPrice` / `outputPrice` 配置仍然有效,会用作"没有价格的模型的兜底价格"。
|
|
74
|
+
- **2.0.0(当时叫 `dsh-token-cost`)**:先在 **插件** 页面卸载,再按上面的方法安装。注意:npm 上叫 `dsh-token-cost` 的包是**别人的另一个插件**,不是本插件的旧版本。
|
|
75
|
+
- **用 `github:` 地址装过 2.0.1 的**:卸载后改成输入 `dsh-token-bill` 重新安装,以后就能一键更新了。
|
|
65
76
|
|
|
66
77
|
## 配置
|
|
67
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-token-bill",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "DeepSeek Harness plugin: estimated cost of every conversation, with per-model and peak/off-peak DeepSeek pricing, a breakdown panel, and costs in the sidebar.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "leecisen",
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
"token",
|
|
23
23
|
"cost",
|
|
24
24
|
"pricing",
|
|
25
|
+
"billing",
|
|
26
|
+
"usage",
|
|
27
|
+
"cost-tracking",
|
|
25
28
|
"费用"
|
|
26
29
|
],
|
|
27
30
|
"main": "./index.js",
|