dsh-dscost-tide 1.0.2 → 1.0.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/CHANGELOG.md +8 -2
- package/README.en.md +11 -9
- package/README.md +13 -11
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录 `dsh-dscost-tide` 的发布变更。版本号遵循 [SemVer](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## 1.0.3 — 2026-10-31
|
|
6
|
+
|
|
7
|
+
**变更**
|
|
8
|
+
|
|
9
|
+
- 文档脱敏:中英 README 的示意数据改为纯虚构值(并注明「与任何真实账户无关」),不再出现任何与真实账户余额、调用量、花费相关的数字。
|
|
10
|
+
|
|
5
11
|
## 1.0.2 — 2026-10-31
|
|
6
12
|
|
|
7
13
|
**变更**
|
|
8
14
|
|
|
9
|
-
- GitHub
|
|
15
|
+
- GitHub 用户名改为 `yuchilling`(与 npm 账号统一),仓库地址随之变为 <https://github.com/yuchilling/dsh-dscost-tide>。
|
|
10
16
|
- 包元数据里 `author`、`homepage`、`repository`、`bugs` 与 `publish.yml`、中英 README 里的仓库地址全部更新为 `yuchilling`;npm 包名不变(仍是 `dsh-dscost-tide`),安装命令不变。
|
|
11
17
|
|
|
12
18
|
## 1.0.1 — 2026-10-31
|
|
13
19
|
|
|
14
20
|
**修复**
|
|
15
21
|
|
|
16
|
-
- npm 包里的 README
|
|
22
|
+
- npm 包里的 README 安装命令写成了带 scope 的名字,而实际发布名是不带 scope 的 `dsh-dscost-tide`。本版本把中英 README、`publish.yml`、`CHANGELOG` 里的名字全部对齐为 `dsh plugin add dsh-dscost-tide`,并改由 GitHub Actions 发布,顺带验证 CI 发布链路。
|
|
17
23
|
|
|
18
24
|
## 1.0.0 — 2026-10-31
|
|
19
25
|
|
package/README.en.md
CHANGED
|
@@ -10,23 +10,25 @@ A two-row card in the sidebar footer, tinted red during peak hours and green off
|
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
● Peak 2h 30m to off-peak
|
|
13
|
-
¥
|
|
13
|
+
¥balance 14:32
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
The dashboard is split into four sections: a peak-phase hero, the pricing schedule (countdown, next switch, 24-hour strip), the account balance (total, topped-up wallet, granted wallet), and usage statistics.
|
|
17
17
|
|
|
18
18
|
```
|
|
19
19
|
Usage [Today][7 days][30 days][All time]
|
|
20
|
-
Tokens
|
|
21
|
-
Cost ¥1.
|
|
22
|
-
Prompt
|
|
23
|
-
Output
|
|
24
|
-
Model calls
|
|
25
|
-
Web search
|
|
26
|
-
Days
|
|
27
|
-
Window 2026-
|
|
20
|
+
Tokens 12.58M Cache hit rate 98.00%
|
|
21
|
+
Cost ¥1.2345 API requests 128
|
|
22
|
+
Prompt 12,345,678 (hit 12,098,764 · miss 246,914)
|
|
23
|
+
Output 234,567
|
|
24
|
+
Model calls 128 · ¥1.1945
|
|
25
|
+
Web search 2 · ¥0.0400
|
|
26
|
+
Days 7 · avg ¥0.1764
|
|
27
|
+
Window 2026-01-01 to 2026-01-07
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
> Every number above is illustrative and has nothing to do with any real account.
|
|
31
|
+
|
|
30
32
|
## Features
|
|
31
33
|
|
|
32
34
|
- **Peak/valley at a glance** — official windows (Beijing time, weekdays 09:00–12:00 and 14:00–18:00 are peak; everything else, including whole weekends since 2026-08-23, is off-peak), with a live countdown to the next switch.
|
package/README.md
CHANGED
|
@@ -25,21 +25,23 @@
|
|
|
25
25
|
[ 24 格峰谷条:凌晨 / 上午 / 午后 / 晚间 ]
|
|
26
26
|
|
|
27
27
|
账户余额
|
|
28
|
-
总额
|
|
29
|
-
充值钱包
|
|
30
|
-
赠送钱包
|
|
28
|
+
总额 ¥余额
|
|
29
|
+
充值钱包 ¥余额
|
|
30
|
+
赠送钱包 ¥余额
|
|
31
31
|
|
|
32
32
|
用量统计 [今天][近 7 天][近 30 天][全部]
|
|
33
|
-
消耗 token
|
|
34
|
-
消耗金额 ¥1.
|
|
35
|
-
提示词
|
|
36
|
-
输出
|
|
37
|
-
模型调用
|
|
38
|
-
联网搜索
|
|
39
|
-
统计天数
|
|
40
|
-
统计区间 2026-
|
|
33
|
+
消耗 token 12,580,245 缓存命中率 98.00%
|
|
34
|
+
消耗金额 ¥1.2345 API 请求次数 128
|
|
35
|
+
提示词 12,345,678(命中 12,098,764 · 未命中 246,914)
|
|
36
|
+
输出 234,567
|
|
37
|
+
模型调用 128 次 · ¥1.1945
|
|
38
|
+
联网搜索 2 次 · ¥0.0400
|
|
39
|
+
统计天数 7 天 · 日均 ¥0.1764
|
|
40
|
+
统计区间 2026-01-01 至 2026-01-07
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
> 上图所有数字均为示意值,与任何真实账户无关。
|
|
44
|
+
|
|
43
45
|
## 功能
|
|
44
46
|
|
|
45
47
|
- **峰谷一眼可见**:按官方峰谷时段(北京时间工作日 09:00–12:00、14:00–18:00 为高峰,其余为低谷;2026-08-23 起周末全天低谷)给卡片染色,并显示距下次切换的倒计时。
|
package/lib/index.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
/** Route prefix owned by this plugin — deliberately outside the built-in /api gateway. */
|
|
36
36
|
const ROUTE_PREFIX = "/dsh-dscost-tide/api";
|
|
37
37
|
/** Identity reported to Platform with every balance query. */
|
|
38
|
-
const CLIENT_VERSION = "1.0.
|
|
38
|
+
const CLIENT_VERSION = "1.0.3";
|
|
39
39
|
const CLIENT_LOCALE = "zh-CN";
|
|
40
40
|
/** Fallback source, used only when the stored account grant cannot answer. */
|
|
41
41
|
const API_KEY_REF = "DEEPSEEK_API_KEY";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-dscost-tide",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "DeepSeek peak/valley indicator in the DSH sidebar footer: phase at a glance, account balance, and a click-through dashboard with balance plus time-dimensioned token, cache-hit, cost and request statistics",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "yuchilling",
|