mozhuanzuojing/dsh-liangwengu

梁文谷提醒:DeepSeek API 定价高峰/空闲时段提醒(DSH/Cordis bundle)— 卡通弹窗+系统通知+提示音+30分钟倒计时

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH), designed to remind users of DeepSeek API’s peak and off-peak pricing periods based on Beijing time. The name comes from a popular Chinese internet pun related to DeepSeek’s leadership: “Liang Wenfeng” sounds identical to “peak” in Chinese, while “Liang Wen Gu” translates to “valley”, which refers to off-peak pricing. DeepSeek API charges double the standard rate during peak hours (9 AM to 12 PM and 2 PM to 6 PM Beijing time), and half price during all other off-peak hours. This plugin helps users avoid unexpected high API costs by reminding them when the pricing tier changes.

It packs a lot of playful game-themed features to make the reminders more engaging, including timed pop-up alerts, a draggable persistent HUD capsule in the top-right corner of the DSH client, auto-switching day/night themes based on time of day, and a health bar that visualizes how much safe usage time you have left before peak hours hit. It also adds a Nine Realms cultivation system inspired by popular Chinese xianxia novels, where users can level up their cultivation by staying online during off-peak hours. All time calculations are locked to Beijing time, so they are not affected by your device’s local time zone setting, and missed reminders are automatically re-broadcast if you open the client within 15 minutes of the trigger.

This plugin is written entirely in pure JavaScript, with zero runtime dependencies, and only requires @deepseek-ai/cordis as a peer dependency. It can be installed via three different methods: from a local directory, from the npm registry as a package, or from a compressed tarball file. After installation, you just need to restart your DSH profile for the plugin to take effect. On first run, you will need to grant DSH permission to send browser notifications, and there is also a built-in debug tool that lets you manually trigger different types of reminders for testing. The entire project is open-sourced under the permissive MIT license, so it is free to use and modify.

这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,核心功能是按照 DeepSeek API 的定价时段,在对应时间提醒用户当前是高峰还是空闲时段。项目名称源自圈内梗:梁文峰对应“峰”(高峰时段,价格翻倍),梁文谷对应“谷”(空闲时段,价格半价)。DeepSeek API 高峰时段为北京时间 9:00–12:00、14:00–18:00,其余均为半价空闲时段。

它提供了非常丰富的游戏化提醒功能,包括定时弹窗提醒、右上角可拖动常驻胶囊 HUD、自动切换的昼夜主题、血条可视化剩余安全额度、凡人修仙传风格的修为等级系统,还有隐藏彩蛋、血雾氛围效果等。所有提醒都按照北京时间计算,不受用户机器本地时区影响,错过提醒会自动补播。适合日常调用 DeepSeek API 的开发者使用,帮助控制 API 调用成本。

该插件是纯 JavaScript 开发,零额外依赖,仅要求 peer 依赖 @deepseek-ai/cordis,支持从本地目录、npm 包或者压缩包安装,安装后重启 DSH 配置档即可生效。首次使用时需要允许浏览器发送通知权限,也提供了调试工具可以手动触发不同类型的提醒。项目采用 MIT 许可证开源,可免费使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 dsh-liangwengu

把 mozhuanzuojing/dsh-liangwengu 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-liangwengu · 梁文谷提醒

按 DeepSeek API 定价的高峰/空闲时段(北京时间)提醒你:峰来了快跑,峰走了开薅。

梗:梁文峰 = 峰 = 高峰时段(价格翻倍,快跑);梁文谷 = 谷 = 空闲时段(半价,随便薅)。 定价依据:https://api-docs.deepseek.com/zh-cn/quick_start/pricing —— 高峰时段为北京时间 9:00–12:00、14:00–18:00,其余为空闲时段(半价)。

变更 (v0.7.1)

  • 适配 DSH 0.1.2-rc.1:客户端胶囊改为在 shell.overlay 槽位 slots.inject 注册,并给客户端 plugin 加 inject: ['slots'],避免 ctx.get('slots') 一次判定因时序拿到 undefined 而走 fallback、胶囊不渲染。cordis 升到 ^4.0.2。
  • 已实测:0.1.2-rc.1 下胶囊 + 弹窗正常挂载。

