KeqingMoe/dsh-feng-gu
Project Overview项目介绍
dsh-feng-gu is a pun-named native plugin built exclusively for the DeepSeek Harness (DSH) web UI. The name comes from a Chinese wordplay on DeepSeek CEO Liang Wenfeng’s name and DeepSeek API’s peak-valley tiered pricing, which launched August 17, 2026. The plugin displays the current peak or off-peak pricing status in the bottom right corner of the DSH UI, adds a real-time countdown to the next pricing switch, and includes full pricing explanations. It adapts automatically to DSH’s dark and light themes using native DSH theme tokens, and all time calculations are hardcoded to UTC+8 Beijing time regardless of the user’s browser timezone setting.
This plugin is intended for developers who use DeepSeek API with the DSH web UI, and it helps users avoid unexpected API usage costs by making the current pricing tier immediately visible at a glance. Installation only requires a single command run from your terminal to pull the plugin directly from GitHub, no local repository cloning or manual extra configuration is needed. After running the install command, you just need to restart your DSH web UI to see the status badge in the bottom right corner. Clicking the badge opens a detail modal that shows the full pricing schedule and the origin of the pun.
dsh-feng-gu is released under the permissive MIT open source license, so it is free to use, modify, and redistribute by anyone. It only supports the DSH web UI and does not offer any integration for other agent platforms or clients. For developers who want to modify the peak and off-peak time windows, all you need to do is adjust the PEAK_WINDOWS constant at the top of src/client/index.ts in the source code. The repository includes a built-in smoke test script to validate time logic and plugin registration, making local development and debugging straightforward.
这是一款专为 DeepSeek Harness (DSH) 打造的原生 Web UI 插件,名字取自 DeepSeek 创始人梁文峰与 DeepSeek API 峰谷定价的谐音梗。插件会在 DSH Web 界面右下角实时展示当前处于峰谷定价的哪个时段,同时附带下次切换的倒计时和完整价格说明。它遵循 DSH 主题 token 适配,深色、浅色主题下都能自然显示,时段计算固定使用 UTC+8 北京时间,不依赖浏览器自身时区设置。
这款插件面向使用 DeepSeek API 搭配 DSH Web UI 的开发者,帮助用户快速掌握当前API定价档位,避免因不熟悉峰谷规则产生额外的使用成本。安装流程非常简单,只需要一条命令即可从 GitHub 直接拉取安装,不需要克隆仓库,也不需要额外配置。安装完成后重启 DSH Web UI 就能在右下角看到状态徽章,点击徽章即可展开查看详情。
本插件遵循 MIT 开源协议,免费供用户使用和修改,当前仅支持 DSH Web 端,不对其他客户端或第三方 agent 平台提供适配。如果需要修改峰谷时段规则,只需要调整源码中 src/client/index.ts 顶部的 PEAK_WINDOWS 配置即可。项目内置冒烟测试脚本,可以验证时段逻辑和插件注册流程,方便本地二次开发调试。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-feng-gu(KeqingMoe/dsh-feng-gu)
仓库:https://github.com/KeqingMoe/dsh-feng-gu
本站详情页:https://www.yhbd.top/plugins/keqingmoe-dsh-feng-gu/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-08-24 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:KeqingMoe/dsh-feng-gu#v0.1.0
把 KeqingMoe/dsh-feng-gu 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-feng-gu · 梁文峰 / 梁文谷 实时播报
DeepSeek Harness 整活插件:DeepSeek API 采用峰谷定价(2026-08-17 生效), 而 DeepSeek 老板叫梁文峰 —— 所以高峰期就是梁文峰,低谷期就是梁文谷。 本插件在 Web UI 右下角实时显示此刻是哪一位,附切换倒计时与完整价格说明。
功能
- 🔥 梁文峰(高峰):北京时间每日 09:00–12:00、14:00–18:00,价格翻倍,缓存命中输入最高 +1100%
- 🌙 梁文谷(空闲时段):其余时间(含夜间、周末及节假日),价格为高峰的一半
- 每秒实时刷新:当前北京时间 + 距下次切换的
HH:MM:SS倒计时 - 点击徽章展开详情卡:峰谷时段表、价格说明、梗的出处
- 判断基于 UTC+8 手动换算,与浏览器时区设置无关
- 样式走 DSH 主题 token(
--dsw-alias-*),深色/浅色主题下都自然
安装
一条命令,从 GitHub 直接安装(无需克隆本仓库、无需任何额外配置):
dsh plugin --profile web add github:KeqingMoe/dsh-feng-gu#v0.1.0
--profile web对应你启动 Web 界面的那个 profile;从源码运行 dsh 时命令前缀 是pnpm dsh(如pnpm dsh plugin --profile web add ...)。
安装成功后重启 Web UI,右下角即出现徽章(从源码运行:pnpm dsh web)。
卸载:
dsh plugin --profile web remove dsh-feng-gu
#v0.1.0是钉住的 tag,不会因后续推送而静默变化。
它是怎么工作的
DSH 的 Web 端支持开箱即用的第三方客户端插件,无需重新编译 web app:
- 本包同时声明了
dsh.bundle(cordis.patch.yml插入一行插件)和dsh.client(platform: web,浏览器半)。 - web shell 的 modules 节点半会扫描 Loader 里所有带
dsh.client声明的包, 解析其exports["./client"]构建产物,并在/plugins/<id>/client.js下发。 - 浏览器侧的模块加载器把
lib/client.js当作一个闭包工厂 (window.__ModuleLoader__.load({ id, factory }))懒加载;react、@deepseek-ai/cordis等平台模块从 shell 冻结的模块表解析,其余代码全部内联。 - 插件在
apply()里通过slots服务注册到shell.overlay座位(右下角悬浮层, 可点击、不挡 UI),并通过ctx.effect托管自己的<style>标签,卸载即清理。
开发
dsh-feng-gu/
├── cordis.patch.yml # bundle 层:插入插件行
├── tsdown.config.ts # 双构建:node 半 lib/index.js + 浏览器半 lib/client.js
├── src/
│ ├── index.ts # node 半(Loader 行载体,空 apply)
│ └── client/
│ ├── index.ts # 浏览器半:computeState / 徽章组件 / apply
│ └── badge-css.ts # 样式(纯 CSS 字符串,跟随插件生命周期)
└── scripts/smoke.mjs # 无浏览器冒烟测试:注册、工厂物化、时段逻辑
常用命令:
pnpm install
pnpm build # 构建 lib/
pnpm test # 冒烟测试(模拟 loader 加载 lib/client.js 并验证时段边界)
pnpm typecheck # tsc --noEmit
本地改完想装到自己的 profile 里看效果:
dsh plugin --profile web add ./dsh-feng-gu
dsh web
改动时段规则只需动 src/client/index.ts 顶部的 PEAK_WINDOWS(高峰窗口,
单位:北京时间的秒)。
定价依据
DeepSeek 官方 2026-08-13 调价公告(8 月 17 日 00:00 生效):采用峰谷定价, 高峰时段为北京时间每日 9:00–12:00、14:00–18:00,其余时间(含夜间、周末及 节假日)为空闲时段;空闲时段价格为高峰时段的一半,高峰价格为基准价 2 倍。 V4-Pro 缓存命中输入高峰价 0.3 元/百万 tokens,较调价前 0.025 元涨幅达 1100%。 参见官方调价公告相关报道。
License
MIT © 2026 Teru Shigure (時雨てる)
turtle1999/turtle-ui
ph4310822/dsh-edex-ui
Abyss-Seeker/dsh-plugin-working-status
skymecode/dsh-deep-diving
Small-tailqwq/dsh-deep-whale