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

v0.8.2

Published

DSH web plugin: 工作区可见会话数 + 已完成未读会话数 + 已归档会话入口与恢复/删除 + 批量删除已归档会话 + 跨工作区移动会话(配置:"会话增强"设置卡片)。

Readme

dsh-session-xc

npm version license downloads DSH

中文 | English

DSH 会话管理增强插件 —— 为侧边栏工作区提供更强大的会话管理功能,包括统计展示、归档恢复、删除和跨工作区移动。

✨ 核心特性

📊 会话数统计展示

在工作区名称旁显示会话数量统计:

| 格式 | 含义 | |------|------| | (3) | 3 个活跃会话 | | (2/3) | 2 个未读完成会话 / 3 个活跃会话 |

  • 活跃会话:非归档、非子代理的可见会话
  • 未读完成:已完成运行但未查看的会话(绿色数字)
  • 抽屉汇总:工作区抽屉标题也显示汇总统计

📁 归档会话管理

  • 归档入口:工作区操作区显示归档按钮
  • 归档面板:点击查看所有已归档会话
  • 一键恢复:PC 端点击「恢复」按钮,移动端点击整行

🗑️ 永久删除

安全删除已归档会话,释放存储空间:

  • PC 端:红色「删除」按钮 + 确认对话框
  • 移动端:左滑显示删除按钮 + 确认对话框
  • 安全清理:删除后会话文件被永久移除

🔀 跨工作区移动

拖拽会话到目标工作区实现移动:

  • 拖拽指示:进入有效目标时高亮显示
  • 二次确认:释放前弹出确认对话框
  • 自动归类:移动后自动更新工作区归属
  • 常驻排队(v0.8.0):DSH 0.1.2+ 中会话一旦被 GUI 打开,Host 即常驻激活该会话 (关闭标签页不会释放,重启 DSH 才释放)。拖拽这类会话时移动会自动排队并持久化, 下次重启 DSH 后自动完成,无需额外操作;从未打开过的会话仍然即时移动

📦 安装

# 使用 DSH CLI
dsh plugin --profile web add dsh-session-xc

# 或使用 npm
npm install dsh-session-xc

安装后重启 DSH,侧边栏工作区列表将显示增强功能。

⚙️ 配置

| 选项 | 默认值 | 说明 | |------|--------|------| | showSessionCount | true | 显示会话数统计 | | enableDragMove | true | 启用拖拽移动功能 |

🎮 使用指南

查看会话统计

  • 查看工作区名称旁的数字
  • 展开工作区查看详细信息
  • 绿色数字表示未读完成的会话

恢复归档会话

  1. 点击工作区旁的归档按钮(文件夹图标)
  2. 在归档面板中找到目标会话
  3. 点击「恢复」按钮

删除归档会话

  1. 在归档面板中找到目标会话
  2. PC 端点击红色「删除」按钮
  3. 移动端左滑后点击「删除」
  4. 确认删除

移动会话到其他工作区

  1. 长按会话行开始拖拽
  2. 拖到目标工作区或该工作区下的会话
  3. 目标高亮时释放
  4. 确认移动(若提示"已排队",说明该会话在本 DSH 进程内常驻,重启 DSH 后自动完成移动)

🔧 数据来源

  • 工作区数据:RPC workspace.list
  • 会话数据:RPC sessions.list
  • 轮询刷新:5 秒间隔 + 页面可见时即时刷新

📱 移动端适配

  • 触摸友好:44px 最小触控区域
  • 滑动手势:左滑显示删除按钮
  • 响应式布局:自动适配不同屏幕尺寸

📄 许可证

MIT

🔗 链接