deepseek-harness-cost 1.4.0 → 1.4.1
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 +46 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,13 +18,43 @@ A chat that used both providers shows both currencies side by side instead of
|
|
|
18
18
|
converting one into the other. A chat on a provider with no price card shows no
|
|
19
19
|
money and reports the excluded requests in the panel.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
<sub>Sample values. The pill reads, left to right: allowance windows, then one
|
|
24
|
+
cost reading per currency the chat used.</sub>
|
|
25
|
+
|
|
26
|
+
## Install with your AI
|
|
27
|
+
|
|
28
|
+
Copy the prompt below into Claude, Codex, Cursor, or any agent that can run
|
|
29
|
+
commands on this machine. It installs the plugin into the DeepSeek Harness
|
|
30
|
+
profile the agent finds running, then checks that it loaded.
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
Install the DeepSeek Harness plugin "deepseek-harness-cost" into the DSH profile that
|
|
34
|
+
is running on this machine, then verify it.
|
|
35
|
+
|
|
36
|
+
1. Find the running DeepSeek Harness profile: Desktop keeps profiles under
|
|
37
|
+
~/.dsh/profiles/ (use the one the running app uses), and a CLI install reports it
|
|
38
|
+
with `dsh plugin --profile <profile> ...`. Do not create or switch profiles.
|
|
39
|
+
2. Install through the supported path, in this order:
|
|
40
|
+
a. GUI: Plugins -> Add plugin -> deepseek-harness-cost
|
|
41
|
+
b. CLI: dsh plugin --profile <profile> add deepseek-harness-cost
|
|
42
|
+
c. If the dsh command is not available (Desktop app), install inside the profile
|
|
43
|
+
directory with pnpm: `pnpm add deepseek-harness-cost`, then add
|
|
44
|
+
"deepseek-harness-cost" to dsh.profile.bundles in that profile's package.json.
|
|
45
|
+
3. Do not edit the plugin's files, do not touch other plugins, and do not modify any
|
|
46
|
+
Session data.
|
|
47
|
+
4. Verify: the Plugins page lists deepseek-harness-cost with a "chat-cost" row, and
|
|
48
|
+
after reloading the page a cost pill appears under the chat composer showing the
|
|
49
|
+
chat cost and rate per 1K tokens.
|
|
50
|
+
5. If this machine uses OpenCode Go, check that an OPENCODE_GO_API_KEY credential
|
|
51
|
+
exists in the Harness credential store. Without it the cost still shows; the
|
|
52
|
+
allowance section reports a missing key.
|
|
53
|
+
Report what you changed and which version is installed. If any step is not possible
|
|
54
|
+
on this machine, stop and say which step and why instead of working around it by hand.
|
|
23
55
|
```
|
|
24
56
|
|
|
25
|
-
|
|
26
|
-
output tokens, the cache-hit rate, the peak/off-peak split, a per-model
|
|
27
|
-
breakdown, and the allowance detail.
|
|
57
|
+
Prefer to do it yourself? The two commands are in [Install](#install) below.
|
|
28
58
|
|
|
29
59
|
## Why this one
|
|
30
60
|
|
|
@@ -43,6 +73,17 @@ breakdown, and the allowance detail.
|
|
|
43
73
|
- **No dependencies, no build step.** Plain ESM; the browser half borrows React
|
|
44
74
|
from the Host module table.
|
|
45
75
|
|
|
76
|
+
## What you see
|
|
77
|
+
|
|
78
|
+
Click the pill for the full reading: requests, uncached/cached/cache-write input
|
|
79
|
+
and output tokens, the cache-hit rate, the peak/off-peak split, a per-model
|
|
80
|
+
breakdown, and the allowance detail.
|
|
81
|
+
|
|
82
|
+

|
|
83
|
+
|
|
84
|
+
<sub>Sample values. The allowance section only appears for a chat that used
|
|
85
|
+
OpenCode Go; the currency sections appear for every provider the chat billed.</sub>
|
|
86
|
+
|
|
46
87
|
## Install
|
|
47
88
|
|
|
48
89
|
DeepSeek Harness Desktop or Web, with the plugin manager available.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepseek-harness-cost",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Chat cost meter for DeepSeek Harness: shows what the open chat cost in the currency its provider bills in — CNY on the DeepSeek platform, USD plus the OpenCode Go subscription allowance — with the realized rate per 1K tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|