rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wangjiaxi/dsh-peak-valley
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在输入框下面那一行挂一枚小倒计时,告诉你现在是不是峰时、离下一次切换还有多久。它和上下文用量环相邻,安静地贴在最右侧那组里。
… 缓存命中 99.6% ● 谷时 · 距峰时 00:19:52 ◔ 37%
↑ 这里 ↑ 上下文用量环
tabular-nums 等宽数字,数字跳动时不抖#ec1313 / #22c55e,深色主题下自动换成对应的 400 档),文字则压深一档保证可读——灯要艳,字要清radial-gradient(实心核 34% → 光晕 60% → 透明 86%),全部画在盒子内:box-shadow——iOS 会把「小尺寸 + 圆角 + 动画阴影」光栅化成方框(真机踩过);overflow 裁掉,光晕会被切成硬边,桌面和手机就对不上了。谷时 · 距峰时 3天 04:12:33
输入框下方那一行:● 谷时 · 距峰时 00:19:52,右邻是上下文用量环(◔ 37%)。
全部按北京时间(UTC+8,无夏令时),与浏览器所在时区无关:
| 时段 | 判定 |
|---|---|
| 峰时 | 周一至周五 09:00–12:00、14:00–18:00 |
| 谷时 | 其余全部时间:午休、夜间、周末、中国法定节假日全天 |
两个边界细节,按需求原文取的字面含义:
写死在 client.js 的 HOLIDAY_RANGES 里,一段一行,改起来就是加一行:
// 2026 · 国办发明电〔2025〕7 号
['2026-10-01', '2026-10-07', '国庆'],
// 2027 · 2026-11 公布;劳动节为预估,正式通知后改这一行
['2027-04-30', '2027-05-04', '劳动节'],
node scripts/validate.mjs 会提示缺失的国庆段来源:国务院办公厅关于2026年部分节假日安排的通知、2027 年放假安排。
# 从 GitHub
dsh plugin --profile web add github:wangjiaxi/dsh-peak-valley
# 从本地目录(开发时用,link 方式,改文件即时生效)
dsh plugin --profile web add /path/to/dsh-peak-valley
# 从 npm(发布之后)
dsh plugin --profile web add dsh-peak-valley@latest
装完刷新页面,输入框下方那一行最右边就会出现倒计时。
conversation.composer.dock —— 输入框卡片下方那一行「环境信息」槽位。这一行原本是:
[活动状态气泡] [本轮用量气泡] [上下文指示器]
现在是 … [本轮用量气泡] [峰谷倒计时] [上下文指示器](倒计时用槽位 order: 999 排在自己这一组的最后)。
[data-composer-dock]{flex-wrap:wrap}——一行放得下时它不产生任何变化。aria-label。apply(),不注册工具、不发请求、不写任何存储Date.UTC 系列取值就是北京墙上时间;切点只有 00:00 / 09:00 / 12:00 / 14:00 / 18:00 五个整点,所以找「下一次切换」是枚举候选点而不是逐分钟扫setInterval 只驱动一个 useState,组件是叶子节点,不碰会话数据node --check client.js
node scripts/validate.mjs # 等同于 npm run validate
逻辑本身用真实时刻表跑过一遍(工作日、午休、周末、国庆、春节、元旦、周日补班日):
2026-11-06T18:00 (周五收盘) → 谷时,下一次 2026-11-09T09:00(周一开盘)
2026-10-01T10:00 (国庆) → 谷时,下一次 2026-10-08T09:00
2026-01-04T10:00 (周日补班) → 谷时,下一次 2026-01-05T09:00
MIT
A live peak / off-peak countdown pinned to the right end of the composer dock, next to the context meter.
Two literal readings worth knowing: a weekend that the government designates as a make-up workday still counts as off-peak, and every day inside a holiday block counts as off-peak even if it would otherwise be a workday.
The holiday table is a plain array in client.js (HOLIDAY_RANGES) covering 2026 and 2027; add a line when the State Council publishes the next year. Unknown years fall back to "Monday–Friday", so it never throws.
dsh plugin --profile web add github:wangjiaxi/dsh-peak-valley CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。