dsh-cost-meter 1.9.68 → 1.9.69

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
@@ -3,7 +3,7 @@
3
3
  <p align="center">Cost tracking and subscription quotas for DeepSeek Harness</p>
4
4
 
5
5
  <p align="center">
6
- <a href="https://github.com/Han-1413141/dsh-cost-meter/releases/latest"><img src="https://img.shields.io/badge/version-1.9.68-4176E6?style=flat-square" alt="version"></a>
6
+ <a href="https://github.com/Han-1413141/dsh-cost-meter/releases/latest"><img src="https://img.shields.io/badge/version-1.9.69-4176E6?style=flat-square" alt="version"></a>
7
7
  <a href="https://www.npmjs.com/package/dsh-cost-meter"><img src="https://img.shields.io/npm/dm/dsh-cost-meter?label=downloads&style=flat-square&color=4176E6" alt="npm monthly downloads"></a>
8
8
  <a href="https://github.com/Han-1413141/dsh-cost-meter/stargazers"><img src="https://img.shields.io/github/stars/Han-1413141/dsh-cost-meter?label=stars&style=flat-square&color=D9A400" alt="GitHub stars"></a>
9
9
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="MIT license"></a>
@@ -42,20 +42,20 @@ Restart `dsh web` after installation or updates. **Desktop** uses its bundled CL
42
42
  The PowerShell installer checks pnpm and Git and uses the `web` profile by default:
43
43
 
44
44
  ```powershell
45
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.68/install.ps1 | iex
45
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.69/install.ps1 | iex
46
46
  ```
47
47
 
48
48
  Install a pinned Git tag:
49
49
 
50
50
  ```sh
51
- dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.68
51
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.69
52
52
  ```
53
53
 
54
54
  See [installation and updates](docs/install.en.md) for uninstalling or installing without Git.
55
55
 
56
56
  </details>
57
57
 
