rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ttxl314/dsh-ds-peak-valley
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A tiny client-only plugin for DeepSeek Harness (DSH): it pins a peak / off-peak badge
(文峰 / 文谷) next to the session stats line at the bottom of the conversation
(1 轮 · 68 步 | LLM ...), and keeps it in sync with Beijing time.
| State | When (Beijing time) | Color |
|---|---|---|
| 文峰 peak | Mon–Fri 09:00–12:00 and 14:00–18:00 | red #e5484d |
| 文谷 valley | every other moment (nights, lunch break, weekends) | blue #0091ff |
Badge anatomy:
文峰 14:26 · 距下谷 3小时34分
└─┬─┘ └─┬─┘ └───┬───┘ └──┬──┘
state Beijing next switch time left
clock direction (h/min)
距下谷 (blue) — the schedule is about to drop into 文谷 at 12:00 / 18:00.距下峰 (red) — the schedule is about to enter 文峰 at 09:00 / 14:00.距下峰 2天15小时, not 63小时 (weekend breaks are long).The windows follow the footnote of the official pricing page: https://api-docs.deepseek.com/zh-cn/quick_start/pricing/.
Requirements: a DSH installation with a web or desktop profile, Node.js ≥ 18.
Clone the repository, then register it as a tree-outside bundle of the target profile:
git clone https://github.com/ttxl314/dsh-ds-peak-valley.git
dsh plugin --profile web add link:<path-to-clone>
Or edit the profile manifest by hand (typically $DSH_HOME/profiles/web/package.json):
{
"dependencies": {
"@ttxl314/dsh-ds-peak-valley": "link:<path-to-clone>"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"@ttxl314/dsh-ds-peak-valley"
]
}
}
}
Restart DSH afterwards; the badge appears in the composer dock next to the stats line.
To uninstall, drop the package from dependencies and from dsh.profile.bundles.
conversation.composer.dock slot (id: ds-peak-valley, order: 1),
so it sits on the same row as the session stats strip.Intl.DateTimeFormat (Asia/Shanghai), then re-rendered once a minute.lib/index.js host entry — a no-op apply(); it exists so the package stays a
loader entry that dsh-client-modules can scan for dsh.client
lib/client.js browser bundle — the badge component and the schedule math
cordis.patch.yml bundle patch — inserts the plugin row into the profile tree
computeStatus(date) → "peak" | "valley", from the weekday plus the minute of day.nextTransition(date) → { kind, minutes }, the next 峰↔谷 boundary and how far away it is
(weekends collapse into one long valley, so the next change is Monday 09:00).Asia/Shanghai because the pricing schedule is defined in
Beijing time; the machine's own timezone is irrelevant.window.__ModuleLoader__.load({ id }) and that id must equal the
package name: the host composes the browser boot graph per package name, so a bundle that
registers under any other id silently never mounts.The badge is computed entirely on the client: no HTTP requests, no telemetry, no API key, no token consumption, and no repository or session data is read. Nothing leaves the page.
node test/self-test.mjs # or: npm test
The self-test loads lib/client.js against a stub window.__ModuleLoader__ and a stub
react, then asserts:
45分, 2小时30分, 2天15小时),CI runs the same suite on Node 18/20/22 (see .github/workflows/test.yml).
Written against the DSH client plugin API: the conversation.composer.dock slot,
the react seed module and window.__ModuleLoader__ with dsh.client.platform = "web".
Verified against DSH 0.2.1-rc.5 on both the desktop and the web profile. If a future DSH release renames the slot or the
loader entry point, only lib/client.js needs adjusting.
dependencies matches
@ttxl314/dsh-ds-peak-valley exactly, that it is listed in dsh.profile.bundles, and
that the link: target still exists after moving the checkout.package.json, cordis.patch.yml and the id inside
lib/client.js together; npm test fails until they agree.See CHANGELOG.md for the release history.
MIT — see LICENSE.
Unofficial community plugin; not affiliated with or endorsed by DeepSeek. If DeepSeek
changes its peak/off-peak windows, update PEAK_WINDOWS / PEAK_WEEKDAYS at the top of
lib/client.js.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。