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

@mill413/dsh-session-resume

v0.4.0

Published

会话因崩溃或重启中断时,在输入框上方显示「继续」按钮,一键接续该轮任务。

Downloads

678

Readme

@mill413/dsh-session-resume

dsh-session-resume 插件:让 DeepSeek Harness 中因进程意外退出而中断的任务,可以点击「继续」恢复。0.4.0 单包同时包含宿主部分(中断投影、恢复动作、模型侧提示)和浏览器部分(./client,输入框上方的继续条),DSH 通过 dsh.client 自动发现浏览器入口。该版本已针对 DSH 0.1.7-alpha.2 验证。

安装

使用当前 DSH CLI 把统一包安装到 profile:

dsh plugin --profile web add @mill413/[email protected]

本地验证时请先构建当前 checkout,再把 packages/session-resume 的绝对路径装入 profile。安装后重启 DSH Web 并刷新页面,不要手动修改 profile 的 bundle patch。

行为

  • 从宿主修复后的日志生成 sessionResume 投影:只识别 reason.kind === 'interrupted' 的 turn/end,下一次 turn/start 清除状态。
  • 提供 resume 远程动作,发送续跑消息前再次核对已加载会话。
  • 将工具安全指引放到 next-turn 队首,再通过 agent.steer() 发送简短的继续提示,使续跑指引先于已有排队轮次送达。
  • 发送两条插件来源的 notice 消息,对模型可见并记入日志;不伪装成人工输入,不修改系统提示。

恢复必须由用户点击触发,没有配置项。提示要求模型避免重复已完成步骤,并在重试非幂等操作前检查外部状态;这不是防重复执行保证,也不会恢复进程内存。

主动取消、token 上限、普通错误、blocked 状态和空闲的 goal 后台工作不会触发本功能。

开发

不需要 Harness 源码目录。使用 Node.js 24 和 pnpm 11.26.0,DSH SDK 开发依赖固定为 npm 发布的 0.1.7-alpha.2。在插件仓库根目录执行:

pnpm install --frozen-lockfile
node --test scripts/release.test.mjs
npm test
npm run build
node scripts/pack-release.mjs

最后一步检查包内容并在 dist/ 生成一个 tarball,不会发布到 npm。

完整安装与排查说明见仓库根目录 README。

许可

MIT