dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness Web GUI plugin: DeepSeek API peak/valley pricing indicator in the session header
DeepSeek Harness Web GUI 插件:DeepSeek API 峰谷计价指示灯。
在会话头部右上角显示一个小胶囊,实时告诉你当前 DeepSeek API 处于峰值价(高峰时段)还是谷值价(低谷时段),以及距下一次价格切换大约还有多久。
A DeepSeek Harness (DSH) Web GUI plugin: a session-header pill that shows whether the DeepSeek API is currently at peak or valley pricing, with a countdown to the next price-period switch.
● 谷值价 约10小时后
本机已安装 DeepSeek Harness 时,一条命令即可:
# 1) 把插件装进 harness 的 profile 目录并写入启用配置
powershell -ExecutionPolicy Bypass -File .\install.ps1
然后重启 DSH Web(停掉正在运行的 dsh web 后重新启动),浏览器里即可看到胶囊。
install.ps1 做三件事:
%USERPROFILE%\.dsh\profiles\node_modules\dsh-deepseek-tide\;%USERPROFILE%\.dsh\profiles\web\cordis.patch.yml 写入启用行;说明:Windows PowerShell 5.1 读取无 BOM 的 UTF-8 脚本会乱码,因此本仓库所有
.ps1均为纯 ASCII(英文提示)。
| 环节 | 说明 |
|---|---|
| 槽位 | 注册到原生槽位 conversation.session.header.actions(与自带「后台任务」按钮同一排) |
| 插件形态 | 客户端插件:lib/client.js 是浏览器半区,lib/index.js 是空的宿主半区(只为出现在 Cordis Loader 中) |
| 判定依据 | 当前北京时间 + 星期几(不联网、不读取任何价格数据) |
| 刷新节拍 | 每个北京整点;切回浏览器前台时立即补一次 |
规则集中在 lib/client.js 顶部的 RULES:
const RULES = {
// 工作日高峰窗口,单位:当日分钟数(北京时间)
weekdayPeak: [[9 * 60, 12 * 60], [14 * 60, 18 * 60]],
// 周六/周日全天低谷价(2026-08-23 起生效)
weekendAllValley: true,
};
修改后重跑 install.ps1 并重启 DSH Web 即可生效。
默认规则依据(北京时间):
官方可能随时调整,请以官方计费页为准:https://api-docs.deepseek.com/zh-cn/quick_start/pricing
0.1.1-rc.2 / 0.1.2-rc.1 实测可用(无需改动);react 外部模块与 slots / locale 两个服务;~/.dsh,不在运行时安装目录内),但若未来版本改动槽位或插件接口,可能需要小幅适配。# 1) 删除启用行(cordis.patch.yml 中的 deepseek-tide 一段),或改为 disabled: true
# 2) 可选:删除插件副本
Remove-Item "$env:USERPROFILE\.dsh\profiles\node_modules\dsh-deepseek-tide" -Recurse -Force
重启 DSH Web 后胶囊消失。
.
├── package.json # DSH 客户端插件清单(dsh.client / exports["./client"])
├── lib/
│ ├── client.js # 浏览器半区:胶囊 UI + 峰谷时段计算
│ └── index.js # 宿主半区:空实现
├── install.ps1 # 安装到本机 DSH profile
├── publish.ps1 # 发布到 GitHub(需先 gh auth login)
├── push.ps1 # 提交并推送本地改动
└── README.md
MIT — 见 LICENSE。