dsh-deepseek-tide
DeepSeek Harness Web GUI: session-header pill showing whether the DeepSeek API is currently at peak (高峰价) or valley (低谷价) pricing, with a countdown to the next price-period switch; all computed in Beijing time and refreshed on each Beijing-time whole hour.
AI Analysis
核心用途是帮助用户避开高峰期高价。适合使用 DeepSeek 官方 API 且希望通过合理安排任务时间来节省 Token 费用的用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗1) 把插件装进 harness 的 profile 目录并写入启用配置
powershell -ExecutionPolicy Bypass -File .\install.ps1
然后**重启 DSH Web**(停掉正在运行的 `dsh web` 后重新启动),浏览器里即可看到胶囊。
`install.ps1` 做三件事:
1. 复制插件到 `%USERPROFILE%\.dsh\profiles\node_modules\dsh-deepseek-tide\`;
2. 在 `%USERPROFILE%\.dsh\profiles\web\cordis.patch.yml` 写入启用行;
3. 在 profile manifest 登记依赖,并做一次解析校验。
> 说明: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`:
```js
const RULES = {
// 工作日高峰窗口,单位:当日分钟数(北京时间)
weekdayPeak: [[9 * 60, 12 * 60], [14 * 60, 18 * 60]],
// 周六/周日全天低谷价(2026-08-23 起生效)
weekendAllValley: true,
};
修改后重跑 install.ps1 并重启 DSH Web 即可生效。
默认规则依据(北京时间):
- 2026-08-17 起 DeepSeek API 采用峰谷分时计价,低谷(空闲)时段价格约为高峰时段的一半;
- 2026-08-23 起周六/周日全天按低谷价计费;
- 工作日高峰窗口默认 09:00–12:00 与 14:00–18:00,其余时间为低谷价。
官方可能随时调整,请以官方计费页为准:
兼容性
- DSH
0.1.1-rc.2/0.1.2-rc.1实测可用(无需改动); - 插件只依赖客户端
react外部模块与slots/locale两个服务; - DSH 升级不会删除本插件(装在
~/.dsh,不在运行时安装目录内),但若未来版本改动槽位或插件接口,可能需要小幅适配。
卸载
## 计费规则配置
规则集中在 `lib/client.js` 顶部的 `RULES`:
```js
const RULES = {
// 工作日高峰窗口,单位:当日分钟数(北京时间)
weekdayPeak: [[9 * 60, 12 * 60], [14 * 60, 18 * 60]],
// 周六/周日全天低谷价(2026-08-23 起生效)
weekendAllValley: true,
};
修改后重跑 install.ps1 并重启 DSH Web 即可生效。
默认规则依据(北京时间):
- 2026-08-17 起 DeepSeek API 采用峰谷分时计价,低谷(空闲)时段价格约为高峰时段的一半;
- 2026-08-23 起周六/周日全天按低谷价计费;
- 工作日高峰窗口默认 09:00–12:00 与 14:00–18:00,其余时间为低谷价。
官方可能随时调整,请以官方计费页为准: