GuoFengyu110429/dsh-high-fee-alert

Plugin插件 Native原生 ⭐ 2 MIT Notifications & Remote通知与远程

DeepSeek Harness 高峰资费提醒插件:每次启动 DSH 时从 抓取最新定价,从 ntp.ntsc.ac.cn(中国科学院国家授时中心)获取北京时间 (精确到分,UTC+8),处于高峰时段(峰谷定价中的“峰”)时在页面中央弹出 710×430 的提醒窗口。

catalog descriptioncatalog 简介 / catalog description:一个由DSH制作的插件,用于在峰谷中的峰时段进行提醒以节省费用。

Project Overview项目介绍

This is a purpose-built plugin for DeepSeek Harness (DSH) that alerts users when DeepSeek API is in peak pricing hours. You can install it via DSH’s command line interface by running dsh plugin add --profile web dsh-high-fee-alert, or directly from the cloned repository if you downloaded the source code manually. After installation completes, you will need to restart your DSH instance for the plugin to take effect. On launch, it fetches the latest peak hour rules from DeepSeek’s official pricing document, then checks the current accurate Beijing time from the National Time Service Center of China’s NTP server.

After the plugin loads in the DSH browser client, it immediately checks if the current time falls within a peak pricing window. It repeats this check every 30 seconds to keep the status updated. If it detects the current time is peak, it shows a 710x430 centered alert window to notify the user of higher pricing. The window has two action buttons: the left “OK” button triggers a full exit of DSH’s frontend and backend processes, while the right “Continue” button only closes the current alert and stops further checks for the rest of the page session.

The plugin is released under the open-source MIT license. The original developer notes they are a student with no capacity to maintain the plugin or fix any bugs that occur, so no future updates are planned. One known issue is that after clicking the “OK” exit button, the DSH web page may not close automatically, requiring the user to close it manually. All configuration options can be customized in the profile’s cordis.patch.yml file, with sensible defaults provided for every setting.

dsh-high-fee-alert 是专门为 DeepSeek Harness 开发的高峰资费提醒原生插件。它会在 DSH 启动时从 DeepSeek 官方 API 定价文档抓取最新的峰谷时段规则,同时从中国科学院国家授时中心的 NTP 服务器获取精确的北京时间,判断当前处于高峰时段时,会在页面中央弹出提醒窗口。它每 6 小时自动刷新一次定价信息,同时兼容新旧两种定价文档格式。

该插件适合使用 DeepSeek API 且在意 API 调用成本的 DSH 用户。每次 DSH 挂载插件后会立即检查时段状态,之后每 30 秒复查一次,如果检测到当前处于高峰时段就弹出提醒。提醒窗口右下角有两个按钮,点击「好的」会退出整个 DSH 进程,点击「继续」则仅关闭本次弹窗,当前页面生命周期内不再弹出。

本插件采用 MIT 许可证开源,作者声明为学生开发者,不再维护更新,也无法修复已知问题。目前已知点击退出后网页端可能不会自动关闭,需要用户手动关闭。安装可以通过 DSH 的 CLI 工具执行 dsh plugin add,安装后需要重启 DSH 生效,所有配置项均可在 cordis.patch.yml 中自定义。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin add --profile web dsh-high-fee-alert

把 GuoFengyu110429/dsh-high-fee-alert 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-high-fee-alert

DeepSeek Harness 高峰资费提醒插件:每次启动 DSH 时从 DeepSeek API 定价文档 抓取最新定价,从 ntp.ntsc.ac.cn(中国科学院国家授时中心)获取北京时间 (精确到分,UTC+8),处于高峰时段(峰谷定价中的“峰”)时在页面中央弹出 710×430 的提醒窗口。

注意

此插件使用Deepseek Harness + Deepseek V4 Pro(推理等级Max)生成,作者只是一名学生,无力维护更新,此插件出现的所有bug也无力修复,以后也不会有版本更新。

行为

  • 启动抓取:宿主启动时抓取一次官方定价文档并解析高峰时段,之后每 6 小时刷新一次。解析器兼容两种文档格式:
    • 现行版(脚注给出高峰窗口,如 Peak hours are 01:00 - 04:00 and 06:00 - 10:00 UTC, Monday through Friday) → 换算为北京时间多段高峰窗口 + 工作日限定;当前官方时段为 周一至周五 09:00–12:00、14:00–18:00(北京时间);
    • 旧版(脚注给出低谷窗口,如 off-peak pricing between 16:30 and 00:30 (UTC)) → 反推高峰窗口(每天)。
  • 精确时间:每次状态查询经 NTP 取北京时间,失败自动回退本机时钟, 并在 30 秒内复用上一次结果,避免高频请求授时中心。
  • 高峰弹窗:浏览器端挂载后立即查询状态,之后每 30 秒复查一次; 一旦处于高峰时段即弹出居中窗口(见下文视觉规格)。
  • 两个按钮(位于窗口右下角):
    • 左「好的」——蓝底 rgb(103, 158, 254)、白字:请求宿主关闭 DeepSeek Harness 前后端(ctx.appExit → 整棵树 dispose → 进程退出, 窗口随之关闭);
    • 右「继续」——rgb(67, 69, 74) 底、白字:仅关闭本次提醒窗口, 本次页面生命周期内不再重复弹出。
  • 回退:文档抓取/解析失败时回退到内置默认时段(当前官方载明的 工作日两段高峰),状态接口会注明 pricingSource: fallback; NTP 失败时注明 timeSource: local。

弹窗视觉规格

项 值
设计尺寸 710 × 430 px
位置 屏幕正中央(上下左右对称),小屏时等比收缩并保留 24px 对称边距
圆角 16px
背景 rgb(27, 27, 28)
文案 现在是 <实际时间>,API调用价格偏高,请等待至 <最近的下一非峰时刻> 再使用。

已知问题

1.在点击“好的”之后,dsh网页可能不会关闭,需要手动关闭(此时后台已关闭)

安装

# 建议使用npm安装
dsh plugin add --profile web dsh-high-fee-alert
# 或使用github仓库安装
dsh plugin --profile web add "file:D:/Deepseek Harness/chajian/dsh-high-fee-alert"

安装后重启 DSH 生效(profile 在启动时扫描 bundle 层)。

卸载:

dsh plugin --profile web remove dsh-high-fee-alert

配置

全部配置项均可在 profile 的 cordis.patch.yml 中按行 id 覆盖 (dsh-high-fee-alert),均有内置默认值:

配置项 默认值 说明
pricingUrl https://api-docs.deepseek.com/quick_start/pricing 定价文档地址
ntpHost ntp.ntsc.ac.cn NTP 服务器
ntpPort 123 NTP 端口
ntpTimeoutMs 2500 NTP 超时
fetchTimeoutMs 8000 定价文档抓取超时
pricingRefetchMs 21600000 定价刷新间隔(6h)
exitCode 0 「好的」退出码
peakWindows [] 显式高峰窗口(北京时间 HH:mm-HH:mm 数组,覆盖文档解析)
weekdaysOnly null 高峰是否仅限周一至周五(布尔;缺省跟随文档/回退)
offPeakStart '' 旧语义:每日低谷开始(北京时间 HH:mm,反推高峰)
offPeakEnd '' 旧语义:每日低谷结束(北京时间 HH:mm)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-computer-use 下一个 Next dsh-sysmon →