rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xxxxxxxx2/dsh-peak-valley-reminder
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness(DSH)插件:在会话标题栏「模式」标签之后常驻一枚「峰谷」提醒, 告诉你现在处在高峰时段还是空闲时段,并倒计时下一次切换。

「峰谷」是这个 UI 的名称:挂件上用 峰 / 谷 两个单字表示当前状态(峰=高峰,谷=空闲), 悬停与详情面板里用完整说法「高峰时段 / 空闲时段」。
| 时段 | 窗口 |
|---|---|
| 高峰时段 | 周一至周五 09:00–12:00、14:00–18:00,且当天不是中国法定节假日 |
| 空闲时段 | 其余所有时间:周末、法定节假日全天、工作日的午休与夜间 |
判定细节:
| 位置 | 内容 |
|---|---|
| 会话标题栏(「标准模式」之后) | 状态圆点 + 峰/谷 + 距下次切换的倒计时,每秒刷新 |
| 悬停 | 原生提示:峰谷 · 高峰/空闲、距下次切换多久(今天 18:00 / 明天 09:00 / 周一 09:00)、点击看详情 |
| 点击 | 详情浮层「峰谷」:北京时间、高峰与空闲两个时段的窗口、距切换倒计时与切换时刻、数据口径说明 |
高峰用琥珀色圆点,空闲用绿色圆点;倒计时超过一天时显示「N天H时」,否则 h:mm:ss。
文案跟随 DSH 中/英界面语言(locale/)。
dsh plugin --profile desktop add dsh-peak-valley-reminder
或在 DSH 的插件市场 / 添加插件向导里搜索 dsh-peak-valley-reminder,
搜索能力来自 dsh-plugin 关键词。
在 profile 目录里链接源码目录:
cd <profile> # 例如 C:\Users\<you>\.dsh\profiles\desktop
pnpm add link:D:/Deepseek/worker/plugins/dsh-peak-valley-reminder
再把条目写进该 profile 的 cordis.patch.yml(DSH 会监听该文件并热加载):
- insert:
- id: peak-valley-reminder
name: dsh-peak-valley-reminder
config: {}
用
dsh plugin add安装时不需要手写这段:包的dsh.bundle.patch会自动带上它。
卸载:从 cordis.patch.yml 删掉这条 insert(或用 dsh plugin remove),再 pnpm remove dsh-peak-valley-reminder。
| 文件 | 作用 |
|---|---|
lib/index.js |
host 半边:空 apply,只为让 loader 以“包”为单位挂载并扫到 dsh.client |
lib/client.js |
浏览器半边:window.__ModuleLoader__ 工厂,注册挂件、自持样式与时段模型 |
cordis.patch.yml |
loader 条目(insert) |
locale/{zh,en}.json |
插件清单里的标题与描述 |
icon.svg |
插件图标 |
test/window-model.test.cjs |
离线自检(时段模型 + 格式化) |
注册在 conversation.session.header.actions,order: 0:agent 预设标签(「标准模式」)是
order: -10,后台任务入口是 order: 20,因此它正好落在两者之间、紧挨模式选择右侧。
想换位置只改 lib/client.js 里的 SLOT / order;想放进页面左上角的前导席位,
把 SLOT 换成 conversation.header.leading 并按 single 席位注册({ name: SLOT })即可。
都在 lib/client.js 的 schedule.js 段:
HOLIDAY_RANGES 补一组 ["YYYY-MM-DD", "YYYY-MM-DD"] 区间;PEAK_WINDOWS_SEC(当日秒数,例如 [9 * 3600, 12 * 3600]);peakWindowsOf()。npm test
用桩 window.__ModuleLoader__ 加载真实 bundle,覆盖 17 个时刻:四个切换边界(09:00 / 12:00 /
14:00 / 18:00 前后一秒)、周五傍晚到下周一、周末、国庆/劳动节/春节假期、调休上班的周六,
并校验切换点对齐、跨点翻转、节假日区间端点与倒计时格式化。npm publish 前会由
prepublishOnly 自动跑一遍。
npm publish # 或 pnpm publish
仓库:https://github.com/xxxxxxxx2/dsh-peak-valley-reminder repository / homepage / bugs
已指向该仓库;发布后 DSH 插件市场按 dsh-plugin 关键词即可搜到。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。