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-archived-tasks

v0.1.0

Published

DSH web GUI plugin: an "Archived Tasks" settings page that lists archived sessions and supports restore or permanent delete

Readme

dsh-archived-tasks — DeepSeek Harness 已归档任务插件

English | 中文

DeepSeek Harness Web GUI 插件:在设置页新增一个已归档任务页面,列出所有 已归档会话,可一键恢复,或彻底删除其日志文件与注册表引用。

安装

已发布到 npm,作为 profile bundle 一条命令安装:

dsh plugin --profile web add dsh-archived-tasks

安装后重启 dsh web,打开 设置 → 已归档任务 即可看到。

卸载:

dsh plugin --profile web remove dsh-archived-tasks

功能

设置页列出 workspace 注册表中归档集合(archivedSessionIds)里的会话:

  • 恢复:把会话 id 从注册表的 archivedSessionIds 中移除;会话日志与 workspace 记账保持不变。
  • 删除:破坏性且不可恢复。会 rm -rf 删除 data/sessions 下的会话日志 目录,从归档集合中移除该 id,摘除内存中的会话,并从所有 workspace 的 记账列表中清除该 id。

删除路由有刻意防护:

  • 仅接受 POST 且同源请求(对 Origin 头做轻量 CSRF 校验)。
  • 会话 id 必须匹配 ^session-[0-9a-f-]+$,杜绝路径穿越。
  • 删除前会确认解析出的会话路径恰好位于 data/sessions/<encoded-cwd>/ 下一层。
  • dataRoot 解析顺序:config.dataRoot$DSH_DATA_ROOT$DSH_HOME → 从模块位置向上自动探测(本地 vendor 布局与 npm 安装布局均可用)。

开发

# 本地 link 安装(在本仓库目录下)
dsh plugin --profile web add link:$(pwd)

# 发布新版本
npm publish --access public

许可证

Apache-2.0