功能

  • 到点大喊(北京时间,钉死 Asia/Shanghai,与机器时区无关):
    时刻 口号
    08:30 / 08:40 / 08:50 高峰倒计时:距 09:00 还有 30 / 20 / 10 分钟
    08:55 梁文峰要来了,块跑啊!
    12:00 乡亲们,梁文峰走了!!可以出来了! + 梁文谷 启动~~~
    13:30 / 13:40 / 13:50 高峰倒计时:距 14:00 还有 30 / 20 / 10 分钟
    13:55 梁文峰要来了,块跑啊!
    18:00 乡亲们,梁文峰走了!!可以出来了! + 梁文谷 启动~~~
  • 右下角卡通弹窗 bounce 跳入(气泡台词 + 卡通形象,8 秒自动收起,点击即关);
  • 游戏化 HUD(v0.2.0):右上角常驻胶囊——图标 + 阶段名 + 生命值血条 + 距下一事件倒计时;可拖动(位置记忆在 localStorage);点击展开详情(当前阶段卡 / 今日时间表 / HP 规则 / 今日播报记录);
  • 白天/月夜主题(v0.2.1):按北京时间自动识别——06:00–18:00 白天(☀️ 浅色日光胶囊),18:00–06:00 月夜(🌙 深蓝月光胶囊),1 秒内自动切换,详情面板同主题;
  • 血条煮水(v0.5.1):血条本身即"水"——宽度=血量,颜色/气泡=水温(倒计时水蓝→白、气泡随 HP 掉血增多,峰中满滚冒小汽),谷启动瞬间蒸汽从血条喷发 + 咕噜水声,HP 数字 <20 变红提示危险;
  • 隐藏彩蛋(v0.3.0):HP 归零瞬间(09:00/14:00)卡通放大弹跳 + 随机梗台词 + 屏幕轻震(如「梁文峰路过你工位,你屏住了呼吸」),每天限 2 次;
  • 血雾氛围(v0.3.0):屏幕四周红色 vignette 随 HP 降低渐显(峰值最浓),纯 CSS 不挡操作;
  • 打扰度配平(v0.3.0 / v0.4.3):弹窗每天仅 6 次(4 个主触发 + 2 次彩蛋),全部响亮(通知+声音);倒计时 6 次不再弹窗,由胶囊血条下滑 + 「距下一事件」实时承载;
  • 修仙等级(v0.4.0):凡人修仙传九境(炼气→筑基→金丹→元婴→化神→炼虚→合体→大乘→真仙),修为翻倍递增;渡劫(12:00/18:00 结算点在线 +1,每日 ≤2)+ 闭关(谷时段每在线 1h +1);突破金光动画+台词+升级音,真仙飞升全屏彩蛋;胶囊显示境界徽标,详情面板有修为卡;
  • 生命值 = 安全剩余量:谷中满血 100 → 倒计时掉血(距峰 30 分→70 / 20 分→40 / 10 分→10)→ 峰中回血爬升(血条从 0 向 100 涨,对应距峰走剩余,18:00 满血);
  • 浏览器系统通知(首次触发会请求授权,授权后到点弹系统通知,带卡通图标);
  • 提示音(Web Audio 合成,峰来急促下行音 / 开谷上行音;浏览器自动播放策略可能静音);
  • 错过补偿:页面打开时距最近主触发点 ≤15 分钟补播该口号(倒计时过期不补播,避免陈旧播报),否则弹一次性当前阶段播报(高峰「梁文峰还在盯场」/ 空闲「梁文谷进行时」)。

安装

# 本地目录
dsh plugin --profile <name> add ./dsh-liangwengu

# 或 npm 包 / tarball
dsh plugin --profile <name> add dsh-liangwengu
dsh plugin --profile <name> add ./dsh-liangwengu-0.1.1.tgz

重启 profile 后生效。浏览器首次弹出时允许「通知」权限即可收到系统通知。

调试:devtools 里 window.__lwgTest('warn' | 'good' | 'cd' | 'phase') 可手动触发弹窗。

结构

dsh-liangwengu/
├── package.json        # dsh.bundle.patch → cordis.patch.yml;dsh.client → 浏览器半
├── cordis.patch.yml    # 插件行:- insert: id liangwengu / name dsh-liangwengu
├── src/index.js        # 宿主半:读 assets/cartoon.jpg,挂 /liangwengu/cartoon.jpg 路由供图
├── lib/client.js       # 浏览器半:调度 + 弹窗 + 通知 + 声音(ModuleLoader bundle)
└── assets/cartoon.jpg  # 卡通形象(弹窗头像 + 通知图标)

发布

  • 发布 npm:pnpm pack 出 tarball(files 已含 src/lib/assets/cordis.patch.yml/README),pnpm publish 前无需构建(纯 JS)。
  • GitHub 发布:仓库打 dsh-plugin topic;git 安装无需 prepare 脚本(无编译产物)。
  • 说明:本包纯 JS、零依赖(仅 peer @deepseek-ai/cordis),从 git/npm 安装都不需要 allowBuilds。

License

MIT

← 上一个 Prev dsh-web-terminal 下一个 Next dsh-memory-graph →