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-context-snapshot-bar

v0.2.0

Published

DeepSeek Harness bundle: runtime-context snapshot and conversation trajectory cards docked above the composer

Readme

简体中文 · English · 日本語

dsh-context-snapshot-bar

让 DeepSeek Harness 的当前上下文看得见:查看运行时快照、消息轨迹,以及最近一次压缩保留了什么。

插件作用

  • 上下文快照:展示最新记录的规则、来源和时间,区分仍在上下文、已清除和已被替换。
  • 对话轨迹:按轮次查看用户消息、助手工具调用与结果,并对照最近一次压缩摘要及其替换的消息。
  • 接入位置:输入框上方提供入口,右侧上下文栏通过标签切换两种视图。

插件读取已提交的 Session 事件,不写入会话日志,不修改 DSH 的 AgentLoop 或压缩策略。快照可选用模型生成辅助摘要;未配置模型路由时仍可查看原始记录。

支持版本

| 项目 | 版本 | | --- | --- | | 已有安装与运行验证的 DSH | 0.1.5-rc.2(Host + Web) | | 插件当前版本 | 0.2.0 | | Session / Projection 依赖声明范围 | >=0.1.5-rc.2 <0.2.0-0 | | Node.js | ^22.19.0 \|\| >=24.0.0 |

依赖范围不等于已验证范围,其他 DSH 版本尚未完成兼容验证。具体构件和检查记录见兼容说明。

快速安装

需要已安装的 DSH,以及用于构建插件的 pnpm。以下命令在插件源码目录执行;已有 .tgz 安装包时,可跳过前三步。

pnpm install
pnpm run build
pnpm run pack
dsh plugin --profile web add ./artifacts/dsh-context-snapshot-bar-0.2.0.tgz
dsh --profile web --dump-config

确认输出包含 dsh-context-snapshot-bar 配置层后,重启对应 Web 服务:

dsh --profile web

若该服务正在运行,先停止旧进程再启动;使用启动器新输出的地址打开 Web。进入会话后,点击输入框上方的快照入口打开右侧栏。

使用自定义 Web profile 时,将命令中的 web 替换为实际名称。此处使用本地安装包,不假定 npm 上已有公开发布版本。

其他说明

  • 实时范围:提交事件后更新,不是逐 Token 流式显示;最新快照也可能已离开当前模型上下文。
  • 摘要调用:配置模型路由后会产生额外请求,发送卡片持有的段落文本。关闭方式及显示上限见配置与开发指南。
  • 长会话与动画:超出上限时标注省略数量;当前版本展示压缩对照,尚未实现旧消息组收拢动画。
  • 卸载:执行下面命令并重启对应服务,会话数据保留。
dsh plugin --profile web remove dsh-context-snapshot-bar

配置与排障 · 兼容记录 · 验收记录 · 变更记录 · MIT License