58
- Current release **v1.9.68**: [release notes](docs/update-notes-1.9.68.md#english) · [troubleshooting](docs/install-troubleshooting.md)
58
+ Current release **v1.9.69**: [release notes](docs/update-notes-1.9.69.md#english) · [troubleshooting](docs/install-troubleshooting.md)
59
59
 
60
60
  ## Feature overview
61
61
 
package/README.zh-CN.md CHANGED
@@ -3,7 +3,7 @@
3
3
  <p align="center">DeepSeek Harness 费用统计与订阅额度插件</p>
4
4
 
5
5
  <p align="center">
6
- <a href="https://github.com/Han-1413141/dsh-cost-meter/releases/latest"><img src="https://img.shields.io/badge/version-1.9.68-4176E6?style=flat-square" alt="version"></a>
6
+ <a href="https://github.com/Han-1413141/dsh-cost-meter/releases/latest"><img src="https://img.shields.io/badge/version-1.9.69-4176E6?style=flat-square" alt="version"></a>
7
7
  <a href="https://www.npmjs.com/package/dsh-cost-meter"><img src="https://img.shields.io/npm/dm/dsh-cost-meter?label=downloads&style=flat-square&color=4176E6" alt="npm monthly downloads"></a>
8
8
  <a href="https://github.com/Han-1413141/dsh-cost-meter/stargazers"><img src="https://img.shields.io/github/stars/Han-1413141/dsh-cost-meter?label=stars&style=flat-square&color=D9A400" alt="GitHub stars"></a>
9
9
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="MIT license"></a>
@@ -42,20 +42,20 @@ dsh plugin --profile web add dsh-cost-meter
42
42
  PowerShell 脚本自动检查 pnpm 和 Git,默认安装到 `web` Profile:
43
43
 
44
44
  ```powershell
45
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.68/install.ps1 | iex
45
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.69/install.ps1 | iex
46
46
  ```
47
47
 
48
48
  固定 Git tag 安装:
49
49
 
50
50
  ```sh
51
- dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.68
51
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.69
52
52
  ```
53
53
 
54
54
  更新、卸载及无 Git 的安装方法见[安装说明](docs/install.md)。
55
55
 
56
56
  </details>
57
57
 
58
- 当前版本 **v1.9.68**:[更新说明](docs/update-notes-1.9.68.md#中文) · [安装排障](docs/install-troubleshooting.md)
58
+ 当前版本 **v1.9.69**:[更新说明](docs/update-notes-1.9.69.md#中文) · [安装排障](docs/install-troubleshooting.md)
59
59
 
60
60
  ## 功能总览
61
61
 
@@ -1,5 +1,22 @@
1
1
  # 显示设置预览
2
2
 
3
+ ## 图标 / Icons
4
+
5
+ 在“费用 → 显示 → 侧栏 → 侧栏布局”主动选择“图标”。原有布局、简洁模式和查询偏好不会自动迁移。图标行沿用上游费用区块,在设置入口上方占用原有区域;不定位或重排设置按钮及其他插件。
6
+
7
+ 每个已启用的余额、预算、Coding Plan、Go、Codex、网关、模型或本地节省组件保留一个图标入口。官方余额、自定义余额有独立图形;全部 16 个套餐来源使用可区分的简写标识(不是官方品牌徽标),网关使用来源名称标识,未知自定义来源保留通用兜底和完整名称提示。点击图标展开原有组件,继续使用完整的账户列表、充值链接、刷新、错误与重试操作;再次点击、“收起”或 Escape 关闭。今日用量复用原币种、精度和费用/Token/双项设置;有 Claude 用量时,今日图标的圆环表示 Claude 在今日费用中的占比。保存的组件顺序继续生效,数字紧跟对应图标右侧,整组按顺序排列而不单独吸附侧栏最右;图标较多可横向滚动。开启“今日消费与余额同行”时,点击今日或配对余额图标会在明细中同时展开原有两个组件,继续使用上游同行布局。
8
+
9
+ 峰谷圆环不是整个计价阶段的归一化进度:它是固定的 8 小时感知窗口。距下一次切换超过 8 小时时保持满环,提示“距切换超过 8 小时”,不显示动态倒计时;剩余不超过 8 小时才按“剩余时间 / 8 小时”缩短。实际阶段和切换点复用渠道、周末、节假日和自定义时段规则,不修改计价。展开的原有峰谷组件保留其完整信息与原样式设置。
10
+
11
+ 窄栏、1023px 及以下视口、粗指针触屏和强制 `data-dsh-pocket-layout="mobile"` 暂使用原有卡片;可随时切回其他布局。可选图标分块加载中或失败时也保留原有组件,失败可重试。样式随组件卸载移除,未新增账户请求或轮询器。
12
+
13
+ Choose **Cost → Display → Sidebar → Sidebar layout → Icons** explicitly. Existing layout preferences are not migrated. The existing full-width cost footer owns placement; this mode adds no host/sidebar class selectors. Every enabled sidebar component keeps an icon entry; click it to disclose its original component and actions, including all account rows, links, refresh, errors and retries. Collapse, the same icon or Escape closes details. Currency, decimal places, cost/token choices and saved component order remain effective. Values sit immediately after their icon, not in a separate right-edge bucket. When Today and balance on one line is enabled, opening either paired icon discloses both original cards in the upstream same-line container. The optional Claude share ring uses the existing cost conversion helper.
14
+
15
+ The peak ring uses a fixed eight-hour countdown horizon, not whole-period progress. Above eight hours it stays full with a threshold message; inside the window it shrinks as remaining time divided by eight hours. Provider calendars and switching times remain upstream-owned. The expanded original peak component keeps its saved presentation and full information.
16
+
17
+ Collapsed rails, viewports up to 1023px, coarse pointers and forced Pocket mobile mode retain the original cards. Loading/failure of the optional icon chunk also retains native content with retry. Cross-platform/theme geometry and real touch interaction require running-UI acceptance; logic/static tests alone do not certify them.
18
+
19
+
3
20
  在“费用 → 显示 → 输入区 → 套餐进度条”关闭“显示套餐余额”,输入框上方只保留套餐进度条与百分比,隐藏余额等文本段。默认开启,悬浮详情保留完整信息;该开关不会修改侧栏或账户查询。设置预览同步显示开关效果,保存后重启仍生效。
4
21
 
5
22
  在“费用 → 显示 → 通用设置”(或“侧栏 → 调整组件 → 通用设置”)的“货币单位”中可选择 26 种展示币种。切换时更新符号与该币种的每日参考汇率,小数位保持当前设置;关闭自动更新后使用输入的手动值,切换币种则改用该币种的目录汇率。旧版本保存的自定义币种仍作为一条选项显示。人民币与欧元保留调用时记录的金额,其他币种按最新参考汇率折算;完整说明见[每日汇率与历史金额](exchange-rates.md)。
@@ -30,7 +47,7 @@ Codex 额度的真实数据来自已启用并登录的 `dsh-codex-subscription`
30
47
 
31
48
  预览分为侧栏、输入区和会话内容三个区域,使用正常字号,只渲染当前区域。点击虚线框,在右侧调整对应组件。示例模式下隐藏的组件保留淡化效果,方便再次选中;当前数据模式下未显示的组件保留淡色标签。组件菜单只列出可调整的组件,操作提示不再作为菜单选项。显示设置的更改自动保存。
32
49
 
33
- 右侧的“侧栏布局”默认展开,展示合并卡片、简洁、标准和紧凑四种样式的小预览,复用实际预算与多时段额度的进度卡片。小预览标记为样式示例,未配置的额度使用本地示例数值。紧凑样式将多时段额度排成两列,预算卡片保持完整。点击峰谷条可切换细条或分段样式;点击“今日金额 · 模型数”可调整模型卡片的展开、周期、摘要、位置、行数、Token 和费用占比条。预算、余额、会话费用和额度条的选项各自放在对应组件旁。金额格式、换算和语言集中在下方。宽窗口将样式缩略图横向排列,窄窗口再改为竖向;右侧面板在空间不足时排到预览下方。放大预览中按 Escape 返回。
50
+ 右侧的“侧栏布局”默认展开,展示图标、合并卡片、简洁、标准和紧凑五种样式的小预览,复用实际预算与多时段额度的进度卡片。小预览标记为样式示例,未配置的额度使用本地示例数值。紧凑样式将多时段额度排成两列,预算卡片保持完整。点击峰谷条可切换细条或分段样式;点击“今日金额 · 模型数”可调整模型卡片的展开、周期、摘要、位置、行数、Token 和费用占比条。预算、余额、会话费用和额度条的选项各自放在对应组件旁。金额格式、换算和语言集中在下方。宽窗口将样式缩略图横向排列,窄窗口再改为竖向;右侧面板在空间不足时排到预览下方。放大预览中按 Escape 返回。
34
51
 
35
52
  侧栏预览和真实侧栏共用完整的呈现函数与当前缓存数据,包含余额错误状态、独立的 Go 与预算卡片、预算摘要、今日用量和峰谷条、模型花费卡片。选择框使用独立覆盖层,不改变组件 DOM 层级和紧凑布局。打开时最多读取三个宿主表面的背景、圆角、字体等六项外观属性;主题属性变化时更新。共用插件组件、DSH 图标和主题变量,跟随这些外观的皮肤修改;其他插件的独立控件不重复挂载。
36
53
 
@@ -91,6 +91,10 @@ node test/codex-subscription-published.mjs
91
91
 
92
92
  兼容基线更新为 3.2.4,两个既有宿主的 CI 矩阵均加入该实际发布包。
93
93
 
94
+ ### 2026-11-16:billion-context 0.1.215、dsh-codex-subscription 3.2.17 / 3.2.18
95
+
96
+ 两类插件接口指纹保持一致。billion-context 0.1.215 的原生与代理计费、原版 CLI 自动接入、重试、摘要、子代理、回放和重启检查通过。dsh-codex-subscription 3.2.17、3.2.18 的发布包 RPC、额度解析、刷新、账号缓存切换、认证错误和取消检查通过。测试使用本机服务与合成数据,外部请求为 0。基线和 CI 更新至 0.1.215、3.2.18。
97
+
94
98
  ### 2026-11-15:billion-context 0.1.214
95
99
 
96
100
  处理 github-actions[bot] 在 [#504](https://github.com/Han-1413141/dsh-cost-meter/issues/504) 报告的五个接入函数变化。新版拆分首字节与响应体超时,调整摘要日志、错误响应清理,以及原生请求的代理选项和预填充请求头处理。
@@ -0,0 +1,27 @@
1
+ # v1.9.69
2
+
3
+ ## 中文
4
+
5
+ - 「费用 → 价格 → 模型定价 → 自定义 → 更多计费项」增加长上下文价格,可设置输入 Token 阈值,以及输入、缓存读取、输出、缓存写入和单独推理的单价。输入与缓存读写合计超过阈值时应用长档。
6
+ - 从参考价格复制或编辑自定义价格时,保留长上下文、峰谷等已支持字段,修复长档丢失的问题。
7
+ - 「费用 → 显示 → 侧栏 → 侧栏布局」新增“图标”。点击图标展开原有组件,支持多账号余额及原有操作;已有布局保持不变。峰谷圆环使用固定 8 小时窗口。
8
+ - 验证 billion-context 0.1.215 以及 dsh-codex-subscription 3.2.17 / 3.2.18,更新兼容性基线。
9
+
10
+ 感谢 [@PersueFree](https://github.com/PersueFree) 在 [#511](https://github.com/Han-1413141/dsh-cost-meter/issues/511) 提供问题报告、复现和定位;感谢 [@chanyuenpang](https://github.com/chanyuenpang) 在 [#514](https://github.com/Han-1413141/dsh-cost-meter/pull/514) 提供图标布局、构建优化和测试。
11
+
12
+ ## English
13
+
14
+ - Edit long-context thresholds and rates under Model pricing → Custom → More billing fields. The threshold includes input and cache read/write Tokens.
15
+ - Preserve long-context, peak/off-peak and other supported price fields when copying or editing custom quotes.
16
+ - Add an opt-in Icons sidebar layout. Click an icon for the original component and its actions, including multiple account balances. The peak ring uses a fixed eight-hour countdown window.
17
+ - Verify billion-context 0.1.215 and dsh-codex-subscription 3.2.17 / 3.2.18, and update compatibility baselines.
18
+
19
+ Thanks to [@PersueFree](https://github.com/PersueFree) for the report and reproduction in [#511](https://github.com/Han-1413141/dsh-cost-meter/issues/511), and [@chanyuenpang](https://github.com/chanyuenpang) for the implementation and tests in [#514](https://github.com/Han-1413141/dsh-cost-meter/pull/514).
20
+
21
+ ## 升级 / Upgrade
22
+
23
+ ```sh
24
+ dsh plugin --profile web add dsh-cost-meter@latest
25
+ ```
26
+
27
+ 更新后重启 DSH。Desktop 用户参见 [安装与更新](https://github.com/Han-1413141/dsh-cost-meter/blob/v1.9.69/docs/install-troubleshooting.md#desktop-安装与更新)。