DeepSeek Harness Plugin

uckkk/dsh-pace-calc

Stars ★ 1 Downloads (30d) 529 Category Tools & Capabilities Added 2026-08-24 npm dsh-pace-calc

Running pace calculator: converts distance and time to min/km pace and km/h speed.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-pace-calc

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:uckkk/dsh-pace-calc

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

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

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.