deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DeepSeek 峰谷计价告警插件 for DeepSeek Harness (DSH): 监测 DeepSeek 高峰计价时段(北京时间 09:00–12:00、14:00–18:00,价格 ×2), 通过会话标题栏常驻徽章 + 入峰/出峰 toast 提醒你当前计价档位。
纯告警:不注入 systemPrompt、不改模型输出、不做任何省钱改造——只提醒。 (如需高峰时段自动精简输出的省钱模式,参见 dsh-peak-cost-mode,本插件是它的告警子集。)
本插件为本地开发形态,用 dsh-super-injector 注入(免重启):
# 构建(需 DSH checkout,或注入器环境内 dev_build_plugin)
DSH_CHECKOUT=<checkout> bash scripts/build.sh # host → lib/index.js
npm run build:client # client → lib/client.js(tsdown)
# 注入器环境内
dev_build_plugin {"dir": "/path/to/dsh-peak-alarm"}
dev_inject_plugin {"dir": "/path/to/dsh-peak-alarm"}
或作为普通 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}] |
高峰窗口(北京钟点) |
src/index.ts):timer.interval 每 30 秒计算北京钟点(Date.now() + 8h,UTC 字段即北京钟点);档位切换写日志;状态经 GET /api/peak-alarm/state 暴露为 JSON:{"inPeak":true,"peakWindow":"09:00–12:00 / 14:00–18:00","multiplier":2,"nowChina":"15:56","nextSwitch":"18:00 退出高峰"}
src/client/index.ts):每 30 秒轮询该接口,渲染 conversation.session.header.utilities 徽章与 shell.overlay toast。所有资源挂 ctx.effect,卸载即净。npm run typecheck # host 类型检查
npm run build # host 构建
npm run build:client
BSD-3-Clause(与 dsh-super-injector 脚手架一致);窗口检测逻辑参考 dsh-peak-cost-mode(MIT)。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。