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

@weibaohui/dsh-continue

v0.3.0

Published

dsh 插件 · 自动续跑:agent 会话中断后自动帮你续上,不用手敲「继续」。有序规则表按失败类型(限流/额度/鉴权/上下文超限/崩溃孤儿)路由——自动退避重试、换模型继续、压缩上下文后继续或止损通知,规则可视化编辑,全程活动日志。

Readme

@weibaohui/dsh-continue

DSH plugin npm version

自动续跑插件:agent 会话中断后自动帮你续上,不用手敲「继续」。

自动续跑:有序规则表设置面板

核心功能

  • 自动续跑:检测到传输错误、崩溃孤儿轮等失败后,自动向同一会话重发续跑指令,带冷却与指数退避
  • 有序规则表:不同失败类型走不同策略,从上到下先命中先用——
    • 限流(429):自动退避重试(尊重服务商要求的等待时间),最多 5 次
    • 额度耗尽 / 鉴权失败:立即止损并通知,不白白重试
    • 上下文超限:自动压缩会话上下文,压缩成功后继续跑
    • 崩溃孤儿轮 / 其他错误:自动继续
    • 自定义状态码:自己填状态码列表,命中即按该规则续跑——数字匹配 HTTP 状态码(如 529520),文字匹配机器码(如 UNKNOWN),大小写不敏感;放在「服务端错误」上方即可让特定状态码优先走专属策略
  • 失败后自动换模型:同一失败连续 N 次仍不成功,后续续跑自动切换到备用模型(如主模型限流后换备用模型接着跑)
  • 可视化管理:设置页里规则、开关、次数、退避参数全部可视化编辑;provider 和模型一律下拉选择
  • 全程可查:每次续跑、换模型、停止原因都有活动日志

安装

dsh plugin --profile web add @weibaohui/dsh-continue -w

装完重启 dsh web 即生效。默认规则开箱可用,无需任何配置。

使用

  1. 打开 Web UI → 设置页 → 自动续跑
  2. 总开关默认开启,默认规则表已覆盖常见失败场景
  3. 想自定义:编辑规则表(匹配条件 + 动作)、调整续跑上限/退避参数、选备用模型
  4. 失败发生时插件自动介入;会话里会收到续跑与停止原因的通知,活动日志在设置页可查

联系我 :飞书群

link