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-sight

v0.2.10

Published

DeepSeek Harness 会话「看清再动手」外挂:归档/彻底删除(走系统回收站)+ 会话内容只读预览(Markdown),零依赖、不 patch 官方。

Readme

dsh-session-sight

DeepSeek Harness(DSH)会话「看清再动手」外挂插件。

侧栏底部两个入口,删/归档会话前先看清内容,删得干净、归档不毁数据。

  • 零依赖:host 端不 import 任何 @deepseek-ai/* 包,只用 Node 内置 + 官方公开 service;
  • 不 patch 官方:外挂式挂载,dsh 升级不受影响;
  • 看清再动手:活跃/归档会话都能只读预览内容(Markdown 渲染);
  • 删除走系统回收站:彻底删除进 Windows 回收站,还能捞回来;
  • 归档不毁数据:走官方 archiveSession,日志与位置保留,可随时取消归档。

功能

侧栏底部两个入口:

| 入口 | 列表 | 每行动作 | |---|---|---| | 🗑 删除会话 | 活跃会话(含「当前」标记) | 预览 / 归档 / 彻底删除 | | 📦 归档列表 | 已归档会话 | 预览 / 取消归档 / 彻底删除 |

预览面板只读展示最近 20 条「你 / 助手」消息,支持 GFM Markdown(标题、列表、表格、代码块、引用等)。

命令

插件提供 9 个斜杠命令。UI 只走「归档 + 彻底删除」这条主线;临时回收站命令已由归档替代,仅保留供命令行使用。

当前核心命令

| 命令 | 作用 | |---|---| | /archive-session <id\|标题> | 归档(隐藏、不毁数据,可取消归档还原) | | /archived | 列出归档会话 | | /unarchive <id\|标题> | 取消归档,回原位置 | | /recycle-session <id\|标题> | 彻底删除(进系统回收站,可捞回) |

临时回收站旧命令(已由归档替代,仅命令行备用)

| 命令 | 作用 | |---|---| | /delete-session <id\|标题> | 移入临时回收站(可恢复) | | /restore-session <id\|标题> | 从临时回收站恢复 | | /trash | 查看临时回收站 | | /empty-trash confirm | 清空临时回收站(自动扫残留) | | /clean-orphans | 清理 projcache 残留孤儿 |

设计要点

  • 归档 ≠ 删除:归档用官方 archiveSession(只加隐藏标记),日志和 sessionIds 席位都不动;
  • 彻底删除:目录移入系统回收站,同时清 projcache + workspace 账目 + 归档集合;
  • 预览:日志是「拼接 zstd 帧 + JSONL」,用 Node 内置 zlib.zstdDecompressSync 逐帧解压(零依赖),只读、只取最近 20 条;
  • 方案 B 索引重建:删除后调 workspaceRegistry.replaceHeaderIndex + indexLiveSessions,清掉已删 id 的「撞车残留」,免重启。

安装

从 npm(推荐)

dsh plugin --profile web add dsh-session-sight

本地挂载

  1. 把本目录软链/复制到 profile 的 node_modules/dsh-session-sight
  2. ~/.dsh/profiles/web/package.jsondsh.profile.bundles"dsh-session-sight"
  3. 重启 dsh + 浏览器强刷新。

兼容性

  • 需要 Node 22+(zlib.zstdDecompressSync 从 Node 22 起可用,Node 24 已验证);
  • 仅 Web 端有 UI(platform: web);命令在所有端可用。

参考与致谢

本项目以下实现借鉴(并本地演化)自社区项目与官方源码:

其余逻辑(两级删除语义、系统回收站清理、zstd 多帧预览解码、客户端薄壳面板)为本项目自行实现。

License

MIT