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

v0.1.0

Published

上下文批改 (Context Redline) — review, edit, or delete the context a model will receive; open a zero-history ordinary session with the confirmed content; and return its bound result verbatim to the source session. Independent fork of dsh-context (Apache-2.0 po

Readme

DeepSeek Harness 社区插件。它不修改 DSH 源码,也不改写来源会话日志。

支持 DSH >=0.2.1-alpha.2 <0.3.0。 首版针对 0.2.1-alpha.2 验证。

本地编辑只写插件目录;确认后,插件在当前工作区创建一个零历史普通会话,逐字发送你确认的最终全文。任务完成后,绑定结果自动回到来源会话。

能做什么

  • 全文查看。 编辑器读取 durable 全文,不使用列表里的短预览。
  • 本地批改。 编辑用户消息、注入 / 技能材料、助手迁移副本和已配对工具结果。
  • 可逆删除。 删除表示“不迁移这条”,来源日志保持 append-only。
  • 最终全文。 确认框中的文本就是新会话收到的完整第一条用户消息,可直接删段、改字、重排。
  • 会话级模型。 一行浮动选择器配置新会话模型和推理等级,不修改来源会话或全局默认。
  • 普通新会话。 在当前工作区创建零历史 root session,不继承 fork 历史。
  • 自动回程。 只取与固定 prompt request ID 绑定的结果,原样送回来源会话。
  • 可恢复。 固定 ID、持久台账、精确正文匹配、flush、冷读和三态恢复共同防止重复或猜测。

截图来自仓库当前版本的交互 demo,用于说明布局与关键流程,不冒充生产会话数据。

安装

需要 DeepSeek Harness 0.2.1-alpha.2 或更新的 0.2.x,以及 Node.js 22.19+ 或 24+。

npm 发布后:

dsh plugin --profile web add dsh-context-redline@latest

本地开发:

pnpm install
pnpm run build
dsh plugin --profile web add "link:$(pwd)"

安装或宿主代码更新后,由用户本人重启 dsh web。仅客户端改动构建后通常只需硬刷新。

卸载:

dsh plugin --profile web remove dsh-context-redline

卸载插件不会自动删除 $DSH_HOME/dsh-context-redline/ 中的本地草稿和操作台账。

使用

  1. 打开已有消息的会话,进入「上下文批改」。
  2. 可选:逐条编辑或删除;保存只写本地。
  3. 点击「开启普通新会话」。
  4. 填写任务,并在「最终发送全文」中完成最后修改。
  5. 选择模型;推理等级可保持「使用模型默认值」。
  6. 确认创建;在左侧打开新会话。
  7. 新会话结束后,结果会自动回到来源会话。

详见用户指南。

图片和附件

  • 混合文字 / 图片消息迁移全部文字,并显示「图片 N 个未迁移」。
  • 纯图片消息不生成空白段,但计入遗漏数。
  • 图片引用仍参与来源指纹,图片变化会使旧确认失效。
  • 图片二进制、文件、file-ref 和通用附件当前不迁移;未知媒体明确拒绝,不会静默消失。

边界

  • 不改写或删除来源会话历史。
  • 系统提示词和工具定义由目标预设生成;迁移文字不冒充系统层。
  • 工具结果必须匹配原工具调用。
  • 不提供历史版本、回滚、压缩、团队任务板或会话删除 UI。
  • 插件保证自身锁内幂等与可恢复,不宣称平台天然 exactly-once。

开发

pnpm install
pnpm run typecheck
pnpm run lint
pnpm run test
./node_modules/.bin/vitest run
node scripts/release-check.mjs
pnpm pack --dry-run

推送 v* tag 后,GitHub Actions 会校验版本和双语发布说明、测试、打包,并通过 npm Trusted Publishing(OIDC,无 NPM_TOKEN)发布,再创建 GitHub Release。

文档

许可

原创部分采用 MIT;复制自 dsh-context 的部分保留 Apache-2.0。详见 LICENSE、LICENSE-Apache-2.0、NOTICE 和 UPSTREAM.md。本插件是独立 fork,不代表上游作者背书。