Xpectuer/dsh-peak-alarm
Xpectuer★ 0TypeScript最后同步: 2026-08-18
DeepSeek peak-pricing alarm for DSH: Beijing peak hours (09:00-12:00 / 14:00-18:00, price x2) header badge + peak/valley transition toasts — alarm only, no prompt injection. · DeepSeek 峰谷计价告警插件(纯告警)
README 摘要
dsh-peak-alarm DeepSeek 峰谷计价 告警 插件 for DeepSeek Harness (DSH): 监测 DeepSeek 高峰计价时段(北京时间 09:00–12:00、14:00–18:00,价格 ×2), 通过会话标题栏常驻徽章 + 入峰/出峰 toast 提醒你当前计价档位。 纯告警 :不注入 systemPrompt、不改模型输出、不做任何省钱改造——只提醒。 (如需高峰时段自动精简输出的省钱模式,参见 dsh-peak-cost-mode,本插件是它的告警子集。) 功能 - 高峰检测 — 每 30 秒按北京时间(UTC+8,无夏令时)检查 DeepSeek 峰谷计价表: 窗口(北京) 档位 价格 09:00–12:00 高峰 ×2 12:00–14:00 低谷 ×1 14:00–18:00 高峰 ×2 18:00–次日 09:00 低谷 ×1 - 常驻状态徽章 — 会话标题栏右侧(会话日志按钮左侧):高峰红底「⚠ 高峰 ×2」、低谷绿底「低谷 ×1」、未连接灰色;悬停可见完整信息(档位 / 倍率 / 窗口 / 北京当前时间 / 下次切换)。 - 档位切换 toast — 每次入峰/出峰弹右上角提醒,10 秒自动消失,点击可关闭。 安装 / 注入 本插件为本地开发形态,用 dsh-super-injector 注入(免重启): 或作为普通 bundle 插件安装: dsh plugin --profile web add /path/to/dsh-peak-alarm ,然后重启 dsh web 并刷新页面。 配置 Host 支持 Config (schemastery,可在 cordis 配置中覆盖): 字段 默认 说明 intervalMs 30000 检查间隔(毫秒,最小 1000) windows [{start:9,end:12},{start:14,end:18}] 高峰窗口(北京钟点) 工作原理 - Host ( src/index.ts ): timer.interval 每 30 秒计算北京钟点( Date.now() + 8h ,UTC 字段即北京钟点);档位切换写日志;状态经 GET /api/peak-alarm/state 暴露为 JSON: - Client ( src/client/index.ts ):每 30 秒轮询该接口,渲染 conversation.session.header.utilities 徽章与 shell.overlay toast。所有资源挂 ctx.effect ,卸载即净。 开发 License BSD-3-Clause(与 dsh-super-injector 脚手架一致);窗口检测逻辑参考 dsh-peak-cost-mode(MIT)。
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 182,325
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,477
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 17,784