dsh-pace-calc
toolstested: passnpmMIT
Running pace calculator: converts distance and time to min/km pace and km/h speed.
下载量 / Downloads
1,339
依赖体积 / node_modules
0.01 MB
测试时间 / Tested
2026-11-06
DSH 版本 / Version
0.2.2-rc.1
Install
dsh plugin --profile web add dsh-pace-calc
Sandbox test results
| Stage | Result |
|---|---|
| 1 install | ✓ |
| 2 list | ✓ |
| 3 mount | ✓ |
| 4 boot | — |
Four stages run in an isolated sandbox: install (network on) → list → mount → boot (last three with no network).
README
dsh-pace-calc · 配速计算
DeepSeek Harness 跑步配速计算插件 — 一次调用换算出配速(分/公里)与速度(公里/小时)。
纯 Node 实现,零依赖、无网络请求、离线可用。


工具
pace_calc
参数 · 类型 · 默认 · 说明
dist · number · 5 · 距离(公里),如 21.0975(半马)、42.195(全马)
min · number · 30 · 用时(分钟)
sec · number · 0 · 用时(秒),与 min 相加
返回:距离、用时、配速(分′秒″/km)、速度(km/h)。
示例
pace_calc(dist=5, min=30) → 6′00″/km,10 km/h pace_calc(dist=21.0975, min=90) → 4′16″/km,14.1 km/h (半马 1:30:00) pace_calc(dist=42.195, min=180) → 4′16″/km,14.1 km/h (全马 3:00:00)
计算方式:配速 = 总时间 ÷ 距离,速度 = 距离 ÷ 总时间。
安装
# npm(推荐) npm install dsh-pace-calc # 或从 GitHub 直装 dsh plugin add github:uckkk/dsh-pace-calc
装完重启 DSH 页面,之后在会话里直接让模型调用 pace_calc 即可。
许可
MIT
Rendered from the README published on npm. Formatted only, not edited.
Versions
Published on npm::2,最后更新 2026-09-15