dsh-cost-meter 1.9.50 → 1.9.51

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 CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  **Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)**
8
8
 
9
- [![version](https://img.shields.io/badge/version-1.9.50-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.51-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
10
10
  [![npm](https://img.shields.io/npm/v/dsh-cost-meter?label=npm)](https://www.npmjs.com/package/dsh-cost-meter)
11
11
  [![dshfind](https://dshfind.com/api/badge/Han-1413141/dsh-cost-meter?metric=downloads&lang=en)](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
12
12
  [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -16,11 +16,11 @@
16
16
 
17
17
  </div>
18
18
 
19
- **v1.9.50** fixes billion-context input-only context estimates being billed as model calls, and automatically corrects affected receipted history with a backup.
19
+ **v1.9.51** automatically displays peak-period times in your system timezone, with manual timezone selection in settings and daylight-saving support.
20
20
 
21
21
  **Host floor: DSH 0.2.0** · Adaptation target: **0.2.1-rc.2** (npm `next`). Expand the compatibility notes below for exact declarations, host records and troubleshooting.
22
22
 
23
- Release notes: [v1.9.50](docs/update-notes-1.9.50.md#english). Fully restart DSH after updating.
23
+ Release notes: [v1.9.51](docs/update-notes-1.9.51.md#english). Fully restart DSH after updating.
24
24
 
25
25
  ![Promo art](docs/promo.en.png)
26
26
 
@@ -356,22 +356,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
356
356
  dsh plugin --profile web add dsh-cost-meter
357
357
  ```
358
358
 
359
- **PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.50`** — review the script before running):
359
+ **PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.51`** — review the script before running):
360
360
 
361
361
  ```powershell
362
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.50/install.ps1 | iex
362
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.51/install.ps1 | iex
363
363
  ```
364
364
 
365
365
  **Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
366
366
 
367
367
  ```sh
368
- dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.50
368
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.51
369
369
  ```
370
370
 
371
371
  Without git, use the GitHub tag archive:
372
372
 
373
373
  ```sh
374
- dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.50.tar.gz
374
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.51.tar.gz
375
375
  ```
376
376
 
377
377
  After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
@@ -436,7 +436,7 @@ Workarounds:
436
436
 
437
437
  ```yaml
438
438
  minimumReleaseAgeExclude:
439
- - dsh-cost-meter@1.9.50
439
+ - dsh-cost-meter@1.9.51
440
440
  ```
441
441
 
442
442
  3. For a one-off CLI operation, forward the pnpm flag: `dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0` (or add `--trust-lockfile` when only lockfile verification fails). Both flags were verified against pnpm 11.28.5 in a temporary profile.
package/README.zh-CN.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  **DeepSeek Harness 会话费用统计插件(界面中英双语)**
8
8
 
9
- [![version](https://img.shields.io/badge/version-1.9.50-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.51-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
10
10
  [![npm](https://img.shields.io/npm/v/dsh-cost-meter?label=npm)](https://www.npmjs.com/package/dsh-cost-meter)
11
11
  [![dshfind](https://dshfind.com/api/badge/Han-1413141/dsh-cost-meter?metric=downloads&lang=zh)](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
12
12
  [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -16,11 +16,11 @@
16
16
 
17
17
  </div>
18
18
 
19
- **v1.9.50** 修复 billion-context 将上下文输入估计值作为模型调用计费的问题,并在启动时备份、纠正有入账凭据的历史误计记录。
19
+ **v1.9.51** 峰谷时间默认跟随系统时区,也可在设置中手动选择;支持夏令时和跨日显示。
20
20
 
21
21
  **宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
22
22
 
23
- 更新说明:[v1.9.50](docs/update-notes-1.9.50.md#中文)。更新后完全重启 DSH。
23
+ 更新说明:[v1.9.51](docs/update-notes-1.9.51.md#中文)。更新后完全重启 DSH。
24
24
 
25
25
  ![宣传图](docs/promo.png)
26
26
 
@@ -356,22 +356,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
356
356
  dsh plugin --profile web add dsh-cost-meter
357
357
  ```
358
358
 
359
- **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.50`**,建议先下载审阅再运行):
359
+ **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.51`**,建议先下载审阅再运行):
360
360
 
361
361
  ```powershell
362
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.50/install.ps1 | iex
362
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.51/install.ps1 | iex
363
363
  ```
364
364
 
365
365
  **或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
366
366
 
367
367
  ```sh
368
- dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.50
368
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.51
369
369
  ```
370
370
 
371
371
  没有 git 时可用 GitHub tag 打包直链:
372
372
 
373
373
  ```sh
374
- dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.50.tar.gz
374
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.51.tar.gz
375
375
  ```
376
376
 
377
377
  安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
@@ -436,7 +436,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
436
436
 
437
437
  ```yaml
438
438
  minimumReleaseAgeExclude:
439
- - dsh-cost-meter@1.9.50
439
+ - dsh-cost-meter@1.9.51
440
440
  ```
441
441
 
442
442
  3. 仅本次操作用 CLI 透传 pnpm 参数:`dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0`;若只是 lockfile 校验阶段失败,可改用 `--trust-lockfile`。这两个参数已在本机 pnpm 11.28.5 临时 Profile 上实测可用。
@@ -0,0 +1,28 @@
1
+ # v1.9.51 — 峰谷显示自动跟随系统时区
2
+
3
+ ## 中文
4
+
5
+ 峰谷开始时间、切换时间和设置内的时段说明默认按当前设备的系统时区显示。使用远程 DSH 时,自动模式读取打开界面的设备/浏览器时区。
6
+
7
+ 在以下任一入口调整:
8
+
9
+ - **费用设置 → 峰谷设置 → 峰谷显示时区**。
10
+ - **费用设置 → 显示 → 峰谷时段 → 峰谷显示时区**。
11
+
12
+ 默认选项为“跟随系统”,旁边显示识别到的 IANA 时区名称。也可以手动选择 `Asia/Shanghai`、`America/New_York` 等时区,修改后立即预览并自动保存;选择“跟随系统”可恢复自动识别。
13
+
14
+ 显示会自动处理夏令时、跨日期和非整小时偏移;一个时段跨越夏令时切换点时,两端时间额外标注 UTC 偏移。峰谷计费、厂商日历、倒计时以及历史账本日期仍按原规则计算,调整显示时区不触发历史费用重算。
15
+
16
+ 感谢 [@jt-at-home](https://github.com/jt-at-home) 在 [#460](https://github.com/Han-1413141/dsh-cost-meter/issues/460) 报告峰谷时间固定为北京时间的问题,并提出本地时区显示和配置选择需求。
17
+
18
+ 验证覆盖配置校验、客户端与宿主保存恢复、美国夏令时开始/结束、跨日、印度与尼泊尔偏移、计价历史隔离,以及真实浏览器内的系统识别、设置选择、预览和窄屏布局。
19
+
20
+ ## English
21
+
22
+ Peak-period start/switch times and the schedule summary now default to the current device's system timezone. With a remote DSH host, automatic mode uses the timezone of the browser displaying the interface.
23
+
24
+ Choose **Cost settings → Peak / off-peak settings → Peak display timezone**, or **Display → Peak / off-peak → Peak display timezone**. Keep **System timezone** for automatic detection, or select an IANA zone such as `America/New_York`. Changes preview immediately and save automatically.
25
+
26
+ Dates, daylight saving and fractional UTC offsets are handled automatically. When a period spans a daylight-saving transition, both endpoint labels include their UTC offsets. Provider billing calendars, countdowns and ledger day boundaries retain their existing rules; changing this display setting does not reprice history.
27
+
28
+ Thanks to [@jt-at-home](https://github.com/jt-at-home) for the report and timezone-selection request in [#460](https://github.com/Han-1413141/dsh-cost-meter/issues/460).