
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-tidewatch
Advanced tools
DeepSeek 峰谷时刻悬浮卡片:官方峰谷时段、当前档位、距下一阶段倒计时与本次会话 API 花费(人民币)。A floating tide card for DeepSeek Harness: official peak/off-peak windows, live phase countdown and this session's API cost in CNY.
DeepSeek 峰谷时刻悬浮徽章:一张悬浮在输入框旁的潮汐卡,告诉你此刻是峰期还是谷期、距下一阶段还有多久、本次会话花了多少钱。
● 峰期 距谷期 03:33 · ¥0.12--dsw-* 变量)DeepSeek 官方自 2026-08-17 起实施峰谷分时定价:
| 时段(UTC) | 北京时间 | 档位 |
|---|---|---|
| 01:00 – 04:00 | 09:00 – 12:00 | 峰 |
| 04:00 – 06:00 | 12:00 – 14:00 | 谷 |
| 06:00 – 10:00 | 14:00 – 18:00 | 峰 |
| 10:00 – 次日 01:00 | 18:00 – 次日 09:00 | 谷 |
谷期价格为峰期的一半。徽章按 UTC 窗口判定当前档位(官方口径),时段表展示按北京时间。
周末规则(2026-08-23 起):周六/周日(UTC 自然日)全天按谷期计价,无峰谷切换;下一阶段切换点为下周一首次进入峰时。
需求:Node.js ≥ 20 + DeepSeek Harness(带
dsh plugin命令的版本)。
# npm 包安装(发布后可用)
dsh plugin --profile web add dsh-tidewatch
# 或本地目录(开发调试)
dsh plugin --profile web add link:./dsh-tidewatch
安装后重启 dsh web 生效。
dsh-tidewatch
├── package.json # dsh.bundle.patch + dsh.client.platform 声明
├── cordis.patch.yml # 装配行
├── scripts/build.sh # 构建:语法检查 + zod junction
├── lib/
│ ├── pricing.js # 纯函数:峰谷窗口、isPeakHour/peakPhaseAt、价格表、costOf
│ ├── index.js # 宿主:costUsage 会话投影(按事件时刻计费)
│ └── client.js # 前端:悬浮徽章(__ModuleLoader__ bundle)
├── docs/PORTING.md # 移植到其他宿主的适配说明
└── test/verify.mjs # 纯模块自检(node test/verify.mjs,19 项)
模型调用 usage 块(assistant/chunk、assistant/message 事件)
│ lib/index.js:costUsage 会话投影(zod schema 校验)
▼
token 桶 + 美元成本(按事件时刻峰谷档位)
│ useProjection('costUsage')(浏览器端)
▼
lib/client.js:悬浮徽章渲染(秒级倒计时 + 汇率换算显示)
DSH_CHECKOUT=<harness 源码根目录> bash scripts/build.sh # 语法检查 + zod junction
node test/verify.mjs # 峰谷数学与计费自检(19 项,含双份常量一致性)
lib/pricing.js(计费)与 lib/client.js 的 DISPLAY_PRICES(展示)两处常量峰谷数学(isPeakHour / peakPhaseAt / tierFor / costOf)与会话投影结构借鉴自 dsh-cost-meter(MIT License),按精简目标改写。
MIT © 2026 KhalilYamber
FAQs
DeepSeek 峰谷时刻悬浮卡片:官方峰谷时段、当前档位、距下一阶段倒计时与本次会话 API 花费(人民币)。A floating tide card for DeepSeek Harness: official peak/off-peak windows, live phase countdown and this session's API cost in CNY.
The npm package dsh-tidewatch receives a total of 40 weekly downloads. As such, dsh-tidewatch popularity was classified as not popular.
We found that dsh-tidewatch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.