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-turn-title

v1.0.0

Published

Auto-title conversation after first exchange + button to update title in chat

Readme

dsh-turn-title

English | Português (Brasil) | 中文

为 DeepSeek Harness (DSH) 设计的会话标题增强插件:在第一轮对话完整结束(首条用户提问 + 助手完整回复)后自动生成精准会话标题,并在聊天顶部工具栏添加更新标题按钮。

图标


功能特性

  • 首轮完整对话后自动生成标题: 替代仅根据首条提问过早生成标题的默认行为。等待助手回复完成后再生成,包含完整上下文,标题更准确、更具描述性。
  • 对话顶部按钮: 在会话标题右侧操作栏(conversation.session.header.actions)添加 ✎ 更新标题 按钮。
    • 单击: 结合最近上下文,使用大模型重新生成标题。
    • Shift + 单击(或 Alt + 单击): 弹出输入框手动修改会话标题。
  • 多语言及 DSH 语言跟随: 界面文案与大模型标题生成指令自动跟随 DSH 系统当前选中的语言(中文、英语、葡萄牙语等)。
  • 原生主题融合: 使用 DSH 规范的 --dsw-alias-* CSS 变量,完美贴合深色与浅色模式。
  • 轻量稳定: 纯原生 ESM 模块,零第三方运行时依赖。

安装方法

通过 DSH 插件市场 (dshmarket)

在 DSH 插件市场中搜索 dsh-turn-title 并点击安装。

通过 DSH 命令行

dsh plugin --profile web add dsh-turn-title

通过本地源码链接

git clone https://github.com/mdalboni/dsh-turn-title.git
dsh plugin --profile web add link:./dsh-turn-title

运行机制

  1. Host 事件监听: 监听 session/event 的 turn/end 事件(条件:turn === 1 且 reason.kind === 'completed')。触发时调用 ctx.llm.stream 生成标题,并通过 ctx.sessionTitle.rename 持久化记录到会话日志。
  2. HTTP 服务端点: 在 ctx.webServer 上注册 POST /api/session-title/update,支持直接手动重命名或触发大模型重新总结。
  3. Client UI 槽位: 通过 ctx.slots.inject 挂载到 conversation.session.header.actions,多语言文案通过 ctx.locale 响应式切换。

单元测试

运行 Node.js 原生测试套件:

node --test test/index.test.js

开源协议

MIT © Maxwell Dalboni