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.12

Published

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

Readme

@weibaohui/dsh-continue

DSH plugin npm version

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

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

核心功能

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

安装

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

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

本插件的 bundle patch 不改动 compaction-basic。 web bundle 默认把压缩后端 放在每个 agent preset 的 isolate 域里,profile 也可能在宿主平面挂别的后端 (例如 @aiwayds/dsh-dcp);强行把那一行改成 disabled: false 会和它们抢同一个 compaction 服务,导致对方启动失败。插件改为懒解析 ctx.get('compaction'): 宿主平面有后端就用,没有就降级为止损通知。

使用

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

联系我 :飞书群

link

版本兼容性

本插件与 DeepSeek Harness(@deepseek-ai/dsh)的版本对应关系:

| 插件版本 | 适配 dsh 版本 | 备注 | |---------|--------------|------| | 0.3.11 | 0.1.7-rc.2 | 当前版本;通知消息补 id 与 role,修复通知写入后整个会话下次打开即拒载(#8,#9)。已用真实宿主 dsh-session 0.2.0-rc.2 端到端实测通知写入→重载 | | 0.3.10 | 0.1.7-rc.2 | max-tokens 输出截断纳入自动续跑(新增 when: 'max-tokens' 与默认规则 r-max-tokens,aborted 保持跳过),规则条件可视化编辑与中英文案同步(#6) | | 0.3.9 | 0.1.7-rc.2 | 冷却窗口内的失败改为推迟续跑(修复快速失败场景只续跑一次即停摆);通知延后投递并带 surfaceOp 标记(修复止损/达限通知静默丢失)。已在隔离 web 实例端到端实测续跑循环 | | 0.3.8 | 0.1.7-rc.2 | 适配 dsh 0.1.7 会话来源格式(producer-owned dsh-continue kind)与压缩后端懒解析(不再进 inject、不再改 compaction-basic 行),修复 web profile 续跑必失败 | | 0.3.4 | 0.1.7-rc.2 | 修复宿主将 volatile 字段物化为 {} 导致的设置毒化(saneConfigValues 清洗 + 移除 Config 兼容字符串字段) | | 0.3.3 | 0.1.7-rc.2 | 当前版本;适配 0.1.7 settings 模型(导出 volatile Config,ctx.settings.update 持久化),面板改动重启不再丢失 | | 0.3.1 | 0.1.7-rc.2 | 已在 @deepseek-ai/[email protected] 下验证运行 |

发版约定:每次发布新版本时,请在上表追加一行,记录该插件版本实际验证所用的 @deepseek-ai/dsh 版本。package.json 的 engines.dsh 声明最低支持版本;本表记录实际验证版本,二者配合使用。