dsh-bottom-cost 0.5.1 → 0.5.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 +10 -0
- package/README.md +5 -1
- package/README.zh.md +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
本插件的所有显著变更。版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/);
|
|
4
4
|
投影状态的形状变化会体现为 `stateVersion` 递增(旧检查点会自动作废并重放,不需要你手工清理)。
|
|
5
5
|
|
|
6
|
+
## [0.5.2] - 2026-10-14
|
|
7
|
+
|
|
8
|
+
### 文档
|
|
9
|
+
|
|
10
|
+
- **安装方式改为「输入包名 `dsh-bottom-cost`」优先**,仓库地址作为 `dsh web` 上的备选写在同一条里(它要经 codeload 下载 tarball,网络抖动会失败)。包名这条路到处都能用,**包括官方桌面客户端——它只支持 npm 源**。
|
|
11
|
+
- 新增一句「**更新是显式的**」:安装会钉住精确版本(profile 里写成 `"dsh-bottom-cost": "0.5.1"` 这种),新版本要你在插件管理里点**更新**才生效。
|
|
12
|
+
|
|
13
|
+
(纯文档改动;之所以要单独发一个版本,是因为**已经发布的 npm 版本不可覆盖**,npm 页面上的 README 只会随新版本更新。)
|
|
14
|
+
|
|
6
15
|
## [0.5.1] - 2026-10-13
|
|
7
16
|
|
|
8
17
|
### 修复
|
|
@@ -111,6 +120,7 @@
|
|
|
111
120
|
每次调用按**发生时刻**的档位计费。
|
|
112
121
|
- 非 DeepSeek 官方路由一律「未计价」并统计次数,不假装是 0 元。
|
|
113
122
|
|
|
123
|
+
[0.5.2]: https://github.com/LanFeng97/dsh-bottom-cost/releases/tag/v0.5.2
|
|
114
124
|
[0.5.1]: https://github.com/LanFeng97/dsh-bottom-cost/releases/tag/v0.5.1
|
|
115
125
|
[0.5.0]: https://github.com/LanFeng97/dsh-bottom-cost/releases/tag/v0.5.0
|
|
116
126
|
[0.4.0]: https://github.com/LanFeng97/dsh-bottom-cost/releases/tag/v0.4.0
|
package/README.md
CHANGED
|
@@ -11,11 +11,15 @@ A **session cost** chip for [DeepSeek Harness](https://github.com/deepseek-ai/de
|
|
|
11
11
|
### Option 1 — install it from the DSH UI (simplest)
|
|
12
12
|
|
|
13
13
|
1. Open **插件 → 添加插件** (Plugins → Add plugin) in the sidebar;
|
|
14
|
-
2.
|
|
14
|
+
2. Type either one:
|
|
15
|
+
- the package name **`dsh-bottom-cost`** — works everywhere, including the official desktop client (which can only install npm sources), or
|
|
16
|
+
- the repository URL `https://github.com/LanFeng97/dsh-bottom-cost` — works on `dsh web`; the market resolves it to a tarball from codeload, so a flaky network can fail it;
|
|
15
17
|
3. Click **安装** (Install), then **restart DeepSeek Harness** as its banner tells you to (close the running `dsh` process and start it again, e.g. `dsh web`).
|
|
16
18
|
|
|
17
19
|
The host half is a Node module, so **a config reload alone will not import it** — that restart is not optional. Once restarted, open the UI and the chip is there; no page refresh needed.
|
|
18
20
|
|
|
21
|
+
**Updating later is explicit.** An installation pins the exact version (the profile ends up with `"dsh-bottom-cost": "0.5.1"`), so a new release reaches you when you press **更新** (Update) in the plugin manager — nothing changes under you in between.
|
|
22
|
+
|
|
19
23
|
### Option 2 — let your AI install it
|
|
20
24
|
|
|
21
25
|
Paste this whole block into any AI that can read and write your machine (an agent inside DSH, Claude Code, Codex — anything):
|
package/README.zh.md
CHANGED
|
@@ -11,11 +11,15 @@
|
|
|
11
11
|
### 方式一:在 DSH 界面里装(最简单)
|
|
12
12
|
|
|
13
13
|
1. 侧栏打开**插件 → 添加插件**;
|
|
14
|
-
2.
|
|
14
|
+
2. 二选一填进去:
|
|
15
|
+
- 包名 **`dsh-bottom-cost`** —— 到处都能装,**包括官方桌面客户端**(它只支持 npm 源);
|
|
16
|
+
- 仓库地址 `https://github.com/LanFeng97/dsh-bottom-cost` —— 在 `dsh web` 上可用;它要经 codeload 下载 tarball,网络抖动会失败;
|
|
15
17
|
3. 点**安装**,再按它的提示**重启 DeepSeek Harness**(关闭当前 `dsh` 进程后重新运行,例如 `dsh web`)。
|
|
16
18
|
|
|
17
19
|
宿主半区是 Node 模块,**只重载配置不会被导入**,所以这一步重启不能省。重启后打开界面就能看到胶囊,不需要再刷新页面。
|
|
18
20
|
|
|
21
|
+
**以后的更新是显式的。** 安装会钉住精确版本(profile 里会写成 `"dsh-bottom-cost": "0.5.1"`),所以新版本要你在插件管理里点**更新**才会生效——它不会在你不知情的时候自己变。
|
|
22
|
+
|
|
19
23
|
### 方式二:让你的 AI 帮你装
|
|
20
24
|
|
|
21
25
|
把下面这一整段复制给任意一个能读写你电脑的 AI(DSH 里的 agent、Claude Code、Codex 都行),它会自己完成克隆与安装:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-bottom-cost",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Per-turn session cost chip in the composer stats row: each turn's spend, with the conversation total split into cache-hit and cache-miss (CNY), priced from an official price table that refreshes on demand. · 输入框下方统计栏里的会话费用胶囊:逐轮列出每轮花费,并把总额拆成缓存命中与未命中两笔(CNY);价目表按需从官方定价页刷新。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "LanFeng97",
|