dsh-dscost-tide 1.0.1 → 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 CHANGED
@@ -2,11 +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
+
11
+ ## 1.0.2 — 2026-10-31
12
+
13
+ **变更**
14
+
15
+ - GitHub 用户名改为 `yuchilling`(与 npm 账号统一),仓库地址随之变为 <https://github.com/yuchilling/dsh-dscost-tide>。
16
+ - 包元数据里 `author`、`homepage`、`repository`、`bugs` 与 `publish.yml`、中英 README 里的仓库地址全部更新为 `yuchilling`;npm 包名不变(仍是 `dsh-dscost-tide`),安装命令不变。
17
+
5
18
  ## 1.0.1 — 2026-10-31
6
19
 
7
20
  **修复**
8
21
 
9
- - npm 包里的 README 安装命令写成了 `@yanzi-251147/dsh-dscost-tide`,而实际发布名是不带 scope 的 `dsh-dscost-tide`(`@yanzi-251147` 不是 npm 账号所拥有的 scope)。本版本把中英 README、`publish.yml`、`CHANGELOG` 里的名字全部对齐为 `dsh plugin add dsh-dscost-tide`,并改由 GitHub Actions 发布,顺带验证 CI 发布链路。
22
+ - npm 包里的 README 安装命令写成了带 scope 的名字,而实际发布名是不带 scope 的 `dsh-dscost-tide`。本版本把中英 README、`publish.yml`、`CHANGELOG` 里的名字全部对齐为 `dsh plugin add dsh-dscost-tide`,并改由 GitHub Actions 发布,顺带验证 CI 发布链路。
10
23
 
11
24
  ## 1.0.0 — 2026-10-31
12
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
- ¥6.77 14:32
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 10.69M Cache hit rate 95.57%
21
- Cost ¥1.27 API requests 137
22
- Prompt 10,550,026 (hit 10,082,816 · miss 467,210)
23
- Output 149,427
24
- Model calls 137 · ¥1.2666
25
- Web search 0 · ¥0.0000
26
- Days 6 · avg ¥0.2111
27
- Window 2026-10-05 to 2026-10-05
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.
@@ -94,7 +96,7 @@ node scripts/prepare-publish.mjs # build the publishable copy and pack it
94
96
  The working tree keeps `"name": "dsh-dscost-tide"` (it is the install key in the profile's `dependencies` / `dsh.profile.bundles`), and that same unscoped name is used on npm, so publishing starts with:
95
97
 
96
98
  ```bash
97
- node scripts/prepare-publish.mjs --repo yanzi-251147/dsh-dscost-tide
99
+ node scripts/prepare-publish.mjs --repo yuchilling/dsh-dscost-tide
98
100
  cd _intermediate/publish && npm publish --access public
99
101
  ```
100
102
 
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 1,069 万 缓存命中率 95.57%
34
- 消耗金额 ¥1.27 API 请求次数 137
35
- 提示词 10,550,026(命中 10,082,816 · 未命中 467,210)
36
- 输出 149,427
37
- 模型调用 137 次 · ¥1.2666
38
- 联网搜索 0 次 · ¥0.0000
39
- 统计天数 6 天 · 日均 ¥0.2111
40
- 统计区间 2026-10-05 至 2026-10-05
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 起周末全天低谷)给卡片染色,并显示距下次切换的倒计时。
@@ -121,7 +123,7 @@ node scripts/prepare-publish.mjs # 生成可发布副本并打包,打印 tar
121
123
  `prepare-publish` 会把可发布的文件复制到 `_intermediate/publish/`,并改写仓库地址。本地工作树里的 `name` 保持 `dsh-dscost-tide` 不动(它是 profile `dependencies` / `dsh.profile.bundles` 里的安装键),npm 上的包名也沿用同一个,发布前跑一次:
122
124
 
123
125
  ```bash
124
- node scripts/prepare-publish.mjs --repo yanzi-251147/dsh-dscost-tide
126
+ node scripts/prepare-publish.mjs --repo yuchilling/dsh-dscost-tide
125
127
  cd _intermediate/publish && npm publish --access public
126
128
  ```
127
129
 
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.1";
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,9 +1,9 @@
1
1
  {
2
2
  "name": "dsh-dscost-tide",
3
- "version": "1.0.1",
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
- "author": "yanzi-251147",
6
+ "author": "yuchilling",
7
7
  "type": "module",
8
8
  "main": "lib/index.js",
9
9
  "exports": {
@@ -31,13 +31,13 @@
31
31
  "tokens",
32
32
  "sidebar"
33
33
  ],
34
- "homepage": "https://github.com/yanzi-251147/dsh-dscost-tide#readme",
34
+ "homepage": "https://github.com/yuchilling/dsh-dscost-tide#readme",
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "git+https://github.com/yanzi-251147/dsh-dscost-tide.git"
37
+ "url": "git+https://github.com/yuchilling/dsh-dscost-tide.git"
38
38
  },
39
39
  "bugs": {
40
- "url": "https://github.com/yanzi-251147/dsh-dscost-tide/issues"
40
+ "url": "https://github.com/yuchilling/dsh-dscost-tide/issues"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"