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-message-map

v0.1.1

Published

为 DSH 移植 Codex 风格的会话消息导航轨道和悬停摘要

Downloads

341

Readme

dsh-message-map

npm version GitHub stars license

为 DeepSeek Harness 移植 Codex 风格的会话消息导航轨道(Message map)。

只使用 DSH 已渲染的会话节点,不修改会话数据,也不执行 Host 命令。

注意:会话内用户消息达到 4 条后,消息轴会自动出现在聊天区左侧(标记按用户消息计数,不足 4 条时不显示任何内容)。

功能

  • 聊天区左侧按消息位置绘制纵向刻度,无需按钮、自动出现
  • 悬停刻度显示消息摘要与上下文注入来源
  • 点击刻度快速跳转(200ms 缓动动画),目标消息短暂高亮
  • 按住拖动刻度可快速扫览消息
  • 自动监听消息追加、历史加载、窗口尺寸与滚动变化

效果预览

安装

方式一:npm(推荐)

dsh plugin --profile web add dsh-message-map

方式二:GitHub

dsh plugin --profile web add github:ChiYuKe/dsh-message-map

锁定版本安装(防止后续推送悄悄改变实际运行的内容):

dsh plugin --profile web add github:ChiYuKe/dsh-message-map#v0.1.1

仓库已提交构建产物 lib/,且没有 prepare 脚本——不需要 allowBuilds 授权,装完即用。

方式三:本地开发

dsh plugin --profile web add /path/to/dsh-message-map

本地安装为 link 方式:修改 src/ 后需先 pnpm build 重建 lib/,再刷新页面生效。

使用

dsh --profile web

打开任意会话,用户消息达到 4 条后,聊天区左侧自动出现消息刻度;点击刻度跳转到对应消息,按住拖动可快速扫览。

开发与构建

pnpm install
pnpm build     # tsdown 重新生成 lib/index.js 与 lib/client.js

发布前把重新构建的 lib/ 一起提交进仓库(git 安装直接使用仓库里的构建产物)。

发布新版本

# 1. 更新 package.json 的 version(如 0.1.0 → 0.2.0)
# 2. 构建并提交
pnpm build
git add -A && git commit -m 'release: v0.2.0'
# 3. 发布到 npm(需要 bypass 2FA 的 publish token)
npm publish
# 4. 打 tag 并推送
git tag v0.2.0 && git push origin v0.2.0

许可证

MIT