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-session-recycle-bin

v0.3.3

Published

DSH 会话回收站:侧边栏删除图标、回收站多选还原/彻底删除、活跃会话保护。 · Session trash & permanent delete for DeepSeek Harness.

Readme

dsh-session-recycle-bin

DSH 会话回收站与彻底删除插件(DeepSeek Harness)。

侧边栏一键移入回收站,设置页多选还原/彻底删除,活跃会话安全拦截。

English | 中文


✨ 功能特性

  • 侧边栏会话行删除图标 — 悬停会话行出现小垃圾桶图标,点击即移入回收站(免确认,随时可找回)。
  • 会话头部删除按钮 — 从会话页顶部删除当前会话。
  • 回收站管理器(设置 → 🗑 会话回收站)— 已归档会话多选:批量还原、批量彻底删除;条目显示 ID 与路径。
  • 真正的彻底删除 — 物理清除磁盘日志与投影缓存;无日志的幽灵会话被彻底清理,不会残留。
  • 活跃会话保护 — 正在运行(有活跃 agent)的会话拒绝删除。
  • 批量容错 — 批量操作逐条执行,收集并汇报失败项。
  • 浅色/深色自适应界面 — 所有颜色以 CSS 变量(设计令牌)收敛在 client.css,组件优先跟随 DSH 应用外观(data-ds-dark-theme),并以 prefers-color-scheme 作为系统级兜底,无硬编码色板。

📦 安装

从插件市场一键安装(dsh-market)

收录进 awesome-dsh-plugin 注册表后:打开 设置 → 插件市场 → 搜索 dsh-session-recycle-bin → 安装。

手动安装

dsh plugin --profile web add dsh-session-recycle-bin

安装完成后重启 Web 服务(停止 dsh web 进程后重新启动)。

本地开发安装

dsh plugin --profile web add link:/绝对路径/harness-session-delete

卸载

dsh plugin --profile web remove dsh-session-recycle-bin

🚀 使用说明

  1. 侧边栏删除 — 悬停左侧会话列表中的会话,点击垃圾桶图标:会话移入回收站,行即时消失。
  2. 设置页回收站 — 打开「设置 ⚙️ → 🗑 会话回收站」:
    • 复选框多选 → 还原(批量解除归档)或 彻底删除(批量清除)。
    • 每个条目显示会话名、ID 与工作路径(悬浮查看完整信息)。
  3. 彻底删除 物理清除日志与投影缓存;活跃会话受保护。
  4. 撤销 — 还原操作带撤销提示,可重新归档。

🛠 开发

pnpm test          # 运行测试套件(host 逻辑 + HTTP 路由层)

仓库结构:

harness-session-delete/
├── package.json            # 单包 bundle 声明(dsh.bundle.patch + dsh.client)
├── cordis.patch.yml        # bundle patch:一行 insert 挂载 host 行
├── index.js                # node 半边:host 入口(inject + apply)
├── client.js               # browser 半边:侧边栏图标 + 设置页回收站
├── client.css              # 插件样式表:设计令牌 + 浅色/深色自适应组件
└── packages/
    └── session-trash-host/ # host 实现(persistence/workspace/cache 补丁、HTTP 路由)

🔌 工作原理

  • 单包 bundle 同时覆盖两端,与其它已发布插件一致:host 半边由 cordis.patch.yml 挂载;浏览器半边经 dsh.client + exports["./client"] 自动进入模块图。
  • 浏览器通过插件自身的 /api/session-trash/* HTTP 路由与宿主通信(webserver 注册;非 GET 请求携带 x-dsh-plugin CSRF 头)。

📄 许可证

MIT