npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-restart

v0.1.1

Published

DSH 重启插件:可配置的重启方式(Node 原生 / 旧 PowerShell 适配)、重启后自动继续的提示词、可选看门狗自动拉起。

Downloads

473

Readme

dsh-restart

重启整个 DeepSeek Harness 进程的插件,用于重新加载插件与配置(profile 的 cordis 组合、settings 等)。host + client 双半,装进 profile 的 bundle 后即可用。

DSH 重启插件设置

截图来自真实 web profile 部署,展示当前 DSH 设置页中的重启配置卡片。

功能

  • 模型工具 restart_harness:让 agent 直接安排一次进程重启(可选 delayMs)。
  • /restart 斜杠命令:在 UI 里手动触发重启。
  • 配置卡片(设置 → 插件 → 插件配置 → 「DSH 重启」):可视化编辑以下设置,改动即时写入 settings.yaml
    • legacyRestart — 旧 PowerShell/WMI/taskkill 重启方式(默认关闭,用 Node 原生方式)。
    • continuePrompt — 重启后自动继续时注入给 agent 的提示词。
    • watchdogEnabled — 崩溃/关闭时自动拉起 DSH(默认关闭,需谨慎)。
    • watchdogCooldownMs / watchdogPollMs — 看门狗冷却与轮询间隔。
  • 「立即重启」按钮:卡片内的同源重启端点。出于安全考虑,仅接受来自环回地址(127.0.0.1 / localhost)的同源 POST 请求;经反向代理/远程访问时该按钮会被拒绝(403)。

安装

  1. 把包加入 profile 依赖并挂进 bundle:
// profiles/<profile>/package.json
{
  "dependencies": { "dsh-restart": "..." },
  "dsh": { "profile": { "bundles": ["...", "dsh-restart"] } }
}
  1. 重启 DSH(/restartrestart_harness),刷新页面后即可看到卡片。

构建

pnpm install
node scripts/link-dsh-workspace.mjs --source <path-to-deepseek-harness>
pnpm run build

host 半由 tsc 输出到 lib/index.js@deepseek-ai/* 保持外部依赖);client 半由 tsdown 打成单文件 lib/client